[−][src]Struct kas::layout::AxisInfo
Information on which axis is being resized
Also conveys the size of the other axis, if fixed.
Implementations
impl AxisInfo
[src]
pub fn new(vertical: bool, fixed: Option<u32>) -> Self
[src]
Construct with direction and an optional value for the other axis
This method is usually not required by user code.
pub fn is_vertical(&self) -> bool
[src]
True if the current axis is vertical
pub fn is_horizontal(self) -> bool
[src]
True if the current axis is horizontal
pub fn other(&self) -> Option<u32>
[src]
Size of other axis, if fixed
pub fn size_other_if_fixed(&self, vertical: bool) -> Option<u32>
[src]
Size of other axis, if fixed and vertical
matches this axis.
pub fn extract_size(&self, size: Size) -> u32
[src]
Extract horizontal or vertical component of a Size
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AxisInfo
impl Send for AxisInfo
impl Sync for AxisInfo
impl Unpin for AxisInfo
impl UnwindSafe for AxisInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,