|
NXWidgets
1.19
|
#include <cmultilinetextbox.hxx>

Public Types | |
| enum | TextAlignmentHoriz { TEXT_ALIGNMENT_HORIZ_CENTER = 0, TEXT_ALIGNMENT_HORIZ_LEFT = 1, TEXT_ALIGNMENT_HORIZ_RIGHT = 2 } |
| enum | TextAlignmentVert { TEXT_ALIGNMENT_VERT_CENTER = 0, TEXT_ALIGNMENT_VERT_TOP = 1, TEXT_ALIGNMENT_VERT_BOTTOM = 2 } |
Public Types inherited from NXWidgets::CNxWidget | |
| enum | WidgetFlagType { WIDGET_BORDERLESS = 0x0001, WIDGET_DRAGGABLE = 0x0002, WIDGET_PERMEABLE = 0x0004, WIDGET_DOUBLE_CLICKABLE = 0x0008, WIDGET_NO_RAISE_EVENTS = 0x0010 } |
Public Member Functions | |
| CMultiLineTextBox (CWidgetControl *pWidgetControl, nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t width, nxgl_coord_t height, const CNxString &text, uint32_t flags, nxgl_coord_t maxRows=0, CWidgetStyle *style=(CWidgetStyle *) NULL) | |
| virtual void | setTextAlignmentHoriz (TextAlignmentHoriz alignment) |
| virtual void | setTextAlignmentVert (TextAlignmentVert alignment) |
| virtual const int | getPageCount (void) const |
| virtual const int | getCurrentPage (void) const |
| virtual const CText * | getText (void) const |
| virtual void | setText (const CNxString &text) |
| virtual void | appendText (const CNxString &text) |
| virtual void | removeText (const unsigned int startIndex) |
| virtual void | removeText (const unsigned int startIndex, const unsigned int count) |
| virtual void | setFont (CNxFont *font) |
| virtual void | setLineSpacing (nxgl_coord_t lineSpacing) |
| virtual const int | getTextLength (void) const |
| virtual void | showCursor (EShowCursor cursorMode) |
| virtual void | showCursor (void) |
| virtual void | hideCursor (void) |
| virtual void | wrapCursor (bool wrap) |
| virtual void | moveCursorToPosition (const int position) |
| virtual const int | getCursorPosition (void) const |
| virtual void | insertText (const CNxString &text, const unsigned int index) |
| virtual void | insertTextAtCursor (const CNxString &ext) |
Public Member Functions inherited from NXWidgets::ITextBox | |
| virtual | ~ITextBox (void) |
Public Member Functions inherited from NXWidgets::CScrollingPanel | |
| CScrollingPanel (CWidgetControl *pWidgetControl, nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t width, nxgl_coord_t height, uint32_t flags, CWidgetStyle *style=(CWidgetStyle *) NULL) | |
| virtual void | scroll (int32_t dx, int32_t dy) |
| virtual void | jump (int32_t x, int32_t y) |
| bool | allowsVerticalScroll (void) const |
| bool | allowsHorizontalScroll (void) const |
| virtual const int32_t | getCanvasX (void) const |
| virtual const int32_t | getCanvasY (void) const |
| virtual const int32_t | getCanvasWidth (void) const |
| virtual const int32_t | getCanvasHeight (void) const |
| void | setAllowsVerticalScroll (bool allow) |
| void | setAllowsHorizontalScroll (bool allow) |
| void | setContentScrolled (bool scrolled) |
| bool | IsContentScrolled (void) |
| virtual void | setCanvasWidth (const int32_t width) |
| virtual void | setCanvasHeight (const int32_t height) |
Public Member Functions inherited from NXWidgets::CNxWidget | |
| CNxWidget (CWidgetControl *pWidgetControl, nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t width, nxgl_coord_t height, uint32_t flags, FAR const CWidgetStyle *style=(FAR const CWidgetStyle *) NULL) | |
| virtual | ~CNxWidget (void) |
| nxgl_coord_t | getX (void) const |
| nxgl_coord_t | getY (void) const |
| nxgl_coord_t | getRelativeX (void) const |
| nxgl_coord_t | getRelativeY (void) const |
| bool | hasFocus (void) const |
| bool | isDeleted (void) const |
| bool | isDrawingEnabled (void) const |
| bool | isHidden (void) const |
| bool | isEnabled (void) const |
| bool | isPermeable (void) const |
| bool | isDoubleClickable (void) const |
| bool | isBorderless (void) const |
| bool | isClicked (void) const |
| bool | isBeingDragged (void) const |
| nxgl_coord_t | getWidth (void) const |
| nxgl_coord_t | getHeight (void) const |
| void | getSize (struct nxgl_size_s &size) const |
| void | getPos (struct nxgl_point_s &pos) const |
| CRect | getBoundingBox (void) |
| void | getBorderSize (WidgetBorderSize &borderSize) |
| CNxWidget * | getParent (void) const |
| CNxWidget * | getFocusedWidget (void) |
| virtual void | getPreferredDimensions (CRect &rect) const |
| void | getClientRect (CRect &rect) const |
| void | getRect (CRect &rect) const |
| CNxFont * | getFont (void) const |
| nxgl_mxpixel_t | getBackgroundColor (void) const |
| nxgl_mxpixel_t | getSelectedBackgroundColor (void) const |
| nxgl_mxpixel_t | getShineEdgeColor (void) const |
| nxgl_mxpixel_t | getShadowEdgeColor (void) const |
| nxgl_mxpixel_t | getHighlightColor (void) const |
| nxgl_mxpixel_t | getDisabledTextColor (void) const |
| nxgl_mxpixel_t | getEnabledTextColor (void) const |
| nxgl_mxpixel_t | getSelectedTextColor (void) const |
| const CWidgetStyle * | getWidgetStyle () const |
| void | setBorderless (bool isBorderless) |
| void | setDraggable (bool isDraggable) |
| void | setPermeable (bool permeable) |
| void | setDoubleClickable (bool doubleClickable) |
| void | addWidgetEventHandler (CWidgetEventHandler *eventHandler) |
| void | removeWidgetEventHandler (CWidgetEventHandler *eventHandler) |
| int | nWidgetEventHandlers (void) const |
| void | setRaisesEvents (bool raises) |
| bool | raisesEvents (void) const |
| void | disableDrawing (void) |
| void | enableDrawing (void) |
| void | setBackgroundColor (nxgl_mxpixel_t color) |
| void | setSelectedBackgroundColor (nxgl_mxpixel_t color) |
| void | setShineEdgeColor (nxgl_mxpixel_t color) |
| void | setShadowEdgeColor (nxgl_mxpixel_t color) |
| void | setHighlightColor (nxgl_mxpixel_t color) |
| void | setDisabledTextColor (nxgl_mxpixel_t color) |
| void | setEnabledTextColor (nxgl_mxpixel_t color) |
| void | setSelectedTextColor (nxgl_mxpixel_t color) |
| void | redraw (void) |
| bool | enable (void) |
| bool | disable (void) |
| void | close (void) |
| bool | show (void) |
| bool | hide (void) |
| virtual bool | click (nxgl_coord_t x, nxgl_coord_t y) |
| virtual bool | isDoubleClick (nxgl_coord_t x, nxgl_coord_t y) |
| bool | doubleClick (nxgl_coord_t x, nxgl_coord_t y) |
| bool | release (nxgl_coord_t x, nxgl_coord_t y) |
| bool | drag (nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t vX, nxgl_coord_t vY) |
| bool | keyPress (nxwidget_char_t key) |
| bool | cursorControl (ECursorControl control) |
| bool | focus (void) |
| bool | blur (void) |
| bool | moveTo (nxgl_coord_t x, nxgl_coord_t y) |
| bool | resize (nxgl_coord_t width, nxgl_coord_t height) |
| bool | changeDimensions (nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t width, nxgl_coord_t height) |
| void | moveChildToDeleteQueue (CNxWidget *widget) |
| void | setFocusedWidget (CNxWidget *widget) |
| virtual bool | checkCollision (nxgl_coord_t x, nxgl_coord_t y) const |
| virtual bool | checkCollision (nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t width, nxgl_coord_t height) const |
| bool | checkCollision (CNxWidget *widget) const |
| void | addWidget (CNxWidget *widget) |
| void | insertWidget (CNxWidget *widget) |
| void | setParent (CNxWidget *parent) |
| void | destroy (void) |
| bool | remove (void) |
| bool | removeChild (CNxWidget *widget) |
| const CNxWidget * | getChild (int index) const |
| int | getChildCount (void) const |
| void | setBorderSize (const WidgetBorderSize &borderSize) |
Public Member Functions inherited from NXWidgets::IScrollable | |
| virtual | ~IScrollable (void) |
Public Member Functions inherited from NXWidgets::CWidgetEventHandler | |
| CWidgetEventHandler () | |
| virtual | ~CWidgetEventHandler () |
| virtual void | handleClickEvent (const CWidgetEventArgs &e) |
| virtual void | handleDragEvent (const CWidgetEventArgs &e) |
| virtual void | handleDropEvent (const CWidgetEventArgs &e) |
| virtual void | handleReleaseEvent (const CWidgetEventArgs &e) |
| virtual void | handleReleaseOutsideEvent (const CWidgetEventArgs &e) |
| virtual void | handleFocusEvent (const CWidgetEventArgs &e) |
| virtual void | handleBlurEvent (const CWidgetEventArgs &e) |
| virtual void | handleCloseEvent (const CWidgetEventArgs &e) |
| virtual void | handleHideEvent (const CWidgetEventArgs &e) |
| virtual void | handleShowEvent (const CWidgetEventArgs &e) |
| virtual void | handleEnableEvent (const CWidgetEventArgs &e) |
| virtual void | handleDisableEvent (const CWidgetEventArgs &e) |
| virtual void | handleValueChangeEvent (const CWidgetEventArgs &e) |
| virtual void | handleResizeEvent (const CWidgetEventArgs &e) |
| virtual void | handleMoveEvent (const CWidgetEventArgs &e) |
| virtual void | handleScrollEvent (const CWidgetEventArgs &e) |
| virtual void | handleDoubleClickEvent (const CWidgetEventArgs &e) |
| virtual void | handleActionEvent (const CWidgetEventArgs &e) |
Protected Member Functions | |
| virtual void | getCursorCoordinates (nxgl_coord_t &x, nxgl_coord_t &y) const |
| virtual int | getCharIndexAtCoordinate (nxgl_coord_t x, int rowIndex) const |
| virtual unsigned int | getCharIndexAtCoordinates (nxgl_coord_t x, nxgl_coord_t y) const |
| int | getRowContainingCoordinate (nxgl_coord_t y) const |
| virtual void | drawContents (CGraphicsPort *port) |
| virtual void | drawBorder (CGraphicsPort *port) |
| virtual void | moveCursorLeft (void) |
| virtual void | moveCursorRight (void) |
| virtual void | moveCursorUp (void) |
| virtual void | moveCursorDown (void) |
| virtual bool | cullTopLines (void) |
| virtual void | limitCanvasHeight (void) |
| virtual void | limitCanvasY (void) |
| void | jumpToCursor (void) |
| void | jumpToTextBottom (void) |
| virtual void | onResize (nxgl_coord_t width, nxgl_coord_t height) |
| virtual void | onClick (nxgl_coord_t x, nxgl_coord_t y) |
| virtual void | onDoubleClick (nxgl_coord_t x, nxgl_coord_t y) |
| void | processPhysicalKey (nxwidget_char_t key) |
| void | handleKeyPressEvent (const CWidgetEventArgs &e) |
| void | handleCursorControlEvent (const CWidgetEventArgs &e) |
| nxgl_coord_t | getRowX (int row) const |
| nxgl_coord_t | getRowY (int row) const |
| virtual bool | isCursorVisible (void) const |
| nxwidget_char_t | getCursorChar (void) const |
| void | calculateVisibleRows (void) |
| void | drawText (CGraphicsPort *port) |
| void | drawCursor (CGraphicsPort *port) |
| void | drawRow (CGraphicsPort *port, int row) |
| virtual | ~CMultiLineTextBox (void) |
| CMultiLineTextBox (const CMultiLineTextBox &multiLineTextBox) | |
Protected Member Functions inherited from NXWidgets::CScrollingPanel | |
| virtual void | onDrag (nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t vX, nxgl_coord_t vY) |
| void | scrollChildren (int32_t dx, int32_t dy, bool do_redraw) |
| virtual | ~CScrollingPanel (void) |
| CScrollingPanel (const CScrollingPanel &scrollingPanel) | |
Protected Member Functions inherited from NXWidgets::CNxWidget | |
| void | useWidgetStyle (const CWidgetStyle *style) |
| void | drawChildren (void) |
| void | closeChild (CNxWidget *widget) |
| void | startDragging (nxgl_coord_t x, nxgl_coord_t y) |
| void | stopDragging (nxgl_coord_t x, nxgl_coord_t y) |
| CNxWidget (const CNxWidget &widget) | |
| virtual void | onPreRelease (nxgl_coord_t x, nxgl_coord_t y) |
| virtual void | onRelease (nxgl_coord_t x, nxgl_coord_t y) |
| virtual void | onReleaseOutside (nxgl_coord_t x, nxgl_coord_t y) |
| virtual void | onDragStart (void) |
| virtual void | onDragStop (void) |
| virtual void | onFocus (void) |
| virtual void | onBlur (void) |
| virtual void | onEnable (void) |
| virtual void | onDisable (void) |
Protected Attributes | |
| CText * | m_text |
| uint8_t | m_visibleRows |
| nxgl_coord_t | m_maxRows |
| int32_t | m_topRow |
| TextAlignmentHoriz | m_hAlignment |
| TextAlignmentVert | m_vAlignment |
| int | m_cursorPos |
| uint8_t | m_showCursor |
| bool | m_wrapCursor |
Protected Attributes inherited from NXWidgets::CScrollingPanel | |
| CWidgetControl * | m_widgetControl |
| int32_t | m_canvasX |
| int32_t | m_canvasY |
| int32_t | m_canvasWidth |
| int32_t | m_canvasHeight |
| bool | m_allowVerticalScroll |
| bool | m_allowHorizontalScroll |
| bool | m_isContentScrolled |
Protected Attributes inherited from NXWidgets::CNxWidget | |
| CWidgetControl * | m_widgetControl |
| CRect | m_rect |
| nxgl_coord_t | m_grabPointX |
| nxgl_coord_t | m_grabPointY |
| nxgl_coord_t | m_newX |
| nxgl_coord_t | m_newY |
| CWidgetStyle | m_style |
| Flags | m_flags |
| CWidgetEventHandlerList * | m_widgetEventHandlers |
| struct timespec | m_lastClickTime |
| nxgl_coord_t | m_lastClickX |
| nxgl_coord_t | m_lastClickY |
| int | m_doubleClickBounds |
| CNxWidget * | m_parent |
| CNxWidget * | m_focusedChild |
| TNxArray< CNxWidget * > | m_children |
| WidgetBorderSize | m_borderSize |
Textbox that offers multiple lines of text. Has scrolling capability and can be dragged using the mouse. The text it contains can be changed or added to. It can remember more rows of text than it can display, and these additional rows can be scrolled through.
Definition at line 114 of file cmultilinetextbox.hxx.
| enum NXWidgets::CMultiLineTextBox::TextAlignmentHoriz |
Enum of horizontal alignment options.
| Enumerator | |
|---|---|
| TEXT_ALIGNMENT_HORIZ_CENTER | Centre the text |
| TEXT_ALIGNMENT_HORIZ_LEFT | Align left |
| TEXT_ALIGNMENT_HORIZ_RIGHT | Align right |
Definition at line 123 of file cmultilinetextbox.hxx.
| enum NXWidgets::CMultiLineTextBox::TextAlignmentVert |
Enum of vertical alignment options.
| Enumerator | |
|---|---|
| TEXT_ALIGNMENT_VERT_CENTER | Align to centre of textbox |
| TEXT_ALIGNMENT_VERT_TOP | Align to top of textbox |
| TEXT_ALIGNMENT_VERT_BOTTOM | Align to bottom of textbox |
Definition at line 134 of file cmultilinetextbox.hxx.
|
inlineprotectedvirtual |
Destructor.
Definition at line 397 of file cmultilinetextbox.hxx.
|
inlineprotected |
Copy constructor is protected to prevent usage.
Definition at line 407 of file cmultilinetextbox.hxx.
| CMultiLineTextBox::CMultiLineTextBox | ( | CWidgetControl * | pWidgetControl, |
| nxgl_coord_t | x, | ||
| nxgl_coord_t | y, | ||
| nxgl_coord_t | width, | ||
| nxgl_coord_t | height, | ||
| const CNxString & | text, | ||
| uint32_t | flags, | ||
| nxgl_coord_t | maxRows = 0, |
||
| CWidgetStyle * | style = (CWidgetStyle *)NULL |
||
| ) |
Constructor.
| pWidgetControl | The widget control for the display. |
| x | The x coordinate of the text box, relative to its parent. |
| y | The y coordinate of the text box, relative to its parent. |
| width | The width of the textbox. |
| height | The height of the textbox. |
| text | Pointer to a string to display in the textbox. |
| flags | Standard widget flag options. |
| maxRows | The maximum number of rows the textbox can track. Adding text beyond this number will cause rows at the start of the text to be forgotten; text is essentially stored as a queue, and adding to the back of a full queue causes the front items to be popped off. Setting this to 0 will make the textbox track only the visible rows. |
| style | The style that the widget should use. If this is not specified, the widget will use the values stored in the global g_defaultWidgetStyle object. The widget will copy the properties of the style into its own internal style object. |
Definition at line 119 of file cmultilinetextbox.cxx.
|
virtual |
Append new text to the end of the current text displayed in the textbox.
| text | String to append. |
Implements NXWidgets::ITextBox.
Definition at line 264 of file cmultilinetextbox.cxx.
|
protected |
Works out the number of visible rows within the textbox.
Definition at line 1151 of file cmultilinetextbox.cxx.
|
protectedvirtual |
Ensures that the textbox only contains the maximum allowed number of rows by culling any excess rows from the top of the text.
Definition at line 792 of file cmultilinetextbox.cxx.
|
protectedvirtual |
Draw the area of this widget that falls within the clipping region. Called by the redraw() function to draw all visible regions.
| port | The CGraphicsPort to draw to. |
Reimplemented from NXWidgets::CScrollingPanel.
Definition at line 692 of file cmultilinetextbox.cxx.
|
protectedvirtual |
Draw the area of this widget that falls within the clipping region. Called by the redraw() function to draw all visible regions.
| port | The CGraphicsPort to draw to. |
Reimplemented from NXWidgets::CScrollingPanel.
Definition at line 675 of file cmultilinetextbox.cxx.
|
protected |
Draws the cursor.
| port | The CGraphicsPort to draw to. |
Definition at line 1224 of file cmultilinetextbox.cxx.
|
protected |
Draws a single line of text.
| port | The CGraphicsPort to draw to. |
| row | The index of the row to draw. |
Definition at line 1255 of file cmultilinetextbox.cxx.
|
protected |
Draws text.
| port | The CGraphicsPort to draw to. |
Definition at line 1165 of file cmultilinetextbox.cxx.
|
protectedvirtual |
Gets the index of the character at the specified x coordinate in the specified row.
| x | X coordinate of the character. |
| rowIndex | Index of the row containing the character. |
Definition at line 538 of file cmultilinetextbox.cxx.
|
protectedvirtual |
Get the index of the character at the specified coordinates.
| x | X coordinate of the character. |
| y | Y coordinate of the character. |
Definition at line 612 of file cmultilinetextbox.cxx.
|
virtual |
Returns the current page.
Definition at line 213 of file cmultilinetextbox.cxx.
|
protected |
Gets the character under the cursor.
Definition at line 1135 of file cmultilinetextbox.cxx.
|
protectedvirtual |
Get the coordinates of the cursor relative to the text.
| x | Will be populated with the x coordinate of the cursor. |
| y | Will be populated with the y coordinate of the cursor. |
Definition at line 485 of file cmultilinetextbox.cxx.
|
inlinevirtual |
Get the cursor position. This is the index within the string that the cursor is currently positioned over.
Implements NXWidgets::ITextBox.
Definition at line 605 of file cmultilinetextbox.hxx.
|
virtual |
Returns the number of "pages" that the text spans. A page is defined as the amount of text that can be displayed within the textbox at one time.
Definition at line 194 of file cmultilinetextbox.cxx.
|
protected |
Get the row containing the specified Y coordinate.
| y | Y coordinate to locate. |
Definition at line 625 of file cmultilinetextbox.cxx.
|
protected |
Gets the x position of a row of text based on the width of the row and the type of horizontal alignment currently set.
| row | The index of the row. |
Definition at line 1019 of file cmultilinetextbox.cxx.
|
protected |
Gets the y position of the specified row of text based on the type of vertical alignment currently set.
| row | The row number to find the y coordinate of. |
Definition at line 1054 of file cmultilinetextbox.cxx.
|
inlinevirtual |
Returns a pointer to the CText object that contains the wrapped text used in the textbox. It is used as the pre-processed data source for the textbox, and should not be altered.
Definition at line 484 of file cmultilinetextbox.hxx.
|
virtual |
Get the length of the text string.
Definition at line 358 of file cmultilinetextbox.cxx.
|
protectedvirtual |
Handle a cursor control event. Replaces CWidgetEventHandler method.
| e | The event data. |
Handles cursor control events. Moves the cursor in the direction selected.
| key | The key that was pressed. |
Reimplemented from NXWidgets::CWidgetEventHandler.
Definition at line 974 of file cmultilinetextbox.cxx.
|
protectedvirtual |
Handle a keyboard press event.
| e | The event data. |
Reimplemented from NXWidgets::CWidgetEventHandler.
Definition at line 457 of file cmultilinetextbox.cxx.
|
inlinevirtual |
Hides the cursor.
Definition at line 572 of file cmultilinetextbox.hxx.
|
virtual |
Insert text at the specified index.
| text | The text to insert. |
| index | Index at which to insert the text. |
Implements NXWidgets::ITextBox.
Definition at line 418 of file cmultilinetextbox.cxx.
|
virtual |
Insert text at the current cursor position.
| text | The text to insert. |
Implements NXWidgets::ITextBox.
Definition at line 446 of file cmultilinetextbox.cxx.
|
protectedvirtual |
Return true if the cursor is visible
Definition at line 1123 of file cmultilinetextbox.cxx.
|
protected |
Jumps to the cursor coordinates of the text.
Definition at line 845 of file cmultilinetextbox.cxx.
|
protected |
Jumps to the bottom of the text.
Definition at line 885 of file cmultilinetextbox.cxx.
|
protectedvirtual |
Ensures that the canvas height is the height of the widget, if the widget exceeds the size of the text, or the height of the text if the text exceeds the size of the widget.
Definition at line 811 of file cmultilinetextbox.cxx.
|
protectedvirtual |
Ensures that the canvas cannot scroll beyond its height.
Definition at line 827 of file cmultilinetextbox.cxx.
|
protectedvirtual |
Move cursor one row downwards.
Definition at line 763 of file cmultilinetextbox.cxx.
|
protectedvirtual |
Move cursor one character to the left.
Definition at line 710 of file cmultilinetextbox.cxx.
|
protectedvirtual |
Move cursor one character to the right.
Definition at line 724 of file cmultilinetextbox.cxx.
|
virtual |
Move the cursor to the text position specified. 0 indicates the start of the string. If position is greater than the length of the string, the cursor is moved to the end of the string.
| position | The new cursor position. |
Implements NXWidgets::ITextBox.
Definition at line 386 of file cmultilinetextbox.cxx.
|
protectedvirtual |
Move cursor one row upwards.
Definition at line 738 of file cmultilinetextbox.cxx.
|
protectedvirtual |
Starts the dragging system.
| x | The x coordinate of the click. |
| y | The y coordinate of the click. |
Reimplemented from NXWidgets::CScrollingPanel.
Definition at line 939 of file cmultilinetextbox.cxx.
|
protectedvirtual |
Opens the keyboard on the bottom display.
| x | The x coordinates of the click. |
| y | The y coordinates of the click. |
Reimplemented from NXWidgets::CNxWidget.
Definition at line 963 of file cmultilinetextbox.cxx.
|
protectedvirtual |
Resize the textbox to the new dimensions.
| width | The new width. |
| height | The new height. |
Reimplemented from NXWidgets::CNxWidget.
Definition at line 899 of file cmultilinetextbox.cxx.
|
protected |
Handles physical button presses. Moves the cursor in the direction pressed.
| key | The key that was pressed. |
|
virtual |
Remove all characters from the string from the start index onwards.
| startIndex | Index to remove from. |
Implements NXWidgets::ITextBox.
Definition at line 290 of file cmultilinetextbox.cxx.
|
virtual |
Remove specified number of characters from the string from the start index onwards.
| startIndex | Index to remove from. |
| count | Number of characters to remove. |
Implements NXWidgets::ITextBox.
Definition at line 303 of file cmultilinetextbox.cxx.
|
virtual |
Set the font used in the textbox.
| font | Pointer to the new font. |
Reimplemented from NXWidgets::CNxWidget.
Definition at line 331 of file cmultilinetextbox.cxx.
|
inlinevirtual |
Set the line spacing of the text.
| spacing | Extra space (in pixels) to add between lines. |
Definition at line 538 of file cmultilinetextbox.hxx.
|
virtual |
Set the text displayed in the textbox.
| text | String to display. |
Implements NXWidgets::ITextBox.
Definition at line 237 of file cmultilinetextbox.cxx.
|
virtual |
Set the horizontal alignment of text within the textbox.
| alignment | The horizontal position of the text. |
Definition at line 168 of file cmultilinetextbox.cxx.
|
virtual |
Set the vertical alignment of text within the textbox.
| alignment | The vertical position of the text. |
Definition at line 180 of file cmultilinetextbox.cxx.
|
virtual |
Sets the cursor display mode.
| cursorMode | Determines cursor display mode |
Implements NXWidgets::ITextBox.
Definition at line 369 of file cmultilinetextbox.cxx.
|
inlinevirtual |
Shows the cursor in default mode (only when the TextBox has focus).
Definition at line 563 of file cmultilinetextbox.hxx.
|
inlinevirtual |
Enables/disables cursor wrapping
| wrap | True enables cursor wrapping |
Implements NXWidgets::ITextBox.
Definition at line 583 of file cmultilinetextbox.hxx.
|
protected |
Position of the cursor within the string.
Definition at line 152 of file cmultilinetextbox.hxx.
|
protected |
Horizontal alignment of the text.
Definition at line 150 of file cmultilinetextbox.hxx.
|
protected |
Maximum number of rows that the textbox should buffer.
Definition at line 146 of file cmultilinetextbox.hxx.
|
protected |
Cursor visibility.
Definition at line 154 of file cmultilinetextbox.hxx.
|
protected |
CText object that manipulates and wraps the raw text string.
Definition at line 142 of file cmultilinetextbox.hxx.
|
protected |
Index of the top row of text currently displayed.
Definition at line 148 of file cmultilinetextbox.hxx.
|
protected |
Vertical alignment of the text.
Definition at line 151 of file cmultilinetextbox.hxx.
|
protected |
Total number of rows that the textbox can display at once.
Definition at line 144 of file cmultilinetextbox.hxx.
|
protected |
True wrap cursor at the ends of the text
Definition at line 155 of file cmultilinetextbox.hxx.
1.8.13