[][src]Trait druid::WinCtx

pub trait WinCtx {
    fn invalidate(&mut self);
fn text_factory(
        &mut self
    ) -> &mut <EmbedRenderContext as RenderContext>::Text;
fn set_cursor(&mut self, cursor: &Cursor); }

A context supplied to most WinHandler methods.

Required methods

fn invalidate(&mut self)

Invalidate the entire window.

TODO: finer grained invalidation.

fn text_factory(&mut self) -> &mut <EmbedRenderContext as RenderContext>::Text

Get a reference to an object that can do text layout.

fn set_cursor(&mut self, cursor: &Cursor)

Set the cursor icon.

Loading content...

Implementors

impl WinCtx for DruidContext[src]

Loading content...