pub trait CommandBuffer {
// Required methods
fn new_line(&mut self);
fn print(&mut self, text: &str);
fn set_formatting(&mut self, formatting: &Formatting);
fn reset_formatting(&mut self);
}Expand description
Represents the set of rendering commands
Required Methods§
Sourcefn set_formatting(&mut self, formatting: &Formatting)
fn set_formatting(&mut self, formatting: &Formatting)
Set the given formatting to all text before the next reset_formatting call
Sourcefn reset_formatting(&mut self)
fn reset_formatting(&mut self)
Resets the previously set formatting to default