YggdrasilWM  0.1.1
A tiny window manager coded in C++
ConfigDataWidget.hpp
Go to the documentation of this file.
1 
27 #ifndef CONFIGDATAWIDGET_HPP
28 #define CONFIGDATAWIDGET_HPP
30 #include "json/json.h"
31 #include <string>
32 
34 public:
36  ~ConfigDataWidget() override = default;
37  void configInit(const Json::Value& root) override;
38  Json::Value configSave() override;
39  const std::string &getType() const;
40  const std::string &getPluginLocation() const;
41  const std::string &getFontName() const;
42  int getFontSize() const;
43  int getBorderSize() const;
44  unsigned long getBorderColor() const;
45  int getPosition() const;
46  int getSize() const;
47  unsigned long getFgColor() const;
48  unsigned long getBgColor() const;
49  const std::string &getArgs() const;
50 
51 private:
52  std::string type;
53  std::string pluginLocation;
54  std::string fontName;
55  int fontSize;
57  unsigned long borderColor;
58  int position;
59  int size;
60  unsigned long fgColor;
61  unsigned long bgColor;
62  std::string args;
63 };
64 #endif // CONFIGDATAWIDGET_HPP
ConfigDataBase class header. This class is an interface for the ConfigData classes.
ConfigDataBase class This class is an interface for the ConfigData classes This is a pure virtual cla...
Definition: ConfigDataBase.hpp:38
Definition: ConfigDataWidget.hpp:33
std::string args
Definition: ConfigDataWidget.hpp:62
int getBorderSize() const
Definition: ConfigDataWidget.cpp:113
void configInit(const Json::Value &root) override
Initialize the configuration.
Definition: ConfigDataWidget.cpp:44
std::string fontName
Definition: ConfigDataWidget.hpp:54
std::string type
Definition: ConfigDataWidget.hpp:52
int getSize() const
Definition: ConfigDataWidget.cpp:116
std::string pluginLocation
Definition: ConfigDataWidget.hpp:53
int getFontSize() const
Definition: ConfigDataWidget.cpp:112
~ConfigDataWidget() override=default
int position
Definition: ConfigDataWidget.hpp:58
unsigned long bgColor
Definition: ConfigDataWidget.hpp:61
const std::string & getArgs() const
Definition: ConfigDataWidget.cpp:119
unsigned long fgColor
Definition: ConfigDataWidget.hpp:60
const std::string & getType() const
Definition: ConfigDataWidget.cpp:109
const std::string & getPluginLocation() const
Definition: ConfigDataWidget.cpp:110
const std::string & getFontName() const
Definition: ConfigDataWidget.cpp:111
int fontSize
Definition: ConfigDataWidget.hpp:55
ConfigDataWidget()
Definition: ConfigDataWidget.cpp:31
unsigned long getBorderColor() const
Definition: ConfigDataWidget.cpp:114
int borderSize
Definition: ConfigDataWidget.hpp:56
unsigned long getFgColor() const
Definition: ConfigDataWidget.cpp:117
int getPosition() const
Definition: ConfigDataWidget.cpp:115
unsigned long borderColor
Definition: ConfigDataWidget.hpp:57
int size
Definition: ConfigDataWidget.hpp:59
Json::Value configSave() override
Build a Json::Value object with the configuration.
Definition: ConfigDataWidget.cpp:105
unsigned long getBgColor() const
Definition: ConfigDataWidget.cpp:118