Struct dwindow::Display
[−]
[src]
pub struct Display { /* fields omitted */ }
Window system entry point.
Methods
impl Display
[src]
fn default_visual(&self) -> Result<Visual>
Returns the default visual.
fn new_signal(&self) -> Result<Signal>
Creates a signal which can be emitted to this display.
fn new_window(&self) -> WindowBuilder
Returns a window builder.
fn open() -> Result<Display>
Opens the main (one per process) display.
fn run<F>(&self, mode: RunMode, f: F) -> Result<()> where
F: FnMut(Event),
F: FnMut(Event),
Runs the main loop with a specified mode.
fn run_active<F>(&self, f: F) -> Result<()> where
F: FnMut(Event),
F: FnMut(Event),
Runs the main loop in active mode.
fn run_passive<F>(&self, f: F) -> Result<()> where
F: FnMut(Event),
F: FnMut(Event),
Runs the main loop in passive mode.
fn run_sync<F>(&self, f: F) -> Result<()> where
F: FnMut(Event),
F: FnMut(Event),
Runs the main loop in synchronized mode.
fn set_run_mode(&self, mode: RunMode)
Changes the run mode of the active main loop.
fn stop(&self)
Stops the active main loop.
fn sync(&self) -> Result<()>
Blocks until all I/O bound operations are finished.