Struct caper::types::TextItemBuilder
[−]
[src]
pub struct TextItemBuilder { /* fields omitted */ }
Builder for TextItem
.
Methods
impl TextItemBuilder
[src]
fn text(&mut self, value: String) -> &mut Self
The text that the item displays
fn color(&mut self, value: (f32, f32, f32, f32)) -> &mut Self
The color the text is displayed in
fn pos(&mut self, value: Vector3) -> &mut Self
The position to display this text
fn scale(&mut self, value: Vector3) -> &mut Self
The scale/size the text is displayed at
fn active(&mut self, value: bool) -> &mut Self
Whether this item is active/should be rendered
fn name(&mut self, value: String) -> &mut Self
The name of the RenderItem for lookup
fn build(&self) -> Result<TextItem, String>
Trait Implementations
impl Default for TextItemBuilder
[src]
fn default() -> TextItemBuilder
Returns the "default value" for a type. Read more
impl Clone for TextItemBuilder
[src]
fn clone(&self) -> TextItemBuilder
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more