[−][src]Enum flutterbug::event::Event
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
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]
self,
dpy: &dyn GenericDisplay,
target: &Window,
propogate: bool,
mask: EventMask
) -> Result<(), FlutterbugError>
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]
fn kind(&self) -> EventType
[src]
fn window(&self) -> Window
[src]
fn from_send_event(&self) -> bool
[src]
fn serial(&self) -> c_ulong
[src]
unsafe fn display(&self) -> NonNull<Display>
[src]
fn as_anyevent(&self) -> AnyEvent
[src]
impl DerivesEvent<XEvent> for Event
[src]
fn from_evstruct(x: XEvent) -> Result<Self, FlutterbugError>
[src]
fn inner(&self) -> Result<XEvent, FlutterbugError>
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,