TAlgStyle Class Reference

class TAlgStyle

An algorithmic style for how a font is drawn.

Holds attributes such as whether the font is bold or italic, and the width and height factors. This is used as an input parameter for the GetFontById() method of some font management classes. See CWsScreenDevice::GetFontById() for more information. CWsScreenDevice::GetFontById() CFbsTypefaceStore::GetFontById() CFbsDevice::GetFontById()

Public Member Functions
TAlgStyle ()
IMPORT_C TInt HeightFactor ()
IMPORT_C TBool IsBold ()
IMPORT_C TBool IsItalic ()
IMPORT_C TBool IsMono ()
IMPORT_C void SetHeightFactor ( TInt )
IMPORT_C void SetIsBold ( TBool )
IMPORT_C void SetIsItalic ( TBool )
IMPORT_C void SetIsMono ( TBool )
IMPORT_C void SetWidthFactor ( TInt )
IMPORT_C TInt WidthFactor ()
TBool operator!= (const TAlgStyle &)
IMPORT_C TBool operator== (const TAlgStyle &)
Private Member Enumerations
enum anonymous { EBold  = 1, EItalic  = 2, EMono  = 4 }
Public Attributes
TInt iBaselineOffsetInPixels
Private Attributes
TInt8 iFlags
TInt8 iHeightFactor
TInt8 iWidthFactor

Constructor & Destructor Documentation

TAlgStyle()

IMPORT_C TAlgStyle ( )

Member Functions Documentation

HeightFactor()

IMPORT_C TInt HeightFactor ( ) const

IsBold()

IMPORT_C TBool IsBold ( ) const

IsItalic()

IMPORT_C TBool IsItalic ( ) const

IsMono()

IMPORT_C TBool IsMono ( ) const

SetHeightFactor(TInt)

IMPORT_C void SetHeightFactor ( TInt aHeightFactor )

Parameters

TInt aHeightFactor

SetIsBold(TBool)

IMPORT_C void SetIsBold ( TBool aIsBold )

Parameters

TBool aIsBold

SetIsItalic(TBool)

IMPORT_C void SetIsItalic ( TBool aIsItalic )

Parameters

TBool aIsItalic

SetIsMono(TBool)

IMPORT_C void SetIsMono ( TBool aIsMono )

Parameters

TBool aIsMono

SetWidthFactor(TInt)

IMPORT_C void SetWidthFactor ( TInt aWidthFactor )

Parameters

TInt aWidthFactor

WidthFactor()

IMPORT_C TInt WidthFactor ( ) const

operator!=(const TAlgStyle &)

TBool operator!= ( const TAlgStyle & aAlgStyle ) const

Parameters

const TAlgStyle & aAlgStyle

operator==(const TAlgStyle &)

IMPORT_C TBool operator== ( const TAlgStyle & aAlgStyle ) const

Parameters

const TAlgStyle & aAlgStyle

Member Enumerations Documentation

Enum anonymous

Enumerators

EBold = 1
EItalic = 2
EMono = 4

Member Data Documentation

TInt iBaselineOffsetInPixels

TInt iBaselineOffsetInPixels

Baseline offset in pixels.

TInt8 iFlags

TInt8 iFlags [private]

This member is private and not intended for use.

TInt8 iHeightFactor

TInt8 iHeightFactor [private]

This member is private and not intended for use.

TInt8 iWidthFactor

TInt8 iWidthFactor [private]

This member is private and not intended for use.