pub struct GridLayoutBuilder { /* private fields */ }Expand description
A builder-pattern type to construct GridLayout objects.
Implementations§
Source§impl GridLayoutBuilder
impl GridLayoutBuilder
Sourcepub fn baseline_row(self, baseline_row: i32) -> Self
pub fn baseline_row(self, baseline_row: i32) -> Self
The row to align to the baseline, when GtkWidget:valign is set
to Align::Baseline.
Sourcepub fn column_homogeneous(self, column_homogeneous: bool) -> Self
pub fn column_homogeneous(self, column_homogeneous: bool) -> Self
Whether all the columns in the grid have the same width.
Sourcepub fn column_spacing(self, column_spacing: i32) -> Self
pub fn column_spacing(self, column_spacing: i32) -> Self
The amount of space between to consecutive columns.
Sourcepub fn row_homogeneous(self, row_homogeneous: bool) -> Self
pub fn row_homogeneous(self, row_homogeneous: bool) -> Self
Whether all the rows in the grid have the same height.
Sourcepub fn row_spacing(self, row_spacing: i32) -> Self
pub fn row_spacing(self, row_spacing: i32) -> Self
The amount of space between to consecutive rows.
Sourcepub fn build(self) -> GridLayout
pub fn build(self) -> GridLayout
Build the GridLayout.
Auto Trait Implementations§
impl Freeze for GridLayoutBuilder
impl RefUnwindSafe for GridLayoutBuilder
impl !Send for GridLayoutBuilder
impl !Sync for GridLayoutBuilder
impl Unpin for GridLayoutBuilder
impl UnwindSafe for GridLayoutBuilder
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