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