pub struct AvailableSpace { /* private fields */ }Expand description
Available layout space passed down during a layout pass and cached for clean-subtree skipping.
Implementations§
Source§impl AvailableSpace
Construction helpers for AvailableSpace.
impl AvailableSpace
Construction helpers for AvailableSpace.
Source§impl AvailableSpace
impl AvailableSpace
pub fn get_width(&self) -> f32
pub fn get_mut_width(&mut self) -> &mut f32
pub fn set_width(&mut self, val: f32) -> &mut Self
pub fn get_height(&self) -> f32
pub fn get_mut_height(&mut self) -> &mut f32
pub fn set_height(&mut self, val: f32) -> &mut Self
pub fn get_viewport(&self) -> Size
pub fn get_mut_viewport(&mut self) -> &mut Size
pub fn set_viewport(&mut self, val: Size) -> &mut Self
pub fn get_origin_x(&self) -> f32
pub fn get_mut_origin_x(&mut self) -> &mut f32
pub fn set_origin_x(&mut self, val: f32) -> &mut Self
pub fn get_origin_y(&self) -> f32
pub fn get_mut_origin_y(&mut self) -> &mut f32
pub fn set_origin_y(&mut self, val: f32) -> &mut Self
pub fn get_stretch_width(&self) -> bool
pub fn get_mut_stretch_width(&mut self) -> &mut bool
pub fn set_stretch_width(&mut self, val: bool) -> &mut Self
pub fn get_stretch_height(&self) -> bool
pub fn get_mut_stretch_height(&mut self) -> &mut bool
pub fn set_stretch_height(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for AvailableSpace
impl Clone for AvailableSpace
impl Copy for AvailableSpace
Source§impl Debug for AvailableSpace
impl Debug for AvailableSpace
Source§impl Default for AvailableSpace
impl Default for AvailableSpace
Source§impl PartialEq for AvailableSpace
impl PartialEq for AvailableSpace
impl StructuralPartialEq for AvailableSpace
Auto Trait Implementations§
impl Forget for AvailableSpace
impl Freeze for AvailableSpace
impl Move for AvailableSpace
impl RefUnwindSafe for AvailableSpace
impl Send for AvailableSpace
impl Sync for AvailableSpace
impl Unpin for AvailableSpace
impl UnsafeUnpin for AvailableSpace
impl UnwindSafe for AvailableSpace
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more