class CAlfDeckLayout : public CAlfLayout |
// Create a deck layout to overlay two text visuals CAlfDeckLayout* deckLayout = CAlfDeckLayout::AddNewL( control, NULL ); // The text visual that is aligned to the top edge of the deck layout. TextVisual* topText = CAlfTextVisual::AddNewL( control, deck ); topText->SetTextL( _L"Top Aligned" ); topText->SetAlign( EAlfAlignHLeft, EAlfAlignVTop ); // The text visual that is aligned to the bottom edge of the deck layout. TextVisual* bottomText = CAlfTextVisual::AddNewL( control, deck ); topText->SetTextL( _L"Bottom Aligned" ); bottomText->SetAlign( EAlfAlignHCenter, EAlfAlignVBottom );alfclient.lib
Public Member Functions | |
---|---|
CAlfDeckLayout () | |
~CAlfDeckLayout () | |
IMPORT_C CAlfDeckLayout * | AddNewL ( CAlfControl &, CAlfLayout *) |
IMPORT_C TAlfXYMetric | BaseUnit () |
IMPORT_C void | ConstructL ( CAlfControl &) |
IMPORT_C CAlfVisual * | FindTag (const TDesC8 &) |
IMPORT_C void | RemoveAndDestroyAllD () |
IMPORT_C void | UpdateChildrenLayout ( TInt ) |
Protected Member Functions | |
---|---|
IMPORT_C void | DoRemoveAndDestroyAllD () |
IMPORT_C void | PropertyOwnerExtension (const TUid &, TAny **) |
Inherited Enumerations | |
---|---|
CAlfLayout:TExpansionFlags |
Private Attributes | |
---|---|
TDeckLayoutPrivateData * | iDeckLayoutData |
IMPORT_C CAlfDeckLayout * | AddNewL | ( | CAlfControl & | aOwnerControl, |
CAlfLayout * | aParentLayout = 0 | |||
) | [static] |
Two-phased constructor, which attach new object into the control.
CAlfControl & aOwnerControl | Control that owns this new obejct. |
CAlfLayout * aParentLayout = 0 | If given, the new object is set as child. |
IMPORT_C void | ConstructL | ( | CAlfControl & | aOwner | ) | [virtual] |
Second-phase constructor.
CAlfControl & aOwner |
IMPORT_C void | DoRemoveAndDestroyAllD | ( | ) | [protected, virtual] |
From CAlfVisual CAlfVisual
IMPORT_C CAlfVisual * | FindTag | ( | const TDesC8 & | aTag | ) | [virtual] |
CAlfVisual Finds a visual whose tag descriptor contains a specific tag.
CAlfLayout::FindTag() extends the search into child visuals, covering recursively entire visual hierarchies.
Todo: how should several visuals with matching tag to be handled ??
CAlfVisual::Tag() CAlfVisual::SetTagL() CAlfVisual::IsTagged() CAlfVisual::FindTag()
const TDesC8 & aTag | Tag to look for. If this tag is found as a part of a visual's colon-separated tag descriptor, it is treated as a match and the visual is returned. The tag to look for cannot contain separator characters (:). |
IMPORT_C void | PropertyOwnerExtension | ( | const TUid & | aExtensionUid, |
TAny ** | aExtensionParams | |||
) | [protected, virtual] |
! future proofing
IMPORT_C void | UpdateChildrenLayout | ( | TInt | aTransitionTime = 0 | ) | [virtual] |
CAlfVisual Update the layout of all children. Subclasses can call this to recalculate the layout of all children.
TInt aTransitionTime = 0 | Time for layout transition in milliseconds. Any negative value uses value given in CAlfEnv::StaticSetLayoutTransitionTime() |
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.