#include "flutter/shell/platform/linux/fl_settings_handler.h"
#include <gmodule.h>
#include "flutter/shell/platform/embedder/embedder.h"
#include "flutter/shell/platform/linux/fl_engine_private.h"
#include "flutter/shell/platform/linux/fl_settings_channel.h"
Go to the source code of this file.
Classes | |
struct | _FlSettingsHandler |
Functions | |
static FlSettingsChannelPlatformBrightness | to_platform_brightness (FlColorScheme color_scheme) |
static void | update_settings (FlSettingsHandler *self) |
static void | fl_settings_handler_dispose (GObject *object) |
static void | fl_settings_handler_class_init (FlSettingsHandlerClass *klass) |
static void | fl_settings_handler_init (FlSettingsHandler *self) |
FlSettingsHandler * | fl_settings_handler_new (FlEngine *engine) |
void | fl_settings_handler_start (FlSettingsHandler *self, FlSettings *settings) |
|
static |
Definition at line 68 of file fl_settings_handler.cc.
References fl_settings_handler_dispose().
|
static |
Definition at line 58 of file fl_settings_handler.cc.
Referenced by fl_settings_handler_class_init().
|
static |
Definition at line 72 of file fl_settings_handler.cc.
FlSettingsHandler* fl_settings_handler_new | ( | FlEngine * | engine | ) |
FlSettingsHandler:
#FlSettingsHandler is a handler that implements the Flutter user settings channel. fl_settings_handler_new: @messenger: an #FlEngine
Creates a new handler that sends user settings to the Flutter engine.
Returns: a new #FlSettingsHandler
Definition at line 74 of file fl_settings_handler.cc.
References fl_engine_get_binary_messenger(), and fl_settings_channel_new().
Referenced by fl_engine_start(), and TEST().
void fl_settings_handler_start | ( | FlSettingsHandler * | handler, |
FlSettings * | settings | ||
) |
fl_settings_handler_start: @handler: an #FlSettingsHandler.
Sends the current settings to the engine and updates when they change.
Definition at line 88 of file fl_settings_handler.cc.
References update_settings().
Referenced by fl_engine_start(), and TEST().
|
static |
Definition at line 23 of file fl_settings_handler.cc.
References FL_COLOR_SCHEME_DARK, FL_COLOR_SCHEME_LIGHT, FL_SETTINGS_CHANNEL_PLATFORM_BRIGHTNESS_DARK, and FL_SETTINGS_CHANNEL_PLATFORM_BRIGHTNESS_LIGHT.
Referenced by update_settings().
|
static |
Definition at line 36 of file fl_settings_handler.cc.
References FL_CLOCK_FORMAT_24H, fl_engine_update_accessibility_features(), fl_settings_channel_send(), fl_settings_get_clock_format(), fl_settings_get_color_scheme(), fl_settings_get_enable_animations(), fl_settings_get_high_contrast(), fl_settings_get_text_scaling_factor(), flags, and to_platform_brightness().
Referenced by fl_settings_handler_start().