tgui_err tgui_surface_view_set_buffer(tgui_connection c, tgui_activity a, tgui_view v, tgui_hardware_buffer *buffer)
Sets the buffer displayed in a SurfaceView.
tgui_err tgui_surface_view_config(tgui_connection c, tgui_activity a, tgui_view v, tgui_color background_color, tgui_surface_view_dimension_mismatch x, tgui_surface_view_dimension_mismatch y, float framerate)
Configures the behaviour of a SurfaceView.
tgui_err tgui_hardware_buffer_destroy(tgui_connection c, tgui_hardware_buffer *buffer)
Destroys a shared AHardwareBuffer. You also have to destroy any EGLImages or other mappings.
tgui_err tgui_hardware_buffer_create(tgui_connection c, tgui_hardware_buffer *buffer, tgui_hardware_buffer_format format, uint32_t width, uint32_t height, tgui_hardware_buffer_cpu_frequency read, tgui_hardware_buffer_cpu_frequency write)
Create an AHardwareBuffer shared with the plugin.
Wrapper for AHardwareBuffer.
Definition: types.h:636
This file contains the types used for all the functions.
struct tgui_connection_ * tgui_connection
Represents a connection to the Termux:GUI plugin.
Definition: types.h:27
int32_t tgui_activity
Represents an Android Activity.
Definition: types.h:34
tgui_hardware_buffer_cpu_frequency
How often the CPU will access the buffer.
Definition: types.h:623
tgui_surface_view_dimension_mismatch
Definition: types.h:647
int32_t tgui_view
Represents an Android View.
Definition: types.h:48
tgui_hardware_buffer_format
Available hardware buffer formats.
Definition: types.h:602
uint32_t tgui_color
An RGBA8888 color code.
Definition: types.h:68
tgui_err
Status codes for all functions in the library.
Definition: types.h:77