Alf::AlfLayoutManagerImpl Class Reference

class Alf::AlfLayoutManagerImpl : public Alf::IAlfLayoutPreferences

layoutmanager implementation class

alfwidgetmodel.lib
Since
S60 ?S60_version

Inherits from

Constructor & Destructor Documentation

AlfLayoutManagerImpl(TAlfLayoutType)

AlfLayoutManagerImpl(TAlfLayoutTypeaLayoutType)

layout manager constructor

Parameters

TAlfLayoutType aLayoutTypetype of layout used by the manager.

~AlfLayoutManagerImpl()

~AlfLayoutManagerImpl()

destructor

Member Functions Documentation

checkLayout()

voidcheckLayout()const [private]

checks, that layout is created. If not, throws an exception.

childRemoved(CAlfWidgetControl *)

voidchildRemoved(CAlfWidgetControl *aControl)

notifies the layout manager, that the control's has been removed from the layout.

Parameters

CAlfWidgetControl * aControlcontrol, which size has changed.

controlRect(CAlfWidgetControl &, TAlfRealRect &)

boolcontrolRect(CAlfWidgetControl &aControl,
TAlfRealRect &aRect
)

returns the rect of the control.

Parameters

CAlfWidgetControl & aControl
TAlfRealRect & aRect

count()

intcount()const

createLayout(CAlfWidgetControl &, CAlfLayout *, int)

voidcreateLayout(CAlfWidgetControl &aOwner,
CAlfLayout *aParentLayout,
intaLayoutIndex
)

creates the layout used by the layoutmanager.

Parameters

CAlfWidgetControl & aOwner
CAlfLayout * aParentLayoutparent for the created layout
int aLayoutIndexindex, where created visual should be placed in the parent layout.

doUpdateChildLayout(CAlfWidgetControl *)

voiddoUpdateChildLayout(CAlfWidgetControl *aControl)

notifies the layout manager, that the child control's layout must be updated.

Parameters

CAlfWidgetControl * aControlcontrol, which size or position has changed.

findRootVisual(CAlfWidgetControl *)

CAlfVisual *findRootVisual(CAlfWidgetControl *aControl)const [private]

finds the root visual for a control

Parameters

CAlfWidgetControl * aControlcontrol, which rootvisual is searched

getControl(int)

CAlfWidgetControl *getControl(intaIndex)const

returns the control at aIndex.

Parameters

int aIndexindex for the control.

getControl(CAlfVisual &)

CAlfWidgetControl *getControl(CAlfVisual &aVisual)const [private]

returns the control, which owns the visual

Parameters

CAlfVisual & aVisualvisual, which the control owns.

getLayout()

CAlfLayout &getLayout()const

returns the layout used by layoutmanager.

getLayoutPreferences(CAlfWidgetControl *)

const IAlfLayoutPreferences *getLayoutPreferences(CAlfWidgetControl *aControl)const

returns the layout preferences for a control

Parameters

CAlfWidgetControl * aControlcontrol instance

getMaximumSize(TAlfXYMetric &)

boolgetMaximumSize(TAlfXYMetric &aMaxSize)const [virtual]

Returns the maximum size of the layout by combining the maximum sizes of the layed out visuals.

Parameters

TAlfXYMetric & aMaxSizeThe maximum size that the object would like to be laid out to

getMinimumSize(TAlfXYMetric &)

boolgetMinimumSize(TAlfXYMetric &aMinSize)const [virtual]

Returns the minimum size of the layout by combining the minimum sizes of the layed out visuals.

Parameters

TAlfXYMetric & aMinSizeThe minimum size that the object would like to be laid out to

getPreferredSize(TAlfXYMetric &)

boolgetPreferredSize(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 & aPreferredSizeFilled with the referred area occupied by child elements when layed out by layouting rules in this layout manager.

makeInterface(const IfId &)

IAlfInterfaceBase *makeInterface(const IfId &aType)[virtual]
Interface getter. IAlfInterfaceBase::MakeInterface
Since
S60 ?S60_version

Parameters

const IfId & aTypeThe type id of the queried interface.

owner()

CAlfWidgetControl &owner()const

setPreferredSize(const TAlfXYMetric &)

voidsetPreferredSize(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.

Parameters

const TAlfXYMetric & aPreferredSize

setWidgetPosition(IAlfWidget &, const TAlfRealPoint &)

voidsetWidgetPosition(IAlfWidget &aWidget,
const TAlfRealPoint &aPos
)

sets the position to the widget.

Parameters

IAlfWidget & aWidget
const TAlfRealPoint & aPos

setWidgetRect(IAlfWidget &, const TAlfRealRect &)

voidsetWidgetRect(IAlfWidget &aWidget,
const TAlfRealRect &aRect
)

sets the size and position to the widget.

Parameters

IAlfWidget & aWidget
const TAlfRealRect & aRect

setWidgetSize(IAlfWidget &, const TAlfRealPoint &)

voidsetWidgetSize(IAlfWidget &aWidget,
const TAlfRealPoint &aSize
)

sets the size to widget.

Parameters

IAlfWidget & aWidget
const TAlfRealPoint & aSize

updateAllWidgetRects()

voidupdateAllWidgetRects()

updates widget size and position properties for all the children to correct sizes and positions of the root visuals.

updateMainLayout()

voidupdateMainLayout()

updates the main layout

Member Data Documentation

auto_ptr< CAlfLayout > mLayout

auto_ptr< CAlfLayout >mLayout[private]

the layout created and used by the layout manager. Destroyed along with instance of this class.

TAlfLayoutType mLayoutType

TAlfLayoutType mLayoutType[private]

the layout type of mLayout