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).
|