guit  0.1
 All Classes Functions Variables Typedefs Enumerations Friends
gprefs.hpp
1 //
2 // Preferences
3 // Guit GUI Toolkit
4 // Copyright © 2019/2020 Eric Lecolinet. All rights reserved.
5 // http://www.telecom-paris.fr/~elc
6 //
7 
8 #ifndef Guit_Prefs_hpp
9 #define Guit_Prefs_hpp
10 #include <gtypes.hpp>
11 namespace guit {
12 
14  class GPrefs {
15  public:
16  static GTheme& theme();
17  static GString const &openDir(), &saveDir();
18  static GStrings const& fontDirs();
19  static GStrings const& sansFonts();
20  static GStrings const& serifFonts();
21  static GStrings const& monoFonts();
22 
23  static int precision();
24  static GTime dblclickDelay(), tipDelay(), animTimeout(); // in msec
25  static float iconWidth(), menuTab();
26  static float wheelGain();
27 
28  static GRgba const& selectedTextColor();
29  static GRgba const& caretColor();
30  static float caretWidth(), caretEndDist();
31  static int caretScroll();
32 
33  static float resizeHandleSize(), resizeFrameShift();
34  static GRgba const &resizeHandleColor(), &resizeFrameColor();
35 
36  static GColor &inspectColor(), &inspectedColor();
37 
38  protected:
39  GPrefs();
40  GRgba *selectionColor_, *caretColor_;
41  GEventState inspecthotkey_;
42  GColor *inspectcolor_{}, *inspectedcolor_{};
43  GStrings fontdirs_, sansfonts_, seriffonts_, monofonts_;
44  };
45 
46 }
47 #endif