pub struct Spacer { /* private fields */ }Expand description
Behaves identically to a childless Minimum. It has a fixed size.
Implementations§
Trait Implementations§
Source§impl UiNode for Spacer
impl UiNode for Spacer
Source§fn get_align_mut(&mut self) -> (&mut Alignment, &mut Alignment)
fn get_align_mut(&mut self) -> (&mut Alignment, &mut Alignment)
Get a mutable reference to the alignment of the node.
Source§fn calculate_min_size(&self, _tree: &UiTree) -> (f32, f32)
fn calculate_min_size(&self, _tree: &UiTree) -> (f32, f32)
Calculate the minimum size of the node. Read more
Source§fn calculate_rects(&self, cache: &NodeCache, tree: &UiTree) -> Vec<Rect>
fn calculate_rects(&self, cache: &NodeCache, tree: &UiTree) -> Vec<Rect>
Recalculate the position and size of child nodes, in the same order and count as
get_visible_children. Read moreSource§fn get_children(&self) -> Vec<NodeIndex>
fn get_children(&self) -> Vec<NodeIndex>
Get all children of the node, if applicable.
Auto Trait Implementations§
impl Freeze for Spacer
impl RefUnwindSafe for Spacer
impl Send for Spacer
impl Sync for Spacer
impl Unpin for Spacer
impl UnsafeUnpin for Spacer
impl UnwindSafe for Spacer
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