Alf::AlfFlowLayoutPreferencesImpl Class Reference
class Alf::AlfFlowLayoutPreferencesImpl : public Alf::IAlfLayoutPreferences
|
layout preferences implementation for flowlayoutmanager.
alfwidgetmodel.lib
-
Since
-
S60 ?S60_version
Inherits from
-
Alf::AlfFlowLayoutPreferencesImpl
Constructor & Destructor Documentation
AlfFlowLayoutPreferencesImpl(AlfFlowLayoutManager &)
Member Functions Documentation
calculateChildSizes(TAlfXYMetric &, enum IAlfFlowLayoutPolicy::flowDirection, enum sizeType)
calculate the min-, preferred-, or max- sizes from the children.
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.
|
getSize(CAlfWidgetControl *, TAlfXYMetric &, enum sizeType)
bool
|
getSize
|
(
|
CAlfWidgetControl
*
|
aControl,
|
|
TAlfXYMetric
&
|
aSize,
|
|
enum
sizeType
|
aSizeType
|
|
)
|
const [protected]
|
fetches the size from the IAlfLayoutPreferences-interface of the aControl.
Parameters
CAlfWidgetControl
* aControl
|
control, which preferences-interface to query.
|
TAlfXYMetric
& aSize
|
on return, contains the size.
|
enum
sizeType
aSizeType
|
specifies, whether the min-, preferred- or max-size of the IAlfLayoutPreferences is returned.
|
makeInterface(const IfId &)
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.
sizeInPixels(const TAlfXYMetric &)
converts size in metrics to size in pixels. Implementation missing.
Member Enumerations Documentation
Enum sizeType
Enumerators
ESizePreferred
|
|
ESizeMin
|
|
ESizeMax
|
|
Member Data Documentation
AlfFlowLayoutManager & mFlowLayoutManager
TAlfXYMetric
mPreferredSize
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.