Alf::AlfAnchorLayoutManager Class Reference

class Alf::AlfAnchorLayoutManager : public Alf::AlfLayoutManager
Anchor 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 alfwidgetmodel.lib
Since
S60 ?S60_version Draft IAlfLayoutManager , IAlfLayoutPreferences

Constructor & Destructor Documentation

AlfAnchorLayoutManager()

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

~AlfAnchorLayoutManager()

OSN_IMPORT ~AlfAnchorLayoutManager ( ) [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< AlfAnchorLayoutManagerImpl > mData

auto_ptr< AlfAnchorLayoutManagerImpl > mData [private]