AknsRendererWrapper Class Reference

class AknsRendererWrapper

Utility class that allows access to default renderer for scalable skin items.

This is a static public class with exported members.

AknSkins.lib

Since
2.8
Public Member Functions
IMPORT_C void RenderScalableItemL ( MAknsSkinInstance *, const TAknsItemID &, CFbsBitmap *&, CFbsBitmap *&, const TRect &, const CFbsBitmap *, const CFbsBitmap *)
Private Member Functions
AknsRendererWrapper ()
~AknsRendererWrapper ()

Constructor & Destructor Documentation

AknsRendererWrapper()

AknsRendererWrapper ( ) [private]

~AknsRendererWrapper()

~AknsRendererWrapper ( ) [private]

Member Functions Documentation

RenderScalableItemL(MAknsSkinInstance *, const TAknsItemID &, CFbsBitmap *&, CFbsBitmap *&, const TRect &, const CFbsBitmap *, const CFbsBitmap *)

IMPORT_C void RenderScalableItemL ( MAknsSkinInstance * aSkin,
const TAknsItemID & aIID,
CFbsBitmap *& aOutRGB,
CFbsBitmap *& aOutAlpha,
const TRect & aRect,
const CFbsBitmap * aInRGB,
const CFbsBitmap * aInAlpha
) [static]

Renders the given scalable item to a newly constructed bitmap and mask.

Since
2.8
Exceptions:
If the rendering fails or no scalable item with the given item ID is found, the method leaves with an error code.

Parameters

MAknsSkinInstance * aSkin Pointer to the skin instance.
const TAknsItemID & aIID Item ID of the scalable item to be rendered.
CFbsBitmap *& aOutRGB If the method completes successfully, a pointer to a newly constructed bitmap containing the RGB channel of the item. The ownership of the bitmap is transferred to the caller.
CFbsBitmap *& aOutAlpha If the method completes successfully, a pointer to a newly constructed bitmap containing the alpha channel of the item, or NULL. The ownership of the bitmap is transferred to the caller.
const TRect & aRect Position and size of the item in parent coordinate system. If no parent item is given, use TRect( TPoint(0,0), yourSize ).
const CFbsBitmap * aInRGB Optional parent element RGB channel bitmap, or NULL.
const CFbsBitmap * aInAlpha Optional parent element alpha channel bitmap, or NULL.