CuteHMI - Graphical User Interface (CuteHMI.GUI.1)
Fonts.hpp
1 #ifndef H_EXTENSIONS_CUTEHMI_GUI_1_INCLUDE_CUTEHMI_GUI_FONTS_HPP
2 #define H_EXTENSIONS_CUTEHMI_GUI_1_INCLUDE_CUTEHMI_GUI_FONTS_HPP
3 
4 #include "internal/common.hpp"
5 
6 #include <QObject>
7 #include <QFont>
8 
9 namespace cutehmi {
10 namespace gui {
11 
12 class CUTEHMI_GUI_API Fonts:
13  public QObject
14 {
15  Q_OBJECT
16 
17  public:
18  Q_PROPERTY(QFont monospace READ monospace WRITE setMonospace NOTIFY monospaceChanged RESET resetMonospace)
19 
20  Fonts(QObject * parent = nullptr);
21 
22  QFont monospace() const;
23 
24  void setMonospace(QFont monospace);
25 
26  void resetMonospace();
27 
28  signals:
29  void monospaceChanged();
30 
31  protected:
32  QFont & DefaultMonospace();
33 
34  private:
35  struct Members {
36  QFont monospace;
37  };
38 
39  MPtr<Members> m;
40 
41 };
42 
43 }
44 }
45 
46 #endif
47 
48 //(c)C: Copyright © 2020, Michał Policht <michal@policht.pl>. All rights reserved.
49 //(c)C: This file is a part of CuteHMI.
50 //(c)C: CuteHMI is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
51 //(c)C: CuteHMI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
52 //(c)C: You should have received a copy of the GNU Lesser General Public License along with CuteHMI. If not, see <https://www.gnu.org/licenses/>.
cutehmi::gui::Fonts
Definition: Fonts.hpp:12
cutehmi::MPtr< Members >
QObject
cutehmi
QFont