Trait thyme::IO[][src]

pub trait IO {
    fn scale_factor(&self) -> f32;
fn display_size(&self) -> Point; }

A trait to be implemented on the type to be used for Event handling. See WinitIO for an example implementation. The IO handles events from an external source and passes them to the Thyme Context.

Required methods

fn scale_factor(&self) -> f32[src]

Returns the current window scale factor (1.0 for logical pixel size = physical pixel size).

fn display_size(&self) -> Point[src]

Returns the current window size in logical pixels.

Loading content...

Implementors

impl IO for WinitIo[src]

Loading content...