Struct relm::DrawHandler [−][src]
pub struct DrawHandler<W> { /* fields omitted */ }
Manager for drawing operations.
Methods
impl<W: Clone + WidgetExt> DrawHandler<W>
[src]
impl<W: Clone + WidgetExt> DrawHandler<W>
pub fn new() -> Result<Self, Status>
[src]
pub fn new() -> Result<Self, Status>
Create a new DrawHandler.
pub fn get_context(&mut self) -> DrawContext<W>
[src]
pub fn get_context(&mut self) -> DrawContext<W>
Get the drawing context to draw on a widget.
pub fn init(&mut self, widget: &W)
[src]
pub fn init(&mut self, widget: &W)
Initialize the draw handler. The widget is the one on which drawing will occur.
Auto Trait Implementations
impl<W> !Send for DrawHandler<W>
impl<W> !Send for DrawHandler<W>
impl<W> !Sync for DrawHandler<W>
impl<W> !Sync for DrawHandler<W>