Struct ambient_api::prelude::FixedGrid
source · pub struct FixedGrid {
pub items: Vec<Element>,
pub item_stride: Vec2,
pub items_horizontal: usize,
}
Expand description
A FixedGrid is a grid of elements with a fixed stride.
Fields§
§items: Vec<Element>
The items to put in the grid. Must be a multiple of items_horizontal
. (i.e. a 2D array represented as a 1D array)
item_stride: Vec2
The display stride between items (i.e. how much space each item has).
items_horizontal: usize
The number of items in a row.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FixedGrid
impl Send for FixedGrid
impl Sync for FixedGrid
impl Unpin for FixedGrid
impl !UnwindSafe for FixedGrid
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> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentExt for Twhere
T: ElementComponent + 'static,
impl<T> ElementComponentExt for Twhere
T: ElementComponent + 'static,
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.