pub struct Painter { /* private fields */ }Implementations§
Source§impl Painter
impl Painter
Sourcepub fn apply(&mut self, id: FormId) -> ContentStyle
pub fn apply(&mut self, id: FormId) -> ContentStyle
Applies the Form with the given id and returns the result,
given previous triggers.
Sourcepub fn remove(&mut self, id: FormId) -> ContentStyle
pub fn remove(&mut self, id: FormId) -> ContentStyle
Removes the Form with the given id and returns the
result, given previous triggers.
pub fn reset(&mut self) -> ContentStyle
Sourcepub fn make_style(&self) -> ContentStyle
pub fn make_style(&self) -> ContentStyle
Generates the form to be printed, given all the previously
pushed forms in the Form stack.
pub fn apply_main_cursor(&mut self) -> ContentStyle
pub fn remove_main_cursor(&mut self) -> ContentStyle
pub fn apply_extra_cursor(&mut self) -> ContentStyle
pub fn remove_extra_cursor(&mut self) -> ContentStyle
Sourcepub fn main_cursor(&self) -> Option<CursorShape>
pub fn main_cursor(&self) -> Option<CursorShape>
The Form “ExtraCursor”, and its shape.
Sourcepub fn extra_cursor(&self) -> Option<CursorShape>
pub fn extra_cursor(&self) -> Option<CursorShape>
The Form “ExtraCursor”, and its shape.
Sourcepub fn get_default(&self) -> Form
pub fn get_default(&self) -> Form
The "Default" form’s Form
Auto Trait Implementations§
impl Freeze for Painter
impl !RefUnwindSafe for Painter
impl !Send for Painter
impl Sync for Painter
impl Unpin for Painter
impl !UnwindSafe for Painter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more