|
xoreos
0.0.5
|
Element placeable in the current scene. More...
#include <gfxfile.h>
Classes | |
| struct | Bitmap |
| An image. More... | |
| struct | EditText |
| An edit text character, mostly used as static, but sometimes also used as editable text. More... | |
| struct | EditTextLayout |
| Optional layout for edit texts. More... | |
| struct | ExternalImage |
| An external image character, which loads an image resource from the guis texture atlas files. More... | |
| struct | Fill |
| A simple one-color fill. More... | |
| struct | FillStyle |
| A style for filling. More... | |
| struct | Font |
| A Scaleform GFx font, usable for rendering letters in the ui. More... | |
| struct | Glyph |
| A character glyph for a font. More... | |
| struct | Gradient |
| A Gradient. More... | |
| struct | GradientRecord |
| Part of a gradient. More... | |
| struct | KerningCode |
| A kerning code, which determines the adjustment of specific characters to another. More... | |
| struct | LineStyle |
| A style for the border. More... | |
| struct | Shape |
| A shape character, which is a static image shape with bounds. More... | |
| struct | ShapeRecord |
| A record for a shape. More... | |
| struct | Sprite |
| A sprite character, which is basically a container with control statements and other characters. More... | |
Public Types | |
| enum | CharacterType { kSprite, kShape, kEditText, kFont, kExternalImage } |
| The possible element types, used in the scene. More... | |
| enum | TextAlignment { kLeft = 0, kRight = 1, kCenter = 2, kJustify = 3 } |
| The alignment of text. More... | |
Public Member Functions | |
| CharacterType | getType () const |
| Get the type of this character. More... | |
| uint16 | getId () const |
| Get the character id of this character. More... | |
| void | getSprite (Sprite &sprite) const |
| Get the sprite character. More... | |
| void | getShape (Shape &shape) const |
| Get the shape character. More... | |
| void | getFont (Font &font) const |
| Get the font character. More... | |
| void | getEditText (EditText &editText) const |
| Get the edit text character. More... | |
| void | getExternalImage (ExternalImage &externalImage) const |
| Get the external image character. More... | |
Static Public Member Functions | |
| static GFXCharacter | createSprite (uint16 id, Sprite sprite) |
| Create a sprite character. More... | |
| static GFXCharacter | createShape (uint16 id, Shape shape) |
| Create a shape character. More... | |
| static GFXCharacter | createEditText (uint16 id, EditText editText) |
| Create an edit text character. More... | |
| static GFXCharacter | createFont (uint16 id, Font font) |
| Create a font character. More... | |
| static GFXCharacter | createExternalImage (uint16 id, ExternalImage externalImage) |
| Create an external image character. More... | |
Private Member Functions | |
| GFXCharacter (uint16 id, CharacterType type) | |
Private Attributes | |
| boost::variant< Sprite, Shape, EditText, Font, ExternalImage > | _value |
| uint16 | _id |
| CharacterType | _type |
|
private |
Definition at line 115 of file gfxfile.cpp.
|
static |
Create an edit text character.
Definition at line 99 of file gfxfile.cpp.
References _value, and kEditText.
Referenced by Aurora::GFXFile::readDefineEditText().

|
static |
Create an external image character.
Definition at line 107 of file gfxfile.cpp.
References _value, and kExternalImage.
Referenced by Aurora::GFXFile::readGFXDefineExternalImage().

|
static |
Create a font character.
Definition at line 91 of file gfxfile.cpp.
Referenced by Aurora::GFXFile::readDefineFont().

|
static |
Create a shape character.
Definition at line 83 of file gfxfile.cpp.
References _value, and kShape.
Referenced by Aurora::GFXFile::readDefineShape().

|
static |
Create a sprite character.
Definition at line 75 of file gfxfile.cpp.
References _value, and kSprite.
Referenced by Aurora::GFXFile::readDefineSprite().

| void Aurora::GFXCharacter::getEditText | ( | EditText & | editText | ) | const |
Get the edit text character.
Definition at line 147 of file gfxfile.cpp.
| void Aurora::GFXCharacter::getExternalImage | ( | ExternalImage & | externalImage | ) | const |
Get the external image character.
Definition at line 154 of file gfxfile.cpp.
References _type, _value, and kExternalImage.
| void Aurora::GFXCharacter::getFont | ( | Font & | font | ) | const |
Get the font character.
Definition at line 140 of file gfxfile.cpp.
| uint16 Aurora::GFXCharacter::getId | ( | ) | const |
| void Aurora::GFXCharacter::getShape | ( | Shape & | shape | ) | const |
Get the shape character.
Definition at line 133 of file gfxfile.cpp.
| void Aurora::GFXCharacter::getSprite | ( | Sprite & | sprite | ) | const |
Get the sprite character.
Definition at line 126 of file gfxfile.cpp.
| GFXCharacter::CharacterType Aurora::GFXCharacter::getType | ( | ) | const |
|
private |
|
private |
Definition at line 269 of file gfxfile.h.
Referenced by getEditText(), getExternalImage(), getFont(), getShape(), getSprite(), and getType().
|
private |
Definition at line 266 of file gfxfile.h.
Referenced by createEditText(), createExternalImage(), createFont(), createShape(), createSprite(), getEditText(), getExternalImage(), getFont(), getShape(), and getSprite().
1.8.14