[−][src]Struct pushrod::layouts::horizontal_layout::HorizontalLayout
This is the HorizontalLayout storage structure for the HorizontalLayout implementation.
Implementations
impl HorizontalLayout[src]
Creates a new HorizontalLayout manager.
Trait Implementations
impl Layout for HorizontalLayout[src]
This is the Layout implementation for the HorizontalLayout 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.
fn add_widget(&mut self, widget_id: i32, widget_position: LayoutPosition)[src]
Adds a widget to the HorizontalLayout managed stack.
fn set_padding(&mut self, padding: PaddingConstraint)[src]
fn get_padding(&self) -> PaddingConstraint[src]
fn do_layout(&mut self, _widgets: &[WidgetContainer])[src]
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.
fn needs_layout(&self) -> bool[src]
Auto Trait Implementations
impl RefUnwindSafe for HorizontalLayout
impl Send for HorizontalLayout
impl Sync for HorizontalLayout
impl Unpin for HorizontalLayout
impl UnwindSafe for HorizontalLayout
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,