CuteHMI - Graphical User Interface (CuteHMI.GUI.0)
Fonts.hpp
1 #ifndef H_EXTENSIONS_CUTEHMI_GUI_0_INCLUDE_CUTEHMI_GUI_FONTS_HPP
2 #define H_EXTENSIONS_CUTEHMI_GUI_0_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)
19 
20  Fonts(QObject * parent = nullptr);
21 
22  QFont monospace() const;
23 
24  void setMonospace(QFont monospace);
25 
26  signals:
27  void monospaceChanged();
28 
29  private:
30  struct Members {
31  QFont monospace;
32  };
33 
34  MPtr<Members> m;
35 
36 };
37 
38 }
39 }
40 
41 #endif
42 
43 //(c)C: Copyright © 2020, Michał Policht <michal@policht.pl>. All rights reserved.
44 //(c)C: This file is a part of CuteHMI.
45 //(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.
46 //(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.
47 //(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