CSmilRegion Class Reference

class CSmilRegion : public CBase

Inherits from

Nested Classes and Structures

Public Member Functions
~CSmilRegion()
voidAddChild(CSmilRegion *)
voidAddMediaL(CSmilMedia *)
CSmilArea *AreaAt(const TPoint &, TBool)
TBool BackgroundTransparent()
TBool ContainsMedia(const CSmilMedia *)
voidDraw(CGraphicsContext &, const TRect &)
CSmilRegion *FirstChild()
TRgb GetBackground()
TBgModeGetBackgroundMode()
TFitGetFit()
TRgb GetForeground()
TRect GetRectangle()
TRect GetRectangle(const CSmilMedia *)
TInt GetZIndex()
TPtrC Id()
TBool IsRoot()
CSmilRegion *LastChild()
voidLayout(TReal32)
CSmilMedia *MediaAt(const TPoint &, TBool)
voidMediaTransitionEnd(CSmilMedia *)
TPtrC Name()
CSmilRegion *NewL(CSmilPresentation *)
CSmilRegion *NextSibling()
MSmilRegion *Parent()
CSmilRegion *PreviousSibling()
voidPrintTree(int)
voidRedraw()
voidRedraw(TRect)
voidRemoveMedia(CSmilMedia *)
MSmilRegion *Root()
voidSetFirstChild(CSmilRegion *)
voidSetId(const TDesC &)
voidSetLastChild(CSmilRegion *)
voidSetName(const TDesC &)
Protected Member Functions
CSmilRegion(CSmilPresentation *)
CSmilObject *FindNearest(const TPoint &, TDirection, TInt &)
Inherited Functions
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()
Public Member Enumerations
enumTDirection {
ELeft, ERight, ETop, EBottom, ETopTwoWay, EBottomTwoWay, EAll
}
Public Attributes
TRgb iBackground
TBgModeiBackgroundMode
TSmilLength iBottom
TFitiFit
TRgb iForeground
TSmilLength iHeight
RSmilTextBuf iId
TSmilLength iLeft
RSmilTextBuf iName
TSmilLength iRight
TSmilLength iTop
TBool iTransparent
TSmilLength iWidth
TInt iZIndex
Protected Attributes
TBool iDefaultLayout
CSmilRegion *iNext
CSmilRegion *iParent
CSmilPresentation *iPresentation
CSmilRegion *iPrevious
TRect iRect
MediaListItem *iVisibleMedia

Constructor & Destructor Documentation

CSmilRegion(CSmilPresentation *)

CSmilRegion(CSmilPresentation *aPresentation)[protected]

Parameters

CSmilPresentation * aPresentation

~CSmilRegion()

~CSmilRegion()[virtual]

Destructor.

Member Functions Documentation

AddChild(CSmilRegion *)

voidAddChild(CSmilRegion *)[inline, virtual]

Parameters

CSmilRegion *

AddMediaL(CSmilMedia *)

voidAddMediaL(CSmilMedia *aMedia)[virtual]

Parameters

CSmilMedia * aMedia

AreaAt(const TPoint &, TBool)

CSmilArea *AreaAt(const TPoint &aPoint,
TBoolaOnlyFocusable = EFalse
)[virtual]

Parameters

const TPoint & aPoint
TBool aOnlyFocusable = EFalse

BackgroundTransparent()

TBool BackgroundTransparent()const [inline, virtual]

ContainsMedia(const CSmilMedia *)

TBool ContainsMedia(const CSmilMedia *aMedia)const [virtual]

Parameters

const CSmilMedia * aMedia

Draw(CGraphicsContext &, const TRect &)

voidDraw(CGraphicsContext &aGc,
const TRect &aRect
)[virtual]

Parameters

CGraphicsContext & aGc
const TRect & aRect

FindNearest(const TPoint &, TDirection, TInt &)

CSmilObject *FindNearest(const TPoint &aPoint,
TDirectioniDir,
TInt &dist2
)[protected, virtual]

Parameters

const TPoint & aPoint
TDirection iDir
TInt & dist2

FirstChild()

CSmilRegion *FirstChild()const [inline, virtual]

GetBackground()

TRgb GetBackground()const [virtual]

GetBackgroundMode()

TBgModeGetBackgroundMode()const [virtual]

GetFit()

TFitGetFit()const [virtual]

GetForeground()

TRgb GetForeground()const [virtual]

GetRectangle()

TRect GetRectangle()const [virtual]

Following methods are an implementation of MSmilRegion interface

GetRectangle(const CSmilMedia *)

TRect GetRectangle(const CSmilMedia *aMedia)const [virtual]

Parameters

const CSmilMedia * aMedia

GetZIndex()

TInt GetZIndex()const [virtual]

Id()

TPtrC Id()const [inline]

IsRoot()

TBool IsRoot()const [inline, virtual]

LastChild()

CSmilRegion *LastChild()const [inline, virtual]

Layout(TReal32)

voidLayout(TReal32aScalingFactor = 1)[virtual]

Calculate the region positions

Parameters

TReal32 aScalingFactor = 1

MediaAt(const TPoint &, TBool)

CSmilMedia *MediaAt(const TPoint &aPoint,
TBoolaOnlyFocusable = EFalse
)[virtual]

Parameters

const TPoint & aPoint
TBool aOnlyFocusable = EFalse

MediaTransitionEnd(CSmilMedia *)

voidMediaTransitionEnd(CSmilMedia *aMedia)[virtual]

Parameters

CSmilMedia * aMedia

Name()

TPtrC Name()const [inline]

NewL(CSmilPresentation *)

CSmilRegion *NewL(CSmilPresentation *aPresentation)[static]

Two-phased constructor.

Parameters

CSmilPresentation * aPresentation

NextSibling()

CSmilRegion *NextSibling()const [inline, virtual]

Parent()

MSmilRegion *Parent()const [virtual]

PreviousSibling()

CSmilRegion *PreviousSibling()const [inline, virtual]

PrintTree(int)

voidPrintTree(intd = 0)const [virtual]

Parameters

int d = 0

Redraw()

voidRedraw()[virtual]

Redraw(TRect)

voidRedraw(TRectiUpdate)[virtual]

Parameters

TRect iUpdate

RemoveMedia(CSmilMedia *)

voidRemoveMedia(CSmilMedia *aMedia)[virtual]

Parameters

CSmilMedia * aMedia

Root()

MSmilRegion *Root()const [virtual]

SetFirstChild(CSmilRegion *)

voidSetFirstChild(CSmilRegion *)[inline, virtual]

Parameters

CSmilRegion *

SetId(const TDesC &)

voidSetId(const TDesC &aId)[inline]

Parameters

const TDesC & aId

SetLastChild(CSmilRegion *)

voidSetLastChild(CSmilRegion *)[inline, virtual]

Parameters

CSmilRegion *

SetName(const TDesC &)

voidSetName(const TDesC &aName)[inline]

Parameters

const TDesC & aName

Member Enumerations Documentation

Enum TDirection

Enumerators

ELeft
ERight
ETop
EBottom
ETopTwoWay
EBottomTwoWay
EAll

Member Data Documentation

TRgb iBackground

TRgb iBackground

TBgMode iBackgroundMode

TBgModeiBackgroundMode

TSmilLength iBottom

TSmilLength iBottom

TBool iDefaultLayout

TBool iDefaultLayout[protected]

TFit iFit

TFitiFit

TRgb iForeground

TRgb iForeground

TSmilLength iHeight

TSmilLength iHeight

RSmilTextBuf iId

RSmilTextBuf iId

TSmilLength iLeft

TSmilLength iLeft

RSmilTextBuf iName

RSmilTextBuf iName

CSmilRegion * iNext

CSmilRegion *iNext[protected]

CSmilRegion * iParent

CSmilRegion *iParent[protected]

CSmilPresentation * iPresentation

CSmilPresentation *iPresentation[protected]

CSmilRegion * iPrevious

CSmilRegion *iPrevious[protected]

TRect iRect

TRect iRect[protected]

TSmilLength iRight

TSmilLength iRight

TSmilLength iTop

TSmilLength iTop

TBool iTransparent

TBool iTransparent

MediaListItem * iVisibleMedia

MediaListItem *iVisibleMedia[protected]

TSmilLength iWidth

TSmilLength iWidth

TInt iZIndex

TInt iZIndex