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 TIntHeightFactor()
IMPORT_C TBoolIsBold()
IMPORT_C TBoolIsItalic()
IMPORT_C TBoolIsMono()
IMPORT_C voidSetHeightFactor(TInt)
IMPORT_C voidSetIsBold(TBool)
IMPORT_C voidSetIsItalic(TBool)
IMPORT_C voidSetIsMono(TBool)
IMPORT_C voidSetWidthFactor(TInt)
IMPORT_C TIntWidthFactor()
TBool operator!=(const TAlgStyle &)
IMPORT_C TBooloperator==(const TAlgStyle &)
Private Member Enumerations
enumanonymous { EBold = 1, EItalic = 2, EMono = 4 }
Public Attributes
TInt iBaselineOffsetInPixels
Private Attributes
TInt8 iFlags
TInt8 iHeightFactor
TInt8 iWidthFactor

Constructor & Destructor Documentation

TAlgStyle()

IMPORT_CTAlgStyle()

Member Functions Documentation

HeightFactor()

IMPORT_C TIntHeightFactor()const

IsBold()

IMPORT_C TBoolIsBold()const

IsItalic()

IMPORT_C TBoolIsItalic()const

IsMono()

IMPORT_C TBoolIsMono()const

SetHeightFactor(TInt)

IMPORT_C voidSetHeightFactor(TIntaHeightFactor)

Parameters

TInt aHeightFactor

SetIsBold(TBool)

IMPORT_C voidSetIsBold(TBoolaIsBold)

Parameters

TBool aIsBold

SetIsItalic(TBool)

IMPORT_C voidSetIsItalic(TBoolaIsItalic)

Parameters

TBool aIsItalic

SetIsMono(TBool)

IMPORT_C voidSetIsMono(TBoolaIsMono)

Parameters

TBool aIsMono

SetWidthFactor(TInt)

IMPORT_C voidSetWidthFactor(TIntaWidthFactor)

Parameters

TInt aWidthFactor

WidthFactor()

IMPORT_C TIntWidthFactor()const

operator!=(const TAlgStyle &)

TBool operator!=(const TAlgStyle &aAlgStyle)const

Parameters

const TAlgStyle & aAlgStyle

operator==(const TAlgStyle &)

IMPORT_C TBooloperator==(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.