Termux:GUI C/C++ Bindings
Loading...
Searching...
No Matches
tgui_activity_configuration Struct Reference

Provides information on the current device and Activity configuration. More...

#include <types.h>

Public Attributes

bool dark_mode
 Whether dark mode is enabled. Always false on Android < 10.
 
char country [10]
 The country code. A NULL terminator is included for convenience.
 
char language [10]
 The language code. A NULL terminator is included for convenience.
 
tgui_orientation orientation
 The current Activity orientation. Only TGUI_ACTIVITY_LANDSCAPE, TGUI_ACTIVITY_REVERSE_LANDSCAPE, TGUI_ACTIVITY_PORTRAIT, TGUI_ACTIVITY_REVERSE_PORTRAIT and TGUI_ACTIVITY_UNSPECIFIED are possible values.
 
bool keyboard_hidden
 Whether the soft keyboard is currently shown.
 
int screen_width
 The current Activity width in dp.
 
int screen_height
 The current Activity height in dp.
 
double font_scale
 The current font scale.
 
double density
 The display density, such that screenwidth * density = screenwidth_in_px.
 

Detailed Description

Provides information on the current device and Activity configuration.


The documentation for this struct was generated from the following file: