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

#include <guiTextEditCtrl.h>

Public Member Functions

 GuiTextEditTextBlock ()
const U32 getStartValue () const
RectI getGlobalBounds () const
Point2I getGlobalTextStart ()
void render (const RectI &bounds, string line, U32 ibeamStartValue, GuiControlProfile *profile, GuiControlState currentState, GuiTextEditSelection &selector, AlignmentType align, GFont *font, bool isLastLine, bool overrideFontColor=false)
U32 renderTextSection (const Point2I &startPoint, const U32 subStrStart, const U32 subStrLen, GuiControlProfile *profile, const GuiControlState currentState, GFont *font, bool isSelectedText=false, bool overrideFontColor=false)
void performScrollJumpX (const S32 targetX, const S32 areaStart, const S32 areaEnd)
U32 calculateIbeamPositionInLine (const S32 targetX, GFont *font)
bool calculateCursorAtEOL (const U32 cursorPos)
void resetScroll ()
void processScrollVelocity (const S32 delta, const S32 extentX, GFont *font)
void processTextAlignment (const string line, GFont *font, AlignmentType align)

Constructor & Destructor Documentation

◆ GuiTextEditTextBlock()

Member Function Documentation

◆ calculateCursorAtEOL()

bool calculateCursorAtEOL ( const U32 cursorPos)
inline

◆ calculateIbeamPositionInLine()

U32 calculateIbeamPositionInLine ( const S32 targetX,
GFont * font )

◆ getGlobalBounds()

RectI getGlobalBounds ( ) const
inline

◆ getGlobalTextStart()

Point2I getGlobalTextStart ( )
inline

◆ getStartValue()

const U32 getStartValue ( ) const
inline

◆ performScrollJumpX()

void performScrollJumpX ( const S32 targetX,
const S32 areaStart,
const S32 areaEnd )

◆ processScrollVelocity()

void processScrollVelocity ( const S32 delta,
const S32 extentX,
GFont * font )

◆ processTextAlignment()

void processTextAlignment ( const string line,
GFont * font,
AlignmentType align )

◆ render()

void render ( const RectI & bounds,
string line,
U32 ibeamStartValue,
GuiControlProfile * profile,
GuiControlState currentState,
GuiTextEditSelection & selector,
AlignmentType align,
GFont * font,
bool isLastLine,
bool overrideFontColor = false )

◆ renderTextSection()

U32 renderTextSection ( const Point2I & startPoint,
const U32 subStrStart,
const U32 subStrLen,
GuiControlProfile * profile,
const GuiControlState currentState,
GFont * font,
bool isSelectedText = false,
bool overrideFontColor = false )

◆ resetScroll()

void resetScroll ( )
inline

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