VCF::TextEditPeer Class Reference
A interface for supporting text controls This results in a native text control widget being created, with all painting responsibilities being controlled by the native widget. More...
#include <vcf/ApplicationKit/TextPeer.h>
Inheritance diagram for VCF::TextEditPeer:

Public Member Functions | |
| virtual Point * | getPositionFromCharIndex (const uint32 &index)=0 |
| virtual uint32 | getCharIndexFromPosition (Point *point)=0 |
| virtual uint32 | getCaretPosition ()=0 |
| returns the current caret position with in the text control this is specified by a zero based number representing the insertion point with the text control's text (stored in the text control's Model). | |
| virtual void | setCaretPosition (const uint32 &caretPos)=0 |
| virtual uint32 | getCurrentLinePosition ()=0 |
| virtual uint32 | getSelectionStart ()=0 |
| returns the zero based index that indicates where the current selection begins may be the same index that getCaretPosition() returns | |
| virtual uint32 | getSelectionCount ()=0 |
| returns the number of characters selected | |
| virtual void | setSelectionMark (const uint32 &start, const uint32 &count)=0 |
| virtual void | clearSelection ()=0 |
| virtual void | scrollToLine (const uint32 &lineIndex)=0 |
| virtual void | scrollToSelection (const bool &showEndSel=false)=0 |
| virtual void | setReadOnly (const bool &readonly)=0 |
| virtual void | cut ()=0 |
| Cuts the selection and places it in the clipboard. | |
| virtual void | copy ()=0 |
| Copies the selection and places it in the clipboard. | |
| virtual void | paste ()=0 |
| Pastes the contents of the clipboard into the text control. | |
| virtual bool | canUndo ()=0 |
| Returns a bool to indicate whether or not an undo operation can be performed. | |
| virtual bool | canRedo ()=0 |
| Returns a bool to indicate whether or not a redo operation can be performed. | |
| virtual void | undo ()=0 |
| Undoes the last operation. | |
| virtual void | redo ()=0 |
| Redoes the last operation. | |
| virtual uint32 | getTotalPrintablePageCount (PrintContext *context)=0 |
| virtual void | print (PrintContext *context, const int32 &page)=0 |
| This attempts to print a single page and render in to the printer context that's passed in. | |
| virtual void | finishPrinting ()=0 |
| virtual void | setTextWrapping (const bool &val)=0 |
| virtual bool | getTextWrapping ()=0 |
Detailed Description
A interface for supporting text controls This results in a native text control widget being created, with all painting responsibilities being controlled by the native widget.
Member Function Documentation
|
|
Returns a bool to indicate whether or not a redo operation can be performed.
Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
|
|
Returns a bool to indicate whether or not an undo operation can be performed.
Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
|
|
Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
|
|
Copies the selection and places it in the clipboard.
Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
|
|
Cuts the selection and places it in the clipboard.
Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
|
|
Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
|
|
returns the current caret position with in the text control this is specified by a zero based number representing the insertion point with the text control's text (stored in the text control's Model).
Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
|
|
Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
|
|
Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
|
|
Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
|
|
returns the number of characters selected
Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
|
|
returns the zero based index that indicates where the current selection begins may be the same index that getCaretPosition() returns
Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
|
|
Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
|
|
Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
|
|
Pastes the contents of the clipboard into the text control.
Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
|
||||||||||||
|
This attempts to print a single page and render in to the printer context that's passed in. Note that some platforms may not support this, as printing support varies widely. It will work on Win32, and should work on Mac OS X as well. Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
|
|
Redoes the last operation.
Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
|
|
Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
|
|
Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
|
|
Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
|
|
Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
|
||||||||||||
|
Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
|
|
Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
|
|
Undoes the last operation.
Implemented in VCF::OSXTextEditPeer, and VCF::Win32Edit. |
The documentation for this class was generated from the following file:
- vcf/ApplicationKit/TextPeer.h
