Torque2D Reference
Loading...
Searching...
No Matches
GuiTextEditSelection Class Reference

#include <guiTextEditCtrl.h>

Public Member Functions

 GuiTextEditSelection ()
 GuiTextEditSelection (const GuiTextEditSelection &selector)
U32 getSelStart () const
U32 getSelEnd () const
U32 getCursorPos () const
void setCursorPosition (const U32 newPos)
void setTextLength (const U32 length)
const bool isCursorRendered () const
Point2I getCursorCenter () const
RectI getCursorRect () const
void setCursorRect (RectI rect)
void setCursorAtEOL (const bool isEOL)
void setFirstResponder (const bool isFirstResponder)
void clearSelection ()
void selectTo (const U32 target)
bool hasSelection ()
void onPreRender (const U32 time)
bool isIbeamOnLine (const U32 start, const U32 end, const bool isLastLine) const
bool renderIbeam (const Point2I &startPoint, const Point2I &extent, const string line, const U32 start, const U32 end, const bool isLastLine, GuiControlProfile *profile, GFont *font)
string getSelection (const string &fullText)
void eraseSelection (string &fullText)
void stepCursorForward ()
void stepCursorBackward ()
void resetCursorBlink ()
void selectWholeWord (const string &text)

Constructor & Destructor Documentation

◆ GuiTextEditSelection() [1/2]

◆ GuiTextEditSelection() [2/2]

Member Function Documentation

◆ clearSelection()

void clearSelection ( )
inline

◆ eraseSelection()

void eraseSelection ( string & fullText)

◆ getCursorCenter()

Point2I getCursorCenter ( ) const
inline

◆ getCursorPos()

U32 getCursorPos ( ) const
inline

◆ getCursorRect()

RectI getCursorRect ( ) const
inline

◆ getSelection()

string getSelection ( const string & fullText)
inline

◆ getSelEnd()

U32 getSelEnd ( ) const
inline

◆ getSelStart()

U32 getSelStart ( ) const
inline

◆ hasSelection()

bool hasSelection ( )
inline

◆ isCursorRendered()

const bool isCursorRendered ( ) const
inline

◆ isIbeamOnLine()

bool isIbeamOnLine ( const U32 start,
const U32 end,
const bool isLastLine ) const

◆ onPreRender()

void onPreRender ( const U32 time)

◆ renderIbeam()

bool renderIbeam ( const Point2I & startPoint,
const Point2I & extent,
const string line,
const U32 start,
const U32 end,
const bool isLastLine,
GuiControlProfile * profile,
GFont * font )

◆ resetCursorBlink()

void resetCursorBlink ( )

◆ selectTo()

void selectTo ( const U32 target)

◆ selectWholeWord()

void selectWholeWord ( const string & text)

◆ setCursorAtEOL()

void setCursorAtEOL ( const bool isEOL)
inline

◆ setCursorPosition()

void setCursorPosition ( const U32 newPos)
inline

◆ setCursorRect()

void setCursorRect ( RectI rect)
inline

◆ setFirstResponder()

void setFirstResponder ( const bool isFirstResponder)
inline

◆ setTextLength()

void setTextLength ( const U32 length)
inline

◆ stepCursorBackward()

void stepCursorBackward ( )

◆ stepCursorForward()

void stepCursorForward ( )

The documentation for this class was generated from the following files: