#include <tagma.h>
class TTmCharFormat |
Public Attributes | |
---|---|
TLogicalRgb | iBackgroundColor |
TUint | iEffects |
TOpenFontSpec | iFontSpec |
TUint | iLanguage |
TPictureAlignment | iPictureAlignment |
TUint | iTag |
TLogicalRgb | iTextColor |
Public Member Enumerations | |
---|---|
enum | anonymous { EBackground, ERounded, EUnderline, EStrikethrough, ..., ECustomDrawEffectIsExternallyDefined } |
enum | TPictureAlignment { EPictureAlignBaseline, EPictureAlignTop, EPictureAlignBottom, EPictureAlignCenter } |
Public Member Functions | |
---|---|
TTmCharFormat() | |
TTmCharFormat(const TDesC &, TInt) | |
TTmCharFormat(const TCharFormat &) | |
IMPORT_C void | GetTCharFormat(TCharFormat &) |
TBool | operator!=(const TTmCharFormat &) |
IMPORT_C void | operator=(const TCharFormat &) |
IMPORT_C TBool | operator==(const TTmCharFormat &) |
A character format; all dimensions are in twips. A character format object stores all text style attributes that can differ from any one character to the next. Attributes that affect an entire paragraph only are kept in RTmParFormat objects. The class should only be used internally by FORM component.
TLogicalRgb | iBackgroundColor |
TUint | iEffects |
TOpenFontSpec | iFontSpec |
TUint | iLanguage |
TPictureAlignment | iPictureAlignment |
TUint | iTag |
TLogicalRgb | iTextColor |
Bit assignments for effects
Enumerator | Value | Description |
---|---|---|
EBackground | 1 | Text background is drawn in the background colour. |
ERounded | 2 | Text background (if any) has rounded corners. |
EUnderline | 4 | Text is underlined. |
EStrikethrough | 8 | Text is struck through with a horizontal line. |
EShadow | 16 | Text has a drop shadow. |
EUserDefinedMask | 0xFF000000 |
Bits 24-31 are reserved for styles defined by the custom drawer. |
EUserDefinedShift | 24 |
Shift TCharFormat highlight styles left by this to get the TTmCharFormat effects portion. |
ENoMatchesIndicator | 0x4000000 |
For custom drawers: draw whatever is wanted for "no matches" in the FEP. |
ECustomDrawEffectIsExternallyDefined | 0x80000000 |
Reset if the effect in bits 24-30 is defined defined by Symbian, set if it is defined externally. |
Picture alignment
Enumerator | Value | Description |
---|---|---|
EPictureAlignBaseline | ||
EPictureAlignTop | ||
EPictureAlignBottom | ||
EPictureAlignCenter |
IMPORT_C | TTmCharFormat | ( | ) |
TTmCharFormat | ( | const TCharFormat & | aFormat | ) | [inline] |
Constructs a TTmCharFormat by converting the information in a TCharFormat.
IMPORT_C void | GetTCharFormat | ( | TCharFormat & | aFormat | ) | const |
TBool | operator!= | ( | const TTmCharFormat & | aFormat | ) | const [inline] |
The inequality operator. Return TRUE if this object and aFormat differ in any way.