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
Expand description
The margins to put on each side of the item
align: Vec2
offset: Vec2
Expand description
The amount to offset the item from where it would otherwise be laid out
depth: Scalar
Expand description
The “Z” depth of the item
Trait Implementations
impl Clone for ContentBoxItemLayout
[src]
impl Clone for ContentBoxItemLayout
[src]fn clone(&self) -> ContentBoxItemLayout
[src]
fn clone(&self) -> ContentBoxItemLayout
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ContentBoxItemLayout
[src]
impl Debug for ContentBoxItemLayout
[src]impl Default for ContentBoxItemLayout
[src]
impl Default for ContentBoxItemLayout
[src]impl<'de> Deserialize<'de> for ContentBoxItemLayout
[src]
impl<'de> Deserialize<'de> for ContentBoxItemLayout
[src]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
impl Prefab for ContentBoxItemLayout
[src]
impl Prefab for ContentBoxItemLayout
[src]fn from_prefab(data: PrefabValue) -> Result<Self, PrefabError>
[src]
fn to_prefab(&self) -> Result<PrefabValue, PrefabError>
[src]
impl PropsData for ContentBoxItemLayout where
Self: Clone,
[src]
impl PropsData for ContentBoxItemLayout where
Self: Clone,
[src]impl Serialize for ContentBoxItemLayout
[src]
impl Serialize for ContentBoxItemLayout
[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,