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

Public Member Functions | |
| virtual dvaui::drawbot::Drawbot * | GetOffscreenDrawbot () const =0 |
| virtual void | GetOrigin (int32 *x, int32 *y) const =0 |
| virtual void | SetOrigin (int32 x, int32 y)=0 |
| virtual void | CopyBitsFromOffscreen (dvaui::drawbot::Drawbot *dstDrawbot, const Int32Rect &srcBounds, const Int32Rect &dstBounds, const PMMatrix &clip2destMatrix=PMMatrix(), const SysRgn clipRgn=nil, int debug_cookie=0, const char *debug_string=0, void *debug_address=0)=0 |
| virtual void | CopyBitsFromOffscreen (IDVPlatformOffscreen *dstDVPlatformOffscreen, const Int32Rect &srcBounds, const Int32Rect &dstBounds, const PMMatrix &clip2destMatrix=PMMatrix(), const SysRgn clipRgn=nil, int debug_cookie=0, const char *debug_string=0, void *debug_address=0)=0 |
| virtual const Int32Rect & | GetBounds ()=0 |
| virtual void | GetPlatformBitmapInfo (void **baseAddr, uint32 *rowBytes, Int32Rect *portRect, uint32 *bitsPerPixel=nil)=0 |
| virtual int32 | OffscreenError ()=0 |
| virtual bool16 | UpdateBitmap (const Int32Rect &bounds, PMReal uiScaleFactor=1.0)=0 |
| virtual bool16 | UpdateBitmapIfDifferent (const Int32Rect &bounds, PMReal uiScaleFactor=1.0)=0 |
| virtual PMReal | GetCurrentUIScaleFactorReal ()=0 |
| virtual void | CopyBitsFromOffscreen (dvaui::drawbot::Drawbot *dstDrawbot, const Int32Rect &srcBounds, const PMRect &dstBounds, const PMMatrix &clip2destMatrix, const dvaui::drawbot::PathP path, int debug_cookie=0, const char *debug_string=0, void *debug_address=0)=0 |
Public Member Functions inherited from grRefCountedObj | |
| grRefCountedObj () | |
| virtual | ~grRefCountedObj ()=0 |
| virtual void | AddRef () const |
| virtual void | Release () const |
Additional Inherited Members | |
Protected Attributes inherited from grRefCountedObj | |
| int32 | fRefCount |
IDVPlatformOffscreen is a wrapper around a Drover based bitmap. This interface is implemented in DVPlatformOffscreen, which helps in creation of Drover based offscreen DRawbot object, so that all drawing happens offscreen. This infetrface provides functions to copy bitmap bits to/from onscreen drawbot object.
This inteface cannot be added to boss, instead its implementation DVPlatformOffscreen is used from DVOffscreenPortData.
| pure virtual |
Copy pixels from srcPort into the offscreen represented by this class.
| &srcDrawbot | - IN: Pointer to the source drawbot. |
| &srcBounds | - IN - the area of the port/window to copy |
| &dstBounds | - IN - the area of the offscreen to copy into |
| clipRgn | - IN - the area of the port/window to restrict the copy operation to. Copy pixels from this offscreen into the provided port. |
| &dstPort | - IN - Pointer to the destination drawbot |
| &srcBounds | - IN - the area of the offscreen to copy |
| &dstBounds | - IN - the area of the window to copy into |
| clipRgn | - IN - the area of the offscreen to copy |
| pure virtual |
Copy pixels from the provided offscreen into this offscreen.
| srcPort | - IN - the source offscreen |
| &srcBounds | - IN - the area of the offscreen to copy |
| &dstBounds | - IN - the area of this offscreen (the destination) to copy into |
| clipRgn | - IN - the area of the offscreen to copy Copy pixels from this offscreen into the provided offscreen. |
| dstPort | - IN - the destination offscreen |
| &srcBounds | - IN - the area of this offscreen (the source) to copy |
| &dstBounds | - IN - the area of the provided offscreen (the destination) to copy into |
| clipRgn | - IN - the area of the offscreen to copy |
| pure virtual |
Copy pixels from this offscreen into the provided offscreen.
| dstDrawbot | - IN - the destination offscreen |
| &srcBounds | - IN - the area of this offscreen (the source) to copy |
| &dstBounds | - IN - the area of the provided offscreen (the destination) to copy into |
| clip2destMatrix | -IN - clip to destination space matrix |
| path | - IN - the area of the offscreen to copy |
| pure virtual |
Returns the bounds of this offscreen
| pure virtual |
Returns the scaling factor (real) for the offscreen.
| pure virtual |
Returns the underlying drawbot object
| pure virtual |
Get the current origin of the bitmap
| x | - OUT: Horizontal coordinate of the origin. |
| y | - OUT: Vertical coordinate of the origin. |
| pure virtual |
Returns information about this offscreen
| baseAddr | - OUT - a pointer to the underlying offscreen pixel data |
| rowBytes | - OUT - the number of bytes per scanline of data |
| portRect | - OUT - the bounds of this offscreen |
| bitsPerPixel | - OUT - the number of bits per pixel |
| pure virtual |
Returns any error which might have occured during drawing.
| pure virtual |
Set the origin to originPt
| x | - IN: New horizontal coordinate to use for the origin. |
| y | - IN: New vertical coordinate to use for the origin. |
| pure virtual |
Makes sure that it has an underlying bitmap that is at least as big
as the provided bounds rect. If there is already an underlying bitmap which is at least as large as the bounds, and the origin has not changed, then nothing happens. Otherwise, the old bitmap is disposed and a new one is allocated using the provided bounds.
| bounds | - IN: The new bounds for the underlying bitmap. |
| pure virtual |
Same as UpdateBitmap except that the old bitmap can be disposed of if it is much
larger than the new bounds.
| bounds | - IN: The new bounds for the underlying bitmap. |