CCIMXDesktop
 
Loading...
Searching...
No Matches
SettingsPack.h
1#ifndef SETTINGSPACK_H
2#define SETTINGSPACK_H
3
4#include "core/wallpaper/WallPaperEngine.h"
5#include <QColor>
6#include <QEasingCurve>
7#include <QFont>
8#include <QPixmap>
18
24public:
28 enum class Type {
29 FIXED,
31 };
32
38 : type(t) { }
39
40 BaseWallPaperSettings() = delete;
41 virtual ~BaseWallPaperSettings() = default;
42
47 Type get_type() const { return type; }
48
49private:
50 const Type type;
51};
52
65
80
81#endif // SETTINGSPACK_H
SwitchingMode
Enum for wallpaper switching modes.
Definition WallPaperEngine.h:27
The AppWidgetsSettingsInfoPack struct Stores configuration parameters for AppWidget appearance.
Definition SettingsPack.h:13
QFont font
Font used by the widget.
Definition SettingsPack.h:15
QColor fontColor
Text color for the widget.
Definition SettingsPack.h:14
int iconSize
Size of the icon displayed.
Definition SettingsPack.h:16
The BaseWallPaperSettings class Abstract base for wallpaper configuration settings.
Definition SettingsPack.h:23
Type get_type() const
Gets the wallpaper type.
Definition SettingsPack.h:47
BaseWallPaperSettings(const Type t)
Constructor with type.
Definition SettingsPack.h:37
Type
Types of wallpaper switching behaviors.
Definition SettingsPack.h:28
@ FLOW_LIKE
Sequential image switching.
@ FIXED
Fixed image wallpaper.
The FixedTypeWallPaperSettings struct Settings for fixed image wallpaper display.
Definition SettingsPack.h:57
QPixmap map
The fixed wallpaper image.
Definition SettingsPack.h:62
WallPaperEngine::SwitchingMode mode
Switching mode (though unused for fixed).
Definition SettingsPack.h:63
The FlowTypeTypeWallPaperSettings struct Settings for flow-like (sequentially switched) wallpapers.
Definition SettingsPack.h:70
QEasingCurve curve
curve type for animations
Definition SettingsPack.h:74
int animation_speed
Transition animation speed (ms).
Definition SettingsPack.h:76
QStringList images
List of images to switch between.
Definition SettingsPack.h:75
WallPaperEngine::SwitchingMode mode
Switching mode behavior.
Definition SettingsPack.h:78
int switch_interval
Interval between switches (ms).
Definition SettingsPack.h:77