Termux:GUI C/C++ Bindings
|
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 |
This file contains the types used for all the functions.
typedef uint32_t tgui_color |
An RGBA8888 color code.
RR is the least significant byte. In a hex literal, write 0xaabbggrr
.
enum tgui_err |
Status codes for all functions in the library.
enum tgui_activity_type |
All possible types of Activities.
enum tgui_orientation |
Specifies the orientation you can set an Activity to.
enum tgui_edit_text_type |
The types an EditText can be. See the Android documentation for more information.
enum 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. |
enum tgui_key_modifier |
All supported key modifiers.
enum tgui_view_visibility |
enum tgui_direction |
enum tgui_importance |
enum 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 |
enum tgui_view_size_type |
enum tgui_grid_alignment |
The View alignment in a GridLayout.
enum tgui_gravity |
enum tgui_buffer_format |
enum tgui_touch_action |
Possible causes for touch events.
enum tgui_inset_behaviour |