Termux:GUI C/C++ Bindings
|
This file contains all functions related to View creation. More...
#include "types.h"
Go to the source code of this file.
This file contains all functions related to View creation.
tgui_err tgui_create_linear_layout | ( | tgui_connection | c, |
tgui_activity | a, | ||
tgui_view * | v, | ||
const tgui_view * | parent, | ||
tgui_view_visibility | vis, | ||
bool | horizontal | ||
) |
Creates a LinearLayout.
c | The connection to use. | |
a | The Activity the new View should be in. | |
[out] | v | The new View. |
parent | The optional parent layout of the View. | |
vis | The initial visibility. | |
horizontal | Whether the LinearLayout should place its children vertically or horizontally. |
tgui_err tgui_create_frame_layout | ( | tgui_connection | c, |
tgui_activity | a, | ||
tgui_view * | v, | ||
const tgui_view * | parent, | ||
tgui_view_visibility | vis | ||
) |
Creates a FrameLayout.
c | The connection to use. | |
a | The Activity the new View should be in. | |
[out] | v | The new View. |
parent | The optional parent layout of the View. | |
vis | The initial visibility. |
tgui_err tgui_create_swipe_refresh_layout | ( | tgui_connection | c, |
tgui_activity | a, | ||
tgui_view * | v, | ||
const tgui_view * | parent, | ||
tgui_view_visibility | vis | ||
) |
Creates a SwipeRefreshLayout.
c | The connection to use. | |
a | The Activity the new View should be in. | |
[out] | v | The new View. |
parent | The optional parent layout of the View. | |
vis | The initial visibility. |
tgui_err tgui_create_text_view | ( | tgui_connection | c, |
tgui_activity | a, | ||
tgui_view * | v, | ||
const tgui_view * | parent, | ||
tgui_view_visibility | vis, | ||
const char * | text, | ||
bool | selectableText, | ||
bool | clickableLinks | ||
) |
Creates a TextView.
c | The connection to use. | |
a | The Activity the new View should be in. | |
[out] | v | The new View. |
parent | The optional parent layout of the View. | |
vis | The initial visibility. | |
[in] | text | The initial text. NULL is the same as the empty string. |
selectableText | Whether the text is selectable by the user. | |
clickableLinks | Whether links are clickable and open a browser. |
tgui_err tgui_create_edit_text | ( | tgui_connection | c, |
tgui_activity | a, | ||
tgui_view * | v, | ||
const tgui_view * | parent, | ||
tgui_view_visibility | vis, | ||
const char * | text, | ||
tgui_edit_text_type | type, | ||
bool | noLine | ||
) |
c | The connection to use. | |
a | The Activity the new View should be in. | |
[out] | v | The new View. |
parent | The optional parent layout of the View. | |
vis | The initial visibility. | |
[in] | text | The initial text. NULL is the same as the empty string. |
type | The input type. This adjusts the soft keyboard to show relevant keys. | |
noLine | By default a line is shown under the text in an EditText. This parameter can be used to prevent that. |
tgui_err tgui_create_button | ( | tgui_connection | c, |
tgui_activity | a, | ||
tgui_view * | v, | ||
const tgui_view * | parent, | ||
tgui_view_visibility | vis, | ||
const char * | text | ||
) |
Creates a Button.
c | The connection to use. | |
a | The Activity the new View should be in. | |
[out] | v | The new View. |
parent | The optional parent layout of the View. | |
vis | The initial visibility. | |
[in] | text | The text. NULL is the same as the empty string. |
tgui_err tgui_create_image_view | ( | tgui_connection | c, |
tgui_activity | a, | ||
tgui_view * | v, | ||
const tgui_view * | parent, | ||
tgui_view_visibility | vis, | ||
bool | keyboard | ||
) |
Creates an ImageView.
c | The connection to use. | |
a | The Activity the new View should be in. | |
[out] | v | The new View. |
parent | The optional parent layout of the View. | |
vis | The initial visibility. | |
keyboard | Whether the ImageView should get events from the keyboard. |
tgui_err tgui_create_space | ( | tgui_connection | c, |
tgui_activity | a, | ||
tgui_view * | v, | ||
const tgui_view * | parent, | ||
tgui_view_visibility | vis | ||
) |
Creates a Space (invisible View for layout purposes).
c | The connection to use. | |
a | The Activity the new View should be in. | |
[out] | v | The new View. |
parent | The optional parent layout of the View. | |
vis | The initial visibility. |
tgui_err tgui_create_nested_scroll_view | ( | tgui_connection | c, |
tgui_activity | a, | ||
tgui_view * | v, | ||
const tgui_view * | parent, | ||
tgui_view_visibility | vis, | ||
bool | snapping, | ||
bool | noBar, | ||
bool | fillViewport | ||
) |
Creates a NestedScrollView.
c | The connection to use. | |
a | The Activity the new View should be in. | |
[out] | v | The new View. |
parent | The optional parent layout of the View. | |
vis | The initial visibility. | |
snapping | Whether the View snaps to the nearest child. | |
noBar | Whether to show the scrollbar. | |
fillViewport | Whether to stretch the content's height to fill the viewport. |
tgui_err tgui_create_horizontal_scroll_view | ( | tgui_connection | c, |
tgui_activity | a, | ||
tgui_view * | v, | ||
const tgui_view * | parent, | ||
tgui_view_visibility | vis, | ||
bool | snapping, | ||
bool | noBar, | ||
bool | fillViewport | ||
) |
Creates a HorizontalScrollView.
c | The connection to use. | |
a | The Activity the new View should be in. | |
[out] | v | The new View. |
parent | The optional parent layout of the View. | |
vis | The initial visibility. | |
snapping | Whether the View snaps to the nearest child. | |
noBar | Whether to show the scrollbar. | |
fillViewport | Whether to stretch the content's height to fill the viewport. |
tgui_err tgui_create_radio_group | ( | tgui_connection | c, |
tgui_activity | a, | ||
tgui_view * | v, | ||
const tgui_view * | parent, | ||
tgui_view_visibility | vis | ||
) |
Creates a RadioGroup.
c | The connection to use. | |
a | The Activity the new View should be in. | |
[out] | v | The new View. |
parent | The optional parent layout of the View. | |
vis | The initial visibility. |
tgui_err tgui_create_radio_button | ( | tgui_connection | c, |
tgui_activity | a, | ||
tgui_view * | v, | ||
const tgui_view * | parent, | ||
tgui_view_visibility | vis, | ||
const char * | text, | ||
bool | checked | ||
) |
Creates a RadioButton.
c | The connection to use. | |
a | The Activity the new View should be in. | |
[out] | v | The new View. |
parent | The optional parent layout of the View. | |
vis | The initial visibility. | |
[in] | text | The text. NULL is the same as the empty string. |
checked | Whether the View should be created checked or unchecked. |
tgui_err tgui_create_checkbox | ( | tgui_connection | c, |
tgui_activity | a, | ||
tgui_view * | v, | ||
const tgui_view * | parent, | ||
tgui_view_visibility | vis, | ||
const char * | text, | ||
bool | checked | ||
) |
Creates a CheckBox.
c | The connection to use. | |
a | The Activity the new View should be in. | |
[out] | v | The new View. |
parent | The optional parent layout of the View. | |
vis | The initial visibility. | |
[in] | text | The text. NULL is the same as the empty string. |
checked | Whether the View should be created checked or unchecked. |
tgui_err tgui_create_toggle_button | ( | tgui_connection | c, |
tgui_activity | a, | ||
tgui_view * | v, | ||
const tgui_view * | parent, | ||
tgui_view_visibility | vis, | ||
bool | checked | ||
) |
Creates a ToggleButton.
c | The connection to use. | |
a | The Activity the new View should be in. | |
[out] | v | The new View. |
parent | The optional parent layout of the View. | |
vis | The initial visibility. | |
checked | Whether the View should be created checked or unchecked. |
tgui_err tgui_create_switch | ( | tgui_connection | c, |
tgui_activity | a, | ||
tgui_view * | v, | ||
const tgui_view * | parent, | ||
tgui_view_visibility | vis, | ||
bool | checked | ||
) |
Creates a Switch.
c | The connection to use. | |
a | The Activity the new View should be in. | |
[out] | v | The new View. |
parent | The optional parent layout of the View. | |
vis | The initial visibility. | |
checked | Whether the View should be created checked or unchecked. |
tgui_err tgui_create_spinner | ( | tgui_connection | c, |
tgui_activity | a, | ||
tgui_view * | v, | ||
const tgui_view * | parent, | ||
tgui_view_visibility | vis | ||
) |
Creates a Spinner.
c | The connection to use. | |
a | The Activity the new View should be in. | |
[out] | v | The new View. |
parent | The optional parent layout of the View. | |
vis | The initial visibility. |
tgui_err tgui_create_progress_bar | ( | tgui_connection | c, |
tgui_activity | a, | ||
tgui_view * | v, | ||
const tgui_view * | parent, | ||
tgui_view_visibility | vis | ||
) |
Creates a ProgressBar.
c | The connection to use. | |
a | The Activity the new View should be in. | |
[out] | v | The new View. |
parent | The optional parent layout of the View. | |
vis | The initial visibility. |
tgui_err tgui_create_tab_layout | ( | tgui_connection | c, |
tgui_activity | a, | ||
tgui_view * | v, | ||
const tgui_view * | parent, | ||
tgui_view_visibility | vis | ||
) |
Creates a TabLayout.
c | The connection to use. | |
a | The Activity the new View should be in. | |
[out] | v | The new View. |
parent | The optional parent layout of the View. | |
vis | The initial visibility. |
tgui_err tgui_create_grid_layout | ( | tgui_connection | c, |
tgui_activity | a, | ||
tgui_view * | v, | ||
const tgui_view * | parent, | ||
tgui_view_visibility | vis, | ||
uint32_t | rows, | ||
uint32_t | cols | ||
) |
Creates a GridLayout.
c | The connection to use. | |
a | The Activity the new View should be in. | |
[out] | v | The new View. |
parent | The optional parent layout of the View. | |
vis | The initial visibility. | |
rows | The number of rows. | |
cols | The number of columns. |
tgui_err tgui_create_web_view | ( | tgui_connection | c, |
tgui_activity | a, | ||
tgui_view * | v, | ||
const tgui_view * | parent, | ||
tgui_view_visibility | vis | ||
) |
Creates a WebView.
c | The connection to use. | |
a | The Activity the new View should be in. | |
[out] | v | The new View. |
parent | The optional parent layout of the View. | |
vis | The initial visibility. |
tgui_err tgui_create_surface_view | ( | tgui_connection | c, |
tgui_activity | a, | ||
tgui_view * | v, | ||
const tgui_view * | parent, | ||
tgui_view_visibility | vis, | ||
bool | keyboard | ||
) |
Creates a SurfaceView for hardware-accelerated rendering.
c | The connection to use. | |
a | The Activity the new View should be in. | |
[out] | v | The new View. |
parent | The optional parent layout of the View. | |
vis | The initial visibility. | |
keyboard | Whether the ImageView should get events from the keyboard. |