TCoeFont Class Reference

class TCoeFont

A class to simplify font usage

Public Member Functions
TCoeFont(TLogicalSize, TInt, TInt)
TCoeFont(TInt, TInt, TInt)
TCoeFont(const TCoeFont &)
TCoeFont()
IMPORT_C TCoeFontAnnotationFont(TInt)
TInt Compare(const TCoeFont &, const TCoeFont &)
IMPORT_C TIntHeightInPixels()
IMPORT_C TBoolIsNonZooming()
IMPORT_C TCoeFontLegendFont(TInt)
IMPORT_C TLogicalSizeLogicalSize()
IMPORT_C TCoeFontNormalFont(TInt)
IMPORT_C TFontStyleStyle()
IMPORT_C TCoeFontTitleFont(TInt)
Public Member Enumerations
enumTFlags { ENoFlags = 0x00, ENonZooming = 0x01 }
enumTLogicalSize {
EExtraSmall = 0, ESmall, EMedium, ELarge, EExtraLarge, EUndefinedSize = -1
}
enumTStyle { EPlain = 0x00, EItalic = 0x01, EBold = 0x02, ESuper = 0x04, ESub = 0x08 }
Private Attributes
TInt8 iFlags
TInt8 iHeightInPixels
TLogicalSize iLogicalSize
TInt iSpare
TInt8 iStyle
TTypeface iTypeface

Constructor & Destructor Documentation

TCoeFont(TLogicalSize, TInt, TInt)

IMPORT_CTCoeFont(TLogicalSizeaSize,
TIntaStyle,
TIntaFlags = ENoFlags
)

constructor

Parameters

TLogicalSize aSize
TInt aStyle
TInt aFlags = ENoFlags

TCoeFont(TInt, TInt, TInt)

IMPORT_CTCoeFont(TIntaHeightInPixels,
TIntaStyle,
TIntaFlags = ENoFlags
)

constructor

Parameters

TInt aHeightInPixels
TInt aStyle
TInt aFlags = ENoFlags

TCoeFont(const TCoeFont &)

IMPORT_CTCoeFont(const TCoeFont &aFont)

Copy constructor

Parameters

const TCoeFont & aFont

TCoeFont()

IMPORT_CTCoeFont()

Member Functions Documentation

AnnotationFont(TInt)

IMPORT_C TCoeFontAnnotationFont(TIntaFlags = ENoFlags)[static]

Return a default "annotation" font

Parameters

TInt aFlags = ENoFlags

Compare(const TCoeFont &, const TCoeFont &)

TInt Compare(const TCoeFont &aFirst,
const TCoeFont &aSecond
)[static]

Compare two TCoeFont objects

Parameters

const TCoeFont & aFirst
const TCoeFont & aSecond

HeightInPixels()

IMPORT_C TIntHeightInPixels()const

Return this font's height in pixels

IsNonZooming()

IMPORT_C TBoolIsNonZooming()const

Says whether this font can be zoomed or not

LegendFont(TInt)

IMPORT_C TCoeFontLegendFont(TIntaFlags = ENoFlags)[static]

Return a default "legend" font

Parameters

TInt aFlags = ENoFlags

LogicalSize()

IMPORT_C TLogicalSizeLogicalSize()const

Return this font's logical size

NormalFont(TInt)

IMPORT_C TCoeFontNormalFont(TIntaFlags = ENoFlags)[static]

Return a default "normal" font

Parameters

TInt aFlags = ENoFlags

Style()

IMPORT_C TFontStyleStyle()const

Return this font's style

TitleFont(TInt)

IMPORT_C TCoeFontTitleFont(TIntaFlags = ENoFlags)[static]

Return a default "title" font

Parameters

TInt aFlags = ENoFlags

Member Enumerations Documentation

Enum TFlags

Enumerators

ENoFlags = 0x00
ENonZooming = 0x01

Enum TLogicalSize

Enumerators

EExtraSmall = 0
ESmall
EMedium
ELarge
EExtraLarge
EUndefinedSize = -1

Enum TStyle

Enumerators

EPlain = 0x00
EItalic = 0x01
EBold = 0x02
ESuper = 0x04
ESub = 0x08

Member Data Documentation

TInt8 iFlags

TInt8 iFlags[private]

TInt8 iHeightInPixels

TInt8 iHeightInPixels[private]

TLogicalSize iLogicalSize

TLogicalSize iLogicalSize[private]

TInt iSpare

TInt iSpare[private]

TInt8 iStyle

TInt8 iStyle[private]

TTypeface iTypeface

TTypeface iTypeface[private]