#[non_exhaustive]pub struct GridLayoutElementBuilder { /* private fields */ }Expand description
A builder for GridLayoutElement.
Implementations§
source§impl GridLayoutElementBuilder
impl GridLayoutElementBuilder
sourcepub fn element_id(self, input: impl Into<String>) -> Self
pub fn element_id(self, input: impl Into<String>) -> Self
A unique identifier for an element within a grid layout.
sourcepub fn set_element_id(self, input: Option<String>) -> Self
pub fn set_element_id(self, input: Option<String>) -> Self
A unique identifier for an element within a grid layout.
sourcepub fn element_type(self, input: LayoutElementType) -> Self
pub fn element_type(self, input: LayoutElementType) -> Self
The type of element.
sourcepub fn set_element_type(self, input: Option<LayoutElementType>) -> Self
pub fn set_element_type(self, input: Option<LayoutElementType>) -> Self
The type of element.
sourcepub fn column_index(self, input: i32) -> Self
pub fn column_index(self, input: i32) -> Self
The column index for the upper left corner of an element.
sourcepub fn set_column_index(self, input: Option<i32>) -> Self
pub fn set_column_index(self, input: Option<i32>) -> Self
The column index for the upper left corner of an element.
sourcepub fn column_span(self, input: i32) -> Self
pub fn column_span(self, input: i32) -> Self
The width of a grid element expressed as a number of grid columns.
sourcepub fn set_column_span(self, input: Option<i32>) -> Self
pub fn set_column_span(self, input: Option<i32>) -> Self
The width of a grid element expressed as a number of grid columns.
sourcepub fn row_index(self, input: i32) -> Self
pub fn row_index(self, input: i32) -> Self
The row index for the upper left corner of an element.
sourcepub fn set_row_index(self, input: Option<i32>) -> Self
pub fn set_row_index(self, input: Option<i32>) -> Self
The row index for the upper left corner of an element.
sourcepub fn row_span(self, input: i32) -> Self
pub fn row_span(self, input: i32) -> Self
The height of a grid element expressed as a number of grid rows.
sourcepub fn set_row_span(self, input: Option<i32>) -> Self
pub fn set_row_span(self, input: Option<i32>) -> Self
The height of a grid element expressed as a number of grid rows.
sourcepub fn build(self) -> GridLayoutElement
pub fn build(self) -> GridLayoutElement
Consumes the builder and constructs a GridLayoutElement.
Trait Implementations§
source§impl Clone for GridLayoutElementBuilder
impl Clone for GridLayoutElementBuilder
source§fn clone(&self) -> GridLayoutElementBuilder
fn clone(&self) -> GridLayoutElementBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for GridLayoutElementBuilder
impl Debug for GridLayoutElementBuilder
source§impl Default for GridLayoutElementBuilder
impl Default for GridLayoutElementBuilder
source§fn default() -> GridLayoutElementBuilder
fn default() -> GridLayoutElementBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<GridLayoutElementBuilder> for GridLayoutElementBuilder
impl PartialEq<GridLayoutElementBuilder> for GridLayoutElementBuilder
source§fn eq(&self, other: &GridLayoutElementBuilder) -> bool
fn eq(&self, other: &GridLayoutElementBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.