pub struct GridChildBuilder<'a, 'b> { /* private fields */ }Available on crate feature
winio only.Expand description
Builder of a child for Grid.
Implementations§
Source§impl GridChildBuilder<'_, '_>
impl GridChildBuilder<'_, '_>
Sourcepub fn width(self, v: f64) -> GridChildBuilder<'_, '_>
pub fn width(self, v: f64) -> GridChildBuilder<'_, '_>
Specify the child width.
Sourcepub fn height(self, v: f64) -> GridChildBuilder<'_, '_>
pub fn height(self, v: f64) -> GridChildBuilder<'_, '_>
Specify the child height.
Sourcepub fn size(self, s: Size2D<f64, LogicalSpace>) -> GridChildBuilder<'_, '_>
pub fn size(self, s: Size2D<f64, LogicalSpace>) -> GridChildBuilder<'_, '_>
Specify the child size.
Sourcepub fn margin(
self,
m: SideOffsets2D<f64, LogicalSpace>,
) -> GridChildBuilder<'_, '_>
pub fn margin( self, m: SideOffsets2D<f64, LogicalSpace>, ) -> GridChildBuilder<'_, '_>
Margin of the child.
Sourcepub fn halign(self, v: HAlign) -> GridChildBuilder<'_, '_>
pub fn halign(self, v: HAlign) -> GridChildBuilder<'_, '_>
Horizontal alignment in the available area.
Sourcepub fn valign(self, v: VAlign) -> GridChildBuilder<'_, '_>
pub fn valign(self, v: VAlign) -> GridChildBuilder<'_, '_>
Vertical alignment in the available area.
Sourcepub fn column(self, v: usize) -> GridChildBuilder<'_, '_>
pub fn column(self, v: usize) -> GridChildBuilder<'_, '_>
The column index in the grid.
Sourcepub fn row(self, v: usize) -> GridChildBuilder<'_, '_>
pub fn row(self, v: usize) -> GridChildBuilder<'_, '_>
The row index in the grid.
Sourcepub fn column_span(self, v: usize) -> GridChildBuilder<'_, '_>
pub fn column_span(self, v: usize) -> GridChildBuilder<'_, '_>
The column span in the grid.
Sourcepub fn row_span(self, v: usize) -> GridChildBuilder<'_, '_>
pub fn row_span(self, v: usize) -> GridChildBuilder<'_, '_>
The row span in the grid.
Auto Trait Implementations§
impl<'a, 'b> Freeze for GridChildBuilder<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for GridChildBuilder<'a, 'b>
impl<'a, 'b> !Send for GridChildBuilder<'a, 'b>
impl<'a, 'b> !Sync for GridChildBuilder<'a, 'b>
impl<'a, 'b> Unpin for GridChildBuilder<'a, 'b>
impl<'a, 'b> !UnwindSafe for GridChildBuilder<'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