#include <TdkTextStyleBlock.h>
Inheritance diagram for TdkTextStyleBlock:
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 |
TdkTextStyleBlock::TdkTextStyleBlock | ( | ) |
TdkTextStyleBlock::~TdkTextStyleBlock | ( | ) | [virtual] |
TdkTextStyleBlock::TdkTextStyleBlock | ( | ) |
virtual TdkTextStyleBlock::~TdkTextStyleBlock | ( | ) | [virtual] |
bool TdkTextStyleBlock::autoDraw | ( | ) | [virtual] |
void TdkTextStyleBlock::draw | ( | TdkCanvas * | canvas, | |
TeText & | text, | |||
TeColor & | externColor, | |||
double | externWidthFactor | |||
) | [virtual] |
Draw Text.
Draw text with tdk canvas
canvas | Tdk Canvas | |
text | text to draw | |
externColor | extern color |
Implements TdkTextStyle.
void TdkTextStyleBlock::drawSample | ( | TdkCanvas * | canvas, | |
int | x, | |||
int | y, | |||
TeColor & | externColor | |||
) | [virtual] |
void TdkTextStyleBlock::setColor | ( | TeColor & | color | ) | [virtual] |
void TdkTextStyleBlock::shadowColor | ( | TeColor & | color | ) | [virtual] |
Set the shadow color.
color | The shadow color value (rgb) |
TeColor & TdkTextStyleBlock::shadowColor | ( | ) | [virtual] |
It returns the shadow color.
void TdkTextStyleBlock::shadowDepth | ( | unsigned int | value | ) | [virtual] |
Set the shadow depth value.
value | shadow depth value |
unsigned int TdkTextStyleBlock::shadowDepth | ( | ) | [virtual] |
It returns the shadow depth value.
bool TdkTextStyleBlock::toBlob | ( | TdkBlob * | blob | ) | [virtual] |
To Blob.
Transform TdkTextStyleBlock class to binary format
blob | binary item |
Reimplemented from TdkTextStyle.
bool TdkTextStyleBlock::load | ( | TdkBlob * | blob, | |
TdkStyleVersion | version = TeCurrentStyleVer | |||
) | [virtual] |
Load.
Transform a binary item to TdkTextStyleBlock
blob | binary item |
version | Tdk Version |
Reimplemented from TdkTextStyle.
int TdkTextStyleBlock::getBlobSize | ( | ) | [virtual] |
Blob Size.
It calculate the size to transform a TdkTextStyleBlock in binary item
Reimplemented from TdkTextStyle.
virtual bool TdkTextStyleBlock::autoDraw | ( | ) | [virtual] |
virtual void TdkTextStyleBlock::setColor | ( | TeColor & | color | ) | [virtual] |
virtual void TdkTextStyleBlock::shadowColor | ( | TeColor & | color | ) | [virtual] |
Set the shadow color.
color | The shadow color value (rgb) |
virtual TeColor& TdkTextStyleBlock::shadowColor | ( | ) | [virtual] |
It returns the shadow color.
virtual void TdkTextStyleBlock::shadowDepth | ( | unsigned int | value | ) | [virtual] |
Set the shadow depth value.
value | shadow depth value |
virtual unsigned int TdkTextStyleBlock::shadowDepth | ( | ) | [virtual] |
It returns the shadow depth value.
virtual bool TdkTextStyleBlock::toBlob | ( | TdkBlob * | blob | ) | [virtual] |
To Blob.
Transform TdkTextStyleBlock class to binary format
blob | binary item |
Reimplemented from TdkTextStyle.
virtual bool TdkTextStyleBlock::load | ( | TdkBlob * | blob, | |
TdkStyleVersion | version = TeCurrentStyleVer | |||
) | [virtual] |
Load.
Transform a binary item to TdkTextStyleBlock
blob | binary item |
version | Tdk Version |
Reimplemented from TdkTextStyle.
virtual int TdkTextStyleBlock::getBlobSize | ( | ) | [virtual] |
Blob Size.
It calculate the size to transform a TdkTextStyleBlock in binary item
Reimplemented from TdkTextStyle.
unsigned int TdkTextStyleBlock::_shadowDepth [protected] |
depth value of shadow
TeColor TdkTextStyleBlock::_shadowColor [protected] |
color value of shadow