pub struct BoxLayout { /* private fields */ }Expand description
Generic container box that wraps the base Container widget.
Implementations§
Trait Implementations§
Source§impl StyleProps for BoxLayout
impl StyleProps for BoxLayout
Source§fn style_mut(&mut self) -> &mut Style
fn style_mut(&mut self) -> &mut Style
Return the mutable style used by this widget’s main visual part.
Source§fn with_style(self, style: Style) -> Self
fn with_style(self, style: Style) -> Self
Replace the complete main style.
Source§fn border_color(self, color: Color) -> Self
fn border_color(self, color: Color) -> Self
Set the border color.
Source§fn border_width(self, width: u8) -> Self
fn border_width(self, width: u8) -> Self
Set the border width in pixels.
Source§impl Widget for BoxLayout
impl Widget for BoxLayout
Source§fn handle_event(&mut self, event: &Event) -> bool
fn handle_event(&mut self, event: &Event) -> bool
Handle an event and return
true if it was consumed. Read moreSource§fn clear_region(&mut self) -> Option<Rect>
fn clear_region(&mut self) -> Option<Rect>
Return a region (in draw/landscape coordinates) that should be
restored from the pristine background copy, or
None. Read moreSource§fn set_bounds(&mut self, _bounds: Rect)
fn set_bounds(&mut self, _bounds: Rect)
Called by the LPAR-10 layout pass to notify this widget of its
layout-computed bounds. Read more
Source§fn widget_font_mut(&mut self) -> Option<&mut WidgetFont>
fn widget_font_mut(&mut self) -> Option<&mut WidgetFont>
Expose this widget’s font slot for cascade-driven font resolution
(FONT-05 §5.B). Read more
Auto Trait Implementations§
impl Freeze for BoxLayout
impl RefUnwindSafe for BoxLayout
impl Send for BoxLayout
impl Sync for BoxLayout
impl Unpin for BoxLayout
impl UnsafeUnpin for BoxLayout
impl UnwindSafe for BoxLayout
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
Source§impl<T> BoundsProps for Twhere
T: Widget,
impl<T> BoundsProps for Twhere
T: Widget,
Source§impl<T> ThemeProps for Twhere
T: StyleProps,
impl<T> ThemeProps for Twhere
T: StyleProps,
Source§fn themed(
self,
theme: &Theme,
scheme: ColorScheme,
variant: Variant,
size: ComponentSize,
) -> Self
fn themed( self, theme: &Theme, scheme: ColorScheme, variant: Variant, size: ComponentSize, ) -> Self
Apply a complete themed style.
Source§fn variant(self, theme: &Theme, scheme: ColorScheme, variant: Variant) -> Self
fn variant(self, theme: &Theme, scheme: ColorScheme, variant: Variant) -> Self
Apply a themed variant with medium sizing.
Source§fn component_size(self, theme: &Theme, size: ComponentSize) -> Self
fn component_size(self, theme: &Theme, size: ComponentSize) -> Self
Apply only the sizing-affecting style fields.