omniGlass
Enumerations
constants.h File Reference

mostly enumerations for use in flow control More...

Go to the source code of this file.

Enumerations

enum  omniglass_operation_results { OMNIGLASS_RESULT_SUCCESS = 0 , OMNIGLASS_RESULT_MULTITOUCH_REPORT_FAILED , OMNIGLASS_RESULT_NOMEM , OMNIGLASS_RESULT_BOOTSTRAP_FAILED }
 
enum  omniglass_event_type { OMNIGLASS_EVENT_GESTURE_STARTED = 0 , OMNIGLASS_EVENT_GESTURE_CHANGED , OMNIGLASS_EVENT_GESTURE_ENDED }
 
enum  omniglass_init_result { OMNIGLASS_PLATFORM_INIT_SUCCESS = 0 , OMNIGLASS_PLATFORM_INIT_NO_TOUCHPAD , OMNIGLASS_PLATFORM_INIT_CONFIG_INVALID }
 
enum  omniglass_gesture_operation_result { OMNIGLASS_API_GESTURE_OPERATION_SUCCESS = 0 , OMNIGLASS_API_GESTURE_OPERATION_NOTSUPPORTED , OMNIGLASS_API_GESTURE_OPERATION_NOTIMPLEMENTED }
 
enum  omniglass_touchpad_edge { OMNIGLASS_EDGE_LEFT = 0 , OMNIGLASS_EDGE_RIGHT , OMNIGLASS_EDGE_TOP , OMNIGLASS_EDGE_BOTTOM }
 

Detailed Description

mostly enumerations for use in flow control

Enumeration Type Documentation

◆ omniglass_event_type

specifies what type of event triggered the action or callback.

◆ omniglass_gesture_operation_result

results of gesture operations

Enumerator
OMNIGLASS_API_GESTURE_OPERATION_NOTSUPPORTED 

touchpad in use does not support this gesture

OMNIGLASS_API_GESTURE_OPERATION_NOTIMPLEMENTED 

the library does not support this gesture

◆ omniglass_init_result

defines the results of touchpad platform initialization.

Enumerator
OMNIGLASS_PLATFORM_INIT_NO_TOUCHPAD 

touchpad could not be detected

OMNIGLASS_PLATFORM_INIT_CONFIG_INVALID 

settings were not accepted

◆ omniglass_operation_results

operation results summarize the aftermath of API calls (as in: registering a callback, masking an event...).

Enumerator
OMNIGLASS_RESULT_MULTITOUCH_REPORT_FAILED 

the library has failed to acquire input data from the touchpad

OMNIGLASS_RESULT_NOMEM 

out-of-memory, failed to allocate memory

OMNIGLASS_RESULT_BOOTSTRAP_FAILED 

the library could not initialize

◆ omniglass_touchpad_edge

represents edges/borders of a touchpad.