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: Rectmargin: RectThe margins to put on each side of the item
align: Vec2offset: Vec2The amount to offset the item from where it would otherwise be laid out
depth: ScalarThe “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 ContentBoxItemLayoutimpl Send for ContentBoxItemLayoutimpl Sync for ContentBoxItemLayoutimpl Unpin for ContentBoxItemLayoutimpl UnwindSafe for ContentBoxItemLayoutBlanket Implementations
Mutably borrows from an owned value. Read more