CAlfVisual Class Reference

class CAlfVisual : public CAlfPropertyOwner

Visual base class

All visuals and layout are derived from this. Usage:
    // #1 Visual object usage
    CAlfVisual* newVisual = CAlfVisual::AddNewL( *myMainControl, mMainGridLayout );
    newVisual->EnableBrushesL();
    newVisual->Brushes->AppendL( borderBrush, EAlfHasOwnership );
    
   // #2 as a base class
   class CMyVisual : public CAlfVisual
       {    
   public:
       // allocation function
       CMyVisual(CAlfControl& aOwnerControl, CAlfLayout* aParentLayout = 0);  
    
       // Function documentation
       void MyVisualSpecificFunction();
   protected:

       ~CAlfVisual();
   private:
       TInt mMyPrivateData;    
       };
alfclient.lib
Since
S60 v3.2

Inherits from

Nested Classes and Structures

Public Member Functions
CAlfVisual()
~CAlfVisual()
IMPORT_C voidAlignByOrigin(TAlfRealRect &)
IMPORT_C CAlfBrushArray *Brushes()
IMPORT_C voidClearFlag(TAlfVisualFlags)
IMPORT_C voidClearFlags(TUint)
IMPORT_C TBoolClipping()
IMPORT_C CAlfGenComponent *Comms()
IMPORT_C voidConstructL(CAlfControl &)
IMPORT_C voidConstructL(CAlfControl &, TInt, TInt, const TDesC8 &)
IMPORT_C TIntCopyValues(const CAlfVisual &, TInt, TInt)
IMPORT_C TAlfTimedValueDepthOffset()
IMPORT_C CAlfDisplay *Display()
IMPORT_C TAlfRealRectDisplayRect()
IMPORT_C TAlfRealRectDisplayRectTarget()
IMPORT_C TPointDisplayToLocal(const TPoint &)
IMPORT_C TAlfRealPointDisplayToLocal(const TAlfRealPoint &)
IMPORT_C voidDoRemoveAndDestroyAllD()
IMPORT_C CAlfDropShadow *DropShadowHandler()
IMPORT_C TReal32EffectiveOpacity()
IMPORT_C voidEnableBrushesL(TBool)
IMPORT_C voidEnableDropShadowL(TBool)
IMPORT_C voidEnableTransformationL(TBool)
IMPORT_C CAlfEnv &Env()
IMPORT_C CAlfVisual *FindTag(const TDesC8 &)
IMPORT_C TUintFlags()
IMPORT_C TBoolHasTactileFeedback(TInt)
IMPORT_C TAlfVisualHOriginHorizontalOrigin()
IMPORT_C TIntHorizontalPadding()
IMPORT_C TIntIdentifier()
IMPORT_C TBoolIsTagged()
IMPORT_C CAlfLayout *Layout()
IMPORT_C TPointLocalToDisplay(const TPoint &)
IMPORT_C TAlfRealPointLocalToDisplay(const TAlfRealPoint &)
IMPORT_C TSizeMaxSize()
IMPORT_C TAlfRealSizeMaxSizeInBaseUnits()
IMPORT_C voidMimic(CAlfVisual &, TInt)
IMPORT_C TSizeMinSize()
IMPORT_C TAlfRealSizeMinSizeInBaseUnits()
IMPORT_C voidMove(const TPoint &, TInt)
IMPORT_C voidMove(const TAlfRealPoint &, TInt)
IMPORT_C voidMoveToFront(TInt)
IMPORT_C const TAlfTimedValue &Opacity()
IMPORT_C CAlfControl &Owner()
IMPORT_C TPointPadding()
IMPORT_C const TAlfBoxMetric &PaddingAsMetric()
IMPORT_C TAlfRealRectPaddingInPixels()
IMPORT_C voidPause(TInt)
IMPORT_C TAlfTimedPointPos()
IMPORT_C voidRemoveAndDestroyAllD()
IMPORT_C voidRemoveTactileFeedback(TInt)
IMPORT_C voidResume(TInt)
IMPORT_C voidSetCenteredPosAndSize(const TPoint &, const TSize &, TInt)
IMPORT_C voidSetCenteredPosAndSize(const TAlfRealPoint &, const TAlfRealSize &, TInt)
IMPORT_C voidSetClipping(TBool)
IMPORT_C voidSetDepthOffset(const TAlfTimedValue &)
voidSetDisplay(CAlfDisplay *)
IMPORT_C voidSetEffectL(const TDesC &)
IMPORT_C voidSetFlag(TAlfVisualFlags)
IMPORT_C voidSetFlags(TUint)
IMPORT_C voidSetGroupEffectL(const TDesC &, TInt)
voidSetLayout(CAlfLayout *)
IMPORT_C voidSetMaxSize(const TSize &)
IMPORT_C voidSetMaxSize(const TAlfRealSize &)
IMPORT_C voidSetMinSize(const TSize &)
IMPORT_C voidSetMinSize(const TAlfRealSize &)
IMPORT_C voidSetOpacity(const TAlfTimedValue &)
IMPORT_C voidSetOrigin(TAlfVisualHOrigin, TAlfVisualVOrigin)
IMPORT_C voidSetOwner(CAlfControl &)
IMPORT_C voidSetPadding(TInt)
IMPORT_C voidSetPadding(const TPoint &)
IMPORT_C voidSetPadding(const TAlfBoxMetric &)
IMPORT_C voidSetPos(const TAlfRealPoint &, TInt)
IMPORT_C voidSetPos(const TAlfTimedPoint &)
IMPORT_C voidSetRect(const TAlfRealRect &, TInt)
IMPORT_C voidSetSize(const TAlfRealSize &, TInt)
IMPORT_C voidSetSize(const TAlfTimedPoint &)
IMPORT_C voidSetTactileFeedbackL(TInt, TInt)
IMPORT_C voidSetTagL(const TDesC8 &)
IMPORT_C const TAlfTimedPointSize()
IMPORT_C const TDesC8 &Tag()
TBool TagMatches(const TDesC8 &)
IMPORT_C CAlfTransformation &Transformation()
IMPORT_C voidUpdateChildrenLayout(TInt)
IMPORT_C TAlfVisualVOriginVerticalOrigin()
IMPORT_C TIntVerticalPadding()
Protected Member Functions
IMPORT_C voidPropertyOwnerExtension(const TUid &, TAny **)
Inherited Functions
CAlfPropertyOwner::CAlfPropertyOwner()
CAlfPropertyOwner::CopyProperty(const CAlfPropertyOwner &,const TDesC8 &)
CAlfPropertyOwner::PropertyClear()
CAlfPropertyOwner::PropertyFindInteger(const TDesC8 &,TInt *)const
CAlfPropertyOwner::PropertyFindString(const TDesC8 &,TDesC **)const
CAlfPropertyOwner::PropertyRemove(const TDesC8 &)
CAlfPropertyOwner::PropertySetIntegerL(const TDesC8 &,TInt,TInt,TInt)
CAlfPropertyOwner::PropertySetStringL(const TDesC8 &,const TDesC &)
CAlfPropertyOwner::~CAlfPropertyOwner()
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
TPrivateData *iData

Constructor & Destructor Documentation

CAlfVisual()

IMPORT_CCAlfVisual()

Constructor

~CAlfVisual()

IMPORT_C~CAlfVisual()[virtual]

Destructor

Member Functions Documentation

AlignByOrigin(TAlfRealRect &)

IMPORT_C voidAlignByOrigin(TAlfRealRect &aRect)const

Aligns the rectangle using the visual's origin position.

Parameters

TAlfRealRect & aRectA rectangle (origin at top left). Modified to suit the visual's origin.

Brushes()

IMPORT_C CAlfBrushArray *Brushes()

Returns the brushes of the visual.

ClearFlag(TAlfVisualFlags)

IMPORT_C voidClearFlag(TAlfVisualFlagsaFlag)

Unset flags that affect the visual's behaviour.

Parameters

TAlfVisualFlags aFlagFlag to clear.

ClearFlags(TUint)

IMPORT_C voidClearFlags(TUintaAnyFlags)

Clear one or more flags that affect the visual's behaviour.

Parameters

TUint aAnyFlagsOne or more flags to clear.

Clipping()

IMPORT_C TBoolClipping()const

Determines whether the visual is clipping its contents.

Comms()

IMPORT_C CAlfGenComponent *Comms()const

ConstructL(CAlfControl &)

IMPORT_C voidConstructL(CAlfControl &aOwner)[virtual]

ConstructL

Parameters

CAlfControl & aOwner

ConstructL(CAlfControl &, TInt, TInt, const TDesC8 &)

IMPORT_C voidConstructL(CAlfControl &aOwner,
TIntaImplementationId,
TIntaImplementationUid,
const TDesC8 &aConstructionParams
)

Parameters

CAlfControl & aOwnerWho owns this new control.
TInt aImplementationId
TInt aImplementationUid
const TDesC8 & aConstructionParams

CopyValues(const CAlfVisual &, TInt, TInt)

IMPORT_C TIntCopyValues(const CAlfVisual &aSourceVisual,
TIntaBitmask = AlfVisualProperties::EAll,
TIntaTransitionTime = 0
)

Copies selected, basic types of properties from another visual If another visual is in the middle of interpolating selected value(s), target value is used with given transition time.

For dynamic properties, use CAlfPropertyOwner::CopyProperty()

Parameters

const CAlfVisual & aSourceVisualVisual, from which the values are copied
TInt aBitmask = AlfVisualProperties::EAllDefines what properties to copy
TInt aTransitionTime = 0Number of milliseconds for transitioning to new values.

DepthOffset()

IMPORT_C TAlfTimedValueDepthOffset()const

Gets the depth offset.

Display()

IMPORT_C CAlfDisplay *Display()const

Returns the display of the visual (if shown).

DisplayRect()

IMPORT_C TAlfRealRectDisplayRect()const

Calculates the visual's bounding rectangle in display coordinates. Display coordinates are defined relative to the display's visible area. Uses the current values of the position and size. Only calculated once per frame.

DisplayRectTarget()

IMPORT_C TAlfRealRectDisplayRectTarget()const

Calculates the visual's bounding rectangle in display coordinates. Display coordinates are defined relative to the display's visible area. Uses the target values of the position and size, which means transitions are always immediate in the returned rectangle.

DisplayToLocal(const TPoint &)

IMPORT_C TPointDisplayToLocal(const TPoint &aPoint)const

Parameters

const TPoint & aPoint

DisplayToLocal(const TAlfRealPoint &)

IMPORT_C TAlfRealPointDisplayToLocal(const TAlfRealPoint &aPoint)const

Convert display coordinates to local coordinate. Display coordinates are defined relative to the display's visible area.

Parameters

const TAlfRealPoint & aPointPoint in display coordinates.

DoRemoveAndDestroyAllD()

IMPORT_C voidDoRemoveAndDestroyAllD()[virtual]

! Deletes the visual

DropShadowHandler()

IMPORT_C CAlfDropShadow *DropShadowHandler()const

Returns the drop shadow parameter handler.

EffectiveOpacity()

IMPORT_C TReal32EffectiveOpacity()const

Returns the opacity of the visual, taking into account the opacity of parent visuals.

EnableBrushesL(TBool)

IMPORT_C voidEnableBrushesL(TBoolaEnabled = ETrue)

Enables or disables brushes for the visual.

Parameters

TBool aEnabled = ETrue

EnableDropShadowL(TBool)

IMPORT_C voidEnableDropShadowL(TBoolaEnable = ETrue)

Enables the drop shadow. Currently implemented for the image and text visuals.

Parameters

TBool aEnable = ETrueETrue to enable, EFalse to disable.

EnableTransformationL(TBool)

IMPORT_C voidEnableTransformationL(TBoolaIsTransformed = ETrue)

Enables or disables transformation of the control group.

Parameters

TBool aIsTransformed = ETrueETrue for enabling.

Env()

IMPORT_C CAlfEnv &Env()const

Returns the environment where this visual belongs into.

FindTag(const TDesC8 &)

IMPORT_C CAlfVisual *FindTag(const TDesC8 &aTag)[virtual]

Finds a visual whose tag descriptor contains a specific tag.

CAlfVisual::FindTag() is the basic implementation that checks if this visual's tag matches the specified 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() CAlfLayout::FindTag()

Parameters

const TDesC8 & aTagTag 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 (:).

Flags()

IMPORT_C TUintFlags()const

Returns the flags of the visual.

HasTactileFeedback(TInt)

IMPORT_C TBoolHasTactileFeedback(TIntaEventType =  KAlfTactileFeedbackEventTypeNone )const

Checks whether a tactile feedback has been assigned. Eventhough, this returns EFalse the layout may have feedback defined.

Parameters

TInt aEventType =  KAlfTactileFeedbackEventTypeNone Event type which needs to match If KAlfTactileFeedbackEventTypeNone, the event type is irrelevant.

HorizontalOrigin()

IMPORT_C TAlfVisualHOriginHorizontalOrigin()const

Determines the horizontal origin.

HorizontalPadding()

IMPORT_C TIntHorizontalPadding()const

Returns the horizontal padding pixels. Visuals can use this to determine the amount of padding that should be applied to the content.

this will return correct pixel values only if paddings were set using deprecated pixel based APIs, so migrate to using metrics instead

Identifier()

IMPORT_C TIntIdentifier()const

Return the server side handle

IsTagged()

IMPORT_C TBoolIsTagged()const

Determines if the visual has a tag.

CAlfVisual::Tag() CAlfVisual::SetTagL() CAlfVisual::FindTag()

Layout()

IMPORT_C CAlfLayout *Layout()const

Returns the layout this visual belongs to.

LocalToDisplay(const TPoint &)

IMPORT_C TPointLocalToDisplay(const TPoint &aPoint)const

Convert local coordiantes to display coordinates. Display coordinates are defined relative to the display's visible area.

Parameters

const TPoint & aPoint

LocalToDisplay(const TAlfRealPoint &)

IMPORT_C TAlfRealPointLocalToDisplay(const TAlfRealPoint &aPoint)const

Convert local coordinates to display coordinates. Display coordinates are defined relative to the display's visible area.

Parameters

const TAlfRealPoint & aPointPoint in local coordinates.

MaxSize()

IMPORT_C TSizeMaxSize()const

Use base unit version instead

Returns the maximum size of the visual.

MaxSizeInBaseUnits()

IMPORT_C TAlfRealSizeMaxSizeInBaseUnits()const

Returns the maximum size of the visual in base units.

Mimic(CAlfVisual &, TInt)

IMPORT_C voidMimic(CAlfVisual &aVisual,
TIntaTransitionTime = 0
)

Positions and sizes this visual to match another.

Parameters

CAlfVisual & aVisualVisual whose position and size to copy.
TInt aTransitionTime = 0

MinSize()

IMPORT_C TSizeMinSize()const

Use base unit version instead

Returns the minimum size of the visual.

MinSizeInBaseUnits()

IMPORT_C TAlfRealSizeMinSizeInBaseUnits()const

Returns the minimum size of the visual in base units.

Move(const TPoint &, TInt)

IMPORT_C voidMove(const TPoint &aOffset,
TIntaTransitionTime = 0
)

Use base unit version instead

Moves the visual's position.

Parameters

const TPoint & aOffsetOffset from the current target.
TInt aTransitionTime = 0Transition time in milliseconds.

Move(const TAlfRealPoint &, TInt)

IMPORT_C voidMove(const TAlfRealPoint &aOffset,
TIntaTransitionTime = 0
)

Moves the visual's position.

Parameters

const TAlfRealPoint & aOffsetOffset from the current target in base units.
TInt aTransitionTime = 0Transition time in milliseconds.

MoveToFront(TInt)

IMPORT_C voidMoveToFront(TIntaTransitionTime = 0)

Moves the visual to the front inside its parent layout. In other words, the visual becames the last child of the parent. Causes layout recalculation.

Parameters

TInt aTransitionTime = 0

Opacity()

IMPORT_C const TAlfTimedValue &Opacity()const

Returns the overall opacity affecting the owner's visuals. All visuals owned by this object are affected by this opacity.

Owner()

IMPORT_C CAlfControl &Owner()const

Returns the owner of the visual.

Padding()

IMPORT_C TPointPadding()const

Returns the padding pixels. Visuals can use this to determine the amount of padding that should be applied to the content.

this will return correct pixel values only if paddings were set using deprecated pixel based APIs, so migrate to using metrics instead

PaddingAsMetric()

IMPORT_C const TAlfBoxMetric &PaddingAsMetric()const

Returns the padding of the visual.

PaddingInPixels()

IMPORT_C TAlfRealRectPaddingInPixels()const

Returns the padding of the visual, in pixels.

Pause(TInt)

IMPORT_C voidPause(TIntaPropertiesBitmask = AlfVisualProperties::EAll)

Pauses selected, basic types of timed properties of this visual

Parameters

TInt aPropertiesBitmask = AlfVisualProperties::EAlldefines what properties are paused, combination of AlfVisualProperties

Pos()

IMPORT_C TAlfTimedPointPos()const

Returns the position of the visual. This is set by UpdateLayout().

PropertyOwnerExtension(const TUid &, TAny **)

IMPORT_C voidPropertyOwnerExtension(const TUid &aExtensionUid,
TAny **aExtensionParams
)[protected, virtual]

! future proofing

Parameters

const TUid & aExtensionUid
TAny ** aExtensionParams

RemoveAndDestroyAllD()

IMPORT_C voidRemoveAndDestroyAllD()[virtual]

Destroys a hierarchy of visuals, along with this visual. The visuals are first removed from their owner.

RemoveTactileFeedback(TInt)

IMPORT_C voidRemoveTactileFeedback(TIntaEventType =  KAlfTactileFeedbackEventTypeNone )

Removes tactile feedback for the visual.

Parameters

TInt aEventType =  KAlfTactileFeedbackEventTypeNone Event type which feedback to remove. If KAlfTactileFeedbackEventTypeNone, all the feedbacks are removed.

Resume(TInt)

IMPORT_C voidResume(TIntaPropertiesBitmask = AlfVisualProperties::EAll)

Resumes selected basic types of timed properties of this visual that were paused using CAlfVisual::Pause(). If a property was not paused before calling Resume, call does not have effect

Parameters

TInt aPropertiesBitmask = AlfVisualProperties::EAlldefines what properties are paused, combination of AlfVisualProperties

SetCenteredPosAndSize(const TPoint &, const TSize &, TInt)

IMPORT_C voidSetCenteredPosAndSize(const TPoint &aCenterPoint,
const TSize &aSize,
TIntaTransitionTime = 0
)

Use base unit version instead

Sets the position and size of the visual.

Parameters

const TPoint & aCenterPointNew center point of the visual.
const TSize & aSizeNew size of the visual.
TInt aTransitionTime = 0Number of milliseconds for transitioning to new values.

SetCenteredPosAndSize(const TAlfRealPoint &, const TAlfRealSize &, TInt)

IMPORT_C voidSetCenteredPosAndSize(const TAlfRealPoint &aCenterPoint,
const TAlfRealSize &aSize,
TIntaTransitionTime = 0
)

Sets the position and size of the visual.

Parameters

const TAlfRealPoint & aCenterPointNew center point of the visual in base units.
const TAlfRealSize & aSizeNew size of the visual in base units.
TInt aTransitionTime = 0Number of milliseconds for transitioning to new values.

SetClipping(TBool)

IMPORT_C voidSetClipping(TBoolaClipping = ETrue)

Sets the clipping mode of the layout.

Parameters

TBool aClipping = ETrueETrue to hide children that are outside the layout's real size.

SetDepthOffset(const TAlfTimedValue &)

IMPORT_C voidSetDepthOffset(const TAlfTimedValue &aDepthOffset)

Sets the depth offset.

Parameters

const TAlfTimedValue & aDepthOffsetDepth offset.

SetDisplay(CAlfDisplay *)

voidSetDisplay(CAlfDisplay *aDisplay)

Sets the display on which the visual is being shown.

Parameters

CAlfDisplay * aDisplayPointer to display onto which to attach the visual

SetEffectL(const TDesC &)

IMPORT_C voidSetEffectL(const TDesC &aEffectFile)

Parameters

const TDesC & aEffectFile

SetFlag(TAlfVisualFlags)

IMPORT_C voidSetFlag(TAlfVisualFlagsaFlag)

Set a flag that affects the visual's behaviour.

Parameters

TAlfVisualFlags aFlagFlag to set.

SetFlags(TUint)

IMPORT_C voidSetFlags(TUintaAnyFlags)

Sets one or more flags that affect the visual's behaviour.

Parameters

TUint aAnyFlagsOne or more flags to set.

SetGroupEffectL(const TDesC &, TInt)

IMPORT_C voidSetGroupEffectL(const TDesC &aEffectFile,
TIntaGroupHandle
)

Parameters

const TDesC & aEffectFile
TInt aGroupHandle

SetLayout(CAlfLayout *)

voidSetLayout(CAlfLayout *aLayout)

Sets the layout this visual belongs to.

Parameters

CAlfLayout * aLayoutParent layout

SetMaxSize(const TSize &)

IMPORT_C voidSetMaxSize(const TSize &aMaxSize)

Use base unit version instead

Sets the maximum size of the visual.

Parameters

const TSize & aMaxSizeMaximum size of the visual.

SetMaxSize(const TAlfRealSize &)

IMPORT_C voidSetMaxSize(const TAlfRealSize &aMaxSize)

Sets the maximum size of the visual.

Parameters

const TAlfRealSize & aMaxSizeMaximum size of the visual.

SetMinSize(const TSize &)

IMPORT_C voidSetMinSize(const TSize &aMinSize)

Use base unit version instead

Sets the minimum size of the visual.

Parameters

const TSize & aMinSizeMinimum size of the visual.

SetMinSize(const TAlfRealSize &)

IMPORT_C voidSetMinSize(const TAlfRealSize &aMinSize)

Sets the minimum size of the visual.

Parameters

const TAlfRealSize & aMinSizeMinimum size of the visual in base units.

SetOpacity(const TAlfTimedValue &)

IMPORT_C voidSetOpacity(const TAlfTimedValue &aOpacity)

Set opacity

Parameters

const TAlfTimedValue & aOpacityOpacity value.

SetOrigin(TAlfVisualHOrigin, TAlfVisualVOrigin)

IMPORT_C voidSetOrigin(TAlfVisualHOriginaHoriz,
TAlfVisualVOriginaVert
)

Sets the origin of the visual. The origin defines the location of the visual's position in relation to its DisplayRect. By default the visual's position defines its top left corner.

Calling this method is equivalent to setting/clearing the corresponding flags.

Parameters

TAlfVisualHOrigin aHoriz
TAlfVisualVOrigin aVert

SetOwner(CAlfControl &)

IMPORT_C voidSetOwner(CAlfControl &aOwner)

Sets the owner of the visual.

Parameters

CAlfControl & aOwnerNew owner of the visual.

SetPadding(TInt)

IMPORT_C voidSetPadding(TIntaPadding)

Sets the number of pixels that the visual uses for padding its contents. Sets both the horizontal and vertical padding.

Note:

that the left and right paddings will be the same, and the top and bottom paddings will be the same.

migrate to using metrics instead

Parameters

TInt aPaddingNumber of padding pixels.

SetPadding(const TPoint &)

IMPORT_C voidSetPadding(const TPoint &aPadding)

Sets the number of pixels that the visual uses for padding its contents. Sets the horizontal and vertical padding separately.

Note:

that the left and right paddings will be the same, and the top and bottom paddings will be the same.

migrate to using metrics instead

Parameters

const TPoint & aPaddingNumber of padding pixels.

SetPadding(const TAlfBoxMetric &)

IMPORT_C voidSetPadding(const TAlfBoxMetric &aPadding)

Sets the amount of padding that the visual uses for padding its contents. The box metric can have a different amount on all sides.

Note:

as paddings are relative to the layout visual, if relative units are required, it is advisable to use EAlfUnitRelativeToMySize so that the paddings are relative to the size of this layout visual

Parameters

const TAlfBoxMetric & aPaddingAmount of padding.

SetPos(const TAlfRealPoint &, TInt)

IMPORT_C voidSetPos(const TAlfRealPoint &aPos,
TIntaTransitionTime = 0
)

Sets the position of the visual.

Parameters

const TAlfRealPoint & aPos
TInt aTransitionTime = 0

SetPos(const TAlfTimedPoint &)

IMPORT_C voidSetPos(const TAlfTimedPoint &aPos)

Sets the position of the visual.

Parameters

const TAlfTimedPoint & aPos

SetRect(const TAlfRealRect &, TInt)

IMPORT_C voidSetRect(const TAlfRealRect &aRect,
TIntaTransitionTime = 0
)

Sets the position and size of the visual.

Parameters

const TAlfRealRect & aRectTarget rectangle.
TInt aTransitionTime = 0Transition timein milliseconds.

SetSize(const TAlfRealSize &, TInt)

IMPORT_C voidSetSize(const TAlfRealSize &aSize,
TIntaTransitionTime = 0
)

Sets the size of the visual.

Parameters

const TAlfRealSize & aSize
TInt aTransitionTime = 0

SetSize(const TAlfTimedPoint &)

IMPORT_C voidSetSize(const TAlfTimedPoint &aSize)

Sets the size of the visual.

Parameters

const TAlfTimedPoint & aSize

SetTactileFeedbackL(TInt, TInt)

IMPORT_C voidSetTactileFeedbackL(TIntaEventType,
TIntaFeedbackType
)

Sets an automatic tactile feedback. If this visual is a layout, the feedback affects to the child visuals as well. This can be overridden in child visuals.

TTouchEventType from touchlogicalfeedback.h TTouchLogicalFeedback from touchlogicalfeedback.h

Parameters

TInt aEventTypeEvent which triggers the automatic feedback.
TInt aFeedbackTypeFeedback type.

SetTagL(const TDesC8 &)

IMPORT_C voidSetTagL(const TDesC8 &aTag)

Sets the tag of the visual.

The tag is a descriptor, in the form of one or more colon-separated character sequences. By default, visuals have no tag (""). Normally, a visual could have a single tag, for example ("caption"). The tag descriptor of the visual may contain multiple tags, for example: "tag1:tag2:tag3".

Tags can be used for identifying visuals. In a typical use case, a control could identify which of its visuals represent certain elements of the control based on the tag descriptors. In this case, the tags would be set by an outside party that also sets the tags of the visuals.

CAlfVisual::Tag() CAlfVisual::IsTagged() CAlfVisual::FindTag()

Parameters

const TDesC8 & aTagTag descriptor for the visual.

Size()

IMPORT_C const TAlfTimedPointSize()const

Returns the size of the visual. This is set by UpdateLayout().

Tag()

IMPORT_C const TDesC8 &Tag()const

TagMatches(const TDesC8 &)

TBool TagMatches(const TDesC8 &aTag)const

Parameters

const TDesC8 & aTag

Transformation()

IMPORT_C CAlfTransformation &Transformation()

Returns the transformation of the control group.

UpdateChildrenLayout(TInt)

IMPORT_C voidUpdateChildrenLayout(TIntaTransitionTime = 0)[virtual]

Update the layout of all children. Subclasses can call this to recalculate the layout of all children.

Parameters

TInt aTransitionTime = 0Time for layout transition in milliseconds. Any negative value uses value given in CAlfEnv::StaticSetLayoutTransitionTime()

VerticalOrigin()

IMPORT_C TAlfVisualVOriginVerticalOrigin()const

Determines the vertical origin.

VerticalPadding()

IMPORT_C TIntVerticalPadding()const

Returns the vertical padding pixels. Visuals can use this to determine the amount of padding that should be applied to the content.

this will return correct pixel values only if paddings were set using deprecated pixel based APIs, so migrate to using metrics instead

Member Data Documentation

TPrivateData * iData

TPrivateData *iData[private]