class CEikStatusPaneLayoutTree : public CBase |
This class calculates and stores the screen area available for each layout tree.
Public Member Functions | |
---|---|
~CEikStatusPaneLayoutTree() | |
void | AcceptL(MEikStatusPaneLayoutTreeVisitor *) |
TRect | AknLayoutRect(TInt, TPaneId) |
CEikStatusPaneLayoutTree * | Find(const TPaneId &) |
TPaneId | Id() |
CEikStatusPaneLayoutTree * | NewL(CEikStatusPaneLayout *, TResourceReader &, TDirection) |
TRect | Rect() |
Private Member Functions | |
---|---|
CEikStatusPaneLayoutTree(CEikStatusPaneLayout *, TDirection) | |
TBool | AknLayoutUsed() |
void | ConstructL(TResourceReader &) |
TDirection | Direction() |
void | Layout() |
void | Layout(TInt) |
void | SetAknLayoutUsed(TBool) |
void | SetDirection(TDirection) |
void | SetRect(const TRect &) |
void | SetStretchable(TBool) |
TInt | Size() |
TBool | Stretchable() |
Public Member Enumerations | |
---|---|
enum | TDirection { EHorizontal, EVertical } |
Private Member Type Definitions | |
---|---|
typedef | CArrayPtrFlat< CEikStatusPaneLayoutTree > CSubPaneArray |
Private Attributes | |
---|---|
TInt | iFlags |
TPaneId | iId |
CEikStatusPaneLayout * | iLayout |
TRect | iRect |
TInt | iSize |
CSubPaneArray * | iSubPanes |
CEikStatusPaneLayoutTree | ( | CEikStatusPaneLayout * | aLayout, |
TDirection | aDefaultDirection | ||
) | [private] |
Private constructor.
CEikStatusPaneLayout * aLayout | Layout data |
TDirection aDefaultDirection | Default direction of the layout tree. |
void | AcceptL | ( | MEikStatusPaneLayoutTreeVisitor * | aVisitor | ) |
Calls given visitor objects VisitL, method. Additionally calls AcceptL -method of each sub pane layouts inside this layout tree.
MEikStatusPaneLayoutTreeVisitor * aVisitor | A visitor object to be visited. |
TRect | AknLayoutRect | ( | TInt | aLayoutResourceId, |
TPaneId | aPaneId | |||
) |
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.
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.
void | ConstructL | ( | TResourceReader & | aResource | ) | [private] |
Private 2nd phase constructor.
TResourceReader & aResource | Resource of layout tree. |
TDirection | Direction | ( | ) | [private, inline] |
Gets direction of the layout tree. Direction of the layout tree.
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.
const TPaneId & aPaneId | A id of the pane. |
void | Layout | ( | ) | [private] |
Sets the layout of the sub panes inside layout tree according to layout tree attributes read from the resource structures.
void | Layout | ( | TInt | aLayoutResourceId | ) | [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
TInt aLayoutResourceId | Id of the statuspane layout which is to be laid out. |
CEikStatusPaneLayoutTree * | NewL | ( | CEikStatusPaneLayout * | aLayout, |
TResourceReader & | aResource, | |||
TDirection | aDefaultDirection = EHorizontal | |||
) | [static] |
Two phase constructor.
CEikStatusPaneLayout * aLayout | Layout data |
TResourceReader & aResource | Resource of layout tree. |
TDirection aDefaultDirection = EHorizontal | Default direction of the layout tree. |
void | SetAknLayoutUsed | ( | TBool | aAknLayoutUsed | ) | [private] |
This method sets flag which tells wheter AknLayout system is used or not for layout.
2.8
TBool aAknLayoutUsed | ETrue if AknLayout is to be used. EFalse otherwise. |
void | SetDirection | ( | TDirection | aDirection | ) | [private] |
Sets direction of the layout tree.
TDirection aDirection | Direction of the layout tree. |
void | SetRect | ( | const TRect & | aRect | ) | [private] |
Sets rectagle of the layout tree.
const TRect & aRect | Rectangle of the layout tree. |
void | SetStretchable | ( | TBool | aStretchable | ) | [private] |
Sets stretchable flag of the layout tree.
TBool aStretchable |
TBool | Stretchable | ( | ) | [private, inline] |
Gets stretchable flag of the layout tree. Stretchable flag of the layout tree.