CFx SDK Documentation 2024 SP0
|
#include <FxUITextView.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 CFxUITextView is a multi-line text editor.
Definition at line 25 of file FxUITextView.h.
|
explicit |
Constructor
CFxUITextView::~CFxUITextView | ( | ) |
Destructor
void CFxUITextView::addHtmlText | ( | const CFxUIString & | htmlText | ) |
Add the html text in text editor.
htmlText | Input |
void CFxUITextView::addText | ( | const CFxUIString & | text | ) |
Add the text in text editor.
text | Input |
void CFxUITextView::clear | ( | ) |
Clears the content of text editor.
CFxUISignal< void(void)> & CFxUITextView::focusInEventSignal | ( | ) |
Signal is emitted whenever text editor receives keyboard focus events (focus receive) for the view.
CFxUISignal< void(void)> & CFxUITextView::focusOutEventSignal | ( | ) |
Signal is emitted whenever text editor lose keyboard focus events (focus lose) for the view.
bool CFxUITextView::getAdjustHeightToContent | ( | ) | const |
Returns if the text editor height is set to content height.
CFxUIString CFxUITextView::getContent | ( | ) | const |
Returns the content i.e. text from editor.
CFxUISignal< void(int, int)> & CFxUITextView::keyPressed | ( | ) |
Signal is emitted whenever text editor gets any key event.
CFxUIString CFxUITextView::placeholderText | ( | ) | const |
Return the placeholder text.
void CFxUITextView::setAdjustHeightToContent | ( | const bool & | bValue | ) |
Sets the text editor height according to content height.
This property sets height of text editor automatically.
bValue | Sets the height of text editor to content height if parameter is true. |
void CFxUITextView::setHtmlText | ( | const CFxUIString & | htmlText | ) |
Sets the html text in text editor.
This provides HTML interface to the text of the text edit.
htmlText | Input |
void CFxUITextView::setMultiline | ( | const bool | multiLine | ) |
Sets the text editor to multiline.
multiLine | This property sets text editor to multiline if parameter is true. |
void CFxUITextView::setPlaceholderText | ( | const CFxUIString & | sText | ) |
Sets the placeholder text.
This setting display a grayed-out placeholder text as long as the text() is empty and the widget doesn't have focus.
sText | Input |
void CFxUITextView::setReadOnly | ( | const bool | readOnly | ) |
Sets the content of text edit to read-only mode.
In read-only mode, the user can still copy the text to the clipboard, or drag and drop the text (if echoMode() is Normal), but cannot edit it.
readOnly | The content is read only if parameter passed is true. |
void CFxUITextView::setText | ( | const CFxUIString & | text | ) |
Sets the text in text editor.
text | Input |
CFxUISignal< void(void)> & CFxUITextView::textChanged | ( | ) |
Signal is emitted whenever the content of text edit is changed.