|
| virtual void | render (CCamera *camera) |
|
void | setTextAlign (EGUIHorizontalAlign h, EGUIVerticalAlign v) |
|
void | setFormatText (const char *formatText) |
|
void | setColorFormat (int id, const SColor &c) |
|
void | setText (const char *text) |
|
void | setTextStrim (const char *text) |
|
void | setText (const wchar_t *text) |
|
void | setTextStrim (const wchar_t *text) |
|
void | setTextId (const char *textId) |
|
void | setTextId (const wchar_t *textId) |
|
int | getStringWidth (const char *text) |
|
int | getStringWidth (const wchar_t *text) |
|
int | getCharWidth (wchar_t c) |
|
const char * | getText () |
|
const char * | getDefaultText () |
|
void | setDefaultText (const char *text) |
|
void | setDefaultText (const wchar_t *text) |
|
const wchar_t * | getTextW () |
|
const char * | getTextId () |
|
const wchar_t * | getTextwId () |
|
int | getTextLength () |
|
bool | isStrim () |
|
void | setEnableTextFormnat (bool b) |
|
bool | isEnableTextFormat () |
|
void | setPassword (bool b) |
|
bool | isPassword () |
|
void | setCharPadding (int charPadding) |
|
void | setLinePadding (int linePadding) |
|
void | setMultiLine (bool b) |
|
void | setCenterRotate (bool b) |
|
void | setFontSource (const char *fontSource) |
|
void | setFontSource (CFontSource *fontData) |
|
void | setCustomFont (IFont *font) |
|
IFont * | getCustomFont () |
|
CFontSource * | getFontData () |
|
const std::string & | getFontSource () |
|
const std::string & | getFontId () |
| virtual CObjectSerializable * | createSerializable () |
| virtual void | loadSerializable (CObjectSerializable *object) |
|
void | getClosestCharacter (float posX, float posY, int &line, int &character) |
|
void | showCaret (bool b) |
|
void | setCaret (int line, int character) |
|
void | setCaret (int charPos) |
|
void | getCaretPosition (int &line, int &character) |
|
int | getNumLine () |
|
int | getNumCharacter (int line) |
|
bool | getWordAtPosition (int line, int charPosition, int &from, int &to) |
|
bool | isCharacter (wchar_t c) |
|
void | doBackspace () |
|
void | doDelete () |
|
void | insert (wchar_t c) |
|
void | remove () |
|
void | removeAllChilds () |
|
CCanvas * | getCanvas () |
|
CGUIElement * | getParent () |
|
void | setName (const char *name) |
|
const char * | getName () |
|
const char * | getID () |
|
void | setTagInt (int i) |
|
void | setTagString (const char *s) |
|
int | getTagInt () |
|
const std::string & | getTagString () |
|
void | setName (const wchar_t *name) |
|
std::wstring | getNameW () |
|
void | setParent (CGUIElement *parent) |
|
std::vector< CGUIElement * > & | getChilds () |
|
void | getAllChilds (std::vector< CGUIElement * > &childs) |
|
void | setColor (const SColor &c) |
|
const SColor & | getColor () |
|
float | getHeight () |
|
float | getWidth () |
|
void | setHeight (float h) |
|
void | setWidth (float w) |
|
const core::rectf & | getRect () |
| virtual const core::rectf | getNativeRect () |
|
int | getDepth () |
|
int | getRenderOrder () |
|
void | setDock (EGUIDock dock) |
|
EGUIDock | getDock () |
|
const SMargin & | getMargin () |
|
void | setMargin (const SMargin &m) |
|
void | setMargin (float l, float t, float r, float b) |
|
void | setRect (const core::rectf &r) |
|
void | setWorldTransform (const core::matrix4 &world) |
|
void | setRelativeTransform (const core::matrix4 &relative) |
|
const core::vector3df | getAlignPosition () |
|
const core::vector3df & | getPosition () |
|
void | invalidate () |
|
void | setPosition (const core::vector3df &v) |
|
const core::vector3df & | getScale () |
|
void | setScale (const core::vector3df &v) |
|
const core::vector3df & | getRotation () |
|
void | setRotation (const core::vector3df &v) |
|
core::quaternion | getRotationQuaternion () |
|
EGUIVerticalAlign | getVerticalAlign () |
|
EGUIHorizontalAlign | getHorizontalAlign () |
|
void | setVerticalAlign (EGUIVerticalAlign a) |
|
void | setHorizontalAlign (EGUIHorizontalAlign a) |
|
void | setAlign (EGUIHorizontalAlign h, EGUIVerticalAlign v) |
|
void | setShaderID (int id) |
|
int | getShaderID () |
|
int | getMaterialId () |
|
void | setMaterialId (int id) |
|
void | setMaterial (CMaterial *material) |
|
void | setMaterialSource (const char *materialFile) |
|
CMaterial * | getMaterial () |
|
CGUIMask * | getMask () |
|
CGUIMask * | getParentMask () |
|
void | setMask (CGUIMask *mask) |
|
void | setDrawBorder (bool b) |
|
bool | isEnableMaterial () |
| virtual void | update (CCamera *camera) |
|
const core::matrix4 & | getRelativeTransform () |
|
const core::matrix4 & | getAbsoluteTransform () |
|
void | setVisible (bool b) |
|
bool | isVisible () |
|
bool | isVisibleInHierarchy () |
|
CEntity * | getEntity () |
|
void | notifyChanged () |
|
CGUIElement * | getChildBefore (CGUIElement *object) |
|
void | bringToNext (CGUIElement *object, CGUIElement *target, bool behind) |
|
void | bringToChild (CGUIElement *object) |
|
bool | isChild (CGUIElement *e) |
|
CGUIElement * | getGUIByPath (const char *path) |
|
void | generateNewId () |
|
|
| CGUIText (CCanvas *canvas, CGUIElement *parent, IFont *font) |
|
| CGUIText (CCanvas *canvas, CGUIElement *parent, const core::rectf &rect, IFont *font) |
|
virtual void | renderText (ArrayModuleOffset &string, ArrayInt &format, int posX, int posY, int line) |
|
void | init () |
|
void | updateCaret () |
|
void | updateSetCaret () |
|
void | updateSplitText () |
|
void | splitText (std::vector< ArrayModuleOffset > &split, std::vector< ArrayInt > &format, std::vector< ArrayInt > &id, int width) |
|
void | getClosestCharacter (float posX, int x, int y, int line, const core::matrix4 &world, int &character) |
|
wchar_t | getDisplayCharacter (wchar_t c) const |
|
void | initFont (IFont *font) |
|
IFont * | getCurrentFont () |
|
| CGUIElement (CCanvas *canvas, CGUIElement *parent) |
|
| CGUIElement (CCanvas *canvas, CGUIElement *parent, const core::rectf &rect) |
|
void | applyCurrentMask (CGUIMask *mask) |
|
CGUIMask * | getCurrentMask () |
|
bool | removeChild (CGUIElement *child) |
This is the object class for displaying a text.
- See also
- CFontSource, CGlyphFont, CSpriteFont
CFontSource* fontSource = CFontManager::getInstance()->loadFontSource(
"SampleGUI/Fonts/Roboto.font");
if (fontSource)
{
fontSource->initFont();
font = fontSource->getFont();
}
core::rectf r(0.0f, 0.0f, 100.0f, 100.0f);
gui->setText("Hello");
This class manages GUI components, including creating and deleting images and sprites.
Definition CCanvas.h:79
CGUIText * createText(IFont *font)
Create a text element with a font as a child of root.
This is the object class that describes .font file information.
Definition CFontSource.h:77
This is the object class for displaying a text.
Definition CGUIText.h:60