Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
2 * Copyright (c) 1997-1999 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
21 #if !defined(__EIKLBI_H__)
30 class TListItemProperties;
31 class TListFontBoundValues;
32 class MAknsControlContext;
36 * The @c CListItemDrawer class is the base class for the list box item drawers
37 * which handle drawing of the contents of list box items.
38 * The items may optionally be markable.
42 class CListItemDrawer : public CBase
50 IMPORT_C ~CListItemDrawer();
53 * Draws the entire item.
55 * This function is called by the list box view. As implemented
56 * in @c CListItemDrawer, this function draws the item text using
57 * @c DrawActualItem(), and an item mark using @c DrawItemMark().
59 * @param aItemIndex Index of the item to draw.
60 * @param aItemRectPos Position of the rectangle to draw.
61 * @param aItemIsSelected Whether the item is selected.
62 * @param aItemIsCurrent Whether the item is current.
63 * @param aViewIsEmphasized Whether the list box view has the emphasised
64 * flag set (see @c CListBoxView::SetEmphasized()).
65 * @param aViewIsDimmed Whether the list box view has its dimmed flag set
66 * (see @c CListBoxView::SetDimmed()).
68 IMPORT_C virtual void DrawItem(TInt aItemIndex,
70 TBool aItemIsSelected,
72 TBool aViewIsEmphasized,
73 TBool aViewIsDimmed) const;
76 * Clears the specified rectangle of this object's graphics context.
78 * @param aRect Rectangle to clear.
80 IMPORT_C virtual void ClearRect(const TRect& aRect) const;
83 * Gets the width of the specified item.
85 * @param aItemIndex The index of the item whose width is to be returned.
86 * @return The width of the item. This is 0 in @c CListItemDrawer
88 IMPORT_C virtual TInt ItemWidthInPixels(TInt aItemIndex) const;
91 * Gets the minimum cell size.
93 * @return The minimum size for a cell. This is @c TSize(0, 0)
94 * in @c CListItemDrawer.
96 IMPORT_C virtual TSize MinimumCellSize() const;
99 * Sets the graphics context which this object uses for drawing.
101 * @param aGc Pointer to the context to use.
103 IMPORT_C virtual void SetGc(CWindowGc* aGc);
106 * Gets graphics context which is used for drawing.
108 * @return Pointer to the graphics context used for drawing.
110 IMPORT_C CWindowGc* Gc() const;
113 * Sets the width of the column containing the mark.
115 * @param aWidthInPixels New width for the mark column.
117 IMPORT_C virtual void SetMarkColumnWidth(TInt aWidthInPixels);
120 * Sets the width of the gap between the column containing the lists item
121 * marks and the text column.
123 * @param aGapInPixels New gap size.
125 IMPORT_C virtual void SetMarkGutter(TInt aGapInPixels);
128 * Gets mark column width.
130 * @return Mark column width.
132 IMPORT_C TInt MarkColumn() const;
135 * Gets the width of the gap between the column containig the lists item
136 * marks and the text column.
138 * @return Size of the inter-column gutter.
140 IMPORT_C TInt MarkGutter() const;
143 * Sets the item cell size.
144 * The cell size is the on-screen size of the entire item, including
145 * its text and its item mark.
147 * @param aSizeInPixels New size for the item cell.
149 IMPORT_C virtual void SetItemCellSize(const TSize& aSizeInPixels);
152 * Gets current item cell size.
155 * @return Item cell size
157 IMPORT_C TSize ItemCellSize() const;
160 * Sets the viewing rectangle for this item drawer.
161 * This value is not used by the @c CListItemViewer, but may be used by its
164 * @param aRect New value for @c iViewRect.
166 IMPORT_C virtual void SetViewRect(const TRect& aRect);
169 * Sets whether item tick marks are drawn.
171 * If the draw mark flag iDrawMark is set, @c DrawItem() leaves space for
172 * the marks column to the left of the text column, and @c DrawItemMark()
173 * draws the item marks.
175 * @param aDrawMark New value for iDrawMark.
177 IMPORT_C void SetDrawMark(TBool aDrawMark);
180 * Gets a rectangle describing where the matcher cursor should be drawn.
181 * The default behavious is to return uninitialised @c TRect.
184 * @param aMatchableText The text of the currently matched string.
185 * @param aCharPos The position in the string of the character just matched
186 * in the current incremental match.
187 * @param aItemCellYPos Y position of the item cell.
188 * @param aCurrentItemIndex Item index for the current item.
189 * @return Where the cursor should be drawn.
191 IMPORT_C virtual TRect MatcherCursorRect(const TDesC& aMatchableText,
194 TInt aCurrentItemIndex ) const;
197 * Gets the ascent of the matcher cursor.
199 * This is obtained for the item at index @c aCurrentItemIndex.
200 * The function returns 0 by default.
203 * @param aCurrentItemIndex Item index of the target item.
204 * @return The height of the matcher cursor.
206 IMPORT_C virtual TInt MatcherCursorAscent( TInt aCurrentItemIndex ) const;
211 IMPORT_C virtual void DrawItemMark(TBool aItemIsSelected,
213 const TPoint& aMarkPos) const;
216 * Sets symbol font for the item drawer.
217 * The symbol font is used to draw the standard tick item marks.
219 * @param aFont The font to be used.
221 IMPORT_C void SetSymbolFont(const CFont* aFont);
224 * Sets the vertical gap between items in the list.
226 * @param aGapInPixels New value for the vertical gap between items
229 IMPORT_C void SetVerticalInterItemGap(TInt aGapInPixels);
232 * Sets the font storage data for the item drawer and transfer ownership
235 * @param aData Font storage data .
237 IMPORT_C void SetData(CListBoxData* aData);
240 * Gets the font for the specified item.
242 * The function returns @c NULL if no font storage data has been set.
244 * @param aItemIndex The index of the item for which the font is returned.
245 * @return The item's font.
247 IMPORT_C CFont* Font(TInt aItemIndex) const;
250 * Gets the colour and style properties of the specified item.
252 * @param aItemIndex The index of the item for which properties
253 * are obtained (Not Used).
254 * @return The item's properties.
256 IMPORT_C virtual TListItemProperties Properties(TInt aItemIndex) const;
261 * Uses the colours set with the fonts and colour functions described above.
264 * @param aGc The graphics context used to draw the frame.
265 * @param aRect The frame's rectangle.
266 * @param aFlags The item drawer flags.
268 IMPORT_C void DrawFrame(CWindowGc& aGc,
275 * Provides list box attributes for handling multiple selections. These
276 * flags can be set using the @c CListItemDrawer::SetFlags function.
281 * If set, specifies the inclusion of a gap into which a tick mark can
282 * be drawn if the item is selected. This is used in the following
283 * @c CListItemDrawer class functions:
288 EDrawMarkSelection = 0x0001,
291 * If set, draws a highlight over a selected list item. This is used
292 * in the @c CTextListItemDrawer::DoDrawItemText() function.
294 EPaintedSelection = 0x0002,
296 /** This flag is not supported. */
297 EDrawOnlyActiveSelection = 0x0004,
299 /** If set highlight is disabled. */
300 EDisableHighlight = 0x0008,
302 /** This flag indicates @c CListboxData to draw pressed down state
303 * rather than normal highlight on item. Make sure checking this
304 * flag in subclass's Draw method, if using a custom @c CListboxData
305 * inheriting from @c CColumnListBoxData or @c CFormattedCellListBoxData.
307 EPressedDownState = 0x0010,
309 /** This flag indicates the marquee is disabled. If it is set, @c CColumnListBoxData
310 * or @c CFormattedCellListBoxData would disable maquee temporarily for
311 * performance reason.
313 EDisableMarquee = 0x0020
319 * Provides attributes for list items
321 enum TListItemAttribute
324 /** Highlight for current text. */
325 ECurrent = 0x0001, // may be drawn with a frame
328 * Highlight for text when the listbox view is emphasized.
330 * This is used in the following @c CListBoxView class functions:
331 * @c DrawItem(), @c DrawMatcherCursor(), @c SetEmphasized().
333 EEmphasized = 0x0002, // special highlight (not selected)
336 * Highlight for text that is selected. This is used in the following
337 * functions: @c CColumnListBoxItemDrawer::DrawItemText(),
338 * @c CHierarchicalListItemDrawer::DrawActualItem(),
339 * @c CDirContentsListItemDrawer::DrawActualItem().
341 ESelected = 0x0004, // usually different than emphasized
344 * Sum of all the above attributes.
345 * This last attribute is used to control that one can use only
346 * valid attributes above. So do not use it at all.
348 EMask = 0x0007 // sum of all others attributes
355 * Sets the colour used to draw non-highlighted text.
357 * @param aColor The text colour.
359 inline void SetTextColor(TRgb aColor);
362 * Sets the colour used to draw the background for non-highlighted items.
364 * @param aColor The background colour.
366 inline void SetBackColor(TRgb aColor);
369 * Sets the colour used to draw highlighted text.
371 * @param aColor The highlighted text colour.
373 inline void SetHighlightedTextColor(TRgb aColor);
376 * Sets the colour used to draw the background for highlighted items.
378 * @param aColor The highlighted background colour.
380 inline void SetHighlightedBackColor(TRgb aColor);
383 * Sets the colour used to draw dimmed text.
385 * @param aColor The dimmed text colour.
387 inline void SetDimmedTextColor(TRgb aColor);
390 * Sets the colour used to draw the background for dimmed items.
392 * @param aColor The background colour for dimmed items.
394 inline void SetDimmedBackColor(TRgb aColor);
397 * Gets the colour used to draw non-highlighted text.
399 * @return The text colour.
401 inline TRgb TextColor() const;
404 * Gets the colour used to draw the background for non-highlighted items.
406 * @return Background colour.
408 inline TRgb BackColor() const;
411 * Gets the colour used to draw highlighted text.
413 * @return The highlighted text colour.
415 inline TRgb HighlightedTextColor() const;
418 * Gets the colour used to draw the background for highlighted items.
420 * @return The highlighted background colour.
422 inline TRgb HighlightedBackColor() const;
425 * Gets the colour used to draw dimmed text.
427 * @return The dimmed text colour.
429 inline TRgb DimmedTextColor() const;
432 * Gets the colour used to draw the background for dimmed items.
434 * @return The background colour for dimmed items.
436 inline TRgb DimmedBackColor() const;
439 * Gets the item drawer flags.
441 * @return The item drawer flags.
443 inline TInt Flags() const;
446 * Sets the item drawer flags.
448 * @param aFlags The new item drawer flags.
450 IMPORT_C void SetFlags(TInt aFlags);
453 * Sets the item drawer flags.
455 * @param aFlags The new item drawer flags.
457 IMPORT_C void ClearFlags(TInt aFlags);
460 * Access to skin contexts.
463 * @return Pointer to skin background control context.
465 IMPORT_C MAknsControlContext *SkinBackgroundControlContext() const;
467 * Ability to enable skins in listboxes.
470 * @param aEnabled parameter for enabling/disabling skin.
471 * @c ETrue enables skin,
472 * @c EFalse disables skin
474 IMPORT_C void SetSkinEnabledL(TBool aEnabled);
479 * C++ default constructor.
481 IMPORT_C CListItemDrawer();
486 * This function is called by @c CListItemDrawer::DrawItem() with
487 * appropriate arguments. Its purpose is to draw the actual item
488 * - everything other than the item mark - into the graphics context.
490 * @param aItemIndex Which item to draw.
491 * @param aActualItemRect Where the item should be drawn.
492 * @param aItemIsCurrent Whether the item is current.
493 * @param aViewIsEmphasized Whether the list box view is emphasised.
494 * @param aViewIsDimmed Whether the list box view is dimmed.
495 * @param aItemIsSelected Whether the list box item is selected.
497 virtual void DrawActualItem(TInt aItemIndex,
498 const TRect& aActualItemRect,
499 TBool aItemIsCurrent,
500 TBool aViewIsEmphasized,
502 TBool aItemIsSelected) const = 0;
505 * Resets the pen style, brush style, brush colour etc. to suitable
506 * starting values for this class.
508 * This function is called after every drawing operation.
510 IMPORT_C virtual void ResetGc() const;
513 * Gets the colour used to draw tick marks.
515 * A tick mark usually indicates that an item is selected.
517 * @return The tick mark colour.
519 inline TRgb MarkColor() const;
522 * Gets the vertical gap between items in pixels.
524 * @return The vertical gap between items in pixels.
526 IMPORT_C TInt VerticalInterItemGap() const;
529 * Sets up the graphics context for the specified item.
531 * @param aItemIndex The item for which the graphics context
534 IMPORT_C void SetupGc(TInt aItemIndex) const;
538 IMPORT_C virtual TAny* Reserved_1();
540 inline TInt& VerticalInterItemGap();
542 inline const CFont* SymbolFont() const;
544 inline const CFont*& SymbolFont();
548 /** Item's cell size. */
554 /** Mark column width. */
555 TInt iMarkColumnWidth;
563 /** Graphics context controller. */
566 /** Color of text. */
569 /** Background color. */
572 /** Color of highlighted text. */
573 TRgb iHighlightedTextColor;
575 /** Highlighted background color. */
576 TRgb iHighlightedBackColor;
578 /** Color of dimmed text. */
579 TRgb iDimmedTextColor;
581 /** Color of dimmed background. */
582 TRgb iDimmedBackColor;
592 const CFont* iSymbolFont;
594 TInt iVerticalInterItemGap;
605 class MTextListBoxModel;
609 * Item drawer which can handle text.
611 * Used by @c CListBoxView to draw individual list box items
612 * for a @c CEikTextListBox
614 class CTextListItemDrawer : public CListItemDrawer
620 * C++ default constructor.
622 IMPORT_C CTextListItemDrawer();
627 IMPORT_C ~CTextListItemDrawer();
630 * C++ default constructor.
632 * Constructs a new text item drawer which draws the data of the specified
633 * model using the supplied font.
635 * @param aTextListBoxModel The model whose items will be drawn.
636 * @param aFont The font in which the items will be drawn.
638 IMPORT_C CTextListItemDrawer(MTextListBoxModel* aTextListBoxModel,
642 * Handles 2nd phase construction.
644 * @param aFont The font in which the list box items will be drawn.
646 IMPORT_C void ConstructL(const CFont* aFont);
649 * Draws the actual item contents for the specified item in the specified
652 * @param aItemIndex Index of the item to draw.
653 * @param aActualItemRect Area to draw into.
654 * @param aItemIsCurrent @c ETrue if the item is current.
655 * @param aViewIsEmphasized @c ETrue if the view is emphasised.
656 * @param aViewIsDimmed Ignored
657 * @param aItemIsSelected @c ETrue if the item is selected.
659 IMPORT_C virtual void DrawActualItem(TInt aItemIndex,
660 const TRect& aActualItemRect,
661 TBool aItemIsCurrent,
662 TBool aViewIsEmphasized,
664 TBool aItemIsSelected) const;
667 * Gets the width in pixels of the specified item.
669 * @param aItemIndex The index of the item for which the width is obtained.
670 * @return The specified item’s width in pixels.
672 IMPORT_C virtual TInt ItemWidthInPixels(TInt aItemIndex) const;
675 * Gets the minimum size of a cell based on the font and the number of
676 * characters in the cell.
678 * @return The minimum size for a cell, in pixels.
680 IMPORT_C virtual TSize MinimumCellSize() const;
683 * Sets the graphics context.
685 * @param aGc The graphics context to use.
687 IMPORT_C virtual void SetGc(CWindowGc* aGc);
690 * Sets the number of characters in a cell.
691 * This value affects only @c MinimumCellSize().
693 * @param aNumOfCharsToDisplayInCell Number of characters to
696 IMPORT_C void SetCellWidthInChars(TInt aNumOfCharsToDisplayInCell);
699 * Gets the position and size of the matcher cursor.
702 * @param aMatchableText String currently being matched. Not Used.
703 * @param aCharPos Position within the string. Not Used.
704 * @param aItemCellYPos Y position of the item cell in pixels. Not Used.
705 * @param aCurrentItemIndex Item index for the current item. Not Used.
706 * @return The rectangle covered by the matcher cursor, in pixels.
708 IMPORT_C virtual TRect MatcherCursorRect(const TDesC& aMatchableText,
711 TInt aCurrentItemIndex ) const;
716 * Derived classes that deal with text and want to support incremental
717 * matching in listboxes need to redefine this function.
718 * Should be used to get the ascent of the matcher cursor in pixels.
721 * @param aCurrentItemIndex Index of the current item. Not Used.
722 * @return Always returns 0;
724 IMPORT_C virtual TInt MatcherCursorAscent( TInt aCurrentItemIndex ) const;
729 * @param aFont The new font.
731 IMPORT_C void SetFont(const CFont* aFont);
734 * Sets the search string.
736 * @param aSearchString The new search string.
738 IMPORT_C void SetSearchStringL(const TDesC* aSearchString);
741 * Gets font for the specified item.
743 * @param aIndex The index of the target item.
744 * @return Specified item's font.
746 IMPORT_C const CFont* Font(TInt aIndex) const;
748 // SAPLAF new methods.
752 * Sets item mark position.
754 * @param aPos The new position.
756 inline void SetItemMarkPosition(TInt aPos);
759 * Gets item mark position.
761 * @return Position of the Item mark.
763 inline TInt ItemMarkPosition() const;
766 * Sets the item mark replacement.
768 * @param aReplacement The new replacement descriptor.
770 inline void SetItemMarkReplacement(const TDesC &aReplacement);
773 * Gets item mark replacement.
775 * @return Pointer to the replacement string.
777 inline TPtrC ItemMarkReplacement() const;
780 * Sets item mark reverse to be active or not.
782 * @param aReverse The new setting.
783 * @c ETrue if item is marked reversed.
785 inline void SetItemMarkReverse(TBool aReverse);
788 * Check if the item has been marked reversed is active.
790 * @return Indicates if active or not.
793 inline TBool ItemMarkReverse() const;
801 * This function is invoked by @c DrawItemText() to draw a string into a
802 * rectangular area of @c iGc.
804 * @param aDes The string to draw.
805 * @param aItemTextRect Area to draw into.
806 * @param aItemIsCurrent @c ETrue if the item is current.
807 * @param aViewIsEmphasized @c ETrue if the view is emphasised.
808 * @param aItemIsSelected @c ETrue if the item is selected.
809 * @param aItemIndex The item’s index.
811 IMPORT_C virtual void DoDrawItemText(const TDesC& aDes,
812 const TRect& aItemTextRect,
813 TBool aItemIsCurrent,
814 TBool aViewIsEmphasized,
815 TBool aItemIsSelected,
816 TInt aItemIndex) const;
821 * This function is invoked by @c DrawActualItem() to draw the item text.
823 * @param aItemIndex Index of the item to draw.
824 * @param aItemTextRect Area to draw into.
825 * @param aItemIsCurrent @c ETrue if the item is current.
826 * @param aViewIsEmphasized @c ETrue if the view is emphasised.
827 * @param aItemIsSelected @c ETrue if the item is selected.
829 IMPORT_C virtual void DrawItemText(TInt aItemIndex,
830 const TRect& aItemTextRect,
831 TBool aItemIsCurrent,
832 TBool aViewIsEmphasized,
833 TBool aItemIsSelected) const;
836 * Resets the graphics context.
837 * This function invokes @c CListItemDrawer::ResetGc() and resets the pen
838 * colour to @c iTextColor.
840 IMPORT_C virtual void ResetGc() const;
844 IMPORT_C virtual TAny* Reserved_1();
848 /** List box model for the drawer. */
849 MTextListBoxModel* iModel;
851 /** Font used by the drawer. */
856 TInt iNumOfCharsInCell;
862 TPtrC iItemMarkReplacement;
864 TBool iItemMarkReverse;
874 * The @c TListItemProperties class packages together the color and
875 * style properties which can be applied when drawing the contents
878 * @since Symbian ER5U
881 class TListItemProperties
888 * C++ default constructor.
890 IMPORT_C TListItemProperties();
895 * Sets whether the list item is drawn bold or not bold.
898 * @param aBold @c ETrue to draw the list item bold.
899 * @c EFalse otherwise.
901 inline void SetBold(TBool aBold);
904 * Tests whether the list item is drawn bold.
907 * @return @c ETrue if the list item is drawn bold.
908 * @c EFalse otherwise.
910 inline TBool IsBold() const;
913 * Sets whether or not the list item is drawn in italics.
916 * @param aItalics @c ETrue to draw the list item in italics.
917 * @c EFalse otherwise.
919 inline void SetItalics(TBool aItalics);
922 * Tests whether the list item is italicised.
925 * @return @c ETrue if the list item is drawn in italics.
926 * @c EFalse otherwise.
928 inline TBool IsItalics() const;
931 * Sets whether or not the list item is drawn with an underline.
933 * @param aUnderlined @c ETrue to draw the list item with an underline.
934 * @c EFalse otherwise.
936 inline void SetUnderlined(TBool aUnderlined);
939 * Test whether the list item is drawn with an underline.
941 * @return @c ETrue if the list item is drawn with an underline.
942 * @c EFalse otherwise.
944 inline TBool IsUnderlined() const;
947 * Sets list item dim state.
949 * An item is usually drawn dimmed to indicate that it cannot accept
952 * @param aDimmed @c ETrue to draw the list item dimmed. @c EFalse otherwise.
954 inline void SetDimmed(TBool aDimmed);
957 * Tests list item dim state.
959 * An item is usually drawn dimmed to indicate that it cannot accept
962 * @return @c ETrue if the list item is dimmed.
963 * @c EFalse otherwise.
965 inline TBool IsDimmed() const;
968 * Sets the list item’s colour.
970 * @param aColor The list item’s colour.
972 inline void SetColor(TRgb aColor);
975 * Gets the list item’s colour.
977 * @return The list item’s colour.
979 inline TRgb Color() const;
982 * Activate/deactivate separator after item.
985 * @param aSeparator Active/deactive selector.
987 * @c EFalse = Deactivated.
989 inline void SetSeparatorAfter(TBool aSeparator);
992 * Check if separator after item is active.
995 * @return @c ETrue if Active.
996 * @c EFalse if Deactivated.
998 inline TBool IsSeparatorAfter() const;
1001 * Select to hide the item .
1003 * @param aHidden Defines whether the item is hidden.
1006 inline void SetHiddenSelection(TBool aHidden);
1009 * Check if the item is hidden.
1011 * @return @c ETrue if item is hidden.
1013 inline TBool IsSelectionHidden() const;
1027 ELbxItemBold = 0x0001,
1029 ELbxItemItalics = 0x0002,
1031 ELbxItemUnderlined = 0x0004,
1033 ELbxItemDimmed = 0x0008,
1035 ELbxItemSeparatorAfter = 0x0010,
1037 ELbxItemSelectionHidden = 0x0020
1053 inline void CListItemDrawer::SetTextColor(TRgb aColor)
1055 {iTextColor=aColor;}
1057 inline void CListItemDrawer::SetBackColor(TRgb aColor)
1059 {iBackColor=aColor;}
1061 inline void CListItemDrawer::SetHighlightedTextColor(TRgb aColor)
1063 {iHighlightedTextColor=aColor;}
1065 inline void CListItemDrawer::SetHighlightedBackColor(TRgb aColor)
1067 {iHighlightedBackColor=aColor;}
1069 inline void CListItemDrawer::SetDimmedTextColor(TRgb aColor)
1071 {iDimmedTextColor=aColor;}
1073 inline void CListItemDrawer::SetDimmedBackColor(TRgb aColor)
1075 {iDimmedBackColor=aColor;}
1077 inline TRgb CListItemDrawer::TextColor() const
1079 {return iTextColor;}
1081 inline TRgb CListItemDrawer::BackColor() const
1083 {return iBackColor;}
1085 inline TRgb CListItemDrawer::HighlightedTextColor() const
1087 {return iHighlightedTextColor;}
1089 inline TRgb CListItemDrawer::HighlightedBackColor() const
1091 {return iHighlightedBackColor;}
1093 inline TRgb CListItemDrawer::DimmedTextColor() const
1095 {return iDimmedTextColor;}
1097 inline TRgb CListItemDrawer::DimmedBackColor() const
1099 {return iDimmedBackColor;}
1101 inline TRgb CListItemDrawer::MarkColor() const
1103 {return iMarkColor;}
1105 inline TInt CListItemDrawer::Flags() const
1111 inline TBool TListItemProperties::IsItalics() const
1113 {return iFlags&ELbxItemItalics;}
1115 inline TBool TListItemProperties::IsBold() const
1117 {return iFlags&ELbxItemBold;}
1119 inline TBool TListItemProperties::IsUnderlined() const
1121 {return iFlags&ELbxItemUnderlined;}
1123 inline TBool TListItemProperties::IsDimmed() const
1125 {return iFlags&ELbxItemDimmed;}
1127 inline TBool TListItemProperties::IsSeparatorAfter() const
1129 {return iFlags&ELbxItemSeparatorAfter;}
1131 inline TBool TListItemProperties::IsSelectionHidden() const
1133 {return iFlags&ELbxItemSelectionHidden;}
1137 inline void TListItemProperties::SetColor(TRgb aColor)
1141 inline TRgb TListItemProperties::Color() const
1145 inline void TListItemProperties::SetBold(TBool aBold)
1151 iFlags|=ELbxItemBold;
1155 iFlags&=(~ELbxItemBold);
1159 inline void TListItemProperties::SetItalics(TBool aItalics)
1165 iFlags|=ELbxItemItalics;
1169 iFlags&=(~ELbxItemItalics);
1173 inline void TListItemProperties::SetUnderlined(TBool aUnderlined)
1179 iFlags|=ELbxItemUnderlined;
1183 iFlags&=(~ELbxItemUnderlined);
1187 inline void TListItemProperties::SetDimmed(TBool aDimmed)
1193 iFlags|=ELbxItemDimmed;
1197 iFlags&=(~ELbxItemDimmed);
1203 inline void TListItemProperties::SetSeparatorAfter(TBool aSeparator)
1209 iFlags|=ELbxItemSeparatorAfter;
1213 iFlags&=(~ELbxItemSeparatorAfter);
1218 inline void TListItemProperties::SetHiddenSelection(TBool aBlocked)
1224 iFlags|=ELbxItemSelectionHidden;
1228 iFlags&=(~ELbxItemSelectionHidden);
1239 inline void CTextListItemDrawer::SetItemMarkPosition(TInt aPos) { iItemMarkPos = aPos; }
1241 inline TInt CTextListItemDrawer::ItemMarkPosition() const { return iItemMarkPos; }
1243 inline void CTextListItemDrawer::SetItemMarkReplacement(const TDesC & aReplacement) { iItemMarkReplacement.Set(aReplacement); }
1245 inline TPtrC CTextListItemDrawer::ItemMarkReplacement() const { return iItemMarkReplacement; }
1247 inline void CTextListItemDrawer::SetItemMarkReverse(TBool aReverse) { iItemMarkReverse = aReverse; }
1248 inline TBool CTextListItemDrawer::ItemMarkReverse() const { return iItemMarkReverse; }
1254 #endif // __EIKLBI_H__