TextStyle - component describing the parameters of the text. More...
Public Types | |
enum | Anchor { Top = 0x010, Center = 0x000, Bottom = 0x020, Left = 0x100, Right = 0x001, Left_Top = 0x110, Left_Center = 0x100, Left_Bottom = 0x120, Right_Top = 0x011, Right_Center = 0x001, Right_Bottom = 0x021 } |
Public Member Functions | |
_FORCEINLINE int | getAnchor () |
Returns the orientation of the text. | |
_FORCEINLINE float | getCharSize () |
Returns the scale of the image characters. | |
_FORCEINLINE Font * | getFont () |
_FORCEINLINE float | getKerning () |
Returns the scale of the character spacing. | |
_FORCEINLINE Material * | getMatrial () |
Returns an object of material. | |
CSAD_API void * | set (unsigned _int32, void *) |
used for any interface commands. | |
CSAD_API TextStyle & | setAnchor (char *name) |
Specifies the orientation of the text by name. | |
CSAD_API TextStyle & | setAnchor (int val) |
Specifies the orientation of the text. | |
CSAD_API TextStyle & | setCharSize (float val) |
Specifies the scale of the image characters. | |
CSAD_API TextStyle & | setFont (char *path) |
Sets the font for the server name and font. | |
_FORCEINLINE TextStyle & | setFont (const char *path) |
Sets the font for the server name and font. | |
CSAD_API TextStyle & | setFont (Font *font) |
Specifies the font object. | |
CSAD_API TextStyle & | setKerning (float val) |
Specifies the scale of the distance between characters. | |
CSAD_API TextStyle & | setMaterial (char *name) |
Specifies the material by name. | |
CSAD_API TextStyle & | setMaterial (Material *mat) |
Sets the object's material. | |
Public Member Functions inherited from csad::Component | |
template<typename T > | |
_FORCEINLINE T * | addComponent () |
Add component of the specified type in the container if this component already exists, returns available. | |
template<typename T > | |
_FORCEINLINE T * | getComponent () |
Returns the component of the given type, if it is not in a container returns 0. | |
_FORCEINLINE ContainerComponents * | getContainer () |
Returns the container in which the component. | |
template<typename T > | |
_FORCEINLINE T * | getContainer () |
Returns the container in which the component, if the container does not match the given type 0 is returned. | |
virtual CSAD_API void | quit () |
The event is called before the program exits. | |
virtual CSAD_API void | start () |
This event is fired after the program start. | |
virtual CSAD_API void | update () |
This event is fired before rendering environment container component. | |
Public Member Functions inherited from csad::BaseObject | |
_FORCEINLINE bool | isContainer () |
returns true if the object is a container. | |
_FORCEINLINE ParametersList * | read (ParametersList *data) |
read attributes object. | |
_FORCEINLINE void * | type () |
the output pointer to the typeid() of the class. | |
_FORCEINLINE void | write (ParametersList *data) |
record attributes of the object. | |
Additional Inherited Members | |
Static Public Member Functions inherited from csad::Component | |
static CSAD_API int | regClass (const char *name, const void *info, tfSTDCALL_p_FUNC_p fun) |
TextStyle - component describing the parameters of the text.
For description in the configuration:
<Style name="the name of the style"> <TextStyle font="server/font" material="textMaterial" charsize="0.0005" kerning="1.0" /> </Style>