Struct oxygengine_user_interface::widget::unit::content::ContentBoxItemLayout
source · [−]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
sourceimpl Clone for ContentBoxItemLayout
impl Clone for ContentBoxItemLayout
sourcefn clone(&self) -> ContentBoxItemLayout
fn clone(&self) -> ContentBoxItemLayout
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ContentBoxItemLayout
impl Debug for ContentBoxItemLayout
sourceimpl Default for ContentBoxItemLayout
impl Default for ContentBoxItemLayout
sourcefn default() -> ContentBoxItemLayout
fn default() -> ContentBoxItemLayout
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ContentBoxItemLayout
impl<'de> Deserialize<'de> for ContentBoxItemLayout
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<ContentBoxItemLayout, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
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
sourceimpl Prefab for ContentBoxItemLayout
impl Prefab for ContentBoxItemLayout
fn from_prefab(data: Value) -> Result<Self, PrefabError>
fn to_prefab(&self) -> Result<Value, PrefabError>
sourceimpl PropsData for ContentBoxItemLayoutwhere
ContentBoxItemLayout: Clone,
impl PropsData for ContentBoxItemLayoutwhere
ContentBoxItemLayout: Clone,
sourceimpl Serialize for ContentBoxItemLayout
impl Serialize for ContentBoxItemLayout
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more