Struct rstk::pack::PackLayout
source · pub struct PackLayout { /* private fields */ }
Expand description
Refers to the settings for a PackLayout.
Apart from layout
, the methods on this struct set the values of different
options in a builder style: call layout
to finish the layout.
Implementations§
source§impl PackLayout
impl PackLayout
sourcepub fn after(&mut self, widget: &impl TkWidget) -> &mut Self
pub fn after(&mut self, widget: &impl TkWidget) -> &mut Self
Inserts this widget after given widget in its container and in its packing order.
sourcepub fn anchor(&mut self, value: Anchor) -> &mut Self
pub fn anchor(&mut self, value: Anchor) -> &mut Self
Specifies position of this widget with respect to its container.
sourcepub fn before(&mut self, widget: &impl TkWidget) -> &mut Self
pub fn before(&mut self, widget: &impl TkWidget) -> &mut Self
Inserts this widget before given widget in its container and in its packing order.
sourcepub fn expand(&mut self, value: bool) -> &mut Self
pub fn expand(&mut self, value: bool) -> &mut Self
Specifies whether widget should expand to fit its container.
sourcepub fn fill(&mut self, value: PackFill) -> &mut Self
pub fn fill(&mut self, value: PackFill) -> &mut Self
Specifies how widget should expand to fill its container.
sourcepub fn inside(&mut self, widget: &impl TkWidget) -> &mut Self
pub fn inside(&mut self, widget: &impl TkWidget) -> &mut Self
Inserts this widget into container of given widget at the end of its packing order.
Trait Implementations§
source§impl Clone for PackLayout
impl Clone for PackLayout
source§fn clone(&self) -> PackLayout
fn clone(&self) -> PackLayout
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for PackLayout
impl Send for PackLayout
impl Sync for PackLayout
impl Unpin for PackLayout
impl UnwindSafe for PackLayout
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