20 #ifndef ofxOuiText_hpp 21 #define ofxOuiText_hpp string font_path_
Definition: ofxOuiTextBox.hpp:167
virtual void adjustFont_()
Definition: ofxOuiTextBox.cpp:107
int y_diff_
Definition: ofxOuiTextBox.hpp:171
virtual void setFontSize(float size)
set the font size
Definition: ofxOuiTextBox.cpp:88
virtual float getLineHeight() const
get the line height
Definition: ofxOuiTextBox.cpp:100
virtual float getFontSize() const
get the font size
Definition: ofxOuiTextBox.cpp:86
float font_size_
Definition: ofxOuiTextBox.hpp:168
ofTrueTypeFont * base_Font_
Definition: ofxOuiTextBox.hpp:166
virtual float getLetterSpacing() const
get the letter spacing
Definition: ofxOuiTextBox.cpp:93
Anchor alignment
Alignment.
Definition: ofxOuiTextBox.hpp:151
Text box font wrapper.
Definition: ofxOuiTextBox.hpp:31
string text
label
Definition: ofxOuiTextBox.hpp:121
virtual void setLetterSpacing(float letter_spacing)
set the letter spacing
Definition: ofxOuiTextBox.cpp:95
virtual void update()
OF-like update function: updates the position of the icon.
Definition: ofxOuiTextBox.cpp:33
ofRectangle rect
Actual rectangle where the text is drawn.
Definition: ofxOuiTextBox.hpp:161
int height
height (of the containing box)
Definition: ofxOuiTextBox.hpp:141
virtual ~TextBox()
Destructor.
Definition: ofxOuiTextBox.cpp:31
Definition: ofxOuiColormap.hpp:25
int y
y position (of the containing box)
Definition: ofxOuiTextBox.hpp:131
virtual int getCharacterIndex(int x_, int y_) const
get the index of the character at a given mouse position
Definition: ofxOuiTextBox.cpp:112
TextBox()
Default Constructor.
Definition: ofxOuiTextBox.cpp:24
virtual int getCursorIndex(int x_, int y_) const
get the index of the cursor (inter-character) at a given mouse position
Definition: ofxOuiTextBox.cpp:126
Anchor
Generic Anchor specifier for Text/Image alignment.
Definition: ofxOuiCommon.hpp:57
virtual string getFontPath() const
get the path to the font path
Definition: ofxOuiTextBox.cpp:79
float line_height_
Definition: ofxOuiTextBox.hpp:169
int padding
padding (within the containing box)
Definition: ofxOuiTextBox.hpp:146
virtual void setFontPath(string path)
set the path to the font path
Definition: ofxOuiTextBox.cpp:81
virtual void draw()
OF-like draw function: draws the text box.
Definition: ofxOuiTextBox.cpp:73
virtual void setLineHeight(float line_height)
set the line height
Definition: ofxOuiTextBox.cpp:102
int width
width (of the containing box)
Definition: ofxOuiTextBox.hpp:136
int x
x position (of the containing box)
Definition: ofxOuiTextBox.hpp:126
ofColor color
Color (in case of a binary icon)
Definition: ofxOuiTextBox.hpp:156
float letter_spacing_
Definition: ofxOuiTextBox.hpp:170