| public |
Inheritance Graph
graph BT
Textarea
Textarea --> Container
click Textarea "classGUI_1_1Textarea"
click Container "classGUI_1_1Container"
Description
Classes
| class | GUI::Textarea::TextUpdate TextUpdate. |
Scrolling
| const Geometry::Vec2 & | getScrollPos() const |
| void | scrollTo(const Geometry::Vec2 & void) |
TextUpdates
| void | executeTextUpdate( Textarea::range_t _r1, const std::string & text) |
| void | redoTextUpdate() |
| void | undoTextUpdate() |
Public Types
| typedef std::pair< uint32_t, size_t > | cursor_t |
| typedef std::pair< cursor_t , cursor_t > | range_t |
Public Functions
| Textarea( GUI_Manager & gui, flag_t flags) | |
| ~Textarea() | |
| void | setText(const std::string & newText) |
| std::string | getText() const |
| bool | onSelect() |
| bool | onUnselect() |
| void | doLayout() |
| const std::string & | getLine(uint32_t void) const |
| std::string | getText(const range_t & void) const |
| float | getTextHeight() const |
| void | moveCursor(const cursor_t & _cursorPos, bool updateSelection) |
| bool | isTextSelected() const |
| AbstractFont * | _getActiveFont() const |
| uint32_t | _getLineHeight() const |
| cursor_t | getCursor() const |
| cursor_t | getSelectionStart() const |
| size_t | getNumberOfLines() const |
Documentation
function
GUI::Textarea::getScrollPos
| public | const | inline |
| const Geometry::Vec2 & getScrollPos( | ) const |
Defined in GUI/Components/Textarea.h:99
function
GUI::Textarea::scrollTo
| public |
| void scrollTo( | const Geometry::Vec2 & | void ) |
Defined in GUI/Components/Textarea.h:100
function
GUI::Textarea::executeTextUpdate
| public |
| void executeTextUpdate( | Textarea::range_t | _r1, |
| const std::string & | text | |
| ) |
Defined in GUI/Components/Textarea.h:109
function
GUI::Textarea::redoTextUpdate
| public |
| void redoTextUpdate( | ) |
Defined in GUI/Components/Textarea.h:110
function
GUI::Textarea::undoTextUpdate
| public |
| void undoTextUpdate( | ) |
Defined in GUI/Components/Textarea.h:111
typedef
GUI::Textarea::cursor_t
| public |
| typedef std::pair< uint32_t, size_t > cursor_t |
Defined in GUI/Components/Textarea.h:42
typedef
GUI::Textarea::range_t
| public |
| typedef std::pair< cursor_t , cursor_t > range_t |
Defined in GUI/Components/Textarea.h:43
function
GUI::Textarea::Textarea
| public |
| Textarea( | GUI_Manager & | gui, |
| flag_t | flags | |
| ) |
Defined in GUI/Components/Textarea.h:31
function
GUI::Textarea::~Textarea
| public | virtual |
| ~Textarea( | ) |
Defined in GUI/Components/Textarea.h:32
function
GUI::Textarea::setText
| public |
| void setText( | const std::string & | newText ) |
Defined in GUI/Components/Textarea.h:34
function
GUI::Textarea::getText
| public | const |
| std::string getText( | ) const |
Defined in GUI/Components/Textarea.h:35
function
GUI::Textarea::onSelect
| public | virtual |
| bool onSelect( | ) |
Defined in GUI/Components/Textarea.h:38
function
GUI::Textarea::onUnselect
| public | virtual |
| bool onUnselect( | ) |
Defined in GUI/Components/Textarea.h:39
function
GUI::Textarea::doLayout
| public | inline | virtual |
| void doLayout( | ) |
Defined in GUI/Components/Textarea.h:40
function
GUI::Textarea::getLine
| public | const |
| const std::string & getLine( | uint32_t | void ) const |
Defined in GUI/Components/Textarea.h:45
function
GUI::Textarea::getText
| public | const |
| std::string getText( | const range_t & | void ) const |
Defined in GUI/Components/Textarea.h:46
function
GUI::Textarea::getTextHeight
| public | const |
| float getTextHeight( | ) const |
Defined in GUI/Components/Textarea.h:48
function
GUI::Textarea::moveCursor
| public |
| void moveCursor( | const cursor_t & | _cursorPos, |
| bool | updateSelection | |
| ) |
Defined in GUI/Components/Textarea.h:49
function
GUI::Textarea::isTextSelected
| public | const | inline |
| bool isTextSelected( | ) const |
Defined in GUI/Components/Textarea.h:50
function
GUI::Textarea::_getActiveFont
| public | const | inline |
| AbstractFont * _getActiveFont( | ) const |
Defined in GUI/Components/Textarea.h:52
function
GUI::Textarea::_getLineHeight
| public | const | inline |
| uint32_t _getLineHeight( | ) const |
Defined in GUI/Components/Textarea.h:53
function
GUI::Textarea::getCursor
| public | const | inline |
| cursor_t getCursor( | ) const |
Defined in GUI/Components/Textarea.h:54
function
GUI::Textarea::getSelectionStart
| public | const | inline |
| cursor_t getSelectionStart( | ) const |
Defined in GUI/Components/Textarea.h:55
function
GUI::Textarea::getNumberOfLines
| public | const | inline |
| size_t getNumberOfLines( | ) const |
Defined in GUI/Components/Textarea.h:56