API published in: S60 2nd Ed
Link against: aknskins.lib aknskinsrv.lib aknswallpaperutils.lib
Required Capabilities
None
#include <aknsdrawutils.h>
AknsDrawUtils provides utility methods to perform skin-aware drawing operations, such as background drawing.
This is a public static class with exported functions. The class is not intended for derivation outside the library.
Static Public Member Functions |
|
static IMPORT_C MAknsControlContext * | ControlContext (const MObjectProvider *aMop) |
Returns pointer to the current control context. |
|
static IMPORT_C MAknsControlContext * | ControlContextOfParent (const CCoeControl *aControl) |
Returns pointer to the control context of the parent of the given control. |
|
static IMPORT_C TBool | Background (MAknsSkinInstance *aInstance, MAknsControlContext *aContext, CWindowGc &aGc, const TRect &aRect) |
Draws background with assumed origin. |
|
static IMPORT_C TBool | Background (MAknsSkinInstance *aInstance, MAknsControlContext *aContext, const CCoeControl *aControl, CWindowGc &aGc, const TRect &aRect) |
Draws background with proper origin. |
|
static IMPORT_C TBool | Background (MAknsSkinInstance *aInstance, MAknsControlContext *aContext, const CCoeControl *aControl, CWindowGc &aGc, const TRect &aRect, const TInt aDrawParam) |
Draws background with proper origin and drawing parameters. |
|
static IMPORT_C TBool | DrawBackground (MAknsSkinInstance *aInstance, MAknsControlContext *aContext, const CCoeControl *aControl, CBitmapContext &aGc, const TPoint &aDstPos, const TRect &aControlRect, const TInt aDrawParam) |
Draws background to the given graphics context. |
|
static IMPORT_C TBool | BackgroundBetweenRects (MAknsSkinInstance *aInstance, MAknsControlContext *aContext, CWindowGc &aGc, const TRect &aOuterRect, const TRect &aInnerRect) |
Draws background between rects. |
|
static IMPORT_C TBool | BackgroundBetweenRects (MAknsSkinInstance *aInstance, MAknsControlContext *aContext, const CCoeControl *aControl, CWindowGc &aGc, const TRect &aOuterRect, const TRect &aInnerRect) |
Draws background between rects. |
|
static IMPORT_C TBool | BackgroundBetweenRects (MAknsSkinInstance *aInstance, MAknsControlContext *aContext, const CCoeControl *aControl, CWindowGc &aGc, const TRect &aOuterRect, const TRect &aInnerRect, const TInt aDrawParam) |
Draws background between rects. |
|
static IMPORT_C TBool | HasBitmapBackground (MAknsSkinInstance *aInstance, MAknsControlContext *aContext) |
Determines whether background drawing would be done with a bitmap (deprecated). |
|
static IMPORT_C void | DrawCachedImage (MAknsSkinInstance *aInstance, CWindowGc &aGc, const TRect &aRect, const TAknsItemID &aID) |
Draws a cached image (with its attributes specified in the skin) to the given rectangle. |
|
static IMPORT_C void | DrawCachedImage (MAknsSkinInstance *aInstance, CFbsBitGc &aGc, const TRect &aRect, const TAknsItemID &aID) |
Draws a cached image (with its attributes specified in the skin) to the given rectangle in an off-screen graphics context.
|
|
static IMPORT_C TBool | DrawFrame (MAknsSkinInstance *aInstance, CWindowGc &aGc, const TRect &aOuterRect, const TRect &aInnerRect, const TAknsItemID &aFrameID, const TAknsItemID &aCenterID) |
Draws a frame (with cached images) to the specified area. |
|
static IMPORT_C TBool | PrepareFrame (MAknsSkinInstance *aInstance, const TRect &aOuterRect, const TRect &aInnerRect, const TAknsItemID &aFrameID, const TAknsItemID &aCenterID) |
Prepares the frame graphics for drawing. |
|
static IMPORT_C TBool | DrawFrame (MAknsSkinInstance *aInstance, CFbsBitGc &aGc, const TRect &aOuterRect, const TRect &aInnerRect, const TAknsItemID &aFrameID, const TAknsItemID &aCenterID, const TInt aDrawParam) |
Draws a frame (with cached images) to the specified area in an off-screen graphics context. |
|
static IMPORT_C TBool | DrawFrame (MAknsSkinInstance *aInstance, CFbsBitGc &aGc, const TRect &aOuterRect, const TRect &aInnerRect, const TAknsItemID &aFrameID, const TAknsItemID &aCenterID) |
Draws a frame (with cached images) to the specified area in an off-screen graphics context. |
|
static IMPORT_C TBool | DrawFramePart (MAknsSkinInstance *aInstance, CWindowGc &aGc, const TRect &aRect, const TAknsItemID &aFrameID, const TAknsFrameElementIndex aFrameElement) |
Draws the specified part of the frame (with a cached image) to the specified rectangle. |
|
static IMPORT_C TBool | IsListSeperatorLines (MAknsSkinInstance *aInstance) |
Returns a boolean value indicating whether list separator lines should be drawn. |
|
static IMPORT_C TSlidingMode | SlidingMode (MAknsSkinInstance *aInstance) |
Returns an enum value indicating the way notes and queries appear to the screen (sliding animation). |
|
Draws background with proper origin and drawing parameters. Draws bacground to the specified rectangle. The origin is queried from the control position list (if given using AknsUtils::RegisterControlPosition). If not found, the origin is queried from the given control, which may result in a window server flush. Drawing parameters may be used to control drawing.
See
|
|
Draws background with proper origin. Draws bacground to the specified rectangle. The origin is queried from the control position list (if given using AknsUtils::RegisterControlPosition). If not found, the origin is queried from the given control, which may result in a window server flush.
See
|
|
Draws background with assumed origin. Draws bacground to the specified rectangle. Origin is assumed to be (0,0). This overload can not be used with parent absolute layouts.
See
|
|
Draws background between rects. Draws bacground between specified rectangles with drawing parameters.
|
|
Draws background between rects. Draws bacground between specified rectangles.
See
|
|
Draws background between rects. Draws bacground between specified rectangles. Origin is assumed to be (0,0).
See
|
|
Returns pointer to the current control context.
If aMop parameter is specified retrieves the nearest control context in control hierarchy. If none is found (or
|
|
Returns pointer to the control context of the parent of the given control. The context possibly supplied by the control itself is ignored.
|
|
Draws background to the given graphics context. The origin is queried from the control position list (if given using AknsUtils::RegisterControlPosition). If not found, the origin is queried from the given control, which may result in a window server flush.
If background contains multiple layers, they are drawn in the sequence specified by the context. If multiple contexts are
chained (using Drawing parameter KAknsDrawParamNoClearUnderImage is automatically assumed for all the chained contexts, except the deepest one.
|
|
Draws a cached image (with its attributes specified in the skin) to the given rectangle in an off-screen graphics context.
|
|
Draws a cached image (with its attributes specified in the skin) to the given rectangle.
|
|
Draws a frame (with cached images) to the specified area in an off-screen graphics context.
|
|
Draws a frame (with cached images) to the specified area in an off-screen graphics context.
|
|
Draws a frame (with cached images) to the specified area.
|
|
Draws the specified part of the frame (with a cached image) to the specified rectangle.
|
|
Determines whether background drawing would be done with a bitmap (deprecated).
|
|
Returns a boolean value indicating whether list separator lines should be drawn. This method checks:
Note that the exact internal implementation of the checks is subject to change.
|
|
Prepares the frame graphics for drawing. This function should be called when the frame sizes are known and in places where Flushing the Window server buffer will not cause flicker. For example, a good place to call PrepareFrame() would be controls SizeChanged function. Altough its not mandatory to call PrepareFrame() before DrawFrame(), it's highly recommended in order to avoid unnecessary flushes in the middle of the actual drawing routine. Note that the rect parameters must be exactly the same for PrepareFrame and subsequent DrawFrame calls. Otherwise the DrawFrame functions will cause a flush, which leads to flicker.
|
|
Returns an enum value indicating the way notes and queries appear to the screen (sliding animation).
|