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

Public Member Functions | |
| virtual bool16 | CreateOffscreen (IPMUnknown *pShape, IGraphicsContext *gc)=0 |
| virtual bool16 | Draw (IPMUnknown *pShape, IGraphicsContext *gc)=0 |
| virtual bool16 | IsSupported (const IPMUnknown *pShape) const =0 |
| virtual bool16 | Clear (const IPMUnknown *pShape=0)=0 |
| virtual void | Enable (bool16 bOn=kTrue)=0 |
| virtual bool16 | IsEnabled () const =0 |
| virtual void | SetLowMemory (bool16 bOn=kTrue)=0 |
| virtual bool16 | IsLowMemory () const =0 |
| virtual void | SetTypingMode (bool16 bOn=kTrue)=0 |
| virtual bool16 | IsInTypingMode () const =0 |
| virtual bool16 | IsInDrawingMode () const =0 |
| virtual bool16 | HasPendingInvals () const =0 |
| virtual IPMUnknown * | GetTargetTextFrame () const =0 |
| virtual bool16 | Draw (IPMUnknown *pShape, IGraphicsContext *gc, dvaui::drawbot::Drawbot *drawbotP)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
ITextOffscreen is a class which is used to quickly process IPendingInvals on the text model. The idea is that when a text frame has focus and the user is typing, we want to draw the text frontmost and quickly update the view without going through the typical OS level invalidation followed by the processing of a paint/update message from the OS.
| pure virtual |
Called by the TextEditor and the TextOffscreenObserver if the offscreen needs to be recalculated.
| pShape | - IN: the text frame (kFrameItemBoss). |
| pure virtual |
Initializes the text offscreen for the given text frame (kFrameItemBoss).
| pShape | - IN: Pointer to the text frame with focus (kFrameItemBoss). |
| gc | - IN: Pointer to the graphics context (the view/window that we are drawing to). |
| pure virtual |
Draw causes an update to occur for the text frame to the provided graphics context.
| pShape | - IN: the text frame (kFrameItemBoss). |
| gc | - IN: Pointer to the graphics context (the view/window that we are drawing to). |
| pure virtual |
INTERNAL USE ONLY
Draw causes an update to occur for the text frame to the provided graphics context.
| pShape | - IN: the text frame (kFrameItemBoss). |
| gc | - IN: Pointer to the graphics context (the view/window that we are drawing to). |
| drawbotP | - IN: The destination drawbot to draw to. Used when drawing from the view's DV_Draw. |
| pure virtual |
Enables/Disables the text offscreen.
| bOn | - IN: if kTrue, then enable text offscreening, otherwise disable. |
| pure virtual |
| pure virtual |
| pure virtual |
| pure virtual |
| pure virtual |
| pure virtual |
| pure virtual |
IsSupported is used to determine if the text offscreen is active for the given pShape.
| pShape | - IN: the text frame (kFrameItemBoss). |
| pure virtual |
Set by the TextOffscreenSprite if it was not able to create a sprite. Low memory mode for sprites typically means that the drawing will be in XOr mode instead of using offscreens.
| bOn | - IN: kTrue if in low memory mode. |
| pure virtual |
Set the typing mode. Set by the TextEditor on GetFocus/LoseFocus()
| bOn | - IN: kTrue if we are in typing mode. |