ofxOui - UI Components for OpenFrameworks

ofxOuiStyle.hpp
Go to the documentation of this file.
1 /*
2  * ofxOuiStyle.hpp
3  *
4  * Jui Style Sheets
5  *
6  * This code has been authored by Jules Francoise <jfrancoi@sfu.ca>
7  * during his postdoc contract at Simon Fraser University (MovingStories
8  * project).
9  * See:
10  * http://julesfrancoise.com/
11  * http://movingstories.ca/
12  *
13  * Copyright (C) 2016 Jules Francoise.
14  *
15  * This Source Code Form is subject to the terms of the Mozilla Public
16  * License, v. 2.0. If a copy of the MPL was not distributed with this
17  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
18  */
19 
20 #ifndef ofxOuiStyle_hpp
21 #define ofxOuiStyle_hpp
22 
23 #include "ofxOuiCommon.hpp"
24 
25 namespace ofxOui {
26 
31 class Style {
32  public:
36  Style();
37 
60  Style(ofColor background_color_off_, ofColor background_color_off_hover_,
61  ofColor background_color_on_, ofColor background_color_on_hover_,
62  ofColor frame_color_off_, ofColor frame_color_off_hover_,
63  ofColor frame_color_on_, ofColor frame_color_on_hover_,
64  ofColor font_color_off_, ofColor font_color_off_hover_,
65  ofColor font_color_on_, ofColor font_color_on_hover_,
66  ofColor background_color_disabled_, ofColor frame_color_disabled_,
67  ofColor font_color_disabled_, int frame_width_, int roundness_);
68 
72  Style(Style const& src);
73 
77  Style& operator=(Style const& src);
78 
82  virtual ~Style();
83 
88 
93 
98 
103 
108 
113 
117  ofColor frame_color_on;
118 
123 
127  ofColor font_color_off;
128 
133 
137  ofColor font_color_on;
138 
143 
148 
153 
158 
163 
168 
172 };
173 }
174 
175 #endif
static const Style FramedRed
Definition: ofxOuiStyle.hpp:169
virtual ~Style()
Destructor.
Definition: ofxOuiStyle.cpp:379
ofColor frame_color_disabled
frame color (disabled)
Definition: ofxOuiStyle.hpp:152
Style & operator=(Style const &src)
Assignment operator.
Definition: ofxOuiStyle.cpp:329
ofColor frame_color_on_hover
frame color (active = on + mouse hover)
Definition: ofxOuiStyle.hpp:122
ofColor background_color_off
background color (active = off)
Definition: ofxOuiStyle.hpp:87
Style structure shared among all components.
Definition: ofxOuiStyle.hpp:31
static const Style PlainBlue
Definition: ofxOuiStyle.hpp:169
int roundness
roundness of rectangle corners
Definition: ofxOuiStyle.hpp:167
static const Style Default
Definition: ofxOuiStyle.hpp:169
ofColor font_color_off
font color (active = off)
Definition: ofxOuiStyle.hpp:127
ofColor background_color_on_hover
background color (active = on + mouse hover)
Definition: ofxOuiStyle.hpp:102
static const Style FramedBlue
Definition: ofxOuiStyle.hpp:169
ofColor frame_color_off_hover
frame color (active = off + mouse hover)
Definition: ofxOuiStyle.hpp:112
static const Style PlainRed
Definition: ofxOuiStyle.hpp:169
static const Style FramedDarkblue
Definition: ofxOuiStyle.hpp:169
static const Style FramedGray
Definition: ofxOuiStyle.hpp:169
static const Style FramedYellow
Definition: ofxOuiStyle.hpp:169
int frame_width
frame width (px)
Definition: ofxOuiStyle.hpp:162
ofColor background_color_off_hover
background color (active = off + mouse hover)
Definition: ofxOuiStyle.hpp:92
ofColor font_color_on_hover
font color (active = on + mouse hover)
Definition: ofxOuiStyle.hpp:142
ofColor frame_color_off
frame color (active = off)
Definition: ofxOuiStyle.hpp:107
static const Style FramedDefault
Definition: ofxOuiStyle.hpp:169
static const Style Label
Definition: ofxOuiStyle.hpp:169
ofColor font_color_disabled
font color (disabled)
Definition: ofxOuiStyle.hpp:157
static const Style PlainGreen
Definition: ofxOuiStyle.hpp:169
Definition: ofxOuiColormap.hpp:25
Style()
Default Constructor.
Definition: ofxOuiStyle.cpp:308
static const Style PlainDarkblue
Definition: ofxOuiStyle.hpp:169
static const Style PlainYellow
Definition: ofxOuiStyle.hpp:169
static const Style PlainGray
Definition: ofxOuiStyle.hpp:169
ofColor background_color_disabled
background color (disabled)
Definition: ofxOuiStyle.hpp:147
ofColor frame_color_on
frame color (active = on)
Definition: ofxOuiStyle.hpp:117
static const Style FramedGreen
Definition: ofxOuiStyle.hpp:169
ofColor font_color_on
font color (active = on)
Definition: ofxOuiStyle.hpp:137
ofColor background_color_on
background color (active = on)
Definition: ofxOuiStyle.hpp:97
ofColor font_color_off_hover
font color (active = off + mouse hover)
Definition: ofxOuiStyle.hpp:132