Struct oxygengine_user_interface::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: 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: f32
The “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 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