Flutter Engine
The Flutter Engine
Macros | Functions
mock_settings.cc File Reference
#include "flutter/shell/platform/linux/testing/mock_settings.h"

Go to the source code of this file.

Macros

#define FL_UNUSED(x)   (void)x;
 

Functions

 G_DECLARE_FINAL_TYPE (FlMockSettings, fl_mock_settings, FL, MOCK_SETTINGS, GObject) struct _FlMockSettings
 
static void fl_mock_settings_iface_init (FlSettingsInterface *iface)
 
 G_DEFINE_TYPE_WITH_CODE (FlMockSettings, fl_mock_settings, G_TYPE_OBJECT, G_IMPLEMENT_INTERFACE(fl_settings_get_type(), fl_mock_settings_iface_init) FL_UNUSED(FL_IS_MOCK_SETTINGS)) static void fl_mock_settings_class_init(FlMockSettingsClass *klass)
 
static FlClockFormat fl_mock_settings_get_clock_format (FlSettings *settings)
 
static FlColorScheme fl_mock_settings_get_color_scheme (FlSettings *settings)
 
static gboolean fl_mock_settings_get_enable_animations (FlSettings *settings)
 
static gboolean fl_mock_settings_get_high_contrast (FlSettings *settings)
 
static gdouble fl_mock_settings_get_text_scaling_factor (FlSettings *settings)
 
static void fl_mock_settings_init (FlMockSettings *self)
 

Macro Definition Documentation

◆ FL_UNUSED

#define FL_UNUSED (   x)    (void)x;

Definition at line 22 of file mock_settings.cc.

Function Documentation

◆ fl_mock_settings_get_clock_format()

static FlClockFormat fl_mock_settings_get_clock_format ( FlSettings *  settings)
static

Definition at line 33 of file mock_settings.cc.

33 {
34 FlMockSettings* self = FL_MOCK_SETTINGS(settings);
35 return self->mock->fl_settings_get_clock_format(settings);
36}

◆ fl_mock_settings_get_color_scheme()

static FlColorScheme fl_mock_settings_get_color_scheme ( FlSettings *  settings)
static

Definition at line 38 of file mock_settings.cc.

38 {
39 FlMockSettings* self = FL_MOCK_SETTINGS(settings);
40 return self->mock->fl_settings_get_color_scheme(settings);
41}

◆ fl_mock_settings_get_enable_animations()

static gboolean fl_mock_settings_get_enable_animations ( FlSettings *  settings)
static

Definition at line 43 of file mock_settings.cc.

43 {
44 FlMockSettings* self = FL_MOCK_SETTINGS(settings);
45 return self->mock->fl_settings_get_enable_animations(settings);
46}

◆ fl_mock_settings_get_high_contrast()

static gboolean fl_mock_settings_get_high_contrast ( FlSettings *  settings)
static

Definition at line 48 of file mock_settings.cc.

48 {
49 FlMockSettings* self = FL_MOCK_SETTINGS(settings);
50 return self->mock->fl_settings_get_high_contrast(settings);
51}

◆ fl_mock_settings_get_text_scaling_factor()

static gdouble fl_mock_settings_get_text_scaling_factor ( FlSettings *  settings)
static

Definition at line 53 of file mock_settings.cc.

53 {
54 FlMockSettings* self = FL_MOCK_SETTINGS(settings);
55 return self->mock->fl_settings_get_text_scaling_factor(settings);
56}

◆ fl_mock_settings_iface_init()

static void fl_mock_settings_iface_init ( FlSettingsInterface *  iface)
static

Definition at line 58 of file mock_settings.cc.

58 {
59 iface->get_clock_format = fl_mock_settings_get_clock_format;
60 iface->get_color_scheme = fl_mock_settings_get_color_scheme;
61 iface->get_enable_animations = fl_mock_settings_get_enable_animations;
62 iface->get_high_contrast = fl_mock_settings_get_high_contrast;
63 iface->get_text_scaling_factor = fl_mock_settings_get_text_scaling_factor;
64}
static FlColorScheme fl_mock_settings_get_color_scheme(FlSettings *settings)
static FlClockFormat fl_mock_settings_get_clock_format(FlSettings *settings)
static gdouble fl_mock_settings_get_text_scaling_factor(FlSettings *settings)
static gboolean fl_mock_settings_get_high_contrast(FlSettings *settings)
static gboolean fl_mock_settings_get_enable_animations(FlSettings *settings)

◆ fl_mock_settings_init()

static void fl_mock_settings_init ( FlMockSettings *  self)
static

Definition at line 66 of file mock_settings.cc.

66{}

◆ G_DECLARE_FINAL_TYPE()

G_DECLARE_FINAL_TYPE ( FlMockSettings  ,
fl_mock_settings  ,
FL  ,
MOCK_SETTINGS  ,
GObject   
)

Definition at line 9 of file mock_settings.cc.

15 {
16 GObject parent_instance;
17 MockSettings* mock;
18};

◆ G_DEFINE_TYPE_WITH_CODE()

G_DEFINE_TYPE_WITH_CODE ( FlMockSettings  ,
fl_mock_settings  ,
G_TYPE_OBJECT  ,
G_IMPLEMENT_INTERFACE(fl_settings_get_type(), fl_mock_settings_iface_init) FL_UNUSED(FL_IS_MOCK_SETTINGS)   
)

Definition at line 24 of file mock_settings.cc.

31 {}