JX Application Framework
|
#include <jx-af/jcore/JUtf8Character.h>
#include <jx-af/jcore/JPoint.h>
#include "JXButtonStates.h"
#include "JXKeyModifiers.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) |
JUtf8Byte | JXCtrl (const JUtf8Character &c) |
JUtf8Byte | JXCtrl (const JUtf8Byte c) |
|
inline |
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.