Public Member Functions | Protected Attributes | List of all members
OOF_mixFreeImageOwner Class Reference

Mixin for classes keeping a ref-counted FIBITMAP member. More...

#include <oofrpFreeImage.h>

Inheritance diagram for OOF_mixFreeImageOwner:
Inheritance graph
Collaboration diagram for OOF_mixFreeImageOwner:
Collaboration graph

Public Member Functions

FIBITMAP * bitmap () const
virtual void CleanupOnLastDereference ()
HBITMAP copyToBitmap (HDC usingDC)
 Copy to a standard Windows bitmap format for drawing etc. More...
void decRefs ()
unsigned long height ()
void incRefs ()
 OOF_mixFreeImageOwner (FIBITMAP *adoptedBitmap)
unsigned long width ()
virtual ~OOF_mixFreeImageOwner ()

Protected Attributes

unsigned int * mSharedReferences
unsigned int mTimesDecCalled

Detailed Description

Mixin for classes keeping a ref-counted FIBITMAP member.

Definition at line 36 of file oofrpFreeImage.h.

Constructor & Destructor Documentation

OOF_mixFreeImageOwner::OOF_mixFreeImageOwner ( FIBITMAP *  adoptedBitmap)

Definition at line 219 of file oofrpFreeImage.cpp.

OOF_mixFreeImageOwner::~OOF_mixFreeImageOwner ( )

Definition at line 228 of file oofrpFreeImage.cpp.

References OOF_mixRefCountWithCopy::decRefs().

Member Function Documentation

FIBITMAP * OOF_mixFreeImageOwner::bitmap ( ) const

Definition at line 136 of file oofrpFreeImage.h.

Referenced by oofRepFreeImageBand_RTFRender::draw().

void OOF_mixFreeImageOwner::CleanupOnLastDereference ( )

Implements OOF_mixRefCountWithCopy.

Definition at line 235 of file oofrpFreeImage.cpp.

HBITMAP OOF_mixFreeImageOwner::copyToBitmap ( HDC  usingDC)

Copy to a standard Windows bitmap format for drawing etc.

Definition at line 246 of file oofrpFreeImage.cpp.

Referenced by oofRepFreeImageBand_WinRender::draw().

void OOF_mixRefCountWithCopy::decRefs ( )
unsigned long OOF_mixFreeImageOwner::height ( )

Definition at line 123 of file oofrpFreeImage.h.

Referenced by oofRepFreeImageBand::fixedHeight().

void OOF_mixRefCountWithCopy::incRefs ( )
unsigned long OOF_mixFreeImageOwner::width ( )

Definition at line 129 of file oofrpFreeImage.h.

Referenced by oofRepFreeImageBand::fixedWidth().

Member Data Documentation

unsigned int* OOF_mixRefCountWithCopy::mSharedReferences
unsigned int OOF_mixRefCountWithCopy::mTimesDecCalled

The documentation for this class was generated from the following files: