TTmCharFormat Class Reference

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.

Constructor & Destructor Documentation

TTmCharFormat()

IMPORT_CTTmCharFormat()

TTmCharFormat(const TDesC &, TInt)

IMPORT_CTTmCharFormat(const TDesC &aFontName,
TIntaFontHeight
)

Parameters

const TDesC & aFontName
TInt aFontHeight

TTmCharFormat(const TCharFormat &)

TTmCharFormat(const TCharFormat &aFormat)[inline]

Constructs a TTmCharFormat by converting the information in a TCharFormat.

Parameters

const TCharFormat & aFormat

Member Functions Documentation

GetTCharFormat(TCharFormat &)

IMPORT_C voidGetTCharFormat(TCharFormat &aFormat)const

Parameters

TCharFormat & aFormat

operator!=(const TTmCharFormat &)

TBool operator!=(const TTmCharFormat &aFormat)const [inline]

The inequality operator. Return TRUE if this object and aFormat differ in any way.

Parameters

const TTmCharFormat & aFormat

operator=(const TCharFormat &)

IMPORT_C voidoperator=(const TCharFormat &aFormat)

Parameters

const TCharFormat & aFormat

operator==(const TTmCharFormat &)

IMPORT_C TBooloperator==(const TTmCharFormat &aFormat)const

Parameters

const TTmCharFormat & aFormat

Member Enumerations Documentation

Enum anonymous

Bit assignments for effects

Enumerators

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.

Enum TPictureAlignment

Picture alignment

Enumerators

EPictureAlignBaseline
EPictureAlignTop
EPictureAlignBottom
EPictureAlignCenter

Member Data Documentation

TLogicalRgb iBackgroundColor

TLogicalRgb iBackgroundColor

TUint iEffects

TUint iEffects

TOpenFontSpec iFontSpec

TOpenFontSpec iFontSpec

TUint iLanguage

TUint iLanguage

TPictureAlignment iPictureAlignment

TPictureAlignment iPictureAlignment

TUint iTag

TUint iTag

TLogicalRgb iTextColor

TLogicalRgb iTextColor