AknDraw Class Reference

#include <mw/AknUtils.h>

class AknDraw
Public Member Functions
IMPORT_C voidDrawEmptyList(const TRect &, CWindowGc &, TPtrC)
IMPORT_C voidDrawEmptyListForSettingPage(const TRect &, CWindowGc &, TPtrC)
IMPORT_C voidDrawEmptyListHeading(const TRect &, CWindowGc &, TPtrC)
IMPORT_C voidDrawEmptyListImpl(const TRect &, CWindowGc &, TPtrC, TInt, TInt)
IMPORT_C voidDrawEmptyListWithFind(const TRect &, CWindowGc &, TPtrC)
IMPORT_C voidDrawWindowShadow(CWindowGc &, const TAknLayoutRect &, const TAknLayoutRect &, const TAknLayoutRect &, const TAknLayoutRect &, const TAknLayoutRect &)

Detailed Description

Helper functions for drawing empty lists and window shadows

Member Function Documentation

DrawEmptyList ( const TRect &, CWindowGc &, TPtrC )

IMPORT_C voidDrawEmptyList(const TRect &aRect,
CWindowGc &aGc,
TPtrCaText
)[static]

Draws standard empty list

ParameterDescription
aRectthe client rectangle
aGcthe graphics context
aTexttext for empty list in format "Line1\nLine2"

DrawEmptyListForSettingPage ( const TRect &, CWindowGc &, TPtrC )

IMPORT_C voidDrawEmptyListForSettingPage(const TRect &aRect,
CWindowGc &aGc,
TPtrCtext
)[static]

Draws empty list for setting item editing

ParameterDescription
aRectthe rectangle of setting page's content
aGcthe graphics context

DrawEmptyListHeading ( const TRect &, CWindowGc &, TPtrC )

IMPORT_C voidDrawEmptyListHeading(const TRect &aClientRect,
CWindowGc &aGc,
TPtrCaText
)[static]

Draws empty list for lists with heading

ParameterDescription
aGcthe graphics context
aTexttext for empty list in format "Line1\nLine2"

DrawEmptyListImpl ( const TRect &, CWindowGc &, TPtrC, TInt, TInt )

IMPORT_C voidDrawEmptyListImpl(const TRect &aRect,
CWindowGc &aGc,
TPtrCaText,
TIntaLayoutLine1,
TIntaLayoutLine2
)[static]

The main implementation routine for empty list drawing. layouts with large font: "Line 1" "Long line. This will be wrapped to 2 lines and 2nd will be trunca..." "Line 1\nLine 2"

layout with 1 line of large font and up to 3 lines with small font: "Line 1\nLong line, will be wrapped up to 3 lines with small font and..."

ParameterDescription
aRectthe client rectangle
aGcthe graphics context
aTexttext for empty list in one of following formats:
aLayoutLine1Resource id of AVKON_LAYOUT_TEXT for first line layout
aLayoutLine2Resource id of AVKON_LAYOUT_TEXT for second line layout

DrawEmptyListWithFind ( const TRect &, CWindowGc &, TPtrC )

IMPORT_C voidDrawEmptyListWithFind(const TRect &aClientRect,
CWindowGc &aGc,
TPtrCaText
)[static]

Draws empty list for lists with find

ParameterDescription
aGcthe graphics context
aTexttext for empty list in format "Line1\nLine2"

DrawWindowShadow ( CWindowGc &, const TAknLayoutRect &, const TAknLayoutRect &, const TAknLayoutRect &, const TAknLayoutRect &, const TAknLayoutRect & )

IMPORT_C voidDrawWindowShadow(CWindowGc &aGc,
const TAknLayoutRect &aCoverRect,
const TAknLayoutRect &aSecondShadowRect,
const TAknLayoutRect &aFirstShadowRect,
const TAknLayoutRect &aOutlineFrameRect,
const TAknLayoutRect &aInsideAreaRect
)[static]

Draws a window shadow

ParameterDescription
aCoverRectthe area covered by the shadow
aSecondShadowRectthe area used for second shadow
aFirstShadowRectthe area of first shadow
aInsideAreaRectthe area of content inside the window