Struct oxygengine_composite_renderer::component::CompositeCamera[][src]

pub struct CompositeCamera {
    pub scaling: CompositeScalingMode,
    pub scaling_target: CompositeScalingTarget,
    pub tags: Vec<Cow<'static, str>>,
}

Fields

scaling: CompositeScalingModescaling_target: CompositeScalingTargettags: Vec<Cow<'static, str>>

Implementations

impl CompositeCamera[src]

pub fn new(scaling: CompositeScalingMode) -> Self[src]

pub fn with_scaling_target(
    scaling: CompositeScalingMode,
    target: CompositeScalingTarget
) -> Self
[src]

pub fn tag(self, tag: Cow<'static, str>) -> Self[src]

pub fn tags(self, tags: Vec<Cow<'static, str>>) -> Self[src]

pub fn view_matrix(
    &self,
    transform: &CompositeTransform,
    screen_size: Vec2
) -> Mat2d
[src]

pub fn view_box(
    &self,
    transform: &CompositeTransform,
    screen_size: Vec2
) -> Option<Rect>
[src]

Trait Implementations

impl Clone for CompositeCamera[src]

impl Component for CompositeCamera[src]

type Storage = HashMapStorage<Self>

Associated storage type for this component.

impl Debug for CompositeCamera[src]

impl Default for CompositeCamera[src]

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

impl Prefab for CompositeCamera[src]

impl PrefabComponent for CompositeCamera[src]

impl Serialize for CompositeCamera[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: for<'de> Deserialize<'de>, 
[src]

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> Pointable for T

type Init = T

The type for initializers.

impl<T> Resource for T where
    T: Any, 

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.