class 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.
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 &) |
Public Member Enumerations | |
---|---|
enum | anonymous { EBackground = 1, ERounded = 2, EUnderline = 4, EStrikethrough = 8, EShadow = 16, EUserDefinedMask = 0xFF000000, EUserDefinedShift = 24, ENoMatchesIndicator = 0x4000000, ECustomDrawEffectIsExternallyDefined = 0x80000000 } |
enum | TPictureAlignment { EPictureAlignBaseline, EPictureAlignTop, EPictureAlignBottom, EPictureAlignCenter } |
Public Attributes | |
---|---|
TLogicalRgb | iBackgroundColor |
TUint | iEffects |
TOpenFontSpec | iFontSpec |
TUint | iLanguage |
TPictureAlignment | iPictureAlignment |
TUint | iTag |
TLogicalRgb | iTextColor |
TTmCharFormat | ( | const TCharFormat & | aFormat | ) | [inline] |
Constructs a TTmCharFormat by converting the information in a TCharFormat.
const TCharFormat & aFormat |
IMPORT_C void | GetTCharFormat | ( | TCharFormat & | aFormat | ) | const |
TCharFormat & aFormat |
TBool | operator!= | ( | const TTmCharFormat & | aFormat | ) | const [inline] |
The inequality operator. Return TRUE if this object and aFormat differ in any way.
const TTmCharFormat & aFormat |
IMPORT_C void | operator= | ( | const TCharFormat & | aFormat | ) |
const TCharFormat & aFormat |
IMPORT_C TBool | operator== | ( | const TTmCharFormat & | aFormat | ) | const |
const TTmCharFormat & aFormat |
Bit assignments for effects
EBackground = 1 | |
ERounded = 2 | |
EUnderline = 4 | |
EStrikethrough = 8 | |
EShadow = 16 | |
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
EPictureAlignBaseline | |
EPictureAlignTop | |
EPictureAlignBottom | |
EPictureAlignCenter |