JX Application Framework
|
#include "jXEventUtil.h"
#include "JXDisplay.h"
#include <jx-af/jcore/JString.h>
#include <jx-af/jcore/jAssert.h>
Functions | |
bool | JXGetEventTime (const XEvent &xEvent, Time *time) |
bool | JXGetMouseLocation (const XEvent &xEvent, JXDisplay *display, JPoint *pt) |
bool | JXGetButtonAndModifierStates (const XEvent &xEvent, JXDisplay *display, unsigned int *state) |
bool JXGetButtonAndModifierStates | ( | const XEvent & | xEvent, |
JXDisplay * | display, | ||
unsigned int * | state | ||
) |
Return the button and key modifiers states of the event. Returns false if the given event doesn't contain the information.
bool JXGetEventTime | ( | const XEvent & | xEvent, |
Time * | time | ||
) |
Return the time stamp of the event. Returns false if the given event doesn't contain a time stamp.
Selection events contain a time field, but this is a timestamp generated by clients, not the current server time.