#include "flutter/shell/platform/linux/fl_settings_channel.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_basic_message_channel.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_json_message_codec.h"
Go to the source code of this file.
Classes | |
struct | _FlSettingsChannel |
Functions | |
static void | fl_settings_channel_dispose (GObject *object) |
static void | fl_settings_channel_class_init (FlSettingsChannelClass *klass) |
static void | fl_settings_channel_init (FlSettingsChannel *self) |
FlSettingsChannel * | fl_settings_channel_new (FlBinaryMessenger *messenger) |
void | fl_settings_channel_send (FlSettingsChannel *self, double text_scale_factor, gboolean always_use_24_hour_format, FlSettingsChannelPlatformBrightness platform_brightness) |
Variables | |
static constexpr char | kChannelName [] = "flutter/settings" |
static constexpr char | kTextScaleFactorKey [] = "textScaleFactor" |
static constexpr char | kAlwaysUse24HourFormatKey [] = "alwaysUse24HourFormat" |
static constexpr char | kPlatformBrightnessKey [] = "platformBrightness" |
static constexpr char | kPlatformBrightnessLight [] = "light" |
static constexpr char | kPlatformBrightnessDark [] = "dark" |
|
static |
Definition at line 33 of file fl_settings_channel.cc.
References fl_settings_channel_dispose().
|
static |
Definition at line 25 of file fl_settings_channel.cc.
Referenced by fl_settings_channel_class_init().
|
static |
Definition at line 37 of file fl_settings_channel.cc.
FlSettingsChannel* fl_settings_channel_new | ( | FlBinaryMessenger * | messenger | ) |
FlSettingsChannel:
#FlSettingsChannel is a channel that implements the Flutter user settings channel. fl_settings_channel_new: @messenger: an #FlBinaryMessenger
Creates a new channel that sends user settings to the platform.
Returns: a new #FlSettingsChannel
Definition at line 39 of file fl_settings_channel.cc.
References fl_basic_message_channel_new(), fl_json_message_codec_new(), and kChannelName.
Referenced by fl_settings_handler_new().
void fl_settings_channel_send | ( | FlSettingsChannel * | self, |
double | text_scale_factor, | ||
gboolean | always_use_24_hour_format, | ||
FlSettingsChannelPlatformBrightness | platform_brightness | ||
) |
Definition at line 50 of file fl_settings_channel.cc.
References fl_basic_message_channel_send(), FL_SETTINGS_CHANNEL_PLATFORM_BRIGHTNESS_DARK, FL_SETTINGS_CHANNEL_PLATFORM_BRIGHTNESS_LIGHT, fl_value_new_bool(), fl_value_new_float(), fl_value_new_map(), fl_value_new_string(), fl_value_set_string_take(), kAlwaysUse24HourFormatKey, kPlatformBrightnessDark, kPlatformBrightnessKey, kPlatformBrightnessLight, and kTextScaleFactorKey.
Referenced by update_settings().
|
staticconstexpr |
Definition at line 12 of file fl_settings_channel.cc.
Referenced by fl_settings_channel_send().
|
staticconstexpr |
Definition at line 10 of file fl_settings_channel.cc.
Referenced by fl_settings_channel_new().
|
staticconstexpr |
Definition at line 15 of file fl_settings_channel.cc.
Referenced by fl_settings_channel_send().
|
staticconstexpr |
Definition at line 13 of file fl_settings_channel.cc.
Referenced by fl_settings_channel_send().
|
staticconstexpr |
Definition at line 14 of file fl_settings_channel.cc.
Referenced by fl_settings_channel_send().
|
staticconstexpr |
Definition at line 11 of file fl_settings_channel.cc.
Referenced by fl_settings_channel_send().