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)
AlfLayoutManagerImpl
|
(
|
TAlfLayoutType
|
aLayoutType
|
)
|
|
layout manager constructor
Parameters
TAlfLayoutType
aLayoutType
|
type of layout used by the manager.
|
~AlfLayoutManagerImpl()
~AlfLayoutManagerImpl
|
(
|
)
|
|
Member Functions Documentation
checkLayout()
void
|
checkLayout
|
(
|
)
|
const [private]
|
checks, that layout is created. If not, throws an exception.
childRemoved(CAlfWidgetControl *)
void
|
childRemoved
|
(
|
CAlfWidgetControl
*
|
aControl
|
)
|
|
notifies the layout manager, that the control's has been removed from the layout.
Parameters
CAlfWidgetControl
* aControl
|
control, which size has changed.
|
controlRect(CAlfWidgetControl &, TAlfRealRect &)
bool
|
controlRect
|
(
|
CAlfWidgetControl
&
|
aControl,
|
|
TAlfRealRect
&
|
aRect
|
|
)
|
|
returns the rect of the control.
createLayout(CAlfWidgetControl &, CAlfLayout *, int)
void
|
createLayout
|
(
|
CAlfWidgetControl
&
|
aOwner,
|
|
CAlfLayout
*
|
aParentLayout,
|
|
int
|
aLayoutIndex
|
|
)
|
|
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 *)
void
|
doUpdateChildLayout
|
(
|
CAlfWidgetControl
*
|
aControl
|
)
|
|
notifies the layout manager, that the child control's layout must be updated.
Parameters
CAlfWidgetControl
* aControl
|
control, which size or position has changed.
|
findRootVisual(CAlfWidgetControl *)
CAlfVisual
*
|
findRootVisual
|
(
|
CAlfWidgetControl
*
|
aControl
|
)
|
const [private]
|
finds the root visual for a control
Parameters
CAlfWidgetControl
* aControl
|
control, which rootvisual is searched
|
getControl(int)
CAlfWidgetControl
*
|
getControl
|
(
|
int
|
aIndex
|
)
|
const
|
returns the control at aIndex.
Parameters
int aIndex
|
index for the control.
|
getControl(CAlfVisual &)
CAlfWidgetControl
*
|
getControl
|
(
|
CAlfVisual
&
|
aVisual
|
)
|
const [private]
|
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
Parameters
CAlfWidgetControl
* aControl
|
control instance
|
getMaximumSize(TAlfXYMetric &)
bool
|
getMaximumSize
|
(
|
TAlfXYMetric
&
|
aMaxSize
|
)
|
const [virtual]
|
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 &)
bool
|
getMinimumSize
|
(
|
TAlfXYMetric
&
|
aMinSize
|
)
|
const [virtual]
|
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.
|
owner()
CAlfWidgetControl
&
|
owner
|
(
|
)
|
const
|
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.
updateMainLayout()
void
|
updateMainLayout
|
(
|
)
|
|
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
TAlfLayoutType
|
mLayoutType
|
[private]
|
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.