[][src]Trait druid_shell::WinCtx

pub trait WinCtx {
    fn invalidate(&mut self);
fn text_factory(&mut self) -> &mut 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 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...