JX Application Framework
Loading...
Searching...
No Matches
Functions
jXEventUtil.cpp File Reference
#include "jXEventUtil.h"
#include "JXDisplay.h"
#include <jx-af/jcore/JString.h>
#include <jx-af/jcore/jAssert.h>
Include dependency graph for jXEventUtil.cpp:

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)
 

Function Documentation

◆ 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.