CTransparentUtil Class Reference

List of all members.

Public Member Functions

 CTransparentUtil ()
 ~CTransparentUtil ()
void ConstructL ()
void ClearWindow (RWsSession &aSession, RWindow &aWindow, CWindowGc *aGc, TRgb aColor)
void DrawWindow (RWindow &aWindow, TRgb aColor1, TRgb aColor2, TRect aRect, const TDesC &aText)
void DrawWindowRegion (RWindow &aWindow, TRgb aColor1, TRgb aColor2, TRect aChopRect, TRect aRect, const TDesC &aText, const TPoint &aPoint)
void TransparencyVarianceL ()
void TransparentRegionL ()
TBool DoChangeTransparencyL ()
TBool DoSetTransparentRegion ()

Static Public Member Functions

static CTransparentUtilNewL ()
static TBool Flag ()

Public Attributes

TRegionFix< 2 > iRegion

Detailed Description

View class

Definition at line 64 of file transparent.h.


Constructor & Destructor Documentation

CTransparentUtil::CTransparentUtil (  ) 

Constructor

Definition at line 45 of file transparent_util.cpp.

CTransparentUtil::~CTransparentUtil (  ) 

Destructor

Definition at line 65 of file transparent_util.cpp.


Member Function Documentation

CTransparentUtil * CTransparentUtil::NewL (  )  [static]

Creates an object of type CTransparentUtil

Returns:
New CTransparentUtil object

Definition at line 53 of file transparent_util.cpp.

void CTransparentUtil::ConstructL (  ) 

Initializations for window server session, screen device, graphics context window group, background window, foreground window, event handler, blank window and active object for delay. KErrNoMemory System-wide error codes.

Definition at line 93 of file transparent_util.cpp.

void CTransparentUtil::ClearWindow ( RWsSession &  aSession,
RWindow &  aWindow,
CWindowGc *  aGc,
TRgb  aColor 
)

Clears the window to the selected colour

Parameters:
aSession The window server session
aWindow The handle to the window
aGc Graphics context of the window
aColor Colour to be used when the window is cleared

Definition at line 217 of file transparent_util.cpp.

void CTransparentUtil::DrawWindow ( RWindow &  aWindow,
TRgb  aColor1,
TRgb  aColor2,
TRect  aRect,
const TDesC &  aText 
)

Clears the window to the selected colour and redraws the background window

Parameters:
aWindow The handle to the window
aColor1 Colour to be used when the window is cleared
aColor2 Colour in which the window must be drawn
aRect Area to be drawn

Definition at line 171 of file transparent_util.cpp.

void CTransparentUtil::DrawWindowRegion ( RWindow &  aWindow,
TRgb  aColor1,
TRgb  aColor2,
TRect  aChopRect,
TRect  aRect,
const TDesC &  aText,
const TPoint &  aPoint 
)

Clears the window to the selected colour and redraws the region of the foreground window

Parameters:
aWindow The handle to the window
aColor1 Colour to be used when the window is cleared
aColor2 Colour in which the window must be drawn
aChopRect Region of the foreground window to be drawn.
aRect Area to be drawn
aText Text to be drawn.
aPoint Point at which text should be drawn.

Definition at line 314 of file transparent_util.cpp.

void CTransparentUtil::TransparencyVarianceL (  ) 

Creates an opaque background window and draws a circle onto it. Creates a transparent foreground window and draws an ellipse onto it. Waits for button press events and starts the active scheduler upon the corresponding button being pressed. System-wide error codes.

Definition at line 197 of file transparent_util.cpp.

void CTransparentUtil::TransparentRegionL (  ) 

Creates an transparent foreground window with some region of it made opaque. Waits for button press events and starts the active scheduler upon the corresponding button being pressed. System-wide error codes.

Definition at line 263 of file transparent_util.cpp.

TBool CTransparentUtil::DoChangeTransparencyL (  ) 

Varies the alpha value of the window up to 255 i.e. until the window turns opaque

Returns:
ETrue if the alpha value is less than its maximum limit otherwise return EFalse.

Definition at line 234 of file transparent_util.cpp.


Generated by  doxygen 1.6.2