Alf::AlfGridLayoutManager Class Reference

class Alf::AlfGridLayoutManager : public Alf::AlfLayoutManager
Grid layout manager Layout manager handles the layouting of child widgets in the container widget. It uses IAlfLayoutPreferences-interface ( IAlfLayoutPreferences ) of child widgets as a guide for laying out the widgets. The layoutmanager is set to the IAlfHostApi- interface (IAlfHostApi::setBaseLayout) createLayout-method should be the first call after creating the layoutmanager. IAlfLayoutPreferences IAlfGridLayoutPolicy alfwidgetmodel.lib
Since
S60 ?S60_version Draft IAlfLayoutManager , IAlfLayoutPreferences , IAlfGridLayoutPolicy

Constructor & Destructor Documentation

AlfGridLayoutManager()

OSN_IMPORT AlfGridLayoutManager ( )
Layout manager constructor
Exceptions
std::bad_alloc

~AlfGridLayoutManager()

OSN_IMPORT ~AlfGridLayoutManager ( ) [virtual]

virtual destructor

Member Functions Documentation

childRemoved(CAlfWidgetControl *)

void childRemoved ( CAlfWidgetControl * aControl ) [virtual]

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

Exceptions
AlfVisualException(EInvalidVisual)if

layout is not created.

Parameters

CAlfWidgetControl * aControl control, which has been removed from the layout.

doUpdateChildLayout(CAlfWidgetControl *)

OSN_IMPORT void doUpdateChildLayout ( CAlfWidgetControl * aControl ) [protected, virtual]

Notifies the layout manager, that the child control's layout must be updated. Called in updateChildLayout for the updated control and in updateChildrenLayout for all the controls in the layout.

Parameters

CAlfWidgetControl * aControl control, which size has changed.

makeInterface(const IfId &)

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

Parameters

const IfId & aType The type id of the queried interface.

updateChildLayout(CAlfWidgetControl *)

void updateChildLayout ( CAlfWidgetControl * aControl ) [virtual]

from IAlfLayoutManager Notifies the layout manager, that the child control's layout must be updated

Exceptions
AlfVisualException(EInvalidVisual)if

layout is not created.

Parameters

CAlfWidgetControl * aControl control, which size has changed.

Member Data Documentation

auto_ptr< AlfGridLayoutManagerImpl > mData

auto_ptr< AlfGridLayoutManagerImpl > mData [private]

auto_ptr< AlfGridLayoutPolicyImpl > mDataPolicy

auto_ptr< AlfGridLayoutPolicyImpl > mDataPolicy [private]