pub enum Event {
Show 30 variants
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),
}
Expand description
An X11 event that can be received from the event loop.
Variants§
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)
Implementations§
Source§impl Event
impl Event
Sourcepub fn next(dpy: &dyn GenericDisplay) -> Result<Event, FlutterbugError>
pub fn next(dpy: &dyn GenericDisplay) -> Result<Event, FlutterbugError>
Get the next event from the event loop.
Sourcepub fn send(
self,
dpy: &dyn GenericDisplay,
target: &Window,
propogate: bool,
mask: EventMask,
) -> Result<(), FlutterbugError>
pub fn send( self, dpy: &dyn GenericDisplay, target: &Window, propogate: bool, mask: EventMask, ) -> Result<(), FlutterbugError>
Send this event into an event loop.
Sourcepub fn wait_for_map(display: &dyn GenericDisplay) -> Result<(), FlutterbugError>
pub fn wait_for_map(display: &dyn GenericDisplay) -> Result<(), FlutterbugError>
Wait for a map event.
Trait Implementations§
Source§impl DerivesAnEvent for Event
impl DerivesAnEvent for Event
Source§impl DerivesEvent<XEvent> for Event
impl DerivesEvent<XEvent> for Event
Source§fn from_evstruct(x: XEvent) -> Result<Self, FlutterbugError>
fn from_evstruct(x: XEvent) -> Result<Self, FlutterbugError>
Derive this item from the native struct.
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl !Send for Event
impl !Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more