GDrawBorrower Class Reference

#include <offscrn.h>

Inheritance diagram for GDrawBorrower:

GRenderRegionWrapper CCObject SimpleCCObject List of all members.

Public Member Functions

 GDrawBorrower ()
 ~GDrawBorrower ()
virtual BOOL Initialise (GRenderRegion *pActiveRR, double ResFactor, DocRect AreaOfDocumentToRender, UINT32 bpp, BOOL NeedsTransp)
virtual BOOL RestorePreviousRendererState ()
virtual GRenderRegionGetRenderRegion ()

Private Attributes

GRenderRegionm_pBorrowedRR

Detailed Description

Definition at line 197 of file offscrn.h.


Constructor & Destructor Documentation

GDrawBorrower::GDrawBorrower  ) 
 

Definition at line 349 of file offscrn.cpp.

00350 {
00351     m_pBorrowedRR = NULL;
00352 }

GDrawBorrower::~GDrawBorrower  ) 
 

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 }


Member Function Documentation

virtual GRenderRegion* GDrawBorrower::GetRenderRegion void   )  [inline, virtual]
 

Implements GRenderRegionWrapper.

Definition at line 212 of file offscrn.h.

00212 { return m_pBorrowedRR; }

BOOL GDrawBorrower::Initialise GRenderRegion pActiveRR,
double  ResFactor,
DocRect  AreaOfDocumentToRender,
UINT32  bpp,
BOOL  NeedsTransp
[virtual]
 

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 }

BOOL GDrawBorrower::RestorePreviousRendererState  )  [virtual]
 

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 }


Member Data Documentation

GRenderRegion* GDrawBorrower::m_pBorrowedRR [private]
 

Definition at line 215 of file offscrn.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:54:45 2007 for Camelot by  doxygen 1.4.4