#include <CEGUIInterfaces.h>
Inherits DigitalSpaces::DIObjectBase.
Public Member Functions | |
| bool | hasInputFocus () |
| return true if the edit box has input focus. | |
| bool | isReadOnly () |
| return true if the edit box is read-only. | |
| unsigned long | getCaratIndex () |
| return the current position of the carat. | |
| unsigned long | getSelectionStartIndex () |
| return the current selection start point. | |
| unsigned long | getSelectionEndIndex () |
| return the current selection end point. | |
| unsigned long | getSelectionLength () |
| return the length of the current selection (in code points / characters). | |
| unsigned long | getMaxTextLength () |
| return the maximum text length set for this edit box. | |
| bool | isWordWrapped () |
| Return whether the text in the edit box will be word-wrapped. | |
| DICEGUIScrollbar * | getVertScrollbar () |
| Return a pointer to the vertical scrollbar component widget for this MultiLineEditbox. | |
| DICEGUIScrollbar * | getHorzScrollbar () |
| Return a pointer to the horizontal scrollbar component widget for this MultiLineEditbox. | |
| void | getTextRenderArea (out_Vector4f *area) |
| Return a Rect object describing, in un-clipped pixels, the window relative area that the text should be rendered in to. | |
| unsigned long | getLineNumberFromIndex (unsigned long index) |
| Return the line number a given index falls on with the current formatting. Will return last line if index is out of range. | |
| void | setReadOnly (bool setting) |
| Specify whether the edit box is read-only. | |
| void | setCaratIndex (unsigned long carat_pos) |
| Set the current position of the carat. | |
| void | setSelection (unsigned long start_pos, unsigned long end_pos) |
| Define the current selection for the edit box. | |
| void | setMaxTextLength (unsigned long max_len) |
| set the maximum text length for this edit box. | |
| void | ensureCaratIsVisible () |
| Scroll the view so that the current carat position is visible. | |
| void | setWordWrapping (bool setting) |
| Set whether the text will be word wrapped or not. | |
| void | setSelectionBrushImage (DICEGUIImage *image) |
| DICEGUIImage * | getSelectionBrushImage () |
| bool DigitalSpaces::DICEGUIMultiLineEditbox::hasInputFocus | ( | ) |
return true if the edit box has input focus.
| bool DigitalSpaces::DICEGUIMultiLineEditbox::isReadOnly | ( | ) |
return true if the edit box is read-only.
| unsigned long DigitalSpaces::DICEGUIMultiLineEditbox::getCaratIndex | ( | ) |
return the current position of the carat.
| unsigned long DigitalSpaces::DICEGUIMultiLineEditbox::getSelectionStartIndex | ( | ) |
return the current selection start point.
| unsigned long DigitalSpaces::DICEGUIMultiLineEditbox::getSelectionEndIndex | ( | ) |
return the current selection end point.
| unsigned long DigitalSpaces::DICEGUIMultiLineEditbox::getSelectionLength | ( | ) |
return the length of the current selection (in code points / characters).
| unsigned long DigitalSpaces::DICEGUIMultiLineEditbox::getMaxTextLength | ( | ) |
return the maximum text length set for this edit box.
| bool DigitalSpaces::DICEGUIMultiLineEditbox::isWordWrapped | ( | ) |
Return whether the text in the edit box will be word-wrapped.
| DICEGUIScrollbar* DigitalSpaces::DICEGUIMultiLineEditbox::getVertScrollbar | ( | ) |
Return a pointer to the vertical scrollbar component widget for this MultiLineEditbox.
| UnknownObjectException | Thrown if the vertical Scrollbar component does not exist. |
| DICEGUIScrollbar* DigitalSpaces::DICEGUIMultiLineEditbox::getHorzScrollbar | ( | ) |
Return a pointer to the horizontal scrollbar component widget for this MultiLineEditbox.
| UnknownObjectException | Thrown if the horizontal Scrollbar component does not exist. |
| void DigitalSpaces::DICEGUIMultiLineEditbox::getTextRenderArea | ( | out_Vector4f * | area | ) |
Return a Rect object describing, in un-clipped pixels, the window relative area that the text should be rendered in to.
| unsigned long DigitalSpaces::DICEGUIMultiLineEditbox::getLineNumberFromIndex | ( | unsigned long | index | ) |
Return the line number a given index falls on with the current formatting. Will return last line if index is out of range.
| void DigitalSpaces::DICEGUIMultiLineEditbox::setReadOnly | ( | bool | setting | ) |
Specify whether the edit box is read-only.
| setting |
|
| void DigitalSpaces::DICEGUIMultiLineEditbox::setCaratIndex | ( | unsigned long | carat_pos | ) |
Set the current position of the carat.
| carat_pos | New index for the insert carat relative to the start of the text. If the value specified is greater than the number of characters in the edit box, the carat is positioned at the end of the text. |
| void DigitalSpaces::DICEGUIMultiLineEditbox::setSelection | ( | unsigned long | start_pos, | |
| unsigned long | end_pos | |||
| ) |
Define the current selection for the edit box.
| start_pos | Index of the starting point for the selection. If this value is greater than the number of characters in the edit box, the selection start will be set to the end of the text. | |
| end_pos | Index of the ending point for the selection. If this value is greater than the number of characters in the edit box, the selection start will be set to the end of the text. |
| void DigitalSpaces::DICEGUIMultiLineEditbox::setMaxTextLength | ( | unsigned long | max_len | ) |
set the maximum text length for this edit box.
| max_len | The maximum number of code points (characters) that can be entered into this Editbox. |
| void DigitalSpaces::DICEGUIMultiLineEditbox::ensureCaratIsVisible | ( | ) |
Scroll the view so that the current carat position is visible.
| void DigitalSpaces::DICEGUIMultiLineEditbox::setWordWrapping | ( | bool | setting | ) |
Set whether the text will be word wrapped or not.
| setting |
|
| void DigitalSpaces::DICEGUIMultiLineEditbox::setSelectionBrushImage | ( | DICEGUIImage * | image | ) |
| DICEGUIImage* DigitalSpaces::DICEGUIMultiLineEditbox::getSelectionBrushImage | ( | ) |
1.5.6