Public Types |
| typedef std::vector< String > | buffer_type |
| enum | {
EI_CONTENT_CHANGED = 0x0001,
EI_ENTER_PRESSED = 0x0002,
EI_ESC_PRESSED = 0x0004,
EI_FOCUS_LOST = 0x0008,
EI_CURSOR_MOVED = 0x0010,
EI_SELECTION_CHANGED = 0x0020,
EI_MAX_SIZE_REACHED = 0x0040,
EI_MAX_SIZE_LEFT = 0x0080
} |
Public Methods |
| | TextView (const Rect &cFrame, const char *pzTitle, const char *pzBuffer, uint32 nResizeMask=CF_FOLLOW_LEFT|CF_FOLLOW_TOP, uint32 nFlags=WID_WILL_DRAW|WID_FULL_UPDATE_ON_RESIZE) |
| | os::TextView constructor. More...
|
| | ~TextView () |
| virtual void | MouseMove (const Point &cNewPos, int nCode, uint32 nButtons, Message *pcData) |
| | Hook called by the system when the mouse is moved. More...
|
| virtual void | MouseDown (const Point &cPosition, uint32 nButtons) |
| | Hook called by the system when a mouse button is pressed. More...
|
| virtual void | MouseUp (const Point &cPosition, uint32 nButtons, Message *pcData) |
| | Hook called by the system when a mouse button is release. More...
|
| virtual void | WheelMoved (const Point &cDelta) |
| | Hook called by the system when the scroll-wheel is rotated. More...
|
| virtual void | KeyDown (const char *pzString, const char *pzRawString, uint32 nQualifiers) |
| | Hook called by the system when a key is pressed while the view has focus. More...
|
| virtual void | LabelChanged (const std::string &cNewLabel) |
| virtual void | EnableStatusChanged (bool bIsEnabled) |
| virtual bool | Invoked (Message *pcMessage) |
| | Intercept outgoing messages. More...
|
| virtual void | Activated (bool bIsActive) |
| | Hook called when the view gain or loose focus. More...
|
| virtual void | SetValue (Variant cValue, bool bInvoke=true) |
| virtual Variant | GetValue () const |
| const View * | GetEditor () const |
| | Get a pointer to the editor view. More...
|
| void | SetMultiLine (bool bMultiLine=true) |
| | Enable/disable multiline mode. More...
|
| bool | GetMultiLine () |
| | Get the current editor mode. More...
|
| void | SetPasswordMode (bool bPassword=true) |
| | Disable/enable password mode. More...
|
| bool | GetPasswordMode () const |
| | Get the current echo mode. More...
|
| void | SetNumeric (bool bNumeric) |
| | Set the view in "numeric" mode. More...
|
| bool | GetNumeric () const |
| | Check if the view is in numeric mode. More...
|
| void | SetReadOnly (bool bFlag=true) |
| bool | GetReadOnly () const |
| int | GetMaxUndoSize () const |
| void | SetMaxUndoSize (int nSize) |
| uint32 | GetEventMask () const |
| void | SetEventMask (uint32 nMask) |
| void | GetRegion (std::string *pcBuffer) |
| void | SetMinPreferredSize (int nWidthChars, int nHeightChars) |
| IPoint | GetMinPreferredSize () const |
| void | SetMaxPreferredSize (int nWidthChars, int nHeightChars) |
| IPoint | GetMaxPreferredSize () const |
| void | MakeCsrVisible () |
| void | Clear (bool bSendNotify=true) |
| void | Set (const char *pzBuffer, bool bSendNotify=true) |
| void | Insert (const char *pzBuffer, bool bSendNotify=true) |
| void | Select (const IPoint &cStart, const IPoint &cEnd, bool bSendNotify=true) |
| void | SelectAll (bool bSendNotify=true) |
| void | ClearSelection (bool bSendNotify=true) |
| bool | GetSelection (IPoint *pcStart=NULL, IPoint *pcEnd=NULL) |
| void | SetCursor (int x, int y, bool bSelect=false, bool bSendNotify=true) |
| void | SetCursor (const IPoint &cPos, bool bSelect=false, bool bSendNotify=true) |
| void | GetCursor (int *x, int *y) const |
| IPoint | GetCursor () const |
| void | SetMaxLength (size_t nMaxLength) |
| size_t | GetMaxLength () const |
| size_t | GetCurrentLength () const |
| void | Cut (bool bSendNotify=true) |
| void | Copy () |
| void | Paste (bool bSendNotify=true) |
| void | Delete (bool bSendNotify=true) |
| const buffer_type & | GetBuffer () const |
| virtual void | SetTabOrder (int nOrder) |
| | Set the keyboard manouvering sorting order. More...
|
| virtual Point | GetPreferredSize (bool bLargest) const |
| virtual bool | FilterKeyStroke (const std::string *pcString) |
| 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...
|
| virtual void | __TV_reserved1__ () |
| virtual void | __TV_reserved2__ () |
| virtual void | __TV_reserved3__ () |
| virtual void | __TV_reserved4__ () |
Friends |
| class | TextEdit |