20 #ifndef ofxOuiComponent_hpp 21 #define ofxOuiComponent_hpp 44 Component(
float x_ = 0,
float y_ = 0,
float width_ = 0,
float height_ = 0);
67 virtual bool inside(
float x_,
float y_)
const;
TextBox font
textbox for the main label of the component
Definition: ofxOuiComponent.hpp:88
static Component * blocking_component
Definition: ofxOuiComponent.hpp:146
Shape shape
shape of the component
Definition: ofxOuiComponent.hpp:78
virtual void drawIcon()
Definition: ofxOuiComponent.cpp:113
virtual ~Component()
Destructor.
Definition: ofxOuiComponent.cpp:27
float y
y position(top)
Definition: ofxOuiComponent.hpp:103
virtual void drawLabel()
Definition: ofxOuiComponent.cpp:115
virtual void drawFrame()
Definition: ofxOuiComponent.cpp:98
float height
component height
Definition: ofxOuiComponent.hpp:113
Style structure shared among all components.
Definition: ofxOuiStyle.hpp:31
bool hover_
Definition: ofxOuiComponent.hpp:142
float width
component width
Definition: ofxOuiComponent.hpp:108
string labelOff
Label of the component (not active)
Definition: ofxOuiComponent.hpp:123
Shape
Base shape of the UI components.
Definition: ofxOuiCommon.hpp:73
string labelOn
Label of the component (active)
Definition: ofxOuiComponent.hpp:118
bool disabled
specifies if the component should be in "disabled" mode (no interaction)
Definition: ofxOuiComponent.hpp:129
ofColor current_frame_color_
Definition: ofxOuiComponent.hpp:144
virtual void drawBackground()
Definition: ofxOuiComponent.cpp:83
static const Style Default
Definition: ofxOuiStyle.hpp:169
Base UI Component (equivalent to a label)
Definition: ofxOuiComponent.hpp:33
Style style
style of the component
Definition: ofxOuiComponent.hpp:83
Type type_
Definition: ofxOuiComponent.hpp:141
Component(float x_=0, float y_=0, float width_=0, float height_=0)
Constructor.
Definition: ofxOuiComponent.cpp:24
float x
x position (left)
Definition: ofxOuiComponent.hpp:98
Icon icon
icon box of the component
Definition: ofxOuiComponent.hpp:93
Type
Type of UI Component.
Definition: ofxOuiCommon.hpp:38
virtual void update()
OF-like update function.
Definition: ofxOuiComponent.cpp:29
ofColor current_background_color_
Definition: ofxOuiComponent.hpp:143
Text box font wrapper.
Definition: ofxOuiTextBox.hpp:31
Definition: ofxOuiColormap.hpp:25
Icon image box wrapper.
Definition: ofxOuiIcon.hpp:31
Group of UI components.
Definition: ofxOuiGroup.hpp:31
Type type() const
get the type of the component
Definition: ofxOuiComponent.hpp:73
virtual void draw()
OF-like draw function.
Definition: ofxOuiComponent.cpp:76
virtual bool inside(float x_, float y_) const
checks if a point is inside the component (depending on the shape)
Definition: ofxOuiComponent.cpp:117
bool active
specifies if the component is active
Definition: ofxOuiComponent.hpp:134