Jetson Inference
DNN Vision Library
|
Go to the source code of this file.
Macros | |
#define | KEY_PRESSED 1 |
Define for KEY_STATE and KEY_RAW events when key is pressed. More... | |
#define | KEY_RELEASED 0 |
Define for KEY_STATE and KEY_RAW events when key is released. More... | |
#define | KEY_OFFSET 0xff00 |
#define | MOUSE_PRESSED 1 |
Define for MOUSE_BUTTON event when button is pressed. More... | |
#define | MOUSE_RELEASED 0 |
Define for MOUSE_BUTTON event when button is released. More... | |
#define | MOUSE_LEFT 1 |
Define for the left mouse button number. More... | |
#define | MOUSE_MIDDLE 2 |
Define for the middle mouse button (or scroll wheel button) More... | |
#define | MOUSE_RIGHT 3 |
Define for the right mouse button number. More... | |
#define | MOUSE_WHEEL_UP 4 |
Define for the mouse wheel scroll up button number. More... | |
#define | MOUSE_WHEEL_DOWN 5 |
Define for the mouse wheel scroll down button number. More... | |
Typedefs | |
typedef bool(* | glEventHandler) (uint16_t event, int a, int b, void *user) |
Event message handler callback for recieving UI messages from a window. More... | |
Enumerations | |
enum | glEventType { MOUSE_MOVE = 0, MOUSE_ABSOLUTE, MOUSE_BUTTON, MOUSE_DRAG, MOUSE_WHEEL, KEY_STATE, KEY_MODIFIED, KEY_CHAR, WIDGET_CREATED, WIDGET_SELECTED, WIDGET_MOVED, WIDGET_RESIZED, WINDOW_RESIZED, WINDOW_CLOSED } |
User interface event message types. More... | |
Functions | |
void | glRegisterEvents (glEventHandler callback, void *user=NULL, uint32_t display=0) |
Register an event message handler that will be called with events. More... | |
void | glUnregisterEvents (glEventHandler callback, void *user=NULL) |
Unregister an event message handler from being called with events. More... | |
#define KEY_OFFSET 0xff00 |
void glRegisterEvents | ( | glEventHandler | callback, |
void * | user = NULL , |
||
uint32_t | display = 0 |
||
) |
Register an event message handler that will be called with events.
callback | function pointer to the event message handler callback |
user | optional user-specified pointer that will be passed to all invocations of this event handler (typically an object) |
display | optional display ID of the glDisplay instance to use |
void glUnregisterEvents | ( | glEventHandler | callback, |
void * | user = NULL |
||
) |
Unregister an event message handler from being called with events.
UnregisterEventHandler() will search for previously registered event handlers that have the same function pointer and/or user pointer, and remove them for being called again in the future.