CFx SDK Documentation 2024 SP0
|
#include <FxUILabel.h>
Additional Inherited Members | |
Public Types inherited from CFxUIBaseView | |
enum | TextAlignment { AlignLeft = 0x0001 , AlignRight = 0x0002 , AlignHCenter = 0x0004 , AlignJustify = 0x0008 , AlignTop = 0x0020 , AlignBottom = 0x0040 , AlignVCenter = 0x0080 , AlignBaseline = 0x0100 , AlignCenter = AlignVCenter | AlignHCenter } |
enum | FocusPolicyType { eNoFocus = 0 , eTabFocus = 0x1 , eClickFocus = 0x2 , eStrongFocus = eTabFocus | eClickFocus | 0x8 , eWheelFocus = eStrongFocus | 0x4 , eKeyboardOnSetfocus = 0x10 } |
enum | UIWidthSizePolicy { eExpanding = -1 , eXS = 0 , eS , eM , eL , eXL } |
Static Public Member Functions inherited from CFxUIBaseView | |
static void | setTabOrder (CFxUIObject *first, CFxUIObject *second) |
Protected Member Functions inherited from CFxUIObject | |
CFxUIObject * | sender () |
Protected Attributes inherited from CFxUIObject | |
CFxUIObjectImpl * | m_pImpl |
CFxUIObjectData * | m_pData |
Class CFxUILabel provides a text or image display.
Definition at line 27 of file FxUILabel.h.
|
explicit |
Constructor
CFxUILabel::~CFxUILabel | ( | ) |
Destructor
void CFxUILabel::clear | ( | ) |
Clears the content of label.
bool CFxUILabel::isTextSelectable | ( | ) | const |
Returns the bool for selectable property.
void CFxUILabel::setBoldText | ( | bool | bBold | ) |
Sets font of text in push button as bold.
bBold | If parameter is true font is set to bold, otherwise not. |
void CFxUILabel::setBuddy | ( | CFxUIBaseView * | widget | ) |
void CFxUILabel::setElideTextEnabled | ( | const bool & | bElided | ) |
void CFxUILabel::setFontSize | ( | int | px | ) |
Sets font size of text on label.
px | Input. |
Sets the size of icon.
size | The icon is resized to the value passed in parameter. |
void CFxUILabel::setItalic | ( | int | bItalic | ) |
Sets italic text on label.
bItalic | Input. |
void CFxUILabel::setPixmap | ( | const CFxUIPixmap & | pixmap | ) |
Sets the pixmap.
pixmap |
void CFxUILabel::setResourceImage | ( | const QString & | path | ) |
Sets the image.
Image | path |
void CFxUILabel::setText | ( | const CFxUIString & | str | ) |
Sets the text.
str | Input |
void CFxUILabel::setTextAlignment | ( | TextAlignment | iAlignment | ) |
Sets alignment of text on label.
iAlignment | The value is to be from enums defined in TextAlignment. |
void CFxUILabel::setTextSelectable | ( | bool | bSelectable | ) |
Sets the text interaction to selectable.
bSelectable | if true the text interaction is selectable else no interaction. |
void CFxUILabel::setWordWrap | ( | bool | bWordWrap | ) |
Sets label's word-wrapping policy.
bWordWrap | If the value passed is true then label text is wrapped where necessary at word-breaks otherwise it is not wrapped at all. |
CFxUIString CFxUILabel::text | ( | ) | const |
Returns the text.
bool CFxUILabel::wordWrap | ( | ) | const |
Returns if word-wrap mode is on for label.