[][src]Struct oxygengine_composite_renderer::component::CompositeUiElement

pub struct CompositeUiElement {
    pub camera_name: Cow<'static, str>,
    pub interactive: Option<Cow<'static, str>>,
    pub element_type: UiElementType,
    pub margin: UiMargin,
    pub padding: UiMargin,
    pub left_anchor: Scalar,
    pub right_anchor: Scalar,
    pub top_anchor: Scalar,
    pub bottom_anchor: Scalar,
    pub alignment: Vec2,
    pub offset: Vec2,
    pub fixed_width: Option<f32>,
    pub fixed_height: Option<f32>,
    pub scale: Vec2,
    pub children: Vec<CompositeUiElement>,
    // some fields omitted
}

Fields

camera_name: Cow<'static, str>interactive: Option<Cow<'static, str>>element_type: UiElementTypemargin: UiMarginpadding: UiMarginleft_anchor: Scalarright_anchor: Scalartop_anchor: Scalarbottom_anchor: Scalaralignment: Vec2offset: Vec2fixed_width: Option<f32>fixed_height: Option<f32>scale: Vec2children: Vec<CompositeUiElement>

Methods

impl CompositeUiElement[src]

pub fn rebuild(&mut self)[src]

impl CompositeUiElement[src]

pub fn calculate_rect(&self, parent_rect: Rect) -> Rect[src]

pub fn build_commands(
    &self,
    parent_rect: Rect,
    interactibles: &mut CompositeUiInteractibles
) -> (Vec<Command<'static>>, Rect)
[src]

Trait Implementations

impl Clone for CompositeUiElement[src]

impl Component for CompositeUiElement[src]

type Storage = VecStorage<Self>

Associated storage type for this component.

impl Debug for CompositeUiElement[src]

impl Default for CompositeUiElement[src]

impl<'de> Deserialize<'de> for CompositeUiElement[src]

impl Prefab for CompositeUiElement[src]

impl PrefabComponent for CompositeUiElement[src]

impl Serialize for CompositeUiElement[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, C> ComponentContainerModify<'a, ComponentContainer<'a, C>> for C where
    C: Component, 
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Any + Send + Sync

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryDefault for T where
    T: Default

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,