Struct relm4::drawing::DrawHandler  
source · pub struct DrawHandler { /* private fields */ }Expand description
Manager for drawing operations.
Implementations§
source§impl DrawHandler
 
impl DrawHandler
sourcepub fn new() -> Result<Self, Error>
 
pub fn new() -> Result<Self, Error>
Create a new DrawHandler.
sourcepub fn get_context(&mut self) -> Result<DrawContext, Error>
 
pub fn get_context(&mut self) -> Result<DrawContext, Error>
Get the drawing context to draw on a gtk::DrawingArea.
If the size of the gtk::DrawingArea changed, the contents of the
surface will be replaced by a new, empty surface.
sourcepub fn init(&mut self, draw_area: &DrawingArea)
 
pub fn init(&mut self, draw_area: &DrawingArea)
Initialize the draw handler.