diff options
Diffstat (limited to 'native/android/configuration.cpp')
-rw-r--r-- | native/android/configuration.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/native/android/configuration.cpp b/native/android/configuration.cpp index d76164f..687924b 100644 --- a/native/android/configuration.cpp +++ b/native/android/configuration.cpp @@ -111,6 +111,18 @@ int32_t AConfiguration_getUiModeNight(AConfiguration* config) { } +int32_t AConfiguration_getScreenWidthDp(AConfiguration* config) { + return config->screenWidthDp; +} + +int32_t AConfiguration_getScreenHeightDp(AConfiguration* config) { + return config->screenHeightDp; +} + +int32_t AConfiguration_getSmallestScreenWidthDp(AConfiguration* config) { + return config->smallestScreenWidthDp; +} + // ---------------------------------------------------------------------- void AConfiguration_setMcc(AConfiguration* config, int32_t mcc) { @@ -186,6 +198,18 @@ void AConfiguration_setUiModeNight(AConfiguration* config, int32_t uiModeNight) } +void AConfiguration_setScreenWidthDp(AConfiguration* config, int32_t value) { + config->screenWidthDp = value; +} + +void AConfiguration_setScreenHeightDp(AConfiguration* config, int32_t value) { + config->screenHeightDp = value; +} + +void AConfiguration_setSmallestScreenWidthDp(AConfiguration* config, int32_t value) { + config->smallestScreenWidthDp = value; +} + // ---------------------------------------------------------------------- int32_t AConfiguration_diff(AConfiguration* config1, AConfiguration* config2) { |