JX Application Framework
Loading...
Searching...
No Matches
Functions
jXEventUtil.h File Reference
#include <jx-af/jcore/JUtf8Character.h>
#include <jx-af/jcore/JPoint.h>
#include "JXButtonStates.h"
#include "JXKeyModifiers.h"
Include dependency graph for jXEventUtil.h:
This graph shows which files directly or indirectly include this file:

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)
 

Function Documentation

◆ JXCtrl() [1/2]

JUtf8Byte JXCtrl ( const JUtf8Byte  c)
inline

Input must be character @ (0x40) through _ (0x5F).

◆ JXCtrl() [2/2]

JUtf8Byte JXCtrl ( const JUtf8Character c)
inline

◆ JXGetButtonAndModifierStates()

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.

◆ JXGetEventTime()

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.

◆ JXGetMouseLocation()

bool JXGetMouseLocation ( const XEvent &  xEvent,
JXDisplay display,
JPoint pt 
)

Return the location of the mouse in root coordinates. Returns false if the given event doesn't contain the information.