20 #ifndef ofxOuiIcon_hpp 21 #define ofxOuiIcon_hpp 57 virtual void load(
string filename);
virtual void draw()
OF-like draw function: draws the icon.
Definition: ofxOuiIcon.cpp:67
Anchor alignment
Alignment.
Definition: ofxOuiIcon.hpp:87
int width
width (of the containing box)
Definition: ofxOuiIcon.hpp:72
virtual void load(string filename)
load the image file
Definition: ofxOuiIcon.cpp:73
int padding
padding (within the containing box)
Definition: ofxOuiIcon.hpp:82
ofImage icon_
Definition: ofxOuiIcon.hpp:100
Icon()
Default Constructor.
Definition: ofxOuiIcon.cpp:22
ofColor color
Color (in case of a binary icon)
Definition: ofxOuiIcon.hpp:92
int height
height (of the containing box)
Definition: ofxOuiIcon.hpp:77
int y
y position (of the containing box)
Definition: ofxOuiIcon.hpp:67
int x
x position (of the containing box)
Definition: ofxOuiIcon.hpp:62
virtual void update()
OF-like update function: updates the position of the icon.
Definition: ofxOuiIcon.cpp:26
Definition: ofxOuiColormap.hpp:25
Icon image box wrapper.
Definition: ofxOuiIcon.hpp:31
ofRectangle rect
Actual rectangle where the icon is drawn.
Definition: ofxOuiIcon.hpp:97
Anchor
Generic Anchor specifier for Text/Image alignment.
Definition: ofxOuiCommon.hpp:57
virtual ~Icon()
Destructor.
Definition: ofxOuiIcon.cpp:24