pub struct GridLayout { /* private fields */ }Expand description
This is the GridLayout storage structure for the GridLayout implementation.
Implementations§
Trait Implementations§
Source§impl Layout for GridLayout
This is the Layout implementation for the GridLayout manager. This Layout manager will
not reposition any objects within the bounds of the Layout until at least 2 objects have been
added to the bounds of the Layout.
impl Layout for GridLayout
This is the Layout implementation for the GridLayout manager. This Layout manager will
not reposition any objects within the bounds of the Layout until at least 2 objects have been
added to the bounds of the Layout.
Source§fn insert_widget(&mut self, _widget_id: i32, _widget_position: LayoutPosition)
fn insert_widget(&mut self, _widget_id: i32, _widget_position: LayoutPosition)
Adds a widget to the HorizontalLayout managed stack.
Source§fn append_widget(&mut self, _widget_id: i32)
fn append_widget(&mut self, _widget_id: i32)
Appends a widget to the HorizontalLayout managed stack.
Source§fn do_layout(&mut self, _widgets: &[WidgetContainer])
fn do_layout(&mut self, _widgets: &[WidgetContainer])
Adjusts the layout of the Widgets managed by this Layout manager. Currently only obeys
the spacing in the object. The rest of the padding is not (yet) honored.
Source§fn set_padding(&mut self, padding: PaddingConstraint)
fn set_padding(&mut self, padding: PaddingConstraint)
Changes the
PaddingConstraint for this Layout.Source§fn get_padding(&self) -> PaddingConstraint
fn get_padding(&self) -> PaddingConstraint
Retrieves the current
PaddingConstraint.Source§fn needs_layout(&self) -> bool
fn needs_layout(&self) -> bool
Indicates whether or not the
Layout needs to have do_layout re-run. This is generally
needed when the LayoutPosition changes, or when PaddingConstraints change.Auto Trait Implementations§
impl Freeze for GridLayout
impl RefUnwindSafe for GridLayout
impl Send for GridLayout
impl Sync for GridLayout
impl Unpin for GridLayout
impl UnwindSafe for GridLayout
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