[][src]Trait penrose::draw::KeyPressDraw

pub trait KeyPressDraw: Draw {
    pub fn next_keypress(&self) -> Result<Option<KeyPressParseAttempt>>;
pub fn next_keypress_blocking(&self) -> Result<KeyPressParseAttempt>; }

A Draw that can return the KeyPress events from the user for its windows

Required methods

pub fn next_keypress(&self) -> Result<Option<KeyPressParseAttempt>>[src]

Attempt to parse the next XEvent from an underlying connection as a KeyPress if there is one.

Should return Ok(None) if no events are currently available.

pub fn next_keypress_blocking(&self) -> Result<KeyPressParseAttempt>[src]

Wait for the next XEvent from an underlying connection as a KeyPress and attempt to parse it as a KeyPress.

Loading content...

Implementors

Loading content...