Struct kas::layout::AxisInfo [−][src]
pub struct AxisInfo { /* fields omitted */ }
Expand description
Information on which axis is being resized
Also conveys the size of the other axis, if fixed.
Implementations
Construct with direction and an optional value for the other axis
This method is usually not required by user code.
True if the current axis is vertical
True if the current axis is horizontal
Size of other axis, if fixed and vertical
matches this axis.
Trait Implementations
Flip over diagonal (i.e. Down ↔ Right)
Reverse along axis (i.e. Left ↔ Right)
Convert to the Direction
enum
Up or Down
Left or Right
Left or Up
Auto Trait Implementations
impl RefUnwindSafe for AxisInfo
impl UnwindSafe for AxisInfo
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn cast_trunc(self) -> T
pub fn cast_trunc(self) -> T
Cast to integer, truncating Read more
pub fn cast_nearest(self) -> T
pub fn cast_nearest(self) -> T
Cast to the nearest integer Read more
pub fn cast_floor(self) -> T
pub fn cast_floor(self) -> T
Cast the floor to an integer Read more
pub fn try_cast_trunc(self) -> Result<T, Error>
pub fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
pub fn try_cast_nearest(self) -> Result<T, Error>
pub fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
pub fn try_cast_floor(self) -> Result<T, Error>
pub fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
pub fn try_cast_ceil(self) -> Result<T, Error>
pub fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more