ofxOui - UI Components for OpenFrameworks

ofxOuiCheckBox.hpp
Go to the documentation of this file.
1 /*
2  * ofxOuiCheckBox.hpp
3  *
4  * Checkbox component (well... a button with an icon)
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 ofxOuiCheckBox_hpp
21 #define ofxOuiCheckBox_hpp
22 
23 #include "ofxOuiButton.hpp"
24 
25 namespace ofxOui {
26 
31 class CheckBox : public Button {
32  public:
40  CheckBox(int x_ = 0, int y_ = 0, int width_ = 0, int height_ = 0);
41 
45  virtual ~CheckBox();
46 
47  protected:
48  virtual void drawIcon();
49 };
50 }
51 
52 #endif
CheckBox(int x_=0, int y_=0, int width_=0, int height_=0)
Constructor.
Definition: ofxOuiCheckBox.cpp:22
Button component (allows both button and toggle modes)
Definition: ofxOuiButton.hpp:31
virtual ~CheckBox()
Destructor.
Definition: ofxOuiCheckBox.cpp:30
virtual void drawIcon()
Definition: ofxOuiCheckBox.cpp:32
Definition: ofxOuiColormap.hpp:25
Check box component (specialization of button)
Definition: ofxOuiCheckBox.hpp:31