Termux:GUI C/C++ Bindings
Loading...
Searching...
No Matches
types.h File Reference

This file contains the types used for all the functions. More...

#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>

Go to the source code of this file.

Classes

struct  tgui_activity_configuration
 Provides information on the current device and Activity configuration. More...
 
struct  tgui_size
 A value in a size unit. More...
 
struct  tgui_view_size
 Defines a View's size. More...
 
struct  tgui_buffer
 A shared memory buffer for images. More...
 
struct  tgui_touch_pointer
 A single pointer of a touch event. More...
 
struct  tgui_hardware_buffer
 Wrapper for AHardwareBuffer. More...
 
struct  tgui_event
 Represents an event send from the plugin. A union is used so that all events can still have a single type. More...
 

Typedefs

typedef struct tgui_connection_ * tgui_connection
 Represents a connection to the Termux:GUI plugin.
 
typedef int32_t tgui_activity
 Represents an Android Activity.
 
typedef int32_t tgui_task
 Represents an Android Task.
 
typedef int32_t tgui_view
 Represents an Android View.
 
typedef int32_t tgui_remote_layout
 Represents a RemoteView layout.
 
typedef int32_t tgui_notification
 Represents a notification.
 
typedef uint32_t tgui_color
 An RGBA8888 color code. More...
 
typedef struct AHardwareBuffer AHardwareBuffer
 

Enumerations

enum  tgui_err {
  TGUI_ERR_OK = 0 , TGUI_ERR_SYSTEM = 1 , TGUI_ERR_CONNECTION_LOST = 2 , TGUI_ERR_ACTIVITY_DESTROYED = 3 ,
  TGUI_ERR_MESSAGE = 4 , TGUI_ERR_NOMEM = 5 , TGUI_ERR_EXCEPTION = 6 , TGUI_ERR_VIEW_INVALID = 7 ,
  TGUI_ERR_API_LEVEL = 8 , TGUI_ERR_MAX = 1000 , TGUI_ERR_MIN = -1000
}
 Status codes for all functions in the library. More...
 
enum  tgui_activity_type {
  TGUI_ACTIVITY_NORMAL = 0 , TGUI_ACTIVITY_DIALOG = 1 , TGUI_ACTIVITY_DIALOG_CANCELOUTSIDE = 2 , TGUI_ACTIVITY_PIP = 3 ,
  TGUI_ACTIVITY_LOCKSCREEN = 4 , TGUI_ACTIVITY_OVERLAY = 5
}
 All possible types of Activities. More...
 
enum  tgui_orientation {
  TGUI_ORIENTATION_UNSPECIFIED = 0 , TGUI_ORIENTATION_BEHIND = 1 , TGUI_ORIENTATION_FULL_SENSOR = 2 , TGUI_ORIENTATION_FULL_USER = 3 ,
  TGUI_ORIENTATION_LANDSCAPE = 4 , TGUI_ORIENTATION_LOCKED = 5 , TGUI_ORIENTATION_NOSENSOR = 6 , TGUI_ORIENTATION_PORTRAIT = 7 ,
  TGUI_ORIENTATION_REVERSE_LANDSCAPE = 8 , TGUI_ORIENTATION_REVERSE_PORTRAIT = 9 , TGUI_ORIENTATION_SENSOR = 10 , TGUI_ORIENTATION_SENSOR_LANDSCAPE = 11 ,
  TGUI_ORIENTATION_SENSOR_PORTRAIT = 12 , TGUI_ORIENTATION_USER = 13 , TGUI_ORIENTATION_USER_LANDSCAPE = 14 , TGUI_ORIENTATION_USER_PORTRAIT = 15
}
 Specifies the orientation you can set an Activity to. More...
 
enum  tgui_activity_input_mode { TGUI_ACTIVITY_INPUT_MODE_PAN = 0 , TGUI_ACTIVITY_INPUT_MODE_RESIZE = 1 }
 Determines how an Activity reacts when the soft keyboard is opened. More...
 
enum  tgui_edit_text_type {
  TGUI_EDIT_TEXT_TEXT = 0 , TGUI_EDIT_TEXT_TEXT_MULTILINE = 1 , TGUI_EDIT_TEXT_PHONE = 3 , TGUI_EDIT_TEXT_DATE = 4 ,
  TGUI_EDIT_TEXT_TIME = 5 , TGUI_EDIT_TEXT_DATETIME = 6 , TGUI_EDIT_TEXT_NUMBER = 7 , TGUI_EDIT_TEXT_NUMBER_DECIMAL = 8 ,
  TGUI_EDIT_TEXT_NUMBER_PASSWORD = 9 , TGUI_EDIT_TEXT_NUMBER_SIGNED = 10 , TGUI_EDIT_TEXT_NUMBER_DECIMAL_SIGNED = 11 , TGUI_EDIT_TEXT_TEXT_EMAIL_ADDRESS = 12 ,
  TGUI_EDIT_TEXT_TEXT_PASSWORD = 13
}
 The types an EditText can be. See the Android documentation for more information. More...
 
enum  tgui_event_type {
  TGUI_EVENT_CREATE = 0 , TGUI_EVENT_START = 1 , TGUI_EVENT_RESUME = 2 , TGUI_EVENT_PAUSE = 3 ,
  TGUI_EVENT_STOP = 4 , TGUI_EVENT_DESTROY = 5 , TGUI_EVENT_CONFIG = 6 , TGUI_EVENT_CLICK = 7 ,
  TGUI_EVENT_LONG_CLICK = 8 , TGUI_EVENT_FOCUS = 9 , TGUI_EVENT_TOUCH = 10 , TGUI_EVENT_TEXT = 11 ,
  TGUI_EVENT_REFRESH = 12 , TGUI_EVENT_SELECTED = 13 , TGUI_EVENT_ITEM_SELECTED = 14 , TGUI_EVENT_BACK = 15 ,
  TGUI_EVENT_WEBVIEW_NAVIGATION = 16 , TGUI_EVENT_WEBVIEW_HTTP_ERROR = 17 , TGUI_EVENT_WEBVIEW_ERROR = 18 , TGUI_EVENT_WEBVIEW_DESTROYED = 19 ,
  TGUI_EVENT_WEBVIEW_PROGRESS = 20 , TGUI_EVENT_WEBVIEW_CONSOLE = 21 , TGUI_EVENT_AIRPLANE = 22 , TGUI_EVENT_LOCALE = 23 ,
  TGUI_EVENT_TIMEZONE = 24 , TGUI_EVENT_SCREEN_OFF = 25 , TGUI_EVENT_SCREEN_ON = 26 , TGUI_EVENT_USER_LEAVE_HINT = 27 ,
  TGUI_EVENT_PIP = 28 , TGUI_EVENT_REMOTE_CLICK = 29 , TGUI_EVENT_NOTIFICATION = 30 , TGUI_EVENT_NOTIFICATION_DISMISSED = 31 ,
  TGUI_EVENT_NOTIFICATION_ACTION = 32 , TGUI_EVENT_OVERLAY_SCALE = 33 , TGUI_EVENT_KEY = 34 , TGUI_EVENT_FRAME_COMPLETE = 35 ,
  TGUI_EVENT_VOLUME = 36 , TGUI_EVENT_INSET = 37 , TGUI_EVENT_SURFACE_CHANGED = 38 , TGUI_EVENT_TYPE_MAX = 1 << 31
}
 All possible event types. More...
 
enum  tgui_key_modifier {
  TGUI_MOD_NONE = 0 , TGUI_MOD_LSHIFT = 1 , TGUI_MOD_RSHIFT = 2 , TGUI_MOD_LCTRL = 4 ,
  TGUI_MOD_RCTRL = 8 , TGUI_MOD_ALT = 16 , TGUI_MOD_FN = 32 , TGUI_MOD_CAPS_LOCK = 64 ,
  TGUI_MOD_ALT_GR = 128 , TGUI_MOD_NUM_LOCK = 256 , TGUI_MOD_MAX = 1 << 31
}
 All supported key modifiers. More...
 
enum  tgui_view_visibility { TGUI_VIS_VISIBLE = 0 , TGUI_VIS_HIDDEN = 1 , TGUI_VIS_GONE = 3 }
 All possible View visibility states. More...
 
enum  tgui_direction {
  TGUI_DIR_ALL = 0 , TGUI_DIR_TOP = 1 , TGUI_DIR_LEFT = 2 , TGUI_DIR_BOTTOM = 3 ,
  TGUI_DIR_RIGHT = 4
}
 The direction for margins and paddings. More...
 
enum  tgui_importance {
  TGUI_IMP_DEFAULT = 0 , TGUI_IMP_MIN = 1 , TGUI_IMP_LOW = 2 , TGUI_IMP_HIGH = 3 ,
  TGUI_IMP_MAX = 4
}
 The importance of a notification. More...
 
enum  tgui_size_unit {
  TGUI_UNIT_DP = 0 , TGUI_UNIT_SP = 1 , TGUI_UNIT_PX = 2 , TGUI_UNIT_MM = 3 ,
  TGUI_UNIT_IN = 4 , TGUI_UNIT_PT = 5
}
 All supported size units. More...
 
enum  tgui_view_size_type { TGUI_VIEW_MATCH_PARENT = 0 , TGUI_VIEW_WRAP_CONTENT = 1 , TGUI_VIEW_SIZE = 2 }
 The types with which a View size can be specified. More...
 
enum  tgui_grid_alignment {
  TGUI_GRID_CENTER = 0 , TGUI_GRID_TOP = 1 , TGUI_GRID_BOTTOM = 2 , TGUI_GRID_LEFT = 3 ,
  TGUI_GRID_RIGHT = 4 , TGUI_GRID_BASELINE = 5 , TGUI_GRID_FILL = 6
}
 The View alignment in a GridLayout. More...
 
enum  tgui_gravity { TGUI_GRAV_CENTER = 0 , TGUI_GRAV_LEFTTOP = 1 , TGUI_GRAV_RIGHTBOTTOM = 2 }
 Gravity of text in a TextView. More...
 
enum  tgui_buffer_format { TGUI_BUFFER_FORMAT_ARGB8888 = 0 , TGUI_BUFFER_FORMAT_MAX = 100 }
 Formats for shared image buffers. More...
 
enum  tgui_touch_action {
  TGUI_TOUCH_DOWN = 0 , TGUI_TOUCH_UP = 1 , TGUI_TOUCH_POINTER_DOWN = 2 , TGUI_TOUCH_POINTER_UP = 3 ,
  TGUI_TOUCH_CANCEL = 4 , TGUI_TOUCH_MOVE = 5
}
 Possible causes for touch events. More...
 
enum  tgui_inset { TGUI_INSET_NONE = 0 , TGUI_INSET_NAVIGATION_BAR = 1 , TGUI_INSET_STATUS_BAR = 2 , TGUI_INSET_BOTH = 3 }
 The types of insets of an Activity that can be shown or hidden.
 
enum  tgui_inset_behaviour { TGUI_INSET_BEHAVIOUR_DEFAULT = 0 , TGUI_INSET_BEHAVIOUR_TRANSIENT = 1 }
 How the insets of an Activity will behave to user interaction. More...
 
enum  tgui_hardware_buffer_format { TGUI_HARDWARE_BUFFER_FORMAT_RGBA8888 = 0 , TGUI_HARDWARE_BUFFER_FORMAT_RGBX8888 = 1 , TGUI_HARDWARE_BUFFER_FORMAT_RGB888 = 2 , TGUI_HARDWARE_BUFFER_FORMAT_RGB565 = 3 }
 Available hardware buffer formats.
 
enum  tgui_hardware_buffer_cpu_frequency { TGUI_HARDWARE_BUFFER_CPU_NEVER = 0 , TGUI_HARDWARE_BUFFER_CPU_RARELY = 1 , TGUI_HARDWARE_BUFFER_CPU_OFTEN = 2 }
 How often the CPU will access the buffer.
 
enum  tgui_surface_view_dimension_mismatch { TGUI_MISMATCH_STICK_TOPLEFT = 0 , TGUI_MISMATCH_CENTER_AXIS = 1 }
 

Detailed Description

This file contains the types used for all the functions.

Typedef Documentation

◆ tgui_color

typedef uint32_t tgui_color

An RGBA8888 color code.

RR is the least significant byte. In a hex literal, write 0xaabbggrr.

Enumeration Type Documentation

◆ tgui_err

enum tgui_err

Status codes for all functions in the library.

Enumerator
TGUI_ERR_OK 

Operation was successful.

TGUI_ERR_SYSTEM 

An error occurred in the system library. Check errno to get the exact error.

TGUI_ERR_CONNECTION_LOST 

The connection to the plugin was lost. All further operations on this connection except destroy operations will fail with this error.

TGUI_ERR_ACTIVITY_DESTROYED 

The Activity the function tried to act on no longer exists.

TGUI_ERR_MESSAGE 

A protocol buffer message could not be read or written.
This is usually an error on the plugin side and should be treated as fatal, and the connection should be closed.

TGUI_ERR_NOMEM 

There is not enough memory to complete an operation.

TGUI_ERR_EXCEPTION 

An exception was thrown in the C++ part that could not be mapped to other errors.

TGUI_ERR_VIEW_INVALID 

The View used was invalid or of a wrong type.

TGUI_ERR_API_LEVEL 

The Android API level is too low for the function.

TGUI_ERR_MAX 

Maximum value for future binary compatibility.

TGUI_ERR_MIN 

Minimum value for future binary compatibility.

◆ tgui_activity_type

All possible types of Activities.

Enumerator
TGUI_ACTIVITY_NORMAL 

Standard fullscreen Activity.

TGUI_ACTIVITY_DIALOG 

Activity is started in a dialog.

TGUI_ACTIVITY_DIALOG_CANCELOUTSIDE 

Activity is started in a dialog, but touching outside the dialog cancels it.

TGUI_ACTIVITY_PIP 

The Activity is started in picture-in-picture mode.

TGUI_ACTIVITY_LOCKSCREEN 

The activity will show on the lockscreen.

TGUI_ACTIVITY_OVERLAY 

The Activity will be started as an overlay over everything else.

◆ tgui_orientation

Specifies the orientation you can set an Activity to.

Enumerator
TGUI_ORIENTATION_UNSPECIFIED 

Lets the system choose the orientation.

TGUI_ORIENTATION_BEHIND 

The same orientation as the Activity behind in the Activity stack.

TGUI_ORIENTATION_FULL_SENSOR 

Orientation determined by the orientation sensor. All 4 orientations are possible.

TGUI_ORIENTATION_FULL_USER 

Respect the users option to lock the rotation, but allow all 4 possible rotations if enabled.

TGUI_ORIENTATION_LANDSCAPE 

Lock the orientation to landscape.

TGUI_ORIENTATION_LOCKED 

Lock the orientation to the current one.

TGUI_ORIENTATION_NOSENSOR 

Ignore the orientation sensor.

TGUI_ORIENTATION_PORTRAIT 

Lock the orientation to portrait.

TGUI_ORIENTATION_REVERSE_LANDSCAPE 

Lock the orientation to the opposite landscape mode.

TGUI_ORIENTATION_REVERSE_PORTRAIT 

Lock the orientation to the opposite portrait mode.

TGUI_ORIENTATION_SENSOR 

Determine the orientation with the sensor.

TGUI_ORIENTATION_SENSOR_LANDSCAPE 

Use landscape, but can be changed with the sensor.

TGUI_ORIENTATION_SENSOR_PORTRAIT 

Use portrait, but can be changed with the sensor.

TGUI_ORIENTATION_USER 

Use the users preferred orientation.

TGUI_ORIENTATION_USER_LANDSCAPE 

Use landscape, but can be changed with the sensor if the user allowed it.

TGUI_ORIENTATION_USER_PORTRAIT 

Use portrait, but can be changed with the sensor if the user allowed it.

◆ tgui_activity_input_mode

Determines how an Activity reacts when the soft keyboard is opened.

Enumerator
TGUI_ACTIVITY_INPUT_MODE_PAN 

Pan the Activity up to make room for the soft keyboard.

TGUI_ACTIVITY_INPUT_MODE_RESIZE 

Resizes the Activity to fit the smaller size.

◆ tgui_edit_text_type

The types an EditText can be. See the Android documentation for more information.

Enumerator
TGUI_EDIT_TEXT_TEXT 

Normal text input.

TGUI_EDIT_TEXT_TEXT_MULTILINE 

Multiline text input.

TGUI_EDIT_TEXT_PHONE 

Phone number input.

TGUI_EDIT_TEXT_DATE 

Date input.

TGUI_EDIT_TEXT_TIME 

Time input.

TGUI_EDIT_TEXT_DATETIME 

Date and time input.

TGUI_EDIT_TEXT_NUMBER 

Number input.

TGUI_EDIT_TEXT_NUMBER_DECIMAL 

Decimal number input.

TGUI_EDIT_TEXT_NUMBER_PASSWORD 

Password number input.

TGUI_EDIT_TEXT_NUMBER_SIGNED 

Signed number input.

TGUI_EDIT_TEXT_NUMBER_DECIMAL_SIGNED 

Signed decimal number input.

TGUI_EDIT_TEXT_TEXT_EMAIL_ADDRESS 

Email address input.

TGUI_EDIT_TEXT_TEXT_PASSWORD 

Password input.

◆ tgui_event_type

All possible event types.

Enumerator
TGUI_EVENT_CREATE 

Send when an Activity is created. See the Android documentation for Activity lifecycle for more information.

TGUI_EVENT_START 

Send when an Activity is started. See the Android documentation for Activity lifecycle for more information.

TGUI_EVENT_RESUME 

Send when an Activity is resumed. See the Android documentation for Activity lifecycle for more information.

TGUI_EVENT_PAUSE 

Send when an Activity is paused. See the Android documentation for Activity lifecycle for more information.

TGUI_EVENT_STOP 

Send when an Activity is stopped. See the Android documentation for Activity lifecycle for more information.

TGUI_EVENT_DESTROY 

Send when an Activity is destroyed. See the Android documentation for Activity lifecycle for more information.

TGUI_EVENT_CONFIG 

Send when the configuration for an activity changes, i.e. because the Activity is rotated or dark mode is switched on.

TGUI_EVENT_CLICK 

Send when a View is clicked.

TGUI_EVENT_LONG_CLICK 

Send when pressing and holding a View.

TGUI_EVENT_FOCUS 

Send when a View gains focus.

TGUI_EVENT_TOUCH 

Send when a view is touched.

TGUI_EVENT_TEXT 

Send when the text of a TextView changes.

TGUI_EVENT_REFRESH 

Send when a refresh is triggered on a SwipeRefreshLayout.

TGUI_EVENT_SELECTED 

Send when a RadioButton in a RadioGroup has been selected.

TGUI_EVENT_ITEM_SELECTED 

Send when an option is selected in a Spinner or a tab in a TabLayout.

TGUI_EVENT_BACK 

Send when the user presses the back button.

TGUI_EVENT_WEBVIEW_NAVIGATION 

Send when Javascript or the user tries to navigate to a different page in a WebView.

TGUI_EVENT_WEBVIEW_HTTP_ERROR 

Send when a WebView encounters a HTTP error when fetching a resource.

TGUI_EVENT_WEBVIEW_ERROR 

Send when a WebView encounters an internal error when fetching a resource, like a SSL error loss of connection.

TGUI_EVENT_WEBVIEW_DESTROYED 

Send when a WebView renderer was destroyed by the system, resulting in the corresponding WebView being removed.

TGUI_EVENT_WEBVIEW_PROGRESS 

Send when the loading progress in a WebView updates.

TGUI_EVENT_WEBVIEW_CONSOLE 

Send when Javascript tries to print to the console in a WebView.

TGUI_EVENT_AIRPLANE 

Send when the airplane mode changes.

TGUI_EVENT_LOCALE 

Send when the locale changes.

TGUI_EVENT_TIMEZONE 

Send when the timezone changes.

TGUI_EVENT_SCREEN_OFF 

Send when the screen is turned off.

TGUI_EVENT_SCREEN_ON 

Send when the screen is turned on.

TGUI_EVENT_USER_LEAVE_HINT 

Send when the user leaves an Activity.

TGUI_EVENT_PIP 

Send when an Activity enters or loaves picture-in-picture mode.

TGUI_EVENT_REMOTE_CLICK 

Send when a click is registered in a remote layout.

TGUI_EVENT_NOTIFICATION 

Send when a notification is clicked.

TGUI_EVENT_NOTIFICATION_DISMISSED 

Send when a notification is swiped away by the user.

TGUI_EVENT_NOTIFICATION_ACTION 

Send when a notification action is clicked.

TGUI_EVENT_OVERLAY_SCALE 

Send when a scale gesture was made on an overlay Activity.

TGUI_EVENT_KEY 

A key was pressed when an ImageView or GLSurfaceView with soft keyboard support was focused.

TGUI_EVENT_FRAME_COMPLETE 

A SurfaceView has completed rendering a frame.

TGUI_EVENT_VOLUME 

A volume button press was intercepted.

TGUI_EVENT_INSET 

The inset status of an Activity changed (status or navigation bar).

TGUI_EVENT_SURFACE_CHANGED 

The Surface of a SurfaceView changed size.

TGUI_EVENT_TYPE_MAX 

Maximum value for future binary compatibility.

◆ tgui_key_modifier

All supported key modifiers.

Enumerator
TGUI_MOD_NONE 

No modifier pressed.

TGUI_MOD_LSHIFT 

Left shift pressed.

TGUI_MOD_RSHIFT 

Right shift pressed.

TGUI_MOD_LCTRL 

Left ctrl pressed.

TGUI_MOD_RCTRL 

Right ctrl pressed.

TGUI_MOD_ALT 

Alt pressed.

TGUI_MOD_FN 

Fn pressed.

TGUI_MOD_CAPS_LOCK 

Caps lock pressed.

TGUI_MOD_ALT_GR 

Alt gr pressed.

TGUI_MOD_NUM_LOCK 

Num lock pressed.

TGUI_MOD_MAX 

Maximum modifier value, for future binary compatibility.

◆ tgui_view_visibility

All possible View visibility states.

Enumerator
TGUI_VIS_VISIBLE 

Completely visible.

TGUI_VIS_HIDDEN 

Invisible, but takes up it's space in the layout.

TGUI_VIS_GONE 

Invisible and takes up no space in the layout.

◆ tgui_direction

The direction for margins and paddings.

Enumerator
TGUI_DIR_ALL 

All set for directions.

TGUI_DIR_TOP 

Set for the top.

TGUI_DIR_LEFT 

Set for the left.

TGUI_DIR_BOTTOM 

Set for the bottom.

TGUI_DIR_RIGHT 

Set for the right.

◆ tgui_importance

The importance of a notification.

Enumerator
TGUI_IMP_DEFAULT 

Use the default importance.

TGUI_IMP_MIN 

Minimal importance, silent notification.

TGUI_IMP_LOW 

Low importance.

TGUI_IMP_HIGH 

High importance.

TGUI_IMP_MAX 

Maximum importance.

◆ tgui_size_unit

All supported size units.

See the Android documentation for more information.

Enumerator
TGUI_UNIT_DP 

density-pixels unit

TGUI_UNIT_SP 

scale-pixels unit

TGUI_UNIT_PX 

pixels unit

TGUI_UNIT_MM 

millimeters unit

TGUI_UNIT_IN 

inches unit

TGUI_UNIT_PT 

points unit

◆ tgui_view_size_type

The types with which a View size can be specified.

Enumerator
TGUI_VIEW_MATCH_PARENT 

Match the parent view size.

TGUI_VIEW_WRAP_CONTENT 

Match the content size.

TGUI_VIEW_SIZE 

Use the provided size.

◆ tgui_grid_alignment

The View alignment in a GridLayout.

Enumerator
TGUI_GRID_CENTER 

Align to cell center.

TGUI_GRID_TOP 

Align to cell top.

TGUI_GRID_BOTTOM 

Align to cell bottom.

TGUI_GRID_LEFT 

Align to cell left.

TGUI_GRID_RIGHT 

Align to cell right.

TGUI_GRID_BASELINE 

Align to cell the baseline.

TGUI_GRID_FILL 

Fill the whole cell.

◆ tgui_gravity

Gravity of text in a TextView.

Enumerator
TGUI_GRAV_CENTER 

Center.

TGUI_GRAV_LEFTTOP 

Top or left.

TGUI_GRAV_RIGHTBOTTOM 

Right or bottom.

◆ tgui_buffer_format

Formats for shared image buffers.

Enumerator
TGUI_BUFFER_FORMAT_ARGB8888 

The shared buffer wil be in ARGB8888 format.

TGUI_BUFFER_FORMAT_MAX 

The maximum buffer format, for future binary compatibility.

◆ tgui_touch_action

Possible causes for touch events.

Enumerator
TGUI_TOUCH_DOWN 

Send when the first pointer touches.

TGUI_TOUCH_UP 

Send when the last pointer goes up.

TGUI_TOUCH_POINTER_DOWN 

Send when an additional pointer touches.

TGUI_TOUCH_POINTER_UP 

Send when an additional pointer goes up.

TGUI_TOUCH_CANCEL 

Like TOUCH_UP, but the gesture was cancelled.

TGUI_TOUCH_MOVE 

Send when pointers have been moved.

◆ tgui_inset_behaviour

How the insets of an Activity will behave to user interaction.

Enumerator
TGUI_INSET_BEHAVIOUR_DEFAULT 

Make the insets visible again on a swipe from the edge.

TGUI_INSET_BEHAVIOUR_TRANSIENT 

Make the insets temporarily and transparently visible on a swipe from the edge.

◆ tgui_surface_view_dimension_mismatch

How a SurfaceView responds to incorrectly sized buffers.

Enumerator
TGUI_MISMATCH_STICK_TOPLEFT 

The buffer is attached at the top/left edge of the SurfaceView.

TGUI_MISMATCH_CENTER_AXIS 

The buffer is centered on the axis.