TdkTextStyleBlock Class Reference
[The Core Module]

#include <TdkTextStyleBlock.h>

Inheritance diagram for TdkTextStyleBlock:

TdkTextStyle TdkTextStyle TdkStyle TdkStyle TdkStyle TdkStyle List of all members.

Public Member Functions

 TdkTextStyleBlock ()
virtual ~TdkTextStyleBlock ()
virtual bool autoDraw ()
 Auto Draw the text.
virtual void draw (TdkCanvas *canvas, TeText &text, TeColor &externColor, double externWidthFactor)
 Draw Text.
virtual void drawSample (TdkCanvas *canvas, int x, int y, TeColor &externColor)
 Draw Sample Text.
virtual void setColor (TeColor &color)
 Not Used.
virtual void shadowColor (TeColor &color)
 Set the shadow color.
virtual TeColor & shadowColor ()
 It returns the shadow color.
virtual void shadowDepth (unsigned int value)
 Set the shadow depth value.
virtual unsigned int shadowDepth ()
 It returns the shadow depth value.
virtual bool toBlob (TdkBlob *blob)
 To Blob.
virtual bool load (TdkBlob *blob, TdkStyleVersion version=TeCurrentStyleVer)
 Load.
virtual int getBlobSize ()
 Blob Size.
 TdkTextStyleBlock ()
virtual ~TdkTextStyleBlock ()
virtual bool autoDraw ()
 Auto Draw the text.
virtual void setColor (TeColor &color)
 Not Used.
virtual void shadowColor (TeColor &color)
 Set the shadow color.
virtual TeColor & shadowColor ()
 It returns the shadow color.
virtual void shadowDepth (unsigned int value)
 Set the shadow depth value.
virtual unsigned int shadowDepth ()
 It returns the shadow depth value.
virtual bool toBlob (TdkBlob *blob)
 To Blob.
virtual bool load (TdkBlob *blob, TdkStyleVersion version=TeCurrentStyleVer)
 Load.
virtual int getBlobSize ()
 Blob Size.

Protected Attributes

unsigned int _shadowDepth
 depth value of shadow
TeColor _shadowColor
 color value of shadow

Detailed Description

TdkTextStyleBlock class.


Constructor & Destructor Documentation

TdkTextStyleBlock::TdkTextStyleBlock (  ) 

TdkTextStyleBlock::~TdkTextStyleBlock (  )  [virtual]

TdkTextStyleBlock::TdkTextStyleBlock (  ) 

virtual TdkTextStyleBlock::~TdkTextStyleBlock (  )  [virtual]


Member Function Documentation

bool TdkTextStyleBlock::autoDraw (  )  [virtual]

Auto Draw the text.

Implements TdkTextStyle.

void TdkTextStyleBlock::draw ( TdkCanvas canvas,
TeText &  text,
TeColor &  externColor,
double  externWidthFactor 
) [virtual]

Draw Text.

Draw text with tdk canvas

Parameters:
canvas Tdk Canvas
text text to draw
externColor extern color

Implements TdkTextStyle.

void TdkTextStyleBlock::drawSample ( TdkCanvas canvas,
int  x,
int  y,
TeColor &  externColor 
) [virtual]

Draw Sample Text.

Draw Sample Text in Dialog text

Implements TdkTextStyle.

void TdkTextStyleBlock::setColor ( TeColor &  color  )  [virtual]

Not Used.

Implements TdkStyle.

void TdkTextStyleBlock::shadowColor ( TeColor &  color  )  [virtual]

Set the shadow color.

Parameters:
color The shadow color value (rgb)

TeColor & TdkTextStyleBlock::shadowColor (  )  [virtual]

It returns the shadow color.

Returns:
shadow color value

void TdkTextStyleBlock::shadowDepth ( unsigned int  value  )  [virtual]

Set the shadow depth value.

Parameters:
value shadow depth value

unsigned int TdkTextStyleBlock::shadowDepth (  )  [virtual]

It returns the shadow depth value.

Returns:
shadow depth value

bool TdkTextStyleBlock::toBlob ( TdkBlob blob  )  [virtual]

To Blob.

Transform TdkTextStyleBlock class to binary format

Return values:
blob binary item
Returns:
returns true case sucess

Reimplemented from TdkTextStyle.

bool TdkTextStyleBlock::load ( TdkBlob blob,
TdkStyleVersion  version = TeCurrentStyleVer 
) [virtual]

Load.

Transform a binary item to TdkTextStyleBlock

Return values:
blob binary item
Parameters:
version Tdk Version
Returns:
returns true case sucess

Reimplemented from TdkTextStyle.

int TdkTextStyleBlock::getBlobSize (  )  [virtual]

Blob Size.

It calculate the size to transform a TdkTextStyleBlock in binary item

Returns:
binary size

Reimplemented from TdkTextStyle.

virtual bool TdkTextStyleBlock::autoDraw (  )  [virtual]

Auto Draw the text.

Implements TdkTextStyle.

virtual void TdkTextStyleBlock::setColor ( TeColor &  color  )  [virtual]

Not Used.

Draw Sample Text in Dialog text

Implements TdkStyle.

virtual void TdkTextStyleBlock::shadowColor ( TeColor &  color  )  [virtual]

Set the shadow color.

Parameters:
color The shadow color value (rgb)

virtual TeColor& TdkTextStyleBlock::shadowColor (  )  [virtual]

It returns the shadow color.

Returns:
shadow color value

virtual void TdkTextStyleBlock::shadowDepth ( unsigned int  value  )  [virtual]

Set the shadow depth value.

Parameters:
value shadow depth value

virtual unsigned int TdkTextStyleBlock::shadowDepth (  )  [virtual]

It returns the shadow depth value.

Returns:
shadow depth value

virtual bool TdkTextStyleBlock::toBlob ( TdkBlob blob  )  [virtual]

To Blob.

Transform TdkTextStyleBlock class to binary format

Return values:
blob binary item
Returns:
returns true case sucess

Reimplemented from TdkTextStyle.

virtual bool TdkTextStyleBlock::load ( TdkBlob blob,
TdkStyleVersion  version = TeCurrentStyleVer 
) [virtual]

Load.

Transform a binary item to TdkTextStyleBlock

Return values:
blob binary item
Parameters:
version Tdk Version
Returns:
returns true case sucess

Reimplemented from TdkTextStyle.

virtual int TdkTextStyleBlock::getBlobSize (  )  [virtual]

Blob Size.

It calculate the size to transform a TdkTextStyleBlock in binary item

Returns:
binary size

Reimplemented from TdkTextStyle.


Member Data Documentation

unsigned int TdkTextStyleBlock::_shadowDepth [protected]

depth value of shadow

TeColor TdkTextStyleBlock::_shadowColor [protected]

color value of shadow


The documentation for this class was generated from the following files:
Generated on Fri Jun 15 16:54:56 2007 for TDK by  doxygen 1.5.2