[][src]Struct caper::types::TextItem

pub struct TextItem {
    pub text: String,
    pub color: (f32, f32, f32, f32),
    pub pos: Vector3,
    pub scale: Vector3,
    pub active: bool,
    pub name: String,
}

struct for abstacting text items to be rendered

Fields

text: String

The text that the item displays

color: (f32, f32, f32, f32)

The color the text is displayed in

pos: Vector3

The position to display this text

scale: Vector3

The scale/size the text is displayed at

active: bool

Whether this item is active/should be rendered

name: String

The name of the RenderItem for lookup

Trait Implementations

impl Clone for TextItem[src]

impl Default for TextItem[src]

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

impl PartialEq<TextItem> for TextItem[src]

impl Send for TextItem[src]

impl Serialize for TextItem[src]

impl StructuralPartialEq for TextItem[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T> SetParameter for T[src]

impl<T> SetParameter for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

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.