pub struct HasFramePropertiesTrait {Show 20 fields
pub clips_content: bool,
pub background: Option<Vec<Paint>>,
pub background_color: Option<Box<Rgba>>,
pub layout_grids: Option<Vec<LayoutGrid>>,
pub overflow_direction: Option<OverflowDirection>,
pub layout_mode: Option<LayoutMode>,
pub primary_axis_sizing_mode: Option<PrimaryAxisSizingMode>,
pub counter_axis_sizing_mode: Option<CounterAxisSizingMode>,
pub primary_axis_align_items: Option<PrimaryAxisAlignItems>,
pub counter_axis_align_items: Option<CounterAxisAlignItems>,
pub padding_left: Option<f64>,
pub padding_right: Option<f64>,
pub padding_top: Option<f64>,
pub padding_bottom: Option<f64>,
pub item_spacing: Option<f64>,
pub item_reverse_z_index: Option<bool>,
pub strokes_included_in_layout: Option<bool>,
pub layout_wrap: Option<LayoutWrap>,
pub counter_axis_spacing: Option<f64>,
pub counter_axis_align_content: Option<CounterAxisAlignContent>,
}
Fields§
§clips_content: bool
Whether or not this node clip content outside of its bounds
background: Option<Vec<Paint>>
Background of the node. This is deprecated, as backgrounds for frames are now in the fills
field.
background_color: Option<Box<Rgba>>
Background color of the node. This is deprecated, as frames now support more than a solid color as a background. Please use the fills
field instead.
layout_grids: Option<Vec<LayoutGrid>>
An array of layout grids attached to this node (see layout grids section for more details). GROUP nodes do not have this attribute
overflow_direction: Option<OverflowDirection>
Whether a node has primary axis scrolling, horizontal or vertical.
layout_mode: Option<LayoutMode>
Whether this layer uses auto-layout to position its children.
primary_axis_sizing_mode: Option<PrimaryAxisSizingMode>
Whether the primary axis has a fixed length (determined by the user) or an automatic length (determined by the layout engine). This property is only applicable for auto-layout frames.
counter_axis_sizing_mode: Option<CounterAxisSizingMode>
Whether the counter axis has a fixed length (determined by the user) or an automatic length (determined by the layout engine). This property is only applicable for auto-layout frames.
primary_axis_align_items: Option<PrimaryAxisAlignItems>
Determines how the auto-layout frame’s children should be aligned in the primary axis direction. This property is only applicable for auto-layout frames.
counter_axis_align_items: Option<CounterAxisAlignItems>
Determines how the auto-layout frame’s children should be aligned in the counter axis direction. This property is only applicable for auto-layout frames.
padding_left: Option<f64>
The padding between the left border of the frame and its children. This property is only applicable for auto-layout frames.
padding_right: Option<f64>
The padding between the right border of the frame and its children. This property is only applicable for auto-layout frames.
padding_top: Option<f64>
The padding between the top border of the frame and its children. This property is only applicable for auto-layout frames.
padding_bottom: Option<f64>
The padding between the bottom border of the frame and its children. This property is only applicable for auto-layout frames.
item_spacing: Option<f64>
The distance between children of the frame. Can be negative. This property is only applicable for auto-layout frames.
item_reverse_z_index: Option<bool>
Determines the canvas stacking order of layers in this frame. When true, the first layer will be draw on top. This property is only applicable for auto-layout frames.
strokes_included_in_layout: Option<bool>
Determines whether strokes are included in layout calculations. When true, auto-layout frames behave like css "box-sizing: border-box". This property is only applicable for auto-layout frames.
layout_wrap: Option<LayoutWrap>
Whether this auto-layout frame has wrapping enabled.
counter_axis_spacing: Option<f64>
The distance between wrapped tracks of an auto-layout frame. This property is only applicable for auto-layout frames with layoutWrap: \"WRAP\"
counter_axis_align_content: Option<CounterAxisAlignContent>
Determines how the auto-layout frame’s wrapped tracks should be aligned in the counter axis direction. This property is only applicable for auto-layout frames with layoutWrap: \"WRAP\"
.
Implementations§
Source§impl HasFramePropertiesTrait
impl HasFramePropertiesTrait
pub fn new(clips_content: bool) -> HasFramePropertiesTrait
Trait Implementations§
Source§impl Clone for HasFramePropertiesTrait
impl Clone for HasFramePropertiesTrait
Source§fn clone(&self) -> HasFramePropertiesTrait
fn clone(&self) -> HasFramePropertiesTrait
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more