#[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.
This field is required.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 get_element_id(&self) -> &Option<String>
pub fn get_element_id(&self) -> &Option<String>
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.
This field is required.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 get_element_type(&self) -> &Option<LayoutElementType>
pub fn get_element_type(&self) -> &Option<LayoutElementType>
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 get_column_index(&self) -> &Option<i32>
pub fn get_column_index(&self) -> &Option<i32>
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.
This field is required.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 get_column_span(&self) -> &Option<i32>
pub fn get_column_span(&self) -> &Option<i32>
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 get_row_index(&self) -> &Option<i32>
pub fn get_row_index(&self) -> &Option<i32>
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.
This field is required.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 get_row_span(&self) -> &Option<i32>
pub fn get_row_span(&self) -> &Option<i32>
The height of a grid element expressed as a number of grid rows.
sourcepub fn build(self) -> Result<GridLayoutElement, BuildError>
pub fn build(self) -> Result<GridLayoutElement, BuildError>
Consumes the builder and constructs a GridLayoutElement
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GridLayoutElementBuilder
impl Clone for GridLayoutElementBuilder
source§fn clone(&self) -> GridLayoutElementBuilder
fn clone(&self) -> GridLayoutElementBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
source§impl PartialEq for GridLayoutElementBuilder
impl PartialEq for GridLayoutElementBuilder
source§fn eq(&self, other: &GridLayoutElementBuilder) -> bool
fn eq(&self, other: &GridLayoutElementBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.