API published in: S60 2nd Ed FP 3
Link against: aknskins.lib aknskinsrv.lib aknswallpaperutils.lib
Required Capabilities
None
#include <aknsrleffect.h>
States of an effect plugin are:
Release
returns the plugin to this state.
InitializeL
). Any dynamic data (common to the entire lifetime of the plugin) has been constructed. Call to Deactivate
returns the plugin to this state.
ActivateL
). This is the only state where parameter setup or rendering can take place.
A plugin instance is owned by the effect pool. A plugin instance is activated by the effect renderer to perform one rendering operation.
The effect renderer maintains a set of layers to store graphical content during the rendering of a single skin item. The effect renderer provides the active plugin with an effect context that is used to access these layers.
The plugin may assume the following restrictions:
Public Member Functions |
|
virtual void | InitializeL ()=0 |
Initializes the effect plugin instance. |
|
virtual void | Release ()=0 |
Releases the effect plugin instance. |
|
virtual void | ActivateL (MAknsRlEffectContext *aContext)=0 |
Activates the effect plugin to perform a single rendering operation. |
|
virtual void | Deactivate ()=0 |
Deactivates the effect plugin after a rendering operation. |
|
virtual void | SetParametersL (MAknsRlParameterIterator &aParameters)=0 |
Sets the parameters for an active effect plugin. |
|
virtual void | GetCapabilities (TAknsRlEffectCaps &aCaps)=0 |
Retrieves the capabilities of the effect plugin. |
|
virtual TInt | Render (const TAknsRlRenderOpParam &aParam)=0 |
Renders the effect. |
|
Activates the effect plugin to perform a single rendering operation. This method is called once by the effect renderer before a rendering operation is requested.
|
|
Deactivates the effect plugin after a rendering operation. This method is called once by the effect renderer after a rendering operation has completed, or the operation is aborted. |
|
Retrieves the capabilities of the effect plugin.
The capabilities returned by this method must reflect the currently set parameters (if any). If
If this method is called for an effect instance that has been initialized but not activated, the capabilities must reflect
the support for any (valid and supported) parameters. If the plugin can not determine the capabilities without knowing the
parameters, it must set all the layer support fields to
If the returned capabilities indicate that no output layer is supported (only
|
|
Initializes the effect plugin instance. This method is called once for each effect by the effect pool before calls to any other methods are made.
|
|
Releases the effect plugin instance. This method is called once for each effect by the effect pool. No calls to any methods can be done after this method has been called. |
|
Renders the effect.
The plugin implementation can perform rendering in one or more steps. Although the plugin has access to all the layers (and
both RGB and alpha channels) during rendering, it should only use the content of the input layers (and channels) specified
in The same layer index can be specified as both the input and the output layer (if at least one input layer is supported by the plugin). The plugin must implement the effect so that any combination of layer indices is correctly rendered.
The plugin may assume that rendering operation is never called with parameters inconsistent with the plugin capabilities (as
the capabilities would have been returned if
|
|
Sets the parameters for an active effect plugin. The effect may call this method zero or more times for any active plugin before starting the rendering operation If any parameter appears more than once in the given iterator (or in iterators given in more than one call to this method), the latest parameter value must be used. Already set parameters can not be removed, but their values can be updated.
Any parameters not supported by this plugin at all (i.e., the name of the parameter is not recognized) must be ignored silently.
If parameter type or value is not supported, the plugin may leave with
If a particular combination of parameters is not supported (and further calls to this method can not change the situation),
the plugin may leave with
|