Alf::AlfLayoutManagerImpl Class Reference
class Alf::AlfLayoutManagerImpl : public Alf::IAlfLayoutPreferences |
layoutmanager implementation class
alfwidgetmodel.lib
- Since
- S60 ?S60_version
Inherits from
- Alf::AlfLayoutManagerImpl
Constructor & Destructor Documentation
AlfLayoutManagerImpl(TAlfLayoutType)
layout manager constructor
Member Functions Documentation
checkLayout()
void | checkLayout | ( | ) | const [private] |
checks, that layout is created. If not, throws an exception.
childRemoved(CAlfWidgetControl *)
notifies the layout manager, that the control's has been removed from the layout.
controlRect(CAlfWidgetControl &, TAlfRealRect &)
returns the rect of the control.
createLayout(CAlfWidgetControl &, CAlfLayout *, int)
creates the layout used by the layoutmanager.
Parameters
CAlfWidgetControl & aOwner | |
CAlfLayout * aParentLayout | parent for the created layout |
int aLayoutIndex | index, where created visual should be placed in the parent layout. |
doUpdateChildLayout(CAlfWidgetControl *)
notifies the layout manager, that the child control's layout must be updated.
findRootVisual(CAlfWidgetControl *)
finds the root visual for a control
getControl(int)
returns the control at aIndex.
Parameters
int aIndex | index for the control. |
getControl(CAlfVisual &)
returns the control, which owns the visual
Parameters
CAlfVisual & aVisual | visual, which the control owns. |
getLayout()
returns the layout used by layoutmanager.
getLayoutPreferences(CAlfWidgetControl *)
returns the layout preferences for a control
getMaximumSize(TAlfXYMetric &)
Returns the maximum size of the layout by combining the maximum sizes of the layed out visuals.
Parameters
TAlfXYMetric & aMaxSize | The maximum size that the object would like to be laid out to |
getMinimumSize(TAlfXYMetric &)
Returns the minimum size of the layout by combining the minimum sizes of the layed out visuals.
Parameters
TAlfXYMetric & aMinSize | The minimum size that the object would like to be laid out to |
getPreferredSize(TAlfXYMetric &)
bool | getPreferredSize | ( | TAlfXYMetric & | aPreferredSize | ) | const [virtual] |
Returns the size combined by all preferred sizes of child UI elements in this layout when they are being layed out according to the layout manager rules.
Parameters
TAlfXYMetric & aPreferredSize | Filled with the referred area occupied by child elements when layed out by layouting rules in this layout manager. |
makeInterface(const IfId &)
Interface getter. IAlfInterfaceBase::MakeInterface
- Since
- S60 ?S60_version
Parameters
const IfId & aType | The type id of the queried interface. |
setPreferredSize(const TAlfXYMetric &)
void | setPreferredSize | ( | const TAlfXYMetric & | aPreferredSize | ) | [virtual] |
Set the preferred size into a presentation object.
This is not supported on the layout manager. Users should set preferred sizes of the contained UI elements.
setWidgetPosition(IAlfWidget &, const TAlfRealPoint &)
sets the position to the widget.
setWidgetRect(IAlfWidget &, const TAlfRealRect &)
sets the size and position to the widget.
setWidgetSize(IAlfWidget &, const TAlfRealPoint &)
updateAllWidgetRects()
void | updateAllWidgetRects | ( | ) | |
updates widget size and position properties for all the children to correct sizes and positions of the root visuals.
Member Data Documentation
auto_ptr< CAlfLayout > mLayout
the layout created and used by the layout manager. Destroyed along with instance of this class.
TAlfLayoutType
mLayoutType
the layout type of mLayout
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.