#include <Text.h>
Enumerator |
---|
LEFT |
|
CENTER |
|
RIGHT |
|
cinder::TextBox::TextBox |
( |
| ) |
|
TextBox& cinder::TextBox::size |
( |
ivec2 |
sz | ) |
|
TextBox& cinder::TextBox::size |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
ivec2 cinder::TextBox::getSize |
( |
| ) |
const |
void cinder::TextBox::setSize |
( |
ivec2 |
sz | ) |
|
TextBox& cinder::TextBox::text |
( |
const std::string & |
t | ) |
|
const std::string& cinder::TextBox::getText |
( |
| ) |
const |
void cinder::TextBox::setText |
( |
const std::string & |
t | ) |
|
void cinder::TextBox::appendText |
( |
const std::string & |
t | ) |
|
const Font& cinder::TextBox::getFont |
( |
| ) |
const |
void cinder::TextBox::setFont |
( |
const Font & |
f | ) |
|
Alignment cinder::TextBox::getAlignment |
( |
| ) |
const |
void cinder::TextBox::setAlignment |
( |
Alignment |
align | ) |
|
ColorA cinder::TextBox::getColor |
( |
| ) |
const |
void cinder::TextBox::setColor |
( |
ColorA |
color | ) |
|
ColorA cinder::TextBox::getBackgroundColor |
( |
| ) |
const |
void cinder::TextBox::setBackgroundColor |
( |
ColorA |
bgColor | ) |
|
TextBox& cinder::TextBox::premultiplied |
( |
bool |
premult = true | ) |
|
bool cinder::TextBox::getPremultiplied |
( |
| ) |
const |
void cinder::TextBox::setPremultiplied |
( |
bool |
premult | ) |
|
TextBox& cinder::TextBox::ligate |
( |
bool |
ligateText = true | ) |
|
bool cinder::TextBox::getLigate |
( |
| ) |
const |
void cinder::TextBox::setLigate |
( |
bool |
ligateText | ) |
|
vec2 cinder::TextBox::measure |
( |
| ) |
const |
vector< pair< uint16_t, vec2 > > cinder::TextBox::measureGlyphs |
( |
| ) |
const |
Returns a vector of pairs of glyph indices and the position of their left baselines
- Warning
- Does not support word wrapping on Windows.
Surface cinder::TextBox::render |
( |
vec2 |
offset = vec2() | ) |
|
void cinder::TextBox::createLines |
( |
| ) |
const |
|
protected |
ivec2 cinder::TextBox::mSize |
|
protected |
std::string cinder::TextBox::mText |
|
protected |
Font cinder::TextBox::mFont |
|
protected |
ColorA cinder::TextBox::mColor |
|
protected |
ColorA cinder::TextBox::mBackgroundColor |
|
protected |
bool cinder::TextBox::mPremultiplied |
|
protected |
bool cinder::TextBox::mLigate |
|
protected |
bool cinder::TextBox::mInvalid |
|
mutableprotected |
vec2 cinder::TextBox::mCalculatedSize |
|
mutableprotected |
std::vector<std::pair<std::shared_ptr<const __CTLine>,vec2> > cinder::TextBox::mLines |
|
mutableprotected |
The documentation for this class was generated from the following files: