Alf::AlfFlowLayoutPreferencesImpl Class Reference

class Alf::AlfFlowLayoutPreferencesImpl : public Alf::IAlfLayoutPreferences

layout preferences implementation for flowlayoutmanager.

alfwidgetmodel.lib
Since
S60 ?S60_version

Inherits from

Constructor & Destructor Documentation

AlfFlowLayoutPreferencesImpl(AlfFlowLayoutManager &)

AlfFlowLayoutPreferencesImpl(AlfFlowLayoutManager &aFlowLayoutManager)

Parameters

AlfFlowLayoutManager & aFlowLayoutManager

Member Functions Documentation

calculateChildSizes(TAlfXYMetric &, enum IAlfFlowLayoutPolicy::flowDirection, enum sizeType)

boolcalculateChildSizes(TAlfXYMetric &aSize,
enum IAlfFlowLayoutPolicy::flowDirectionaFlowDirection,
enum sizeTypeaSizeType
)const [protected]

calculate the min-, preferred-, or max- sizes from the children.

Parameters

TAlfXYMetric & aSizeon return, contains the calculated size.
enum IAlfFlowLayoutPolicy::flowDirection aFlowDirectiondirection of flow.
enum sizeType aSizeTypespecifies, whether the min-, preferred- or max-size of the IAlfLayoutPreferences is used for calculation.

flowLayoutPolicy()

const IAlfFlowLayoutPolicy &flowLayoutPolicy()const [protected]

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.

getSize(CAlfWidgetControl *, TAlfXYMetric &, enum sizeType)

boolgetSize(CAlfWidgetControl *aControl,
TAlfXYMetric &aSize,
enum sizeTypeaSizeType
)const [protected]

fetches the size from the IAlfLayoutPreferences-interface of the aControl.

Parameters

CAlfWidgetControl * aControlcontrol, which preferences-interface to query.
TAlfXYMetric & aSizeon return, contains the size.
enum sizeType aSizeTypespecifies, whether the min-, preferred- or max-size of the IAlfLayoutPreferences is returned.

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.

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

sizeInPixels(const TAlfXYMetric &)

TAlfRealSize sizeInPixels(const TAlfXYMetric &aSize)[protected, static]

converts size in metrics to size in pixels. Implementation missing.

Parameters

const TAlfXYMetric & aSizesize to convert

Member Enumerations Documentation

Enum sizeType

size type to calculate calculateChildSizes

Enumerators

ESizePreferred
ESizeMin
ESizeMax

Member Data Documentation

AlfFlowLayoutManager & mFlowLayoutManager

AlfFlowLayoutManager &mFlowLayoutManager[private]

TAlfXYMetric mPreferredSize

TAlfXYMetric mPreferredSize[private]