Text box font wrapper.
More...
#include <ofxOuiTextBox.hpp>
§ TextBox()
ofxOui::TextBox::TextBox |
( |
| ) |
|
§ ~TextBox()
ofxOui::TextBox::~TextBox |
( |
| ) |
|
|
virtual |
§ adjustFont_()
void ofxOui::TextBox::adjustFont_ |
( |
| ) |
|
|
protectedvirtual |
§ draw()
void ofxOui::TextBox::draw |
( |
| ) |
|
|
virtual |
OF-like draw function: draws the text box.
§ getCharacterIndex()
int ofxOui::TextBox::getCharacterIndex |
( |
int |
x_, |
|
|
int |
y_ |
|
) |
| const |
|
virtual |
get the index of the character at a given mouse position
- Parameters
-
x_ | x mouse position |
y_ | y mouse position |
- Returns
- character index
§ getCursorIndex()
int ofxOui::TextBox::getCursorIndex |
( |
int |
x_, |
|
|
int |
y_ |
|
) |
| const |
|
virtual |
get the index of the cursor (inter-character) at a given mouse position
- Parameters
-
x_ | x mouse position |
y_ | y mouse position |
- Returns
- character index
§ getFontPath()
string ofxOui::TextBox::getFontPath |
( |
| ) |
const |
|
virtual |
get the path to the font path
- Returns
- the path to the font path
§ getFontSize()
float ofxOui::TextBox::getFontSize |
( |
| ) |
const |
|
virtual |
get the font size
- Returns
- the font size
§ getLetterSpacing()
float ofxOui::TextBox::getLetterSpacing |
( |
| ) |
const |
|
virtual |
get the letter spacing
- Returns
- the letter spacing
§ getLineHeight()
float ofxOui::TextBox::getLineHeight |
( |
| ) |
const |
|
virtual |
get the line height
- Returns
- the line height
§ setFontPath()
void ofxOui::TextBox::setFontPath |
( |
string |
path | ) |
|
|
virtual |
set the path to the font path
- Parameters
-
path | the path to the font path |
§ setFontSize()
void ofxOui::TextBox::setFontSize |
( |
float |
size | ) |
|
|
virtual |
set the font size
- Parameters
-
§ setLetterSpacing()
void ofxOui::TextBox::setLetterSpacing |
( |
float |
letter_spacing | ) |
|
|
virtual |
set the letter spacing
- Parameters
-
letter_spacing | the letter spacing |
§ setLineHeight()
void ofxOui::TextBox::setLineHeight |
( |
float |
line_height | ) |
|
|
virtual |
set the line height
- Parameters
-
line_height | the line height |
§ update()
void ofxOui::TextBox::update |
( |
| ) |
|
|
virtual |
OF-like update function: updates the position of the icon.
§ alignment
§ base_Font_
ofTrueTypeFont* ofxOui::TextBox::base_Font_ |
|
protected |
§ color
ofColor ofxOui::TextBox::color = ofColor::black |
Color (in case of a binary icon)
§ font_path_
string ofxOui::TextBox::font_path_ |
|
protected |
§ font_size_
float ofxOui::TextBox::font_size_ |
|
protected |
§ height
int ofxOui::TextBox::height = 100 |
height (of the containing box)
§ letter_spacing_
float ofxOui::TextBox::letter_spacing_ = 1. |
|
protected |
§ line_height_
float ofxOui::TextBox::line_height_ |
|
protected |
§ padding
int ofxOui::TextBox::padding = 10 |
padding (within the containing box)
§ rect
ofRectangle ofxOui::TextBox::rect |
Actual rectangle where the text is drawn.
§ text
string ofxOui::TextBox::text = "" |
§ width
int ofxOui::TextBox::width = 100 |
width (of the containing box)
int ofxOui::TextBox::x = 0 |
x position (of the containing box)
int ofxOui::TextBox::y = 0 |
y position (of the containing box)
§ y_diff_
int ofxOui::TextBox::y_diff_ |
|
protected |
The documentation for this class was generated from the following files: