Struct bufro::Painter [−][src]
pub struct Painter { /* fields omitted */ }
Expand description
Object that manages the window and GPU resources
Implementations
pub async fn new_from_window(
window: &impl HasRawWindowHandle,
size: (u32, u32),
backends: Backends
) -> Self
pub async fn new_from_window(
window: &impl HasRawWindowHandle,
size: (u32, u32),
backends: Backends
) -> Self
Create a new painter with the given window
Fill the given text. wrap_limit
can be used to limit the amount of characters in a line.
Stroke the given text. wrap_limit
can be used to limit the amount of characters in a line.
Draw a rectangle.
Stroke the given path
Useful for debugging.
Flush the current state to the screen.