CSAD
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | List of all members
csad::Font Class Reference

Font - The font object belongs to font server. More...

Inheritance diagram for csad::Font:
csad::BaseObject csad::FontText

Public Types

enum  Style { NONE =0, BOLD = 1, ITALIC = 2, UNDERLINE = 4 }
 font style, can mix More...
 
- Public Types inherited from csad::BaseObject
enum  BASE {
  ANY = 0x00000000, EVENT = 0x00000001, TYPE = 0x00000002, CONTAINER = 0x00000003,
  MANAGER_COUNT = 0x00000004, MANAGER = 0x00000005, WRITE = 0x00000006, READ = 0x00000007,
  SELECT = 0x00000008, RUN = 0x00000009, LIST = 0x0000000A, LIST_COUNT = 0x0000000B,
  NAME = 0x0000000C, CHILD_NAME = 0x0000000D
}
 the basic format of the interface More...
 

Public Member Functions

virtual PLATFORM_API float addOutLine (int x, int y, char simvol, GeometryPath2I *path)
 Supplements geometry glyph of the specified character.
 
PLATFORM_API const char * getName ()
 return font name.
 
virtual PLATFORM_API float height ()
 font height
 
virtual PLATFORM_API void rasterText (void *raster, int x, int y, unsigned int color, int mode, char *text)
 Creates a raster of the text.
 
PLATFORM_API void * set (unsigned _int32 id, void *param)
 used for any interface commands.
 
PLATFORM_API void setBold (bool val)
 Sets the font style bold.
 
PLATFORM_API void setItalic (bool val)
 Sets the font style inclined.
 
PLATFORM_API void setName (char *name)
 Specifies the name of the font, for some platforms, you set the font file name.
 
virtual PLATFORM_API void setSize (int size)
 specifies the font size
 
virtual PLATFORM_API void setStyle (int style)
 Sets the style of the font.
 
PLATFORM_API void setUnderLine (bool val)
 Sets the font style underlined.
 
virtual PLATFORM_API float width (char *text)
 Long labels.
 
- Public Member Functions inherited from csad::BaseObject
_FORCEINLINE bool isContainer ()
 returns true if the object is a container.
 
_FORCEINLINE ParametersListread (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.
 

Detailed Description

Font - The font object belongs to font server.

  <Font name="name" font="font name" size="size font"/>
See Also
FontServer, csad: platform

Member Enumeration Documentation

font style, can mix

Enumerator
NONE 

default

BOLD 

bold style

ITALIC 

italic style

UNDERLINE 

underline style