mirror of
https://github.com/odin-lang/Odin.git
synced 2026-11-03 09:14:38 -05:00
206 lines
8.2 KiB
Odin
206 lines
8.2 KiB
Odin
// Generated by core/sys/android/_gen/generate.py from the Android NDK headers. DO NOT EDIT.
|
|
// Source: <android/configuration.h> (NDK r30, 30.0.16248370)
|
|
#+build linux
|
|
package android
|
|
|
|
import "core:c"
|
|
|
|
foreign import libandroid "system:android"
|
|
|
|
AConfiguration :: struct {}
|
|
|
|
ACONFIGURATION_DENSITY_DEFAULT :: 0
|
|
ACONFIGURATION_DENSITY_LOW :: 120
|
|
ACONFIGURATION_DENSITY_MEDIUM :: 160
|
|
ACONFIGURATION_DENSITY_TV :: 213
|
|
ACONFIGURATION_DENSITY_HIGH :: 240
|
|
ACONFIGURATION_DENSITY_XHIGH :: 320
|
|
ACONFIGURATION_DENSITY_XXHIGH :: 480
|
|
ACONFIGURATION_DENSITY_XXXHIGH :: 640
|
|
ACONFIGURATION_DENSITY_ANY :: 0xfffe
|
|
ACONFIGURATION_DENSITY_NONE :: 0xffff
|
|
ACONFIGURATION_SCREEN_WIDTH_DP_ANY :: 0x0000
|
|
ACONFIGURATION_SCREEN_HEIGHT_DP_ANY :: 0x0000
|
|
ACONFIGURATION_SMALLEST_SCREEN_WIDTH_DP_ANY :: 0x0000
|
|
ACONFIGURATION_MNC_ZERO :: 0xffff
|
|
|
|
AConfigurationOrientation :: enum i32 {
|
|
ANY = 0x0000,
|
|
PORT = 0x0001,
|
|
LAND = 0x0002,
|
|
SQUARE = 0x0003,
|
|
}
|
|
|
|
AConfigurationTouchscreen :: enum i32 {
|
|
ANY = 0x0000,
|
|
NOTOUCH = 0x0001,
|
|
STYLUS = 0x0002,
|
|
FINGER = 0x0003,
|
|
}
|
|
|
|
AConfigurationKeyboard :: enum i32 {
|
|
ANY = 0x0000,
|
|
NOKEYS = 0x0001,
|
|
QWERTY = 0x0002,
|
|
_12KEY = 0x0003,
|
|
HIDDEN = 0x0020,
|
|
}
|
|
|
|
AConfigurationNavigation :: enum i32 {
|
|
ANY = 0x0000,
|
|
NONAV = 0x0001,
|
|
DPAD = 0x0002,
|
|
TRACKBALL = 0x0003,
|
|
WHEEL = 0x0004,
|
|
}
|
|
|
|
AConfigurationKeysHidden :: enum i32 {
|
|
ANY = 0x0000,
|
|
NO = 0x0001,
|
|
YES = 0x0002,
|
|
SOFT = 0x0003,
|
|
}
|
|
|
|
AConfigurationNavHidden :: enum i32 {
|
|
ANY = 0x0000,
|
|
NO = 0x0001,
|
|
YES = 0x0002,
|
|
}
|
|
|
|
AConfigurationScreenSize :: enum i32 {
|
|
ANY = 0x00,
|
|
SMALL = 0x01,
|
|
NORMAL = 0x02,
|
|
LARGE = 0x03,
|
|
XLARGE = 0x04,
|
|
}
|
|
|
|
AConfigurationScreenLong :: enum i32 {
|
|
ANY = 0x00,
|
|
NO = 0x1,
|
|
YES = 0x2,
|
|
}
|
|
|
|
AConfigurationScreenRound :: enum i32 {
|
|
ANY = 0x00,
|
|
NO = 0x1,
|
|
YES = 0x2,
|
|
}
|
|
|
|
AConfigurationWideColorGamut :: enum i32 {
|
|
ANY = 0x00,
|
|
NO = 0x1,
|
|
YES = 0x2,
|
|
}
|
|
|
|
AConfigurationHdr :: enum i32 {
|
|
ANY = 0x00,
|
|
NO = 0x1,
|
|
YES = 0x2,
|
|
}
|
|
|
|
AConfigurationUiModeType :: enum i32 {
|
|
ANY = 0x00,
|
|
NORMAL = 0x01,
|
|
DESK = 0x02,
|
|
CAR = 0x03,
|
|
TELEVISION = 0x04,
|
|
APPLIANCE = 0x05,
|
|
WATCH = 0x06,
|
|
VR_HEADSET = 0x07,
|
|
}
|
|
|
|
AConfigurationUiModeNight :: enum i32 {
|
|
ANY = 0x00,
|
|
NO = 0x1,
|
|
YES = 0x2,
|
|
}
|
|
|
|
AConfigurationLayoutDir :: enum i32 {
|
|
ANY = 0x00,
|
|
LTR = 0x01,
|
|
RTL = 0x02,
|
|
}
|
|
|
|
AConfigurationGrammaticalGender :: enum i32 {
|
|
ANY = 0,
|
|
NEUTER = 1,
|
|
FEMININE = 2,
|
|
MASCULINE = 3,
|
|
}
|
|
|
|
AConfigurationChange :: enum u32 {
|
|
MCC = 0,
|
|
MNC = 1,
|
|
LOCALE = 2,
|
|
TOUCHSCREEN = 3,
|
|
KEYBOARD = 4,
|
|
NAVIGATION = 6,
|
|
ORIENTATION = 7,
|
|
DENSITY = 8,
|
|
SCREEN_SIZE = 9,
|
|
VERSION = 10,
|
|
SCREEN_LAYOUT = 11,
|
|
UI_MODE = 12,
|
|
SMALLEST_SCREEN_SIZE = 13,
|
|
LAYOUTDIR = 14,
|
|
SCREEN_ROUND = 15,
|
|
COLOR_MODE = 16,
|
|
GRAMMATICAL_GENDER = 17,
|
|
}
|
|
AConfigurationChanges :: distinct bit_set[AConfigurationChange; u32]
|
|
|
|
@(default_calling_convention="c")
|
|
foreign libandroid {
|
|
AConfiguration_new :: proc() -> ^AConfiguration ---
|
|
AConfiguration_delete :: proc(config: ^AConfiguration) ---
|
|
AConfiguration_fromAssetManager :: proc(out: ^AConfiguration, am: ^AAssetManager) ---
|
|
AConfiguration_copy :: proc(dest: ^AConfiguration, src: ^AConfiguration) ---
|
|
AConfiguration_getMcc :: proc(config: ^AConfiguration) -> i32 ---
|
|
AConfiguration_setMcc :: proc(config: ^AConfiguration, mcc: i32) ---
|
|
AConfiguration_getMnc :: proc(config: ^AConfiguration) -> i32 ---
|
|
AConfiguration_setMnc :: proc(config: ^AConfiguration, mnc: i32) ---
|
|
AConfiguration_getLanguage :: proc(config: ^AConfiguration, outLanguage: [^]c.char) ---
|
|
AConfiguration_setLanguage :: proc(config: ^AConfiguration, language: cstring) ---
|
|
AConfiguration_getCountry :: proc(config: ^AConfiguration, outCountry: [^]c.char) ---
|
|
AConfiguration_setCountry :: proc(config: ^AConfiguration, country: cstring) ---
|
|
AConfiguration_getOrientation :: proc(config: ^AConfiguration) -> AConfigurationOrientation ---
|
|
AConfiguration_setOrientation :: proc(config: ^AConfiguration, orientation: AConfigurationOrientation) ---
|
|
AConfiguration_getTouchscreen :: proc(config: ^AConfiguration) -> AConfigurationTouchscreen ---
|
|
AConfiguration_setTouchscreen :: proc(config: ^AConfiguration, touchscreen: AConfigurationTouchscreen) ---
|
|
AConfiguration_getDensity :: proc(config: ^AConfiguration) -> i32 ---
|
|
AConfiguration_setDensity :: proc(config: ^AConfiguration, density: i32) ---
|
|
AConfiguration_getKeyboard :: proc(config: ^AConfiguration) -> AConfigurationKeyboard ---
|
|
AConfiguration_setKeyboard :: proc(config: ^AConfiguration, keyboard: AConfigurationKeyboard) ---
|
|
AConfiguration_getNavigation :: proc(config: ^AConfiguration) -> AConfigurationNavigation ---
|
|
AConfiguration_setNavigation :: proc(config: ^AConfiguration, navigation: AConfigurationNavigation) ---
|
|
AConfiguration_getKeysHidden :: proc(config: ^AConfiguration) -> AConfigurationKeysHidden ---
|
|
AConfiguration_setKeysHidden :: proc(config: ^AConfiguration, keysHidden: AConfigurationKeysHidden) ---
|
|
AConfiguration_getNavHidden :: proc(config: ^AConfiguration) -> AConfigurationNavHidden ---
|
|
AConfiguration_setNavHidden :: proc(config: ^AConfiguration, navHidden: AConfigurationNavHidden) ---
|
|
AConfiguration_getSdkVersion :: proc(config: ^AConfiguration) -> i32 ---
|
|
AConfiguration_setSdkVersion :: proc(config: ^AConfiguration, sdkVersion: i32) ---
|
|
AConfiguration_getScreenSize :: proc(config: ^AConfiguration) -> AConfigurationScreenSize ---
|
|
AConfiguration_setScreenSize :: proc(config: ^AConfiguration, screenSize: AConfigurationScreenSize) ---
|
|
AConfiguration_getScreenLong :: proc(config: ^AConfiguration) -> AConfigurationScreenLong ---
|
|
AConfiguration_setScreenLong :: proc(config: ^AConfiguration, screenLong: AConfigurationScreenLong) ---
|
|
AConfiguration_getScreenRound :: proc(config: ^AConfiguration) -> AConfigurationScreenRound --- // API level 30
|
|
AConfiguration_getUiModeType :: proc(config: ^AConfiguration) -> AConfigurationUiModeType ---
|
|
AConfiguration_setUiModeType :: proc(config: ^AConfiguration, uiModeType: AConfigurationUiModeType) ---
|
|
AConfiguration_getUiModeNight :: proc(config: ^AConfiguration) -> AConfigurationUiModeNight ---
|
|
AConfiguration_setUiModeNight :: proc(config: ^AConfiguration, uiModeNight: AConfigurationUiModeNight) ---
|
|
AConfiguration_getScreenWidthDp :: proc(config: ^AConfiguration) -> i32 ---
|
|
AConfiguration_setScreenWidthDp :: proc(config: ^AConfiguration, value: i32) ---
|
|
AConfiguration_getScreenHeightDp :: proc(config: ^AConfiguration) -> i32 ---
|
|
AConfiguration_setScreenHeightDp :: proc(config: ^AConfiguration, value: i32) ---
|
|
AConfiguration_getSmallestScreenWidthDp :: proc(config: ^AConfiguration) -> i32 ---
|
|
AConfiguration_setSmallestScreenWidthDp :: proc(config: ^AConfiguration, value: i32) ---
|
|
AConfiguration_getLayoutDirection :: proc(config: ^AConfiguration) -> AConfigurationLayoutDir ---
|
|
AConfiguration_setLayoutDirection :: proc(config: ^AConfiguration, value: AConfigurationLayoutDir) ---
|
|
AConfiguration_getGrammaticalGender :: proc(config: ^AConfiguration) -> AConfigurationGrammaticalGender --- // API level 34
|
|
AConfiguration_setGrammaticalGender :: proc(config: ^AConfiguration, value: AConfigurationGrammaticalGender) --- // API level 34
|
|
AConfiguration_diff :: proc(config1: ^AConfiguration, config2: ^AConfiguration) -> AConfigurationChanges ---
|
|
AConfiguration_match :: proc(base: ^AConfiguration, requested: ^AConfiguration) -> i32 ---
|
|
AConfiguration_isBetterThan :: proc(base: ^AConfiguration, test: ^AConfiguration, requested: ^AConfiguration) -> i32 ---
|
|
}
|