#include <offscrn.h>
Inheritance diagram for GDrawBorrower:
Public Member Functions | |
GDrawBorrower () | |
~GDrawBorrower () | |
virtual BOOL | Initialise (GRenderRegion *pActiveRR, double ResFactor, DocRect AreaOfDocumentToRender, UINT32 bpp, BOOL NeedsTransp) |
virtual BOOL | RestorePreviousRendererState () |
virtual GRenderRegion * | GetRenderRegion () |
Private Attributes | |
GRenderRegion * | m_pBorrowedRR |
Definition at line 197 of file offscrn.h.
|
Definition at line 349 of file offscrn.cpp. 00350 { 00351 m_pBorrowedRR = NULL; 00352 }
|
|
Definition at line 361 of file offscrn.cpp. 00362 { 00363 ENSURE(m_pBorrowedRR==NULL,"Deconstructor not meant to be called like this. Use RestorePreviousRendererState()"); 00364 }
|
|
Implements GRenderRegionWrapper. Definition at line 212 of file offscrn.h. 00212 { return m_pBorrowedRR; }
|
|
Implements GRenderRegionWrapper. Definition at line 378 of file offscrn.cpp. 00384 { 00385 ERROR2IF(!(bpp==32),FALSE,"Can only do 32bpp offscreen bmps at present."); 00386 00387 Capture* pCapture = m_pBorrowedRR->StartCapture(this, AreaOfDocumentToRender, CAPTUREINFO(ctNESTABLE, cfNONE), NeedsTransp, FALSE); 00388 return (pCapture!=NULL); 00389 }
|
|
Implements GRenderRegionWrapper. Definition at line 400 of file offscrn.cpp. 00401 { 00402 // restore GDRAW state and free offscreen state mem 00403 BOOL bOK = m_pBorrowedRR->StopCapture(this, FALSE, FALSE); 00404 m_pBorrowedRR = NULL; 00405 delete this; 00406 return bOK; 00407 }
|
|
|