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)

bool calculateChildSizes ( TAlfXYMetric & aSize,
enum IAlfFlowLayoutPolicy::flowDirection aFlowDirection,
enum sizeType aSizeType
) const [protected]

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

Parameters

TAlfXYMetric & aSize on return, contains the calculated size.
enum IAlfFlowLayoutPolicy::flowDirection aFlowDirection direction of flow.
enum sizeType aSizeType specifies, whether the min-, preferred- or max-size of the IAlfLayoutPreferences is used for calculation.

flowLayoutPolicy()

const IAlfFlowLayoutPolicy & flowLayoutPolicy ( ) const [protected]

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 &)

IAlfInterfaceBase * makeInterface ( const IfId & aType ) [virtual]
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.

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 & aSize size 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]