MWsGraphicDrawerEnvironment Class Reference
class MWsGraphicDrawerEnvironment : public MWsObjectProvider
|
The environment for a graphic drawer
Inherits from
-
MWsGraphicDrawerEnvironment
Protected Member Functions
|
void
|
Invalidate
(const TGraphicDrawerId &)
|
Member Functions Documentation
ClearCustomAnimationScheduler(MWsAnimationScheduler *)
Clears a custom animation scheduler
HasCustomAnimationScheduler()
TBool
|
HasCustomAnimationScheduler
|
(
|
)
|
const [pure virtual]
|
Query whether a custom animation scheduler has been set
Invalidate(const TGraphicDrawerId &)
void
|
Invalidate
|
(
|
const TGraphicDrawerId &
|
aId
|
)
|
[protected, pure virtual]
|
Schedules all potentially affected parts of the screen to repaint This is called automatically whenever a graphic is added, replaced or removed. However, if a graphic which changes representation during runtime must call this explicitly. Note: this is not a suitable method for animating a graphic. For animation, use MWsGc::Invalidate when the graphic is being drawn to schedule the next animation frame instead.
Parameters
const TGraphicDrawerId & aId
|
the ID of the artwork; the artwork may not exist
|
Log(TInt, const TDesC &, TInt)
void
|
Log
|
(
|
TInt
|
aPriority,
|
|
const
TDesC
&
|
aFmt,
|
|
TInt
|
aParam = 0
|
|
)
|
[pure virtual]
|
Logs a message to the wserv logger, if one is loaded
Parameters
TInt
aPriority
|
The priority of the message - low priority is 1, high is 9
|
const
TDesC
& aFmt
|
The string to log. This may contain a single d, x or equivalent
|
TInt
aParam = 0
|
An integer parameter corresponding to a d, if present
|
RegisterEventHandler(CWsGraphicDrawer *, MWsEventHandler *, TUint32)
Register to be notified when some events occur.
RegisterMemoryRelease(MWsMemoryRelease *)
Registers an interface for releasing memory in low memory situations. The release function may be called as a result of any Alloc or ReAlloc attempts in the window server process.
RegisterWsEventHandler(MWsEventHandler *, TUint32)
Register to be notified when some events occur.
ResolveGraphic(const TGraphicDrawerId &)
const
CWsGraphicDrawer
*
|
ResolveGraphic
|
(
|
const TGraphicDrawerId &
|
aId
|
)
|
const [pure virtual]
|
Parameters
const TGraphicDrawerId & aId
|
|
Screen(TInt)
Get a particular screen by ordinal
Screen(TInt)
Get a particular screen by ordinal
ScreenCount()
TInt
|
ScreenCount
|
(
|
)
|
const [pure virtual]
|
The number of screens the device has; this is constant for a device
SetCustomAnimationScheduler(MWsAnimationScheduler *)
UnregisterEventHandler(CWsGraphicDrawer *)
Unregister from events notification
UnregisterMemoryRelease(MWsMemoryRelease *)
void
|
UnregisterMemoryRelease
|
(
|
MWsMemoryRelease
*
|
aMemoryRelease
|
)
|
[pure virtual]
|
Removes a registration set by RegisterMemoryRelease
UnregisterWsEventHandler(MWsEventHandler *)
Unregister from events notification
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.