Struct oxygengine_user_interface::raui::core::widget::unit::content::ContentBoxItemLayout [−][src]
pub struct ContentBoxItemLayout {
pub anchors: Rect,
pub margin: Rect,
pub align: Vec2,
pub offset: Vec2,
pub depth: f32,
}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: f32The “Z” depth of the item
Trait Implementations
Returns the “default value” for a type. Read more
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ContentBoxItemLayout, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ContentBoxItemLayout, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer, Serialize this value into the given Serde serializer. 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