![]() | InDesign SDK 20.5 |
#include <ITextCaret.h>

Public Member Functions | |
| virtual bool16 | IsCaretStroked () const =0 |
| virtual void | DrawingRegion (IControlView *view, const SysRgn &invalidRgn)=0 |
| virtual bool16 | UpdateCaretPosition (IControlView *view=nil, const RangeData *newCaretPosition=nil)=0 |
| virtual bool16 | GetCaretBounds (PMLineSeg *pCaretBounds) const =0 |
| virtual void | ToggleCaret ()=0 |
| virtual void | DrawCaret (IGraphicsContext *gc, PMRect updateRect)=0 |
| virtual void | SetCaretState (CaretState, const RangeData *newCaretPosition=nil)=0 |
| virtual CaretState | GetCaretState ()=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Interface to set and draw the text caret.
| anonymous enum |
Not used.
| anonymous enum |
Not used.
| pure virtual |
Called from the view that the caret belongs to to draw the caret. Normally, this should not need to be called externally.
| gc | The graphic context to draw the caret with. |
| updateRect | The area of the screen being currently being redrawn. |
| pure virtual |
Invalidate the param invalidRgn to redraw the text caret
| view | |
| invalidRgn |
| pure virtual |
Use to get the caret bounds in pasteboard. It returns kFalse on error. By convention, the caret is 1.0 units wide, where wide is independent of x or y.
| pCaretBounds | Return the caret bounds |
| pure virtual |
Get the text caret state
| none |
| pure virtual |
Check if text caret was stroked?
| none |
| pure virtual |
Set the new state and new position of text caret.
| CaretState | The state of text caret kCreatOff, kCaretEarsed = earse text caret. kCaretParked, kCaretStroked = stroke text caret kCaretOn, kCaretBlinking = set the text caret, no stoke the caret |
| newCaretPosition | The new position of text caret |
| pure virtual |
Toggle text caret state to earse or storke
| none |
| pure virtual |
Use to recalculate the TextCaret. Pass in nil to use the current selection. It returns whether the position is a valid caret position.
| view | The control view |
| newCaretPosition | The new caret position |