Struct fyrox_ui::grid::GridBuilder
source · pub struct GridBuilder { /* private fields */ }Expand description
Grid builder creates Grid instances and adds it to the user interface.
Implementations§
source§impl GridBuilder
impl GridBuilder
sourcepub fn new(widget_builder: WidgetBuilder) -> Self
pub fn new(widget_builder: WidgetBuilder) -> Self
Creates new grid builder with the base widget builder.
sourcepub fn add_row(self, row: Row) -> Self
pub fn add_row(self, row: Row) -> Self
Adds a new row to the grid builder. Number of rows is unlimited.
sourcepub fn add_column(self, column: Column) -> Self
pub fn add_column(self, column: Column) -> Self
Adds a new column to the grid builder. Number of columns is unlimited.
sourcepub fn add_rows(self, rows: Vec<Row>) -> Self
pub fn add_rows(self, rows: Vec<Row>) -> Self
Adds a set of rows to the grid builder. Number of rows is unlimited.
sourcepub fn add_columns(self, columns: Vec<Column>) -> Self
pub fn add_columns(self, columns: Vec<Column>) -> Self
Adds a set of columnds to the grid builder. Number of columnds is unlimited.
sourcepub fn draw_border(self, value: bool) -> Self
pub fn draw_border(self, value: bool) -> Self
Specifies whether the grid should draw its border or not.
sourcepub fn with_border_thickness(self, value: f32) -> Self
pub fn with_border_thickness(self, value: f32) -> Self
Specifies grid’s border thickness.
Auto Trait Implementations§
impl !RefUnwindSafe for GridBuilder
impl !Send for GridBuilder
impl !Sync for GridBuilder
impl Unpin for GridBuilder
impl !UnwindSafe for GridBuilder
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> FieldValue for Twhere
T: 'static,
impl<T> FieldValue for Twhere T: 'static,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.