Wraps up a native image in a class. Used by CGraphics
to implement an effective double buffering routine
Definition at line 46 of file CNativeImage.hpp.
Exponent::GUI::Graphics::CNativeImage::CNativeImage | ( | ) |
Construction
virtual Exponent::GUI::Graphics::CNativeImage::~CNativeImage | ( | ) | [virtual] |
Destruction
void Exponent::GUI::Graphics::CNativeImage::alphaBlendTo | ( | CNativeImage * | image, | |
const CRect & | where, | |||
const CRect & | toHere, | |||
const double | alpha | |||
) |
Alpha blend on to another image
image | The image to blend | |
where | Where on the source image are we copying from | |
toHere | The position on this image to beldn to | |
alpha | The alpha blend level as a normalised double |
void Exponent::GUI::Graphics::CNativeImage::copyFrom | ( | CNativeImage * | image | ) |
Copy from another image to this
image | The image to copy |
void Exponent::GUI::Graphics::CNativeImage::copyTo | ( | CNativeImage * | image | ) |
Copy this to a neew native window
image | On return this is a copy of this image |
void Exponent::GUI::Graphics::CNativeImage::createNativeImage | ( | ) | [protected] |
Create the native image
void Exponent::GUI::Graphics::CNativeImage::destroyNativeImage | ( | ) | [protected] |
Destroy the native image
const CColour& Exponent::GUI::Graphics::CNativeImage::getBackgroundColour | ( | ) | const [inline] |
Get the background colour
const | CColour& The image background colour |
Definition at line 151 of file CNativeImage.hpp.
References m_backgroundColour.
const CDimension& Exponent::GUI::Graphics::CNativeImage::getDimensions | ( | ) | const [inline] |
Get the dimension of the image
const | CDimension& The dimension of the image |
Definition at line 157 of file CNativeImage.hpp.
References m_area.
SGraphicsHandle* Exponent::GUI::Graphics::CNativeImage::getGraphicsHandle | ( | ) | [inline] |
Get the bitmap graphics handle
SGraphicsHandle* | The graphics handle |
Definition at line 66 of file CNativeImage.hpp.
References m_graphicsHandle.
HDC Exponent::GUI::Graphics::CNativeImage::getParentContext | ( | ) | const [inline] |
Get the parent DC context
HDC | The windows draw context |
Definition at line 81 of file CNativeImage.hpp.
References m_parentHDC.
SWindowHandle* Exponent::GUI::Graphics::CNativeImage::getWindowHandle | ( | ) | const [inline] |
Get the window handle associated with teh draw context
SWindowHandle* | The window handle |
Definition at line 72 of file CNativeImage.hpp.
References m_windowHandle.
void Exponent::GUI::Graphics::CNativeImage::initialise | ( | SWindowHandle * | windowHandle, | |
const CDimension & | area | |||
) |
Initialise the image
windowHandle | Handle to the parent window | |
area | The size of the image to create |
void Exponent::GUI::Graphics::CNativeImage::initialise | ( | SWindowHandle * | windowHandle, | |
HDC | drawContext, | |||
const CDimension & | area | |||
) |
Initialise the image
windowHandle | Handle to the parent window | |
drawContext | The windows draw context | |
area | The size of the image to create |
void Exponent::GUI::Graphics::CNativeImage::setBackgroundColour | ( | const CColour & | colour | ) | [inline] |
Set the background colour
colour | The colour to use at the next initialisation for the background colour |
Definition at line 145 of file CNativeImage.hpp.
References m_backgroundColour.
Referenced by Exponent::GUI::Graphics::CGraphics::setBackgroundColour().
void Exponent::GUI::Graphics::CNativeImage::uninitialise | ( | ) |
Deinitialise
The background colour
Definition at line 188 of file CNativeImage.hpp.
Referenced by getBackgroundColour(), and setBackgroundColour().
Handle to the graphics contexts
Definition at line 185 of file CNativeImage.hpp.
Referenced by getGraphicsHandle().
bool Exponent::GUI::Graphics::CNativeImage::m_initialised [protected] |
Is this initialised
Definition at line 189 of file CNativeImage.hpp.
HDC Exponent::GUI::Graphics::CNativeImage::m_parentHDC [protected] |
Handle to the window your drawing into
Definition at line 186 of file CNativeImage.hpp.
Referenced by getWindowHandle().