CPeninputVkbLayoutInfo Class Reference

class CPeninputVkbLayoutInfo : public CBase

vkb layout definition

This class is to implement vkb layout. Application can create it from resource file. This class is to control vkb interface layout.

peninputvkb.lib
Since
S60 v3.2

Inherits from

Public Member Functions
~CPeninputVkbLayoutInfo ()
CFbsBitmap * BgBmp ()
CFbsBitmap * BgMaskBmp ()
const CFont * CharFont ()
TPoint CharLeftTopPoint ()
TInt Columns ()
void ConstructFromResourceL ( TResourceReader &, CPeninputVkbCtrlExt *, TInt )
CFbsBitmap * DimBmp ()
CFbsBitmap * DimMaskBmp ()
IMPORT_C CPeninputVkbKeyInfo * FindKey (const TInt )
IMPORT_C const TSize GetRealSize (const TInt , const TInt )
RPointerArray < CFbsBitmap > HighlightBmps ()
RPointerArray < CFbsBitmap > HighlightMaskBmps ()
RPointerArray < CPeninputVkbKeyInfo > KeyInfoList ()
TInt LayoutID ()
IMPORT_C void MoveKeys (const TPoint &)
IMPORT_C CPeninputVkbLayoutInfo * NewL ( TResourceReader &)
IMPORT_C CPeninputVkbLayoutInfo * NewLC ( TResourceReader &)
IMPORT_C void ResetLayoutInfo (const TSize &)
IMPORT_C void ResetSize (const TInt , const TInt , const TInt , const TInt , const TPoint &, const CFont *)
TInt Rows ()
IMPORT_C void SetKeyInfo (const TInt , const TInt , const TRect &, const TRect &, const CFont *)
TInt UnitCharHeight ()
TInt UnitCharWidth ()
TInt UnitHeight ()
TInt UnitWidth ()
Protected Member Functions
CPeninputVkbLayoutInfo ()
void ConstructL ( TResourceReader &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Attributes
TBool iIrregular
Private Attributes
CFbsBitmap * iBgBmp
CFbsBitmap * iBgMaskBmp
TPoint iCharLeftTopPoint
TInt iColumns
CFbsBitmap * iDimBmp
CFbsBitmap * iDimMaskBmp
const CFont * iFont
RPointerArray < CFbsBitmap > iHighlightBmps
RPointerArray < CFbsBitmap > iHighlightMaskBmps
RPointerArray < CPeninputVkbKeyInfo > iKeyInfoList
TPoint iLastTopLeft
TInt iLayoutID
TInt iRows
TInt iUnitCharHeight
TInt iUnitCharWidth
TInt iUnitHeight
TInt iUnitWidth

Constructor & Destructor Documentation

CPeninputVkbLayoutInfo()

CPeninputVkbLayoutInfo ( ) [protected]

C++ default constructor

Since
S60 v3.2

~CPeninputVkbLayoutInfo()

IMPORT_C ~CPeninputVkbLayoutInfo ( ) [virtual]

Destructor

Since
S60 v3.2

Member Functions Documentation

BgBmp()

CFbsBitmap * BgBmp ( ) const [inline]

Get background bitmap

Since
S60 v3.2

BgMaskBmp()

CFbsBitmap * BgMaskBmp ( ) const [inline]

Get mask bitmap

Since
S60 v3.2

CharFont()

const CFont * CharFont ( ) const [inline]

Get the char's font

Since
S60 v3.2

CharLeftTopPoint()

TPoint CharLeftTopPoint ( ) const [inline]

Get the char's left top point

Since
S60 v3.2

Columns()

TInt Columns ( ) const [inline]

Get column count

Since
S60 v3.2

ConstructFromResourceL(TResourceReader &, CPeninputVkbCtrlExt *, TInt)

void ConstructFromResourceL ( TResourceReader & aReader,
CPeninputVkbCtrlExt * aVkbCtrl = NULL,
TInt aVkbLayoutId = 0
)

Construct from resourcr file

Since
S60 v3.2

Parameters

TResourceReader & aReader Resource reader
CPeninputVkbCtrlExt * aVkbCtrl = NULL
TInt aVkbLayoutId = 0

ConstructL(TResourceReader &)

void ConstructL ( TResourceReader & aReader ) [protected]

Symbian second-phase constructor

Since
S60 v3.2

Parameters

TResourceReader & aReader Resource reader

DimBmp()

CFbsBitmap * DimBmp ( ) const [inline]

Get dim bitmap

Since
S60 v3.2

DimMaskBmp()

CFbsBitmap * DimMaskBmp ( ) const [inline]

Get dim mask bitmap

Since
S60 v3.2

FindKey(const TInt)

IMPORT_C CPeninputVkbKeyInfo * FindKey ( const TInt aUnicode ) const

Find the key from the vkb accroding to the unicode

Since
S60 v3.2

Parameters

const TInt aUnicode Unicode

GetRealSize(const TInt, const TInt)

IMPORT_C const TSize GetRealSize ( const TInt aUnitWidth,
const TInt aUnitHeight
) const

Get real size from vkb layout

Since
S60 v3.2

Parameters

const TInt aUnitWidth Unit width
const TInt aUnitHeight Unit height

HighlightBmps()

RPointerArray < CFbsBitmap > HighlightBmps ( ) const [inline]

Get high light bitmap array

Since
S60 v3.2

HighlightMaskBmps()

RPointerArray < CFbsBitmap > HighlightMaskBmps ( ) const [inline]

Get high light mask bitmap array

Since
S60 v3.2

KeyInfoList()

RPointerArray < CPeninputVkbKeyInfo > KeyInfoList ( ) const [inline]

Get key info array

Since
S60 v3.2

LayoutID()

TInt LayoutID ( ) const [inline]

Get layout id

Since
S60 v3.2

MoveKeys(const TPoint &)

IMPORT_C void MoveKeys ( const TPoint & aTopLeft )

Move key to certain point

Since
S60 v3.2

Parameters

const TPoint & aTopLeft Point to move

NewL(TResourceReader &)

IMPORT_C CPeninputVkbLayoutInfo * NewL ( TResourceReader & aReader ) [static]

Two-phase constructor

Since
S60 v3.2

Parameters

TResourceReader & aReader Resource reader

NewLC(TResourceReader &)

IMPORT_C CPeninputVkbLayoutInfo * NewLC ( TResourceReader & aReader ) [static]

Two-phase constructor

Since
S60 v3.2

Parameters

TResourceReader & aReader Resource reader

ResetLayoutInfo(const TSize &)

IMPORT_C void ResetLayoutInfo ( const TSize & aSize )

Reset unit size

Since
S60 v3.2

Parameters

const TSize & aSize Keyboard size

ResetSize(const TInt, const TInt, const TInt, const TInt, const TPoint &, const CFont *)

IMPORT_C void ResetSize ( const TInt aUnitWidth,
const TInt aUnitHeight,
const TInt aUnitCharWidth,
const TInt aUnitCharHeight,
const TPoint & aCharLeftTopPoint,
const CFont * aFont
)

Reset unit size

Since
S60 v3.2

Parameters

const TInt aUnitWidth Unit width
const TInt aUnitHeight Unit height
const TInt aUnitCharWidth Unit char width
const TInt aUnitCharHeight Unit char height
const TPoint & aCharLeftTopPoint Left top point of unit char
const CFont * aFont

Rows()

TInt Rows ( ) const [inline]

Get row count

Since
S60 v3.2

SetKeyInfo(const TInt, const TInt, const TRect &, const TRect &, const CFont *)

IMPORT_C void SetKeyInfo ( const TInt aRow,
const TInt aColumn,
const TRect & aKeyRect,
const TRect & aCharRect,
const CFont * aFont
)

Reset unit size

Since
S60 v3.2

Parameters

const TInt aRow
const TInt aColumn
const TRect & aKeyRect
const TRect & aCharRect
const CFont * aFont

UnitCharHeight()

TInt UnitCharHeight ( ) const [inline]

Get the char's height

Since
S60 v3.2

UnitCharWidth()

TInt UnitCharWidth ( ) const [inline]

Get the char's width

Since
S60 v3.2

UnitHeight()

TInt UnitHeight ( ) const [inline]

Get the unit's height

Since
S60 v3.2

UnitWidth()

TInt UnitWidth ( ) const [inline]

Get the unit's width

Since
S60 v3.2

Member Data Documentation

CFbsBitmap * iBgBmp

CFbsBitmap * iBgBmp [private]

Background bitmap Own

CFbsBitmap * iBgMaskBmp

CFbsBitmap * iBgMaskBmp [private]

Background mask bitmap Own

TPoint iCharLeftTopPoint

TPoint iCharLeftTopPoint [private]

Char left top point

TInt iColumns

TInt iColumns [private]

Column count

CFbsBitmap * iDimBmp

CFbsBitmap * iDimBmp [private]

Dim bitmap Own

CFbsBitmap * iDimMaskBmp

CFbsBitmap * iDimMaskBmp [private]

Dim mask bitmap Own

const CFont * iFont

const CFont * iFont [private]

Key font

RPointerArray< CFbsBitmap > iHighlightBmps

RPointerArray < CFbsBitmap > iHighlightBmps [private]

High light bitmap array

RPointerArray< CFbsBitmap > iHighlightMaskBmps

RPointerArray < CFbsBitmap > iHighlightMaskBmps [private]

High light mask bitmap array

TBool iIrregular

TBool iIrregular

RPointerArray< CPeninputVkbKeyInfo > iKeyInfoList

RPointerArray < CPeninputVkbKeyInfo > iKeyInfoList [private]

Key info array

TPoint iLastTopLeft

TPoint iLastTopLeft [private]

Last point

TInt iLayoutID

TInt iLayoutID [private]

Layout id

TInt iRows

TInt iRows [private]

Row count

TInt iUnitCharHeight

TInt iUnitCharHeight [private]

Unit char height

TInt iUnitCharWidth

TInt iUnitCharWidth [private]

Unit char width

TInt iUnitHeight

TInt iUnitHeight [private]

Unit height

TInt iUnitWidth

TInt iUnitWidth [private]

Unit width