[][src]Enum flutterbug::event::Event

pub enum Event {
    Any(AnyEvent),
    Key(KeyEvent),
    Button(ButtonEvent),
    Motion(MotionEvent),
    Crossing(CrossingEvent),
    FocusChange(FocusChangeEvent),
    Expose(ExposeEvent),
    GraphicsExpose(GraphicsExposeEvent),
    NoExpose(NoExposeEvent),
    Visibility(VisibilityEvent),
    CreateWindow(CreateWindowEvent),
    DestroyWindow(DestroyWindowEvent),
    Unmap(UnmapEvent),
    Map(MapEvent),
    MapRequest(MapRequestEvent),
    Reparent(ReparentEvent),
    Configure(ConfigureEvent),
    Gravity(GravityEvent),
    ResizeRequest(ResizeRequestEvent),
    ConfigureRequest(ConfigureRequestEvent),
    Circulate(CirculateEvent),
    CirculateRequest(CirculateRequestEvent),
    Property(PropertyEvent),
    SelectionClear(SelectionClearEvent),
    SelectionRequest(SelectionRequestEvent),
    Selection(SelectionEvent),
    Colormap(ColormapEvent),
    ClientMessage(ClientMessageEvent),
    Mapping(MappingEvent),
    Keymap(KeymapEvent),
}

An X11 event that can be received from the event loop.

Variants

Button(ButtonEvent)
Motion(MotionEvent)
Crossing(CrossingEvent)
FocusChange(FocusChangeEvent)
Expose(ExposeEvent)
GraphicsExpose(GraphicsExposeEvent)
NoExpose(NoExposeEvent)
Visibility(VisibilityEvent)
CreateWindow(CreateWindowEvent)
DestroyWindow(DestroyWindowEvent)
Unmap(UnmapEvent)
MapRequest(MapRequestEvent)
Reparent(ReparentEvent)
Configure(ConfigureEvent)
Gravity(GravityEvent)
ResizeRequest(ResizeRequestEvent)
ConfigureRequest(ConfigureRequestEvent)
Circulate(CirculateEvent)
CirculateRequest(CirculateRequestEvent)
Property(PropertyEvent)
SelectionClear(SelectionClearEvent)
SelectionRequest(SelectionRequestEvent)
Selection(SelectionEvent)
Colormap(ColormapEvent)
ClientMessage(ClientMessageEvent)
Mapping(MappingEvent)
Keymap(KeymapEvent)

Implementations

impl Event[src]

pub fn next(dpy: &dyn GenericDisplay) -> Result<Event, FlutterbugError>[src]

Get the next event from the event loop.

pub fn send(
    self,
    dpy: &dyn GenericDisplay,
    target: &Window,
    propogate: bool,
    mask: EventMask
) -> Result<(), FlutterbugError>
[src]

Send this event into an event loop.

pub fn wait_for_map(display: &dyn GenericDisplay) -> Result<(), FlutterbugError>[src]

Wait for a map event.

pub fn filter(&self, window: Option<&Window>) -> Result<bool, FlutterbugError>[src]

Filter this event if it is a raw event.

Trait Implementations

impl Clone for Event[src]

impl Debug for Event[src]

impl DerivesAnEvent for Event[src]

impl DerivesEvent<XEvent> for Event[src]

Auto Trait Implementations

impl RefUnwindSafe for Event

impl !Send for Event

impl !Sync for Event

impl Unpin for Event

impl UnwindSafe for Event

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.