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

  • CPeninputVkbLayoutInfo
Public Member Functions
~CPeninputVkbLayoutInfo()
CFbsBitmap *BgBmp()
CFbsBitmap *BgMaskBmp()
const CFont *CharFont()
TPoint CharLeftTopPoint()
TInt Columns()
voidConstructFromResourceL(TResourceReader &, CPeninputVkbCtrlExt *, TInt)
CFbsBitmap *DimBmp()
CFbsBitmap *DimMaskBmp()
IMPORT_C CPeninputVkbKeyInfo *FindKey(const TInt)
IMPORT_C const TSizeGetRealSize(const TInt, const TInt)
RPointerArray< CFbsBitmap >HighlightBmps()
RPointerArray< CFbsBitmap >HighlightMaskBmps()
RPointerArray< CPeninputVkbKeyInfo >KeyInfoList()
TInt LayoutID()
IMPORT_C voidMoveKeys(const TPoint &)
IMPORT_C CPeninputVkbLayoutInfo *NewL(TResourceReader &)
IMPORT_C CPeninputVkbLayoutInfo *NewLC(TResourceReader &)
IMPORT_C voidResetLayoutInfo(const TSize &)
IMPORT_C voidResetSize(const TInt, const TInt, const TInt, const TInt, const TPoint &, const CFont *)
TInt Rows()
IMPORT_C voidSetKeyInfo(const TInt, const TInt, const TRect &, const TRect &, const CFont *)
TInt UnitCharHeight()
TInt UnitCharWidth()
TInt UnitHeight()
TInt UnitWidth()
Protected Member Functions
CPeninputVkbLayoutInfo()
voidConstructL(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)

voidConstructFromResourceL(TResourceReader &aReader,
CPeninputVkbCtrlExt *aVkbCtrl = NULL,
TIntaVkbLayoutId = 0
)

Construct from resourcr file

Since
S60 v3.2

Parameters

TResourceReader & aReaderResource reader
CPeninputVkbCtrlExt * aVkbCtrl = NULL
TInt aVkbLayoutId = 0

ConstructL(TResourceReader &)

voidConstructL(TResourceReader &aReader)[protected]

Symbian second-phase constructor

Since
S60 v3.2

Parameters

TResourceReader & aReaderResource 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 TIntaUnicode)const

Find the key from the vkb accroding to the unicode

Since
S60 v3.2

Parameters

const TInt aUnicodeUnicode

GetRealSize(const TInt, const TInt)

IMPORT_C const TSizeGetRealSize(const TIntaUnitWidth,
const TIntaUnitHeight
)const

Get real size from vkb layout

Since
S60 v3.2

Parameters

const TInt aUnitWidthUnit width
const TInt aUnitHeightUnit 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 voidMoveKeys(const TPoint &aTopLeft)

Move key to certain point

Since
S60 v3.2

Parameters

const TPoint & aTopLeftPoint to move

NewL(TResourceReader &)

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

Two-phase constructor

Since
S60 v3.2

Parameters

TResourceReader & aReaderResource reader

NewLC(TResourceReader &)

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

Two-phase constructor

Since
S60 v3.2

Parameters

TResourceReader & aReaderResource reader

ResetLayoutInfo(const TSize &)

IMPORT_C voidResetLayoutInfo(const TSize &aSize)

Reset unit size

Since
S60 v3.2

Parameters

const TSize & aSizeKeyboard size

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

IMPORT_C voidResetSize(const TIntaUnitWidth,
const TIntaUnitHeight,
const TIntaUnitCharWidth,
const TIntaUnitCharHeight,
const TPoint &aCharLeftTopPoint,
const CFont *aFont
)

Reset unit size

Since
S60 v3.2

Parameters

const TInt aUnitWidthUnit width
const TInt aUnitHeightUnit height
const TInt aUnitCharWidthUnit char width
const TInt aUnitCharHeightUnit char height
const TPoint & aCharLeftTopPointLeft 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 voidSetKeyInfo(const TIntaRow,
const TIntaColumn,
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