Struct raui_core::widget::unit::content::ContentBoxItemLayout [−][src]
pub struct ContentBoxItemLayout { pub anchors: Rect, pub margin: Rect, pub align: Vec2, pub offset: Vec2, pub depth: Scalar, }
Expand description
Allows customizing how an item in a content_box
is laid out
Fields
anchors: Rect
margin: Rect
The margins to put on each side of the item
align: Vec2
offset: Vec2
The amount to offset the item from where it would otherwise be laid out
depth: Scalar
The “Z” depth of the item
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ContentBoxItemLayout
impl Send for ContentBoxItemLayout
impl Sync for ContentBoxItemLayout
impl Unpin for ContentBoxItemLayout
impl UnwindSafe for ContentBoxItemLayout
Blanket Implementations
Mutably borrows from an owned value. Read more