AknDraw Class Reference

API published in: S60 1st Ed

Link against: avkon.lib eikcore.lib

Capability Information

Required Capabilities

None


#include <aknutils.h>

Detailed Description

Helper functions for drawing empty lists and window shadows.

Static Public Member Functions

static IMPORT_C void  DrawEmptyList (const TRect &aRect, CWindowGc &aGc, TPtrC aText)
  Draws standard empty list.
static IMPORT_C void  DrawEmptyListForSettingPage (const TRect &aRect, CWindowGc &aGc, TPtrC text)
  Draws empty list for setting item editing.
static IMPORT_C void  DrawEmptyListWithFind (const TRect &aClientRect, CWindowGc &aGc, TPtrC aText)
  Draws empty list for lists with find.
static IMPORT_C void  DrawEmptyListHeading (const TRect &aClientRect, CWindowGc &aGc, TPtrC aText)
  Draws empty list for lists with heading.
static IMPORT_C void  DrawWindowShadow (CWindowGc &aGc, const TAknLayoutRect &aCoverRect, const TAknLayoutRect &aSecondShadowRect, const TAknLayoutRect &aFirstShadowRect, const TAknLayoutRect &aOutlineFrameRect, const TAknLayoutRect &aInsideAreaRect)
  Draws a window shadow.
static IMPORT_C void  DrawEmptyListImpl (const TRect &aRect, CWindowGc &aGc, TPtrC aText, TInt aLayoutLine1, TInt aLayoutLine2)
  The main implementation routine for empty list drawing.

Member Function Documentation

static IMPORT_C void AknDraw::DrawEmptyList const TRect &  aRect,
CWindowGc &  aGc,
TPtrC  aText
[static]
 

Draws standard empty list.

Parameters:
aRect  the client rectangle
aGc  the graphics context
aText  text for empty list in format "Line1\nLine2"
static IMPORT_C void AknDraw::DrawEmptyListForSettingPage const TRect &  aRect,
CWindowGc &  aGc,
TPtrC  text
[static]
 

Draws empty list for setting item editing.

Parameters:
aRect  the rectangle of setting page's content
aGc  the graphics context
aText  text for empty list in format "Line1\nLine2"
static IMPORT_C void AknDraw::DrawEmptyListHeading const TRect &  aClientRect,
CWindowGc &  aGc,
TPtrC  aText
[static]
 

Draws empty list for lists with heading.

Parameters:
aRect  the client rectangle
aGc  the graphics context
aText  text for empty list in format "Line1\nLine2"
static IMPORT_C void AknDraw::DrawEmptyListImpl const TRect &  aRect,
CWindowGc &  aGc,
TPtrC  aText,
TInt  aLayoutLine1,
TInt  aLayoutLine2
[static]
 

The main implementation routine for empty list drawing.

Parameters:
aRect  the client rectangle
aGc  the graphics context
aText  text for empty list in one of following formats:
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..."

Parameters:
aLayoutLine1  Resource id of AVKON_LAYOUT_TEXT for first line layout
aLayoutLine2  Resource id of AVKON_LAYOUT_TEXT for second line layout
static IMPORT_C void AknDraw::DrawEmptyListWithFind const TRect &  aClientRect,
CWindowGc &  aGc,
TPtrC  aText
[static]
 

Draws empty list for lists with find.

Parameters:
aRect  the client rectangle
aGc  the graphics context
aText  text for empty list in format "Line1\nLine2"
static IMPORT_C void AknDraw::DrawWindowShadow CWindowGc &  aGc,
const TAknLayoutRect aCoverRect,
const TAknLayoutRect aSecondShadowRect,
const TAknLayoutRect aFirstShadowRect,
const TAknLayoutRect aOutlineFrameRect,
const TAknLayoutRect aInsideAreaRect
[static]
 

Draws a window shadow.

Parameters:
aCoverRect  the area covered by the shadow
aSecondShadowRect  the area used for second shadow
aFirstShadowRect  the area of first shadow
aOutliineFrameRect  the area of black outline frame
aInsideAreaRect  the area of content inside the window

The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2008
Back to top