Typedefs | |
typedef struct tanvastouch_ctx | tanvastouch_ctx |
typedef uint64_t | tanvastouch_resource_id |
Functions | |
const TANVASTOUCH_API char * | tanvastouch_strerror (int err) |
TANVASTOUCH_API bool | tanvastouch_is_valid (tanvastouch_resource_id id) |
typedef struct tanvastouch_ctx tanvastouch_ctx |
The API context.
A context is constructed with tanvastouch_open() and destructed with tanvastouch_close(). Each thread needs its own context.
typedef uint64_t tanvastouch_resource_id |
TANVASTOUCH_API bool tanvastouch_is_valid | ( | tanvastouch_resource_id | id | ) |
Check whether the given resource ID is not TANVASTOUCH_INVALID_RESOURCE_ID.
id | The ID to check. |
const TANVASTOUCH_API char* tanvastouch_strerror | ( | int | err | ) |
Return a string corresponding to a TANVASTOUCH_ERROR_* error code.
The returned string is owned by the TanvasTouch API library; do not free it.
This function never returns NULL.
err | The code to look up. |