CEikStatusPaneLayoutTree Class Reference

class CEikStatusPaneLayoutTree : public CBase

This class calculates and stores the screen area available for each layout tree.

Inherits from

  • CEikStatusPaneLayoutTree

Constructor & Destructor Documentation

CEikStatusPaneLayoutTree(CEikStatusPaneLayout *, TDirection)

CEikStatusPaneLayoutTree(CEikStatusPaneLayout *aLayout,
TDirectionaDefaultDirection
)[private]

Private constructor.

Parameters

CEikStatusPaneLayout * aLayoutLayout data
TDirection aDefaultDirectionDefault direction of the layout tree.

~CEikStatusPaneLayoutTree()

~CEikStatusPaneLayoutTree()

Destructor.

Member Functions Documentation

AcceptL(MEikStatusPaneLayoutTreeVisitor *)

voidAcceptL(MEikStatusPaneLayoutTreeVisitor *aVisitor)

Calls given visitor objects VisitL, method. Additionally calls AcceptL -method of each sub pane layouts inside this layout tree.

Parameters

MEikStatusPaneLayoutTreeVisitor * aVisitorA visitor object to be visited.

AknLayoutRect(TInt, TPaneId)

TRect AknLayoutRect(TIntaLayoutResourceId,
TPaneIdaPaneId
)

This method maps given layout resource id and subpane UID to correct layout lines in the AknLayout system.

2.8

A rectangle which specifies the given subpane size and position in the given layout.

Parameters

TInt aLayoutResourceIdId of a statuspane layout.
TPaneId aPaneIdUid of a statuspane subpane.

AknLayoutUsed()

TBool AknLayoutUsed()[private]

This method gets flag which tells wheter AknLayout system is used or not for layout.

2.8

ETrue if AknLayout is to be used. EFalse otherwise.

ConstructL(TResourceReader &)

voidConstructL(TResourceReader &aResource)[private]

Private 2nd phase constructor.

Parameters

TResourceReader & aResourceResource of layout tree.

Direction()

TDirection Direction()[private, inline]

Gets direction of the layout tree. Direction of the layout tree.

Find(const TPaneId &)

CEikStatusPaneLayoutTree *Find(const TPaneId &aPaneId)

Finds the layout tree with a given pane id. If layout tree was found, a pointer to layout tree with given id. Otherwise NULL is returned.

Parameters

const TPaneId & aPaneIdA id of the pane.

Id()

TPaneId Id()const [inline]

Gets pane id. id of the pane.

Layout()

voidLayout()[private]

Sets the layout of the sub panes inside layout tree according to layout tree attributes read from the resource structures.

Layout(TInt)

voidLayout(TIntaLayoutResourceId)[private]

This methods purpose is eqvivalent of the Layout() method, but the difference is that this method uses AknLayout system instead of the statuspane resource definitions for determining the positions and sizes of the subpanes.

If AknLayoutUsed flag has not been set then this method defaults to the behaviour of the Layout() -method.

2.8

Parameters

TInt aLayoutResourceIdId of the statuspane layout which is to be laid out.

NewL(CEikStatusPaneLayout *, TResourceReader &, TDirection)

CEikStatusPaneLayoutTree *NewL(CEikStatusPaneLayout *aLayout,
TResourceReader &aResource,
TDirectionaDefaultDirection = EHorizontal
)[static]

Two phase constructor.

Parameters

CEikStatusPaneLayout * aLayoutLayout data
TResourceReader & aResourceResource of layout tree.
TDirection aDefaultDirection = EHorizontalDefault direction of the layout tree.

Rect()

TRect Rect()const [inline]

Gets rectagle of the layout tree. Rectangle of the layout tree.

SetAknLayoutUsed(TBool)

voidSetAknLayoutUsed(TBoolaAknLayoutUsed)[private]

This method sets flag which tells wheter AknLayout system is used or not for layout.

2.8

Parameters

TBool aAknLayoutUsedETrue if AknLayout is to be used. EFalse otherwise.

SetDirection(TDirection)

voidSetDirection(TDirectionaDirection)[private]

Sets direction of the layout tree.

Parameters

TDirection aDirectionDirection of the layout tree.

SetRect(const TRect &)

voidSetRect(const TRect &aRect)[private]

Sets rectagle of the layout tree.

Parameters

const TRect & aRectRectangle of the layout tree.

SetStretchable(TBool)

voidSetStretchable(TBoolaStretchable)[private]

Sets stretchable flag of the layout tree.

Parameters

TBool aStretchable

Size()

TInt Size()[private, inline]

Gets size of the layout tree. size of the layout tree.

Stretchable()

TBool Stretchable()[private, inline]

Gets stretchable flag of the layout tree. Stretchable flag of the layout tree.

Member Enumerations Documentation

Enum TDirection

Enumerators

EHorizontal

Horizontal direction

EVertical

Vertical direction

Member Type Definitions Documentation

Typedef CSubPaneArray

typedef CArrayPtrFlat< CEikStatusPaneLayoutTree >CSubPaneArray[private]

Member Data Documentation

TInt iFlags

TInt iFlags[private]

TPaneId iId

TPaneId iId[private]

CEikStatusPaneLayout * iLayout

CEikStatusPaneLayout *iLayout[private]

TRect iRect

TRect iRect[private]

TInt iSize

TInt iSize[private]

CSubPaneArray * iSubPanes

CSubPaneArray *iSubPanes[private]