epoc32/include/mw/eikclb.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
/*
williamr@2
     2
* Copyright (c) 1997-1999 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     3
* All rights reserved.
williamr@2
     4
* This component and the accompanying materials are made available
williamr@4
     5
* under the terms of "Eclipse Public License v1.0"
williamr@2
     6
* which accompanies this distribution, and is available
williamr@4
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@2
     8
*
williamr@2
     9
* Initial Contributors:
williamr@2
    10
* Nokia Corporation - initial contribution.
williamr@2
    11
*
williamr@2
    12
* Contributors:
williamr@2
    13
*
williamr@2
    14
* Description:
williamr@2
    15
*
williamr@2
    16
*/
williamr@2
    17
williamr@2
    18
williamr@2
    19
#if !defined(__EIKCLB_H__)
williamr@2
    20
#define __EIKCLB_H__
williamr@2
    21
williamr@2
    22
williamr@2
    23
#include <eiklbi.h>
williamr@2
    24
#include <eiktxlbx.h>
williamr@2
    25
#include <eiklbed.h>
williamr@2
    26
williamr@2
    27
class CColumnListBoxData;
williamr@2
    28
williamr@2
    29
williamr@2
    30
/**
williamr@2
    31
 * Draws the contents of list box items.
williamr@2
    32
 *
williamr@2
    33
 * @since 5.0
williamr@2
    34
 */
williamr@2
    35
class CColumnListBoxItemDrawer : public CTextListItemDrawer
williamr@2
    36
    {
williamr@2
    37
williamr@2
    38
public:
williamr@2
    39
    /* C++ default constructor.
williamr@2
    40
    *
williamr@2
    41
    *  @since 3.2
williamr@2
    42
    */
williamr@2
    43
            
williamr@2
    44
    IMPORT_C CColumnListBoxItemDrawer();
williamr@2
    45
            
williamr@2
    46
    /**
williamr@2
    47
     * C++ default constructor.
williamr@2
    48
     *
williamr@2
    49
     * Initialises the list box item drawer with the specified model, 
williamr@2
    50
     * font and data.
williamr@2
    51
     *
williamr@2
    52
     * @param aTextListBoxModel The model whose items will be drawn. 
williamr@2
    53
     *        This provides the item text that is drawn using 
williamr@2
    54
     *        @c DrawItemText().
williamr@2
    55
     * @param aFont The font in which the items will be drawn. 
williamr@2
    56
     * @param aColumnData The column list box data. This comprises: 
williamr@2
    57
     *        the column widths, gaps, fonts, aligments and bitmaps.
williamr@2
    58
     */
williamr@2
    59
williamr@2
    60
    IMPORT_C CColumnListBoxItemDrawer(MTextListBoxModel* aTextListBoxModel, 
williamr@2
    61
                                      const CFont* aFont, 
williamr@2
    62
                                      CColumnListBoxData* aColumnData);
williamr@2
    63
 
williamr@2
    64
    /**
williamr@2
    65
     * Destructor.
williamr@2
    66
     */
williamr@2
    67
    IMPORT_C ~CColumnListBoxItemDrawer();
williamr@2
    68
williamr@2
    69
    /**
williamr@2
    70
     * Gets a pointer to the column list box data as set during construction.
williamr@2
    71
     * Does not transfer ownership.
williamr@2
    72
     *
williamr@2
    73
     * @return The column list box data.
williamr@2
    74
     */
williamr@2
    75
    IMPORT_C CColumnListBoxData* ColumnData() const;
williamr@2
    76
williamr@2
    77
public:
williamr@2
    78
williamr@2
    79
williamr@2
    80
    /** 
williamr@2
    81
     * The structure holding given item properties. 
williamr@2
    82
     *
williamr@2
    83
     * Used for storing information given through @c SetProperties() method.
williamr@2
    84
     */
williamr@2
    85
	struct SListProperties 
williamr@2
    86
	    {
williamr@2
    87
        /** Item identifier. */
williamr@2
    88
	    TInt iItem; // must be first
williamr@2
    89
williamr@2
    90
        /** Properties of the item. */
williamr@2
    91
	    TListItemProperties iProperties;
williamr@2
    92
	    };
williamr@2
    93
williamr@2
    94
    /**
williamr@2
    95
     * Clears all properties from the @c CColumnListBoxItemDrawer.
williamr@2
    96
     */
williamr@2
    97
    IMPORT_C void ClearAllPropertiesL();
williamr@2
    98
	
williamr@2
    99
   
williamr@2
   100
    /**
williamr@2
   101
     * Set the property for an item with @c aItemIndex 
williamr@2
   102
     *
williamr@2
   103
     * @param aItemIndex Item index
williamr@2
   104
     * @param aProperty The new property setting
williamr@2
   105
     * The SetProperties is convinience method for normal cases.
williamr@2
   106
     * NOTE that it does NOT work correctly if you can insert/delete
williamr@2
   107
     * items from the list -- You need to update all properties if
williamr@2
   108
     * any changes to the item text array happen! Often it is convinient
williamr@2
   109
     * to override the Properties() method. Further, use this only
williamr@2
   110
     * for small lists as it causes O(n) time if you need to set
williamr@2
   111
     * all properties.
williamr@2
   112
     */
williamr@2
   113
    IMPORT_C void SetPropertiesL(TInt aItemIndex, 
williamr@2
   114
                                 TListItemProperties aProperty);
williamr@2
   115
williamr@2
   116
    /**
williamr@2
   117
     * Get properties for an item. 
williamr@2
   118
     *
williamr@2
   119
     * @param aItemIndex Item's index for identifying.
williamr@2
   120
     * @return Wanted property set.
williamr@2
   121
     */
williamr@2
   122
    IMPORT_C virtual TListItemProperties Properties(TInt aItemIndex) const;
williamr@2
   123
williamr@2
   124
public: // from CTextListItemDrawer
williamr@2
   125
williamr@2
   126
    /**
williamr@2
   127
     * From @c CTextListItemDrawer.
williamr@2
   128
     * 
williamr@2
   129
     * Draw item text.
williamr@2
   130
     *
williamr@2
   131
     * @param aItemIndex Index of the item to draw. 
williamr@2
   132
     * @param aItemTextRect Area to draw into. 
williamr@2
   133
     * @param aItemIsCurrent @c ETrue if the item is current. 
williamr@2
   134
     * @param aViewIsEmphasized @c ETrue if the view is emphasised.
williamr@2
   135
     * @param aItemIsSelected @c ETrue if the item is selected.
williamr@2
   136
     */
williamr@2
   137
    IMPORT_C void DrawItemText(TInt aItemIndex,
williamr@2
   138
                               const TRect& aItemTextRect,
williamr@2
   139
                               TBool aItemIsCurrent,
williamr@2
   140
                               TBool aViewIsEmphasized, 
williamr@2
   141
                               TBool aItemIsSelected) const;
williamr@2
   142
    // the next one is for avkon
williamr@2
   143
williamr@2
   144
    /**
williamr@2
   145
     * Not used in S60.
williamr@2
   146
     */
williamr@2
   147
    IMPORT_C void DrawItemMark(TBool aItemIsSelected, 
williamr@2
   148
                               TBool aViewIsDimmed, 
williamr@2
   149
                               const TPoint& aMarkPos) const;
williamr@2
   150
williamr@2
   151
public: // from CListItemDrawer
williamr@2
   152
williamr@2
   153
    /**
williamr@2
   154
     * From @c CListItemDrawer.
williamr@2
   155
     *
williamr@2
   156
     * Gets the minimum cell size.
williamr@2
   157
     *
williamr@2
   158
     * @return The minimum size for a cell. This is 
williamr@2
   159
     *         TSize(0, 0) in @c CListItemDrawer.
williamr@2
   160
     */
williamr@2
   161
    IMPORT_C TSize MinimumCellSize() const;
williamr@2
   162
	
williamr@2
   163
    /**
williamr@2
   164
     * From @c CListItemDrawer.
williamr@2
   165
     *
williamr@2
   166
     * Gets the width of the specified item.
williamr@2
   167
     *
williamr@2
   168
     * @param aItemIndex The index of the item whose width is to be returned. 
williamr@2
   169
     * @return The width of the item. This is 0 in @c CListItemDrawer
williamr@2
   170
     */
williamr@2
   171
    IMPORT_C TInt ItemWidthInPixels(TInt aItemIndex) const;	
williamr@2
   172
    
williamr@2
   173
    /**
williamr@2
   174
     * From @c CListItemDrawer.
williamr@2
   175
     *
williamr@2
   176
     * Sets the item cell size. 
williamr@2
   177
     *
williamr@2
   178
     * The cell size is the on-screen size of the entire item, including its 
williamr@2
   179
     * text and its item mark.
williamr@2
   180
     *
williamr@2
   181
     * @param aSizeInPixels New size for the item cell.
williamr@2
   182
     */
williamr@2
   183
    IMPORT_C void SetItemCellSize(const TSize& aSizeInPixels);
williamr@2
   184
	
williamr@2
   185
    /**
williamr@2
   186
     * Get Item Cell Size.
williamr@2
   187
     *
williamr@2
   188
     * @return Cell size of an item.
williamr@2
   189
     */
williamr@2
   190
    TSize LafItemSize() { return iItemCellSize; }
williamr@2
   191
williamr@2
   192
private: // from CListItemDrawer
williamr@2
   193
williamr@2
   194
    IMPORT_C TAny* Reserved_1();
williamr@2
   195
williamr@2
   196
private: // defining reserved method.
williamr@2
   197
williamr@2
   198
    IMPORT_C void CColumnListBoxItemDrawer_Reserved();
williamr@2
   199
williamr@2
   200
protected:
williamr@2
   201
williamr@2
   202
    /**
williamr@2
   203
     * Draw the item background.
williamr@2
   204
     *
williamr@2
   205
     * Internal member, not intended for use.
williamr@2
   206
     *
williamr@2
   207
     * @param aRect Drawing area. 
williamr@2
   208
     */
williamr@2
   209
    void DrawCurrentItemRect(const TRect& aRect) const;
williamr@2
   210
	
williamr@2
   211
    /** 
williamr@2
   212
     * Array of properties.
williamr@2
   213
     */
williamr@2
   214
    CArrayFix<SListProperties>* iPropertyArray;
williamr@2
   215
	
williamr@2
   216
    /** 
williamr@2
   217
     * Not used. 
williamr@2
   218
     */ 
williamr@2
   219
    TInt iSpare;
williamr@2
   220
    };
williamr@2
   221
williamr@2
   222
williamr@2
   223
/**
williamr@2
   224
 * Column list box control.
williamr@2
   225
 *
williamr@2
   226
 * This is a list box whose lines consist of cells that are grouped vertically 
williamr@2
   227
 * into columns. The columns can be either textual or graphical, and column 
williamr@2
   228
 * widths and fonts can be set explicitly through @c CColumnListBoxData.
williamr@2
   229
 *
williamr@2
   230
 * Starting from 3.0 listbox uses highlight animations. Starting and stopping
williamr@2
   231
 * animation is connected to focus events. To support highlight animations
williamr@2
   232
 * properly you have to make sure that the list has focus when it has 'visual
williamr@2
   233
 * focus'. Common issues:
williamr@2
   234
 * - In many cases list is in a container which sits on top of the control
williamr@2
   235
 *   stack. The container receives all focus events and should hand them to the
williamr@2
   236
 *   list too. E.g.
williamr@2
   237
 *             void CContainer::FocusChanged( TDrawNow aDrawNow )
williamr@2
   238
 *                 {
williamr@2
   239
 *                 ... some code ...
williamr@2
   240
 *                 if( iListBox )
williamr@2
   241
 *                     iListBox->SetFocus( IsFocused(), aDrawNow );
williamr@2
   242
 *                 }
williamr@2
   243
 * - When switching components programmatically, e.g. from one list to another
williamr@2
   244
 *   in the same view, make sure that you remove focus from the other
williamr@2
   245
 *   component.
williamr@2
   246
 * - In more complex cases you may have to add a dummy interceptor control to
williamr@2
   247
 *   the top of control stack to hand focus events to list.
williamr@2
   248
 * - Make sure you handle resource changes correctly. If resource handle chain
williamr@2
   249
 *   is solid it should reach CCoeControl::HandleResourceChange, which informs
williamr@2
   250
 */
williamr@2
   251
class CEikColumnListBox : public CEikTextListBox
williamr@2
   252
    {
williamr@2
   253
public:
williamr@2
   254
    /**
williamr@2
   255
     * C++ default constructor.
williamr@2
   256
     */
williamr@2
   257
    IMPORT_C CEikColumnListBox();
williamr@2
   258
    
williamr@2
   259
    /**
williamr@2
   260
     * Second-phase construction from a resource.
williamr@2
   261
     * 
williamr@2
   262
     * This function completes the construction of a column list box, 
williamr@2
   263
     * initialising any members from the specified resource reader.
williamr@2
   264
     *
williamr@2
   265
     * @param aReader A resource file reader
williamr@2
   266
     */
williamr@2
   267
    IMPORT_C void ConstructFromResourceL( TResourceReader& aReader );
williamr@2
   268
    
williamr@2
   269
    /**
williamr@2
   270
     * By default Symbian 2nd phase constructor is private.
williamr@2
   271
     *
williamr@2
   272
     * This function completes the construction of a column list box.
williamr@2
   273
     *
williamr@2
   274
     * @param aParent Parent control for the column list box.
williamr@2
   275
     * @param aFlags Flags for the column list box. 
williamr@2
   276
     */
williamr@2
   277
    IMPORT_C void ConstructL( const CCoeControl* aParent,TInt aFlags=0);
williamr@2
   278
    /**
williamr@2
   279
    * Not supported in S60.
williamr@2
   280
    */
williamr@2
   281
    IMPORT_C void EditItemL(TInt aColumn, TInt aMaxLength);
williamr@2
   282
protected:
williamr@2
   283
williamr@2
   284
    /**
williamr@2
   285
     * This member is internal and not intended for use.
williamr@2
   286
     */
williamr@2
   287
    IMPORT_C virtual void CreateItemDrawerL();
williamr@2
   288
williamr@2
   289
    /**
williamr@2
   290
     * Creates a new @c CTextListBoxModel 
williamr@2
   291
     */
williamr@2
   292
    IMPORT_C virtual void CreateModelL();
williamr@2
   293
williamr@2
   294
public:
williamr@2
   295
williamr@2
   296
    /**
williamr@2
   297
     * Gets the list box model.
williamr@2
   298
     *
williamr@2
   299
     * @return Pointer to the model used by this list box
williamr@2
   300
     */
williamr@2
   301
    IMPORT_C CTextListBoxModel* Model() const;
williamr@2
   302
 
williamr@2
   303
    /**
williamr@2
   304
     * Gets the object used by this list box to draw its items.
williamr@2
   305
     *
williamr@2
   306
     * @return A pointer to the list box drawer.
williamr@2
   307
     */
williamr@2
   308
    IMPORT_C CColumnListBoxItemDrawer* ItemDrawer() const;
williamr@2
   309
williamr@2
   310
    /**
williamr@2
   311
     * This method needs to be called to enable extended drawing features 
williamr@2
   312
     * such as skinning, pictograph drawing and marquee text in the listbox 
williamr@2
   313
     * draw routine.
williamr@2
   314
     *
williamr@2
   315
     * Methods @c CEikFormattedCellListBox::ConstructL and
williamr@2
   316
     * @c CEikFormattedCellListBox::ConstructFromResourceL call this method. 
williamr@2
   317
     * So, you only need to call this if your listbox implementation does not 
williamr@2
   318
     * call either of those.
williamr@2
   319
     * 
williamr@2
   320
     * This method can be safely called more than once.
williamr@2
   321
     * Item drawer must be created before calling this method, or a 
williamr@2
   322
     * panic is raised.
williamr@2
   323
     *
williamr@2
   324
     * @since S60 2.6
williamr@2
   325
     */
williamr@2
   326
    IMPORT_C void EnableExtendedDrawingL();
williamr@2
   327
williamr@2
   328
    /**
williamr@2
   329
     * Helper function that setst icon sizes for visible list items
williamr@2
   330
     */
williamr@2
   331
    void SetIconSizes();
williamr@2
   332
williamr@2
   333
    /**
williamr@2
   334
    * Enables/disables list stretching. When a column list is stretched its 
williamr@2
   335
    * layout is optimized to take advantage of the extra screen space.
williamr@2
   336
    * This is intented for devices with a large screen. This feature might be 
williamr@2
   337
    * set as default by a product specific flag.
williamr@2
   338
    *
williamr@2
   339
    * Item drawer must be created before calling this method.
williamr@2
   340
    *
williamr@2
   341
    * @since S60 3.1
williamr@2
   342
    * @param aEnabled ETrue to enable list stretching.
williamr@2
   343
    */
williamr@2
   344
    IMPORT_C void EnableStretching( const TBool aEnabled );
williamr@2
   345
public: // from CEikListBox
williamr@2
   346
williamr@2
   347
    /**
williamr@2
   348
     * From @c CEikListBox.
williamr@2
   349
     * 
williamr@2
   350
     * Creates the list box view.
williamr@2
   351
     * The function is called by @ ConstructL() to create an instance of 
williamr@2
   352
     * the appropriate list box view class for this list box. The returned
williamr@2
   353
     * instance is owned by this object, and does not have to have its 
williamr@2
   354
     * second-phase constructor run. This function is called by 
williamr@2
   355
     * @c CreateViewL().
williamr@2
   356
     *
williamr@2
   357
     * @return Pointer to a newly constructed list box 
williamr@2
   358
     *         view for this object. 
williamr@2
   359
     */
williamr@2
   360
    IMPORT_C CListBoxView* MakeViewClassInstanceL();
williamr@2
   361
    
williamr@2
   362
    /**
williamr@2
   363
     * From @c CEikListBox
williamr@2
   364
     * 
williamr@2
   365
     * Handles focus changes.
williamr@2
   366
     *
williamr@2
   367
     * The function emphasises or de-emphasises the view as needed, and 
williamr@2
   368
     * shows or hides the matcher cursor.
williamr@2
   369
     *
williamr@2
   370
     * @param aDrawNow If @c EDrawNow, a redraw is performed immediately
williamr@2
   371
     */
williamr@2
   372
    IMPORT_C void FocusChanged(TDrawNow aDrawNow);
williamr@2
   373
williamr@2
   374
public:	// from CCoeControl
williamr@2
   375
williamr@2
   376
    /**
williamr@2
   377
     * From @c CCoeControl.
williamr@2
   378
     *
williamr@2
   379
     * Not used in S60
williamr@2
   380
     * @param aColorUseList The colour list
williamr@2
   381
     */
williamr@2
   382
    IMPORT_C void GetColorUseListL(
williamr@2
   383
                        CArrayFix<TCoeColorUse>& aColorUseList) const;
williamr@2
   384
williamr@2
   385
    /**
williamr@2
   386
     * From @c CCoeControl.
williamr@2
   387
     *
williamr@2
   388
     * Handles a change to the control's resources.
williamr@2
   389
     *
williamr@2
   390
     * The types of resources handled are those which are shared across 
williamr@2
   391
     * the environment, e.g. colours or fonts. For colour scheme changes, 
williamr@2
   392
     * @c DrawDeferred() is called in order to redraw the control.
williamr@2
   393
     * 
williamr@2
   394
     * If overriding @c HandleResourceChange(), the implementation must 
williamr@2
   395
     * include a base call to @c CCoeControl's @c HandleResourceChange().
williamr@2
   396
     * 
williamr@2
   397
     * @param aType A message UID value
williamr@2
   398
     */
williamr@2
   399
    IMPORT_C void HandleResourceChange(TInt aType);
williamr@2
   400
	
williamr@2
   401
    /**
williamr@2
   402
     * From @c CCoeControl.
williamr@2
   403
     *
williamr@2
   404
     * Retrieves an object of the same type as that encapsulated in @c aId.
williamr@2
   405
     * 
williamr@2
   406
     * This function is used to allow controls to ask their owners for 
williamr@2
   407
     * access to other objects that they own.
williamr@2
   408
     * 
williamr@2
   409
     * Other than in the case where NULL is returned, the object returned 
williamr@2
   410
     * must be of the same object type - that is, the @c ETypeId member of the 
williamr@2
   411
     * object pointed to by the pointer returned by this function must be 
williamr@2
   412
     * equal to the @c iUid member of @c aUid.
williamr@2
   413
     * 
williamr@2
   414
     * @param aUid An encapsulated object type ID.
williamr@2
   415
     * @return Pointer to the type UID of the wanted object. 
williamr@2
   416
     */
williamr@2
   417
    IMPORT_C TTypeUid::Ptr MopSupplyObject(TTypeUid aUid);
williamr@2
   418
    
williamr@2
   419
    /**
williamr@2
   420
     * From @c CCoeControl.
williamr@2
   421
     *
williamr@2
   422
     * Handles pointer events.
williamr@2
   423
     *
williamr@2
   424
     * This function gets called whenever a pointer event occurs in the 
williamr@2
   425
     * control, i.e. when the pointer is within the control's extent, or when 
williamr@2
   426
     * the control has grabbed the pointer. The control should implement this 
williamr@2
   427
     * function to handle pointer events.
williamr@2
   428
     * 
williamr@2
   429
     * Note: events of type @c EButton1Down are processed before 
williamr@2
   430
     * @c HandlePointerEventL() is called, in order to transfer keyboard 
williamr@2
   431
     * focus to the control in which the @c EButton1Down event occurred.
williamr@2
   432
     * 
williamr@2
   433
     * If overriding @c HandlePointerEventL(), the implementation must 
williamr@2
   434
     * include a base call to @c CCoeControl's @c HandlePointerEventL().
williamr@2
   435
     *
williamr@2
   436
     * @param aPointerEvent The pointer event
williamr@2
   437
     */
williamr@2
   438
    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);
williamr@2
   439
private:
williamr@2
   440
    /**
williamr@2
   441
    * From CAknControl
williamr@2
   442
    */
williamr@2
   443
    IMPORT_C void* ExtensionInterface( TUid aInterface );
williamr@2
   444
private:
williamr@2
   445
    IMPORT_C virtual void CEikListBox_Reserved(); // listbox use only
williamr@2
   446
private: // data
williamr@2
   447
    TInt iSpare;
williamr@2
   448
    };
williamr@2
   449
williamr@2
   450
/**
williamr@2
   451
 * The @c CEikColumnListBoxEditor class implements an item editor for 
williamr@2
   452
 * column list boxes. 
williamr@2
   453
 * Not supported in S60
williamr@2
   454
 * @since ER5U
williamr@2
   455
 */
williamr@2
   456
class CEikColumnListBoxEditor : public CEikListBoxTextEditor
williamr@2
   457
    {
williamr@2
   458
public:
williamr@2
   459
    IMPORT_C CEikColumnListBoxEditor(MListBoxModel* aModel);
williamr@2
   460
    IMPORT_C ~CEikColumnListBoxEditor();
williamr@2
   461
    IMPORT_C void ConstructL(TInt aColumn);   // just set column index
williamr@2
   462
public: // from MEikListBoxEditor
williamr@2
   463
    IMPORT_C TPtrC ItemText();
williamr@2
   464
    IMPORT_C TBool UpdateModelL();
williamr@2
   465
public: // From CCoeControl
williamr@2
   466
    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);    
williamr@2
   467
protected:
williamr@2
   468
    IMPORT_C TInt Column() const;
williamr@2
   469
private:
williamr@2
   470
    /**
williamr@2
   471
    * From CAknControl
williamr@2
   472
    */
williamr@2
   473
    IMPORT_C void* ExtensionInterface( TUid aInterface );
williamr@2
   474
private:
williamr@2
   475
    TInt iColumnIndex; // refers to list box column
williamr@2
   476
    };
williamr@2
   477
williamr@2
   478
class CColumnListBoxView : public CListBoxView
williamr@2
   479
    {
williamr@2
   480
public: // from CListBoxView
williamr@2
   481
williamr@2
   482
    /**
williamr@2
   483
     * From @c CListBoxView 
williamr@2
   484
     * Draws every visible item into the specified rectangle. 
williamr@2
   485
     *
williamr@2
   486
     * As implemented in @c CListBoxView, this function's argument is 
williamr@2
   487
     * ignored and the internal viewing rectangle is used. See @c SetViewRect().
williamr@2
   488
     *
williamr@2
   489
     * @param aClipRect = NULL The rectangle to draw into, this is ignored
williamr@2
   490
     */
williamr@2
   491
    IMPORT_C void Draw(const TRect* aClipRect = NULL) const;
williamr@2
   492
    
williamr@2
   493
    /**
williamr@2
   494
     * From @c CListBoxView
williamr@2
   495
     * Recalculates the index of the bottom item in the list from the top item 
williamr@2
   496
     * index and the size of the display. 
williamr@2
   497
     *
williamr@2
   498
     * This function is called by the owning list box control when either the 
williamr@2
   499
     * size of the list box or the number of items in its model changes.
williamr@2
   500
     */
williamr@2
   501
	IMPORT_C virtual void CalcBottomItemIndex();
williamr@2
   502
williamr@2
   503
private: // overridden from CListBoxView	
williamr@2
   504
williamr@2
   505
    IMPORT_C virtual TAny* Reserved_1();
williamr@2
   506
williamr@2
   507
private: // data
williamr@2
   508
    TInt iSpare;
williamr@2
   509
    };
williamr@2
   510
williamr@2
   511
#endif // __EIKCLB_H__
williamr@2
   512
williamr@2
   513
// End of File