12.07.2015 Views

Xlib − C Language X Interface

Xlib − C Language X Interface

Xlib − C Language X Interface

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Xlib</strong> − C LibraryX11, Release 6.7 DRAFTBool XCheckMaskEvent (display, event_mask, event_return)Display *display;long event_mask;XEvent *event_return;displayevent_maskevent_returnSpecifies the connection to the X server.Specifies the event mask.Returns the matched event’s associated structure.The XCheckMaskEvent function searches the event queue and then any events available on theserver connection for the first event that matches the specified mask. If it finds a match, XCheck-MaskEvent removes that event, copies it into the specified XEvent structure, and returns True.The other events stored in the queue are not discarded. If the event you requested is not available,XCheckMaskEvent returns False, and the output buffer will have been flushed.To return and remove the next event in the queue that matches an event type, use XCheckTypedEvent.Bool XCheckTypedEvent (display, event_type, event_return)Display *display;int event_type;XEvent *event_return;displayevent_typeevent_returnSpecifies the connection to the X server.Specifies the event type to be compared.Returns the matched event’s associated structure.The XCheckTypedEvent function searches the event queue and then any events available on theserver connection for the first event that matches the specified type. If it finds a match, XCheck-TypedEvent removes that event, copies it into the specified XEvent structure, and returns True.The other events in the queue are not discarded. If the event is not available, XCheckTypedEventreturns False, and the output buffer will have been flushed.To return and remove the next event in the queue that matches an event type and a window, useXCheckTypedWindowEvent.238

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!