pub struct StackPanelChildBuilder<'a, 'b> { /* private fields */ }Available on crate feature
winio only.Expand description
Builder of a child for StackPanel.
Implementations§
Source§impl StackPanelChildBuilder<'_, '_>
impl StackPanelChildBuilder<'_, '_>
Sourcepub fn width(self, v: f64) -> StackPanelChildBuilder<'_, '_>
pub fn width(self, v: f64) -> StackPanelChildBuilder<'_, '_>
Specify the child width.
Sourcepub fn height(self, v: f64) -> StackPanelChildBuilder<'_, '_>
pub fn height(self, v: f64) -> StackPanelChildBuilder<'_, '_>
Specify the child height.
Sourcepub fn size(
self,
s: Size2D<f64, LogicalSpace>,
) -> StackPanelChildBuilder<'_, '_>
pub fn size( self, s: Size2D<f64, LogicalSpace>, ) -> StackPanelChildBuilder<'_, '_>
Specify the child size.
Sourcepub fn margin(
self,
m: SideOffsets2D<f64, LogicalSpace>,
) -> StackPanelChildBuilder<'_, '_>
pub fn margin( self, m: SideOffsets2D<f64, LogicalSpace>, ) -> StackPanelChildBuilder<'_, '_>
Margin of the child.
Sourcepub fn halign(self, v: HAlign) -> StackPanelChildBuilder<'_, '_>
pub fn halign(self, v: HAlign) -> StackPanelChildBuilder<'_, '_>
Horizontal alignment in the available area.
Sourcepub fn valign(self, v: VAlign) -> StackPanelChildBuilder<'_, '_>
pub fn valign(self, v: VAlign) -> StackPanelChildBuilder<'_, '_>
Vertical alignment in the available area.
Sourcepub fn grow(self, v: bool) -> StackPanelChildBuilder<'_, '_>
pub fn grow(self, v: bool) -> StackPanelChildBuilder<'_, '_>
Whether to fill the remain space of the container.
Auto Trait Implementations§
impl<'a, 'b> Freeze for StackPanelChildBuilder<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for StackPanelChildBuilder<'a, 'b>
impl<'a, 'b> !Send for StackPanelChildBuilder<'a, 'b>
impl<'a, 'b> !Sync for StackPanelChildBuilder<'a, 'b>
impl<'a, 'b> Unpin for StackPanelChildBuilder<'a, 'b>
impl<'a, 'b> !UnwindSafe for StackPanelChildBuilder<'a, 'b>
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