AknListBoxLayouts Class Reference

#include <mw/aknlists.h>

class AknListBoxLayouts
Public Member Functions
IMPORT_C voidSetupColumnGfxCell(CEikListBox &, CColumnListBoxItemDrawer *, TInt, TInt, TInt, TInt, TInt, TInt, TInt, TInt, TInt)
IMPORT_C voidSetupColumnGfxCell(CEikListBox &, CColumnListBoxItemDrawer *, TInt, const TAknWindowLineLayout &, TInt, TInt)
IMPORT_C voidSetupColumnTextCell(CEikListBox &, CColumnListBoxItemDrawer *, TInt, const CFont *, TInt, TInt, TInt, TInt, TInt, CGraphicsContext::TTextAlign, TInt, TInt)
IMPORT_C voidSetupColumnTextCell(CEikListBox &, CColumnListBoxItemDrawer *, TInt, const TAknTextLineLayout &, TInt, TInt)
IMPORT_C voidSetupFormAntiFlickerTextCell(CEikListBox &, CFormattedCellListBoxItemDrawer *, TInt, const CFont *, TInt, TInt, TInt, TInt, TInt, CGraphicsContext::TTextAlign, TPoint, TPoint)
IMPORT_C voidSetupFormAntiFlickerTextCell(CEikListBox &, CFormattedCellListBoxItemDrawer *, TInt, const TAknTextLineLayout &, const TPoint &, const TPoint &)
IMPORT_C voidSetupFormGfxCell(CEikListBox &, CFormattedCellListBoxItemDrawer *, TInt, TInt, TInt, TInt, TInt, TInt, TInt, TPoint, TPoint)
IMPORT_C voidSetupFormGfxCell(CEikListBox &, CFormattedCellListBoxItemDrawer *, TInt, const TAknWindowLineLayout &, const TPoint &, const TPoint &)
IMPORT_C voidSetupFormTextCell(CEikListBox &, CFormattedCellListBoxItemDrawer *, TInt, const CFont *, TInt, TInt, TInt, TInt, TInt, CGraphicsContext::TTextAlign, TPoint, TPoint)
IMPORT_C voidSetupFormTextCell(CEikListBox &, CFormattedCellListBoxItemDrawer *, TInt, const TAknTextLineLayout &, const TPoint &, const TPoint &)
IMPORT_C voidSetupGridFormGfxCell(CAknGrid &, CFormattedCellListBoxItemDrawer *, TInt, TInt, TInt, TInt, TInt, TInt, TInt, TPoint, TPoint)
IMPORT_C voidSetupGridFormGfxCell(CAknGrid &, CFormattedCellListBoxItemDrawer *, TInt, const TAknWindowLineLayout &, TPoint &, TPoint &)
voidSetupGridPos(CAknGrid &, const TAknWindowLineLayout &)
IMPORT_C voidSetupGridPos(CAknGrid &, TInt, TInt, TInt, TInt, TInt, TInt)
IMPORT_C voidSetupListboxPos(CEikListBox &, TInt, TInt, TInt, TInt, TInt, TInt)
IMPORT_C voidSetupListboxPos(CEikListBox &, const TAknWindowLineLayout &)
voidSetupListboxPosL(CEikListBox &, const TAknWindowLineLayout &)
IMPORT_C voidSetupStandardColumnListbox(CColumnListBoxItemDrawer *)
IMPORT_C voidSetupStandardFormListbox(CFormattedCellListBoxItemDrawer *)
IMPORT_C voidSetupStandardGrid(CAknGrid &)
IMPORT_C voidSetupStandardListBox(CEikListBox &)

Detailed Description

AknListBoxLayouts Building listbox layouts from European Avkon LAF.

The LAF specification has 3 kinds of tables: Graphics tables Text tables Pane coordinates The graphics tables map to SetupColumnGfxCell() and SetupFormGfxCell() The text tables map to SetupColumnTextCell() and SetupFormGfxCell() The pane coordinates map to SetupListboxPos().

This class is mostly useless if you don't have LAF specification available!

You probably want to use predefined layouts; See CAknSingleStyleListBox.

NOTE: This class is old design. You should consider looking at aknutils.h: AknLayoutUtils whenever you want to build things from the LAF specification.

Member Function Documentation

SetupColumnGfxCell ( CEikListBox &, CColumnListBoxItemDrawer *, TInt, TInt, TInt, TInt, TInt, TInt, TInt, TInt, TInt )

IMPORT_C voidSetupColumnGfxCell(CEikListBox &aListBox,
CColumnListBoxItemDrawer *aItemDrawer,
TIntindex,
TIntl,
TIntt,
TIntr,
TIntb,
TIntW,
TIntH,
TIntstartx,
TIntendx
)[static]

Setup a single graphics cell of list item

SetupColumnGfxCell ( CEikListBox &, CColumnListBoxItemDrawer *, TInt, const TAknWindowLineLayout &, TInt, TInt )

IMPORT_C voidSetupColumnGfxCell(CEikListBox &aListBox,
CColumnListBoxItemDrawer *aItemDrawer,
TIntaIndex,
const TAknWindowLineLayout &aLayout,
TIntstartx,
TIntendx
)[static]

Setup a graphic element for a column listbox using aknlayout.dll

SetupColumnTextCell ( CEikListBox &, CColumnListBoxItemDrawer *, TInt, const CFont *, TInt, TInt, TInt, TInt, TInt, CGraphicsContext::TTextAlign, TInt, TInt )

IMPORT_C voidSetupColumnTextCell(CEikListBox &aListBox,
CColumnListBoxItemDrawer *aItemDrawer,
TIntindex,
const CFont *font,
TInt,
TIntlm,
TIntrm,
TIntB,
TInt,
CGraphicsContext::TTextAlignaAlign,
TIntstartx,
TIntendx
)[static]

Setup a single text cell of list item

SetupColumnTextCell ( CEikListBox &, CColumnListBoxItemDrawer *, TInt, const TAknTextLineLayout &, TInt, TInt )

IMPORT_C voidSetupColumnTextCell(CEikListBox &aListBox,
CColumnListBoxItemDrawer *aItemDrawer,
TIntindex,
const TAknTextLineLayout &aLayout,
TIntstartx,
TIntendx
)[static]

Setup a single text cell of list item

SetupFormAntiFlickerTextCell ( CEikListBox &, CFormattedCellListBoxItemDrawer *, TInt, const CFont *, TInt, TInt, TInt, TInt, TInt, CGraphicsContext::TTextAlign, TPoint, TPoint )

IMPORT_C voidSetupFormAntiFlickerTextCell(CEikListBox &aListBox,
CFormattedCellListBoxItemDrawer *aItemDrawer,
TIntindex,
const CFont *font,
TInt,
TIntlm,
TInt,
TIntB,
TIntW,
CGraphicsContext::TTextAlignaAlign,
TPointp1,
TPointp2
)[static]

Setup a single text cell of list item

This is for removing flicker for settings

SetupFormAntiFlickerTextCell ( CEikListBox &, CFormattedCellListBoxItemDrawer *, TInt, const TAknTextLineLayout &, const TPoint &, const TPoint & )

IMPORT_C voidSetupFormAntiFlickerTextCell(CEikListBox &aListBox,
CFormattedCellListBoxItemDrawer *aItemDrawer,
TIntindex,
const TAknTextLineLayout &aLayout,
const TPoint &p1,
const TPoint &p2
)[static]

Setup a single text cell of list item

This is for removing flicker for settings

SetupFormGfxCell ( CEikListBox &, CFormattedCellListBoxItemDrawer *, TInt, TInt, TInt, TInt, TInt, TInt, TInt, TPoint, TPoint )

IMPORT_C voidSetupFormGfxCell(CEikListBox &aListBox,
CFormattedCellListBoxItemDrawer *aItemDrawer,
TIntindex,
TIntl,
TIntt,
TInt,
TInt,
TIntW,
TIntH,
TPointp1,
TPointp2
)[static]

Setup a single graphics cell of list item

SetupFormGfxCell ( CEikListBox &, CFormattedCellListBoxItemDrawer *, TInt, const TAknWindowLineLayout &, const TPoint &, const TPoint & )

IMPORT_C voidSetupFormGfxCell(CEikListBox &aListBox,
CFormattedCellListBoxItemDrawer *aItemDrawer,
TIntindex,
const TAknWindowLineLayout &aLayout,
const TPoint &p1,
const TPoint &p2
)[static]

Setup a single graphics cell of list item using aknlayout.dll

SetupFormTextCell ( CEikListBox &, CFormattedCellListBoxItemDrawer *, TInt, const CFont *, TInt, TInt, TInt, TInt, TInt, CGraphicsContext::TTextAlign, TPoint, TPoint )

IMPORT_C voidSetupFormTextCell(CEikListBox &aListBox,
CFormattedCellListBoxItemDrawer *aItemDrawer,
TIntindex,
const CFont *font,
TInt,
TIntlm,
TInt,
TIntB,
TIntW,
CGraphicsContext::TTextAlignaAlign,
TPointp1,
TPointp2
)[static]

Setup a single text cell of list item

SetupFormTextCell ( CEikListBox &, CFormattedCellListBoxItemDrawer *, TInt, const TAknTextLineLayout &, const TPoint &, const TPoint & )

IMPORT_C voidSetupFormTextCell(CEikListBox &aListBox,
CFormattedCellListBoxItemDrawer *aItemDrawer,
TIntindex,
const TAknTextLineLayout &aLayout,
const TPoint &p1,
const TPoint &p2
)[static]

Setup a single text cell of list item

SetupGridFormGfxCell ( CAknGrid &, CFormattedCellListBoxItemDrawer *, TInt, TInt, TInt, TInt, TInt, TInt, TInt, TPoint, TPoint )

IMPORT_C voidSetupGridFormGfxCell(CAknGrid &aListBox,
CFormattedCellListBoxItemDrawer *aItemDrawer,
TIntindex,
TIntl,
TIntt,
TInt,
TInt,
TIntW,
TIntH,
TPointaP1,
TPointaP2
)[static]

Setup a single graphics cell of list item

This version is needed for grid cells. (the FormGfxCell works in most cases, but this is needed if you want exact positioning of the erased area..)

SetupGridFormGfxCell ( CAknGrid &, CFormattedCellListBoxItemDrawer *, TInt, const TAknWindowLineLayout &, TPoint &, TPoint & )

IMPORT_C voidSetupGridFormGfxCell(CAknGrid &aGrid,
CFormattedCellListBoxItemDrawer *aItemDrawer,
TIntaIndex,
const TAknWindowLineLayout &aLine,
TPoint &aP1,
TPoint &aP2
)[static]

Setup a single graphics cell of list item

This version is needed for grid cells. (the FormGfxCell works in most cases, but this is needed if you want exact positioning of the erased area..) since 2.6

SetupGridPos ( CAknGrid &, const TAknWindowLineLayout & )

voidSetupGridPos(CAknGrid &aGrid,
const TAknWindowLineLayout &aLayout
)[static]

Setup grid position since 2.0

SetupGridPos ( CAknGrid &, TInt, TInt, TInt, TInt, TInt, TInt )

IMPORT_C voidSetupGridPos(CAknGrid &aGrid,
TIntl,
TIntt,
TInt,
TInt,
TIntW,
TIntH
)[static]

Setup grid position

SetupListboxPos ( CEikListBox &, TInt, TInt, TInt, TInt, TInt, TInt )

IMPORT_C voidSetupListboxPos(CEikListBox &aListBox,
TIntstartx,
TIntstarty,
TInt,
TInt,
TInt,
TIntheight
)[static]

Setup list position

SetupListboxPos ( CEikListBox &, const TAknWindowLineLayout & )

IMPORT_C voidSetupListboxPos(CEikListBox &aListBox,
const TAknWindowLineLayout &aLayout
)[static]

Setup a graphic element for a column listbox using aknlayout.dll

SetupListboxPosL ( CEikListBox &, const TAknWindowLineLayout & )

voidSetupListboxPosL(CEikListBox &aListBox,
const TAknWindowLineLayout &aLayout
)[static]

SetupStandardColumnListbox ( CColumnListBoxItemDrawer * )

IMPORT_C voidSetupStandardColumnListbox(CColumnListBoxItemDrawer *aItemDrawer)[static]

Setup text foreground and background colors to default

SetupStandardFormListbox ( CFormattedCellListBoxItemDrawer * )

IMPORT_C voidSetupStandardFormListbox(CFormattedCellListBoxItemDrawer *aItemDrawer)[static]

Setup text foreground and background colors to default

SetupStandardGrid ( CAknGrid & )

IMPORT_C voidSetupStandardGrid(CAknGrid &aGrid)[static]

Setup text foreground and background colors to default

SetupStandardListBox ( CEikListBox & )

IMPORT_C voidSetupStandardListBox(CEikListBox &aListBox)[static]

Setup borders etc.