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

Public Member Functions | |
| AGMGraphicsContextWith (IViewPort *viewPort, IControlView *controlView, SysRgn clipRgn=nil) | |
| AGMGraphicsContextWith (IViewPort *viewPort, ITransform *xform=nil, SysRgn clipRgn=nil) | |
| AGMGraphicsContextWith (IViewPort *viewPort, const PMMatrix &theMatrix, SysRgn clipRgn=nil) | |
| AGMGraphicsContextWith (IViewPort *viewPort, const PMMatrix &theMatrix, IControlView *controlView, SysRgn clipRgn=nil) | |
| AGMGraphicsContextWith (IViewPort *viewPort, ITransform *xform, IControlView *controlView, SysRgn clipRgn=nil) | |
| virtual | ~AGMGraphicsContextWith () |
| virtual SysRgn | GetClip () const |
| virtual SysRgn | GetOriginAdjustedClip () const |
| virtual SysPort | GetSysPort () const |
| virtual IViewPort * | GetViewPort () const |
| virtual const PMMatrix & | GetContentToViewTransform () const |
| virtual const PMMatrix & | GetViewToContentTransform () const |
| virtual IControlView * | GetView () const |
| bool16 | IsCurrent () const |
| virtual dvaui::drawbot::Drawbot * | GetDrawbot () const |
A class template that sets up the coordinate system and clip for a given view or view port. The template requires two parameters, a class that sets up the coordinate system and a class that sets up the clip. By using different implementations for these you can build a graphic context for AGM on Mac, AGM on Win, Quickdraw on Mac, or GDI on Win.
The various constructor overrides allow flexibility in how the graphics context is to be set up. Each installs this context as the current context in the graphics context arbitrator's stack of graphics contexts. The destructor then restores the prior context.
| AGMGraphicsContextWith< AcquireCoordSys, AcquireClip >::AGMGraphicsContextWith | ( | IViewPort * | viewPort, |
| IControlView * | controlView, | ||
| SysRgn | clipRgn = nil | ||
| ) |
Constructs a graphics context based on a viewport, a control view, and an optional clip region
| viewPort | IN The view port to base the context on |
| controlView | IN The control view to base the context on |
| clipRgn | IN The clipping region to use |
| AGMGraphicsContextWith< AcquireCoordSys, AcquireClip >::AGMGraphicsContextWith | ( | IViewPort * | viewPort, |
| ITransform * | xform = nil, | ||
| SysRgn | clipRgn = nil | ||
| ) |
Constructs a graphics context based on a viewport, a control view, and an optional clip region
| viewPort | IN The view port to base the context on |
| xform | IN The optional transform to use |
| clipRgn | IN The clipping region to use |
| AGMGraphicsContextWith< AcquireCoordSys, AcquireClip >::AGMGraphicsContextWith | ( | IViewPort * | viewPort, |
| const PMMatrix & | theMatrix, | ||
| SysRgn | clipRgn = nil | ||
| ) |
Constructs a graphics context based on a viewport, a matrix, and an optional clip region
| viewPort | IN The view port to base the context on |
| theMatrix | IN The matrix to apply |
| clipRgn | IN The clipping region to use |
| AGMGraphicsContextWith< AcquireCoordSys, AcquireClip >::AGMGraphicsContextWith | ( | IViewPort * | viewPort, |
| const PMMatrix & | theMatrix, | ||
| IControlView * | controlView, | ||
| SysRgn | clipRgn = nil | ||
| ) |
Constructs a graphics context based on a viewport, a matrix, a control view, and an optional clip region
| viewPort | IN The view port to base the context on |
| theMatrix | IN The matrix to apply |
| controlView | IN The control view to base the context on |
| clipRgn | IN The clipping region to use |
| AGMGraphicsContextWith< AcquireCoordSys, AcquireClip >::AGMGraphicsContextWith | ( | IViewPort * | viewPort, |
| ITransform * | xform, | ||
| IControlView * | controlView, | ||
| SysRgn | clipRgn = nil | ||
| ) |
Constructs a graphics context based on a viewport, a transform, a control view, and an optional clip region
| viewPort | IN The view port to base the context on |
| xform | IN The transform to apply |
| controlView | IN The control view to base the context on |
| clipRgn | IN The clipping region to use |
| virtual |
Destructs this graphics context
| inlinevirtual |
| inlinevirtual |
Gets the transform matrix for this graphics context
Implements IGraphicsContext.
| inlinevirtual |
Internal use only
Implements IGraphicsContext.
| inlinevirtual |
Gets the clipping region for this context, adjusted for the origin
Implements IGraphicsContext.
| inlinevirtual |
Obsolete don't use
Gets the system port for this graphics context
Obsolete don't use
It will cause a assert if called
Implements IGraphicsContext.
| inlinevirtual |
Gets the control view for this graphics context, if any
Implements IGraphicsContext.
| inlinevirtual |
Gets the view port interface for this graphics context
Implements IGraphicsContext.
| inlinevirtual |
Gets the inverse transform matrix for this graphics context
Implements IGraphicsContext.
| virtual |
Gets the 'is current' flag for this graphics context. The context is current if it matches the current context maintained by the graphics context arbitrator
Implements IGraphicsContext.