CSmilRegion Class Reference

class CSmilRegion : public CBase

Inherits from

Nested Classes and Structures

Public Member Functions
~CSmilRegion ()
void AddChild ( CSmilRegion *)
void AddMediaL ( CSmilMedia *)
CSmilArea * AreaAt (const TPoint &, TBool )
TBool BackgroundTransparent ()
TBool ContainsMedia (const CSmilMedia *)
void Draw ( CGraphicsContext &, const TRect &)
CSmilRegion * FirstChild ()
TRgb GetBackground ()
TBgMode GetBackgroundMode ()
TFit GetFit ()
TRgb GetForeground ()
TRect GetRectangle ()
TRect GetRectangle (const CSmilMedia *)
TInt GetZIndex ()
TPtrC Id ()
TBool IsRoot ()
CSmilRegion * LastChild ()
void Layout ( TReal32 )
CSmilMedia * MediaAt (const TPoint &, TBool )
void MediaTransitionEnd ( CSmilMedia *)
TPtrC Name ()
CSmilRegion * NewL ( CSmilPresentation *)
CSmilRegion * NextSibling ()
MSmilRegion * Parent ()
CSmilRegion * PreviousSibling ()
void PrintTree (int)
void Redraw ()
void Redraw ( TRect )
void RemoveMedia ( CSmilMedia *)
MSmilRegion * Root ()
void SetFirstChild ( CSmilRegion *)
void SetId (const TDesC &)
void SetLastChild ( CSmilRegion *)
void SetName (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
enum TDirection {
ELeft , ERight , ETop , EBottom , ETopTwoWay , EBottomTwoWay , EAll
}
Public Attributes
TRgb iBackground
TBgMode iBackgroundMode
TSmilLength iBottom
TFit iFit
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 *)

void AddChild ( CSmilRegion * ) [inline, virtual]

Parameters

CSmilRegion *

AddMediaL(CSmilMedia *)

void AddMediaL ( CSmilMedia * aMedia ) [virtual]

Parameters

CSmilMedia * aMedia

AreaAt(const TPoint &, TBool)

CSmilArea * AreaAt ( const TPoint & aPoint,
TBool aOnlyFocusable = 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 &)

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

Parameters

CGraphicsContext & aGc
const TRect & aRect

FindNearest(const TPoint &, TDirection, TInt &)

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

Parameters

const TPoint & aPoint
TDirection iDir
TInt & dist2

FirstChild()

CSmilRegion * FirstChild ( ) const [inline, virtual]

GetBackground()

TRgb GetBackground ( ) const [virtual]

GetBackgroundMode()

TBgMode GetBackgroundMode ( ) const [virtual]

GetFit()

TFit GetFit ( ) 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)

void Layout ( TReal32 aScalingFactor = 1 ) [virtual]

Calculate the region positions

Parameters

TReal32 aScalingFactor = 1

MediaAt(const TPoint &, TBool)

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

Parameters

const TPoint & aPoint
TBool aOnlyFocusable = EFalse

MediaTransitionEnd(CSmilMedia *)

void MediaTransitionEnd ( 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)

void PrintTree ( int d = 0 ) const [virtual]

Parameters

int d = 0

Redraw()

void Redraw ( ) [virtual]

Redraw(TRect)

void Redraw ( TRect iUpdate ) [virtual]

Parameters

TRect iUpdate

RemoveMedia(CSmilMedia *)

void RemoveMedia ( CSmilMedia * aMedia ) [virtual]

Parameters

CSmilMedia * aMedia

Root()

MSmilRegion * Root ( ) const [virtual]

SetFirstChild(CSmilRegion *)

void SetFirstChild ( CSmilRegion * ) [inline, virtual]

Parameters

CSmilRegion *

SetId(const TDesC &)

void SetId ( const TDesC & aId ) [inline]

Parameters

const TDesC & aId

SetLastChild(CSmilRegion *)

void SetLastChild ( CSmilRegion * ) [inline, virtual]

Parameters

CSmilRegion *

SetName(const TDesC &)

void SetName ( 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

TBgMode iBackgroundMode

TSmilLength iBottom

TSmilLength iBottom

TBool iDefaultLayout

TBool iDefaultLayout [protected]

TFit iFit

TFit iFit

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