pub struct LayoutGrid {
pub pattern: Pattern,
pub section_size: f64,
pub visible: bool,
pub color: Box<Rgba>,
pub alignment: Alignment,
pub gutter_size: f64,
pub offset: f64,
pub count: f64,
pub bound_variables: Option<Box<LayoutGridBoundVariables>>,
}
Expand description
LayoutGrid : Guides to align and place objects within a frames.
Fields§
§pattern: Pattern
Orientation of the grid as a string enum - COLUMNS
: Vertical grid - ROWS
: Horizontal grid - GRID
: Square grid
section_size: f64
Width of column grid or height of row grid or square grid spacing.
visible: bool
Is the grid currently visible?
color: Box<Rgba>
Color of the grid
alignment: Alignment
Positioning of grid as a string enum - MIN
: Grid starts at the left or top of the frame - MAX
: Grid starts at the right or bottom of the frame - STRETCH
: Grid is stretched to fit the frame - CENTER
: Grid is center aligned
gutter_size: f64
Spacing in between columns and rows
offset: f64
Spacing before the first column or row
count: f64
Number of columns or rows
bound_variables: Option<Box<LayoutGridBoundVariables>>
Implementations§
Trait Implementations§
Source§impl Clone for LayoutGrid
impl Clone for LayoutGrid
Source§fn clone(&self) -> LayoutGrid
fn clone(&self) -> LayoutGrid
Returns a duplicate 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 LayoutGrid
impl Debug for LayoutGrid
Source§impl Default for LayoutGrid
impl Default for LayoutGrid
Source§fn default() -> LayoutGrid
fn default() -> LayoutGrid
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LayoutGrid
impl<'de> Deserialize<'de> for LayoutGrid
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LayoutGrid
impl PartialEq for LayoutGrid
Source§impl Serialize for LayoutGrid
impl Serialize for LayoutGrid
impl StructuralPartialEq for LayoutGrid
Auto Trait Implementations§
impl Freeze for LayoutGrid
impl RefUnwindSafe for LayoutGrid
impl Send for LayoutGrid
impl Sync for LayoutGrid
impl Unpin for LayoutGrid
impl UnwindSafe for LayoutGrid
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