API published in: S60 1st Ed
Link against: eikcoctl.lib
Required Capabilities
None
#include <eiklabel.h>
Inherits CEikAlignedControl.
Inherited by CEikCapCLabel.
Public Types |
|
enum | TTextEmphasis { ENoEmphasis = 0x00, EPartialEmphasis = 0x10, EFullEmphasis = 0x20 } |
Determines text emphasis. More... |
|
Public Member Functions |
|
IMPORT_C | ~CEikLabel () |
Destructor. |
|
IMPORT_C | CEikLabel () |
C++ default constructor. |
|
IMPORT_C void | SetLabelAlignment (TInt aAlignment) |
Sets the labels alignment. |
|
IMPORT_C void | SetBrushStyle (CWindowGc::TBrushStyle aBrushStyle) |
Sets the brush style to be used from aBrushStyle , this overwrites the brush style set via the Control Context. |
|
IMPORT_C void | SetBrushStyleFromContext () |
Sets the brush style to be used from the Control Context, this overwrites the brush style set via the CEikLabel::SetBrushStyle() . |
|
IMPORT_C TSize | MinimumSize () |
From CCoeControl . |
|
IMPORT_C void | ConstructFromResourceL (TResourceReader &aReader) |
From CCoeControl . |
|
IMPORT_C void | GetColorUseListL (CArrayFix< TCoeColorUse > &aColorUseList) const |
From CCoeControl . |
|
IMPORT_C void | HandleResourceChange (TInt aType) |
From CCoeControl . |
|
IMPORT_C void | Draw (const TRect &aRect) const |
From CCoeControl . |
|
IMPORT_C void | SetTextL (const TDesC &aText) |
Sets the label’s text. |
|
const TDesC * | Text () const |
Gets the label’s text. |
|
IMPORT_C void | CropText () |
Sets a flag to indicate that the text needs to be truncated with 3 dots. |
|
IMPORT_C void | SetBufferReserveLengthL (TInt aLength) |
Sets the buffer reserve length. |
|
IMPORT_C void | SetFont (const CFont *aFont) |
Sets the label’s font. |
|
const CFont * | Font () const |
Gets the label’s font. |
|
IMPORT_C void | SetEmphasis (TTextEmphasis aEmphasis) |
Sets the label's text emphasis. |
|
IMPORT_C void | SetPixelGapBetweenLines (TInt aGap) |
Sets the gap between lines. |
|
IMPORT_C TInt | PixelGapBetweenLines () const |
Gets the number of pixels between two lines of text. |
|
TBool | IsUnderlined () const |
Tests whether the label is underlined. |
|
IMPORT_C void | SetUnderlining (TBool aUnderLining) |
Sets the label underlining. |
|
TBool | IsStrikethrough () const |
Tests label strike-through. |
|
IMPORT_C void | SetStrikethrough (TBool aStrikethrough) |
Sets the label strike-through. |
|
IMPORT_C TSize | CalcMinimumSize (TPtrC &aText) const |
Gets the minimum size required to draw the specified text. |
|
TUint8 | NumberOfLines () |
Gets the number of lines of text in the label. |
|
IMPORT_C TInt | BufferReserveLength () const |
Gets the buffer reserve length. |
|
IMPORT_C void | UseLogicalToVisualConversion (TBool aUseConversion) |
Enables or disables logical to visual conversion when label text is drawn. |
|
IMPORT_C TBool | LogicalToVisualConversionUsed () const |
Gets information whether label is performing logical to visual conversion or not. |
|
IMPORT_C void | EnablePictographsL (CAknPictographInterface &aInterface) |
Enables pictograph drawing in the label text. |
|
IMPORT_C void | DisablePictographs () |
Disables pictograph drawing in the label text. |
|
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
From CCoeControl . |
|
Protected Types |
|
enum | TLabelFlags { EUnderlining = 0x02, EStrikethrough = 0x04, EUseLogicalToVisualConversion = 0x08 } |
Determines whether text is drawn with underlining or strike-through. More... |
|
Protected Member Functions |
|
IMPORT_C void | WriteInternalStateL (RWriteStream &aWriteStream) const |
From CCoeControl . |
|
Protected Attributes |
|
HBufC * | iText |
The label’s text. |
|
const CFont * | iFont |
The label’s font. |
|
TUint8 | iNumberOfLines |
The label’s number of lines of text. |
|
TUint8 | iLabFlags |
The label’s flags. |
|
TInt | iGapBetweenLines |
The number of pixels between lines of text. |
|
|
Determines text emphasis. |
|
Destructor. |
|
C++ default constructor. |
|
Gets the buffer reserve length.
|
|
Gets the minimum size required to draw the specified text.
|
|
From Constructs the control from a resource file.
|
|
Sets a flag to indicate that the text needs to be truncated with 3 dots. |
|
Disables pictograph drawing in the label text. Only effective in Japanese variant. By default, it is disabled. |
|
From Draw a control - called by window server. All controls, except blank controls, should implement this function. The default implementation draws a blank control.
This function is used for window server-initiated redrawing of controls, and for some application-initiated drawing. It should
be implemented by each control, but is only called from within
Reimplemented in CEikCapCLabel. |
|
Enables pictograph drawing in the label text. Only effective in Japanese variant. By default, it is disabled.
|
|
Gets the label’s font.
|
|
From Gets the list of logical colours used to draw the control.
|
|
From Handles pointer events. This function gets called whenever a pointer event occurs in the control, i.e. when the pointer is within the control's extent, or when the control has grabbed the pointer. The control should implement this function to handle pointer events.
Note: events of type
If overriding
Reimplemented from CEikAlignedControl. |
|
From Handles a change to the control's resources.
|
|
Tests label strike-through.
|
|
Tests whether the label is underlined.
|
|
Gets information whether label is performing logical to visual conversion or not.
|
|
From Sets the control's minimum required size.
|
|
Gets the number of lines of text in the label.
|
|
Gets the number of pixels between two lines of text.
|
|
Sets the brush style to be used from
|
|
Sets the brush style to be used from the Control Context, this overwrites the brush style set via the |
|
Sets the buffer reserve length.
|
|
Sets the label's text emphasis.
|
|
Sets the label’s font.
|
|
Sets the labels alignment.
Overwrites alignment set via
|
|
Sets the gap between lines.
Gap has a particular definition here. It is defined to be: "baselines separation" -
|
|
Sets the label strike-through.
|
|
Sets the label’s text.
|
|
Sets the label underlining.
|
|
Gets the label’s text.
|
|
Enables or disables logical to visual conversion when label text is drawn. By default, it is enabled. If you perform the conversion yourself and give visual text (in scrictly left-to-right order) to label, you should disable the conversion in label. Note that label does not perform cropping if logical to visual conversion is disabled.
|
|
From Writes the internal state of the control and its components to a stream. Does nothing in release mode. Designed to be overidden and base called by subclasses.
Reimplemented from CEikAlignedControl. |
|
The label’s font. |
|
The number of pixels between lines of text. |
|
The label’s flags. These are used to set text emphasis and characteristics, such as underlining, and strikethrough. |
|
The label’s number of lines of text. |
|
The label’s text. |