use crate::{*, draw::*}; /// Move content in the negative direction of one or both axes. /// /// ``` /// # fn doctest_layout_pull () -> Result<(), Box> { /// use tengri::{Layout, Draw, XYWH}; /// let area = XYWH(1u16, 1, 80, 25); /// assert_eq!("1".layout(area)?, Some(XYWH(0u16, 0, 1, 1))); /// assert_eq!("1".pull_x(1).layout(area)?, Some(XYWH(0u16, 1, 1, 1))); /// assert_eq!("1".pull_y(1).layout(area)?, Some(XYWH(1u16, 0, 1, 1))); /// assert_eq!("1".pull_xy(1, 1).layout(area)?, Some(XYWH(0u16, 0, 1, 1))); /// # Ok(()) } /// ``` pub enum Pull, X: Into>> { __(PhantomData), X(I, X), Y(I, X), XY(I, X, X), } impl_draw!(, X: Into>,>|self: Pull, _to: T|{ todo!() });