Struct sc2::data::DebugText
[−]
[src]
pub struct DebugText { /* fields omitted */ }
debug text
Methods
impl DebugText
[src]
pub fn new(text: String) -> Self
[src]
text to display
pub fn target(self, target: DebugTextTarget) -> Self
[src]
target in screen or world space (default is None)
if the target is None, then text appears at top-left of screen.
pub fn color(self, color: Color) -> Self
[src]
set the color of the text (default is white)
Trait Implementations
impl Debug for DebugText
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for DebugText
[src]
fn clone(&self) -> DebugText
[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