#include <settings_plugin.h>
Public Types | |
| enum struct | PlatformBrightness { kDark , kLight } |
Public Member Functions | |
| SettingsPlugin (BinaryMessenger *messenger, TaskRunner *task_runner) | |
| virtual | ~SettingsPlugin () |
| void | SendSettings () |
| virtual void | StartWatching () |
| virtual void | StopWatching () |
| virtual void | UpdateHighContrastMode (bool is_high_contrast) |
Protected Member Functions | |
| virtual bool | GetAlwaysUse24HourFormat () |
| virtual float | GetTextScaleFactor () |
| virtual PlatformBrightness | GetPreferredBrightness () |
| virtual void | WatchPreferredBrightnessChanged () |
| virtual void | WatchTextScaleFactorChanged () |
Protected Attributes | |
| bool | is_high_contrast_ = false |
Definition at line 25 of file settings_plugin.h.
|
strong |
| Enumerator | |
|---|---|
| kDark | |
| kLight | |
Definition at line 27 of file settings_plugin.h.
|
explicit |
Definition at line 57 of file settings_plugin.cc.
|
virtual |
Definition at line 65 of file settings_plugin.cc.
References StopWatching().
|
protectedvirtual |
Definition at line 112 of file settings_plugin.cc.
References flutter::GetUserTimeFormat(), and flutter::Prefer24HourTime().
Referenced by SendSettings().
|
protectedvirtual |
Definition at line 131 of file settings_plugin.cc.
References is_high_contrast_, kDark, and kLight.
Referenced by SendSettings().
|
protectedvirtual |
Definition at line 116 of file settings_plugin.cc.
References HKEY_CURRENT_USER.
Referenced by SendSettings().
| void flutter::SettingsPlugin::SendSettings | ( | ) |
Definition at line 69 of file settings_plugin.cc.
References GetAlwaysUse24HourFormat(), GetPreferredBrightness(), GetTextScaleFactor(), kDark, kPlatformBrightnessDark, and kPlatformBrightnessLight.
Referenced by UpdateHighContrastMode(), WatchPreferredBrightnessChanged(), and WatchTextScaleFactorChanged().
|
virtual |
Definition at line 85 of file settings_plugin.cc.
References HKEY_CURRENT_USER, KEY_NOTIFY, WatchPreferredBrightnessChanged(), and WatchTextScaleFactorChanged().
|
virtual |
Definition at line 100 of file settings_plugin.cc.
Referenced by ~SettingsPlugin().
|
virtual |
Definition at line 169 of file settings_plugin.cc.
References is_high_contrast_, and SendSettings().
|
protectedvirtual |
Definition at line 142 of file settings_plugin.cc.
References flutter::TaskRunner::PostTask(), SendSettings(), TRUE, and WatchPreferredBrightnessChanged().
Referenced by StartWatching(), and WatchPreferredBrightnessChanged().
|
protectedvirtual |
Definition at line 156 of file settings_plugin.cc.
References flutter::TaskRunner::PostTask(), SendSettings(), TRUE, and WatchTextScaleFactorChanged().
Referenced by StartWatching(), and WatchTextScaleFactorChanged().
|
protected |
Definition at line 62 of file settings_plugin.h.
Referenced by GetPreferredBrightness(), and UpdateHighContrastMode().