Public Types |
enum | {
UNDO_INSERT,
UNDO_DELETE
} |
Public Methods |
| TextEdit (TextView *pcParent, const Rect &cFrame, const char *pzTitle, uint32 nResizeMask=CF_FOLLOW_LEFT|CF_FOLLOW_TOP, uint32 nFlags=WID_WILL_DRAW|WID_CLEAR_BACKGROUND) |
| ~TextEdit () |
void | SetEnable (bool bEnabled=true) |
bool | IsEnabled () const |
void | SetMultiLine (bool bMultiLine) |
bool | GetMultiLine () |
void | SetPasswordMode (bool bPassword) |
bool | GetPasswordMode () const |
void | SetNumeric (bool bNumeric) |
bool | GetNumeric () const |
void | SetReadOnly (bool bFlag) |
bool | GetReadOnly () const |
uint32 | GetEventMask () const |
void | SetEventMask (uint32 nMask) |
int | GetMaxUndoSize () const |
void | SetMaxUndoSize (int nSize) |
void | SetMinPreferredSize (int nWidthChars, int nHeightChars) |
IPoint | GetMinPreferredSize () const |
void | SetMaxPreferredSize (int nWidthChars, int nHeightChars) |
IPoint | GetMaxPreferredSize () const |
void | GetRegion (IPoint cStart, IPoint cEnd, std::string *pcBuffer, bool bAddToClipboard=true) |
void | GetRegion (std::string *pcBuffer, bool bAddToClipboard=true) |
void | MakeCsrVisible () |
void | InsertString (IPoint *pcPos, const char *pzBuffer, bool bMakeUndo=true) |
void | Delete (IPoint cStart, IPoint cEnd, bool bMakeUndo=true) |
void | Delete () |
void | Clear () |
void | Select (const IPoint &cStart, const IPoint &cEnd) |
void | SelectAll () |
void | ClearSelection () |
bool | GetSelection (IPoint *pcStart, IPoint *pcEnd) |
void | SetCursor (const IPoint &cPos, bool bSelect) |
IPoint | GetCursor () const |
void | SetMaxLength (size_t nMaxLength) |
size_t | GetMaxLength () const |
size_t | GetCurrentLength () const |
const TextView::buffer_type & | GetBuffer () const |
virtual Point | GetPreferredSize (bool bLargest) const |
virtual void | Activated (bool bIsActive) |
| Hook called when the view gain or loose focus. More...
|
virtual void | FontChanged (Font *pcNewFont) |
| Called to notify the view that the font has changed. More...
|
virtual void | FrameSized (const Point &cDelta) |
| Virtual hook called by the system when the view is resized. More...
|
virtual void | Paint (const Rect &cUpdateRect) |
| Called by the system update "damaged" areas of the view. More...
|
bool | HandleMouseMove (const Point &cNewPos, int nCode, uint32 nButtons, Message *pcData) |
bool | HandleMouseDown (const Point &cPosition, uint32 nButtons) |
bool | HandleMouseUp (const Point &cPosition, uint32 nButtons, Message *pcData) |
bool | HandleKeyDown (const char *pzString, const char *pzRawString, uint32 nQualifiers) |
void | UpdateBackBuffer () |
void | CommitEvents () |
void | DrawCursor (View *pcView=NULL, float vHOffset=0.0f, float vVOffset=0.0f) |
float | GetPixelPosX (const String &cString, int x) |
float | GetPixelPosY (int y) |
int | GetCharPosX (const String &cString, float vPos) |
void | MaybeDrawString (View *pcView, float vHOffset, const char *pzString, int nLength) |
void | RenderLine (View *pcView, int y, float vHOffset, float vVOffset, bool bClear=true) |
void | InsertChar (char nChar) |
void | MoveHoriz (int nDelta, bool bExpBlock) |
void | MoveVert (int nDelta, bool bExpBlock) |
void | RecalcPrefWidth () |
void | AddUndoNode (UndoNode *psNode) |
void | Undo () |
void | InvalidateLines (int nFirst, int nLast) |
Public Attributes |
uint32 | m_nEventMask |
uint32 | m_nPendingEvents |
float | m_vCsrGfxPos |
font_height | m_sFontHeight |
float | m_vGlyphHeight |
IPoint | m_cCsrPos |
IPoint | m_cPrevCursorPos |
IPoint | m_cRegionStart |
IPoint | m_cRegionEnd |
bool | m_bRegionActive |
bool | m_bMultiLine |
bool | m_bPassword |
bool | m_bReadOnly |
bool | m_bNumeric |
bool | m_bEnabled |
bool | m_bEnforceBackBuffer |
bool | m_bMouseDownSeen |
bool | m_bIBeamActive |
TextView::buffer_type | m_cBuffer |
std::vector< float > | m_cLineSizes |
TextView * | m_pcParent |
Point | m_cPreferredSize |
std::list< UndoNode *> | m_cUndoStack |
int | m_nUndoMemSize |
int | m_nMaxUndoSize |
IPoint | m_cMinPreferredSize |
IPoint | m_cMaxPreferredSize |
Color32_s | m_sCurFgColor |
Color32_s | m_sCurBgColor |
int | m_nMaxLength |
int | m_nCurrentLength |
Bitmap * | m_pcBackBuffer |
View * | m_pcBgView |