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
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]
fn clone(&self) -> TextItem
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more