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

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

The text that the item displays

The color the text is displayed in

The position to display this text

The scale/size the text is displayed at

Whether this item is active/should be rendered

The name of the RenderItem for lookup

Trait Implementations

impl Clone for TextItem
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for TextItem
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.