pub struct StackPanelChildBuilder<'a, 'b, E> { /* private fields */ }Available on crate feature
winio only.Expand description
Builder of a child for StackPanel.
Implementations§
Source§impl<E> StackPanelChildBuilder<'_, '_, E>
impl<E> StackPanelChildBuilder<'_, '_, E>
Sourcepub fn width(self, v: f64) -> StackPanelChildBuilder<'_, '_, E>
pub fn width(self, v: f64) -> StackPanelChildBuilder<'_, '_, E>
Specify the child width.
Sourcepub fn height(self, v: f64) -> StackPanelChildBuilder<'_, '_, E>
pub fn height(self, v: f64) -> StackPanelChildBuilder<'_, '_, E>
Specify the child height.
Sourcepub fn size(
self,
s: Size2D<f64, LogicalSpace>,
) -> StackPanelChildBuilder<'_, '_, E>
pub fn size( self, s: Size2D<f64, LogicalSpace>, ) -> StackPanelChildBuilder<'_, '_, E>
Specify the child size.
Sourcepub fn margin(
self,
m: SideOffsets2D<f64, LogicalSpace>,
) -> StackPanelChildBuilder<'_, '_, E>
pub fn margin( self, m: SideOffsets2D<f64, LogicalSpace>, ) -> StackPanelChildBuilder<'_, '_, E>
Margin of the child.
Sourcepub fn halign(self, v: HAlign) -> StackPanelChildBuilder<'_, '_, E>
pub fn halign(self, v: HAlign) -> StackPanelChildBuilder<'_, '_, E>
Horizontal alignment in the available area.
Sourcepub fn valign(self, v: VAlign) -> StackPanelChildBuilder<'_, '_, E>
pub fn valign(self, v: VAlign) -> StackPanelChildBuilder<'_, '_, E>
Vertical alignment in the available area.
Sourcepub fn grow(self, v: bool) -> StackPanelChildBuilder<'_, '_, E>
pub fn grow(self, v: bool) -> StackPanelChildBuilder<'_, '_, E>
Whether to fill the remain space of the container.
Auto Trait Implementations§
impl<'a, 'b, E> Freeze for StackPanelChildBuilder<'a, 'b, E>
impl<'a, 'b, E> !RefUnwindSafe for StackPanelChildBuilder<'a, 'b, E>
impl<'a, 'b, E> !Send for StackPanelChildBuilder<'a, 'b, E>
impl<'a, 'b, E> !Sync for StackPanelChildBuilder<'a, 'b, E>
impl<'a, 'b, E> Unpin for StackPanelChildBuilder<'a, 'b, E>
impl<'a, 'b, E> UnsafeUnpin for StackPanelChildBuilder<'a, 'b, E>
impl<'a, 'b, E> !UnwindSafe for StackPanelChildBuilder<'a, 'b, E>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more