Location:
eiklabel.h
Link against:
eikcoctl.lib
CEikLabel
Supported from 6.0
This class enables you to display one or more lines of text. It is usually used for buttons and file name labels.
|
Defined in CEikLabel:
BufferReserveLength(), CEikLabel(), CalcMinimumSize(), ConstructFromResourceL(), Draw(), EFullEmphasis, ENoEmphasis, EPartialEmphasis, EStrikethrough, EUnderlining, Font(), GetColorUseListL(), HandleResourceChange(), IsStrikethrough(), IsUnderlined(), MinimumSize(), NumberOfLines(), PixelGapBetweenLines(), SetBufferReserveLengthL(), SetEmphasis(), SetFont(), SetPixelGapBetweenLines(), SetStrikethrough(), SetTextL(), SetUnderlining(), TLabelFlags, TTextEmphasis, Text(), iFont, iGapBetweenLines, iLabFlags, iNumberOfLines, iText, ~CEikLabel()
Inherited from CBase:
operator new()
Inherited from CCoeControl:
ActivateGc(),
ActivateL(),
BackedUpWindow(),
CapturesPointer(),
ClaimPointerGrab(),
CloseWindow(),
ComponentControl(),
ControlContext(),
ControlEnv(),
CopyControlContextFrom(),
CountComponentControls(),
CreateBackedUpWindowL(),
CreateWindowL(),
DeactivateGc(),
DrawDeferred(),
DrawNow(),
DrawableWindow(),
EnableDragEvents(),
FocusChanged(),
GetColor(),
GetHelpContext(),
GrabbingComponent(),
HandleComponentControlsResourceChange(),
HandlePointerBufferReadyL(),
HandlePointerEventL(),
HandleRedrawEvent(),
HasBorder(),
IgnoreEventsUntilNextPointerUp(),
Index(),
InputCapabilities(),
IsActivated(),
IsBackedUp(),
IsBeingDestroyed(),
IsBlank(),
IsDimmed(),
IsFocused(),
IsNonFocusing(),
IsReadyToDraw(),
IsVisible(),
MakeVisible(),
Observer(),
OfferKeyEventL(),
OverrideColorL(),
OwnsWindow(),
Position(),
PositionChanged(),
PositionRelativeToScreen(),
PrepareForFocusGainL(),
PrepareForFocusLossL(),
Rect(),
RecursivelyMergedInputCapabilities(),
ReportEventL(),
ResetGc(),
SetAdjacent(),
SetAllowStrayPointers(),
SetBlank(),
SetCanDrawOutsideRect(),
SetComponentsToInheritVisibility(),
SetContainerWindow(),
SetContainerWindowL(),
SetControlContext(),
SetCornerAndSize(),
SetCornerAndSizeL(),
SetDimmed(),
SetExtent(),
SetExtentL(),
SetExtentToWholeScreen(),
SetExtentToWholeScreenL(),
SetFocus(),
SetFocusing(),
SetGloballyCapturing(),
SetNeighbor(),
SetNonFocusing(),
SetObserver(),
SetPointerCapture(),
SetPosition(),
SetRect(),
SetRectL(),
SetSize(),
SetSizeL(),
SetSizeWithoutNotification(),
SetSizeWithoutNotificationL(),
Size(),
SizeChanged(),
SizeChangedL(),
SystemGc(),
Window()
Inherited from CEikAlignedControl:
SetAlignment(),
SetAllMarginsTo(),
iAlignment,
iMargin
Inherited from MCoeControlContext:
ActivateContext(),
PrepareContext(),
ResetContext()
void ConstructFromResourceL(TResourceReader& aReader);
Constructs a label from resource using the specified resource reader.
|
void SetTextL(const TDesC& aText);
Sets the label’s text.
|
TUint8 NumberOfLines();
Gets the number of lines of text in the label.
|
void SetFont(const CFont* aFont);
Sets the label’s font.
|
void SetEmphasis(TTextEmphasis aEmphasis);
Sets the label's text emphasis.
|
void SetPixelGapBetweenLines(TInt aGap);
Sets the gap between the label’s text lines in pixels.
|
TInt PixelGapBetweenLines() const;
Gets the number of pixels between two lines of text.
|
TBool IsUnderlined() const;
Tests whether the label is underlined.
|
void SetUnderlining(TBool aUnderLining);
Sets label underlining.
|
TBool IsStrikethrough() const;
Tests label strike-through.
|
void SetStrikethrough(TBool aStrikethrough);
Sets label strike-through.
|
TInt BufferReserveLength() const;
Gets the buffer reserve length.
|
void SetBufferReserveLengthL(TInt aLength);
Sets the buffer reserve length.
|
TSize MinimumSize();
Gets the minimum size required to draw the label.
|
TSize CalcMinimumSize(TPtrC& aText) const;
Gets the minimum size required to draw the specified text.
|
|
void GetColorUseListL(CArrayFix<TCoeColorUse>& aColorUseList) const;
Gets the list of logical colours used to draw the control. The list is appended to aColorUseList and paired with an explanation of how the colours are used.
|
void HandleResourceChange(TInt aType);
Handles a change in the control's resources which are shared across the environment. Colours or fonts for example.
|
void Draw(const TRect& aRect) const;
Draws the control.
|
TTextEmphasis
Determines text emphasis.
|
TLabelFlags
Determines whether text is drawn with underlining and strike-through.
|
protected: TUint8 iLabFlags
The label’s flags. These are used to set text emphasis and characteristics, such as underlining, and strikethrough.
protected: TInt iGapBetweenLines
The number of pixels between lines of text.