InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
DVOffscreenGraphicsContext Class Reference

#include <DVOffscreenGraphicsContext.h>

Inheritance diagram for DVOffscreenGraphicsContext:
IGraphicsContext

Public Member Functions

 DVOffscreenGraphicsContext (IViewPort *viewPort, const PMMatrix &toWindowMatrix, IControlView *iView, SysRgn clipRgnInWinCoords=nil)
 
virtual SysRgn GetClip () const
 
virtual SysRgn GetOriginAdjustedClip () const
 
virtual SysPort GetSysPort () const
 
virtual IViewPortGetViewPort () const
 
virtual const PMMatrixGetContentToViewTransform () const
 
virtual const PMMatrixGetViewToContentTransform () const
 
virtual IControlViewGetView () const
 
bool16 IsCurrent () const
 
virtual dvaui::drawbot::Drawbot * GetDrawbot () const
 

Detailed Description

DVOffscreenGraphicsContext is a Drover based implementation for IGraphicsContext. IGraphicsContext is a data container interface which is passed into drawing code, the DVOffscreenGraphicsContext is a wrapper around DVOffscreenPortData. It contains the target viewport, transform, and cliprgn for drawing. It not a Shuksan object model interface, but simply an abstract interface from which implementation classes derive. It is being used from DVLayoutControlView (droverized layout widget).

See Also
DVLayoutControlView
DVOffscreenPortData
IControlView

Member Function Documentation

virtual SysRgn DVOffscreenGraphicsContext::GetClip () const
virtual

Gets the clipping region for this context

Returns
the clipping region as a SysRgn

Implements IGraphicsContext.

virtual const PMMatrix& DVOffscreenGraphicsContext::GetContentToViewTransform () const
virtual

Gets the transform matrix for this context

See Also
PMMatrix
IGraphicsContext::GetInverseTransform
Returns
the transform matrix

Implements IGraphicsContext.

virtual dvaui::drawbot::Drawbot* DVOffscreenGraphicsContext::GetDrawbot () const
virtual

Gets the Drawbot for this context

Returns
the Drawbot*

Implements IGraphicsContext.

virtual SysRgn DVOffscreenGraphicsContext::GetOriginAdjustedClip () const
virtual

Gets the origin-adjusted clipping region for this context

Returns
the origin-adjusted clipping region as a SysRgn

Implements IGraphicsContext.

virtual SysPort DVOffscreenGraphicsContext::GetSysPort () const
virtual

Obsolete don't use

It will cause an assert when called

Implements IGraphicsContext.

virtual IControlView* DVOffscreenGraphicsContext::GetView () const
virtual

Gets the control view for this context

See Also
IControlView
Returns
the control view

Implements IGraphicsContext.

virtual IViewPort* DVOffscreenGraphicsContext::GetViewPort () const
virtual

Gets the view port for this context

See Also
IViewPort
Returns
the view port

Implements IGraphicsContext.

virtual const PMMatrix& DVOffscreenGraphicsContext::GetViewToContentTransform () const
virtual

Gets the inverse transform matrix for this context

See Also
PMMatrix
IGraphicsContext::GetTransform
Returns
the inverse transform matrix

Implements IGraphicsContext.

bool16 DVOffscreenGraphicsContext::IsCurrent () const
virtual

Returns kTrue if this context is current, else kFalse

See Also
IGraphicsContextArbitrator
Returns
whether this context is current

Implements IGraphicsContext.