![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cSurfaceDC.h>
Public Member Functions | |
cSurfaceDC () noexcept | |
cSurfaceDC (COLOR16_t *pDataDest, PIXELS_t cx, PIXELS_t cy, size_t iPitchBytes) | |
cSurfaceDC (cSurfaceBase *pSurfDest) | |
cSurfaceDC (PIXELS_t x, PIXELS_t y) | |
virtual | ~cSurfaceDC () |
virtual void | OnParamsChanged () |
bool | IsInsideClipX (PIXELS_t x) const noexcept |
bool | IsInsideClipY (PIXELS_t y) const noexcept |
void | SetClipDestEmpty () |
void | SetClipDestAll () |
void | SetClipDest (const cRectI &rect) |
virtual void | DrawEraseClip () |
virtual void | DrawBlt (PIXELS_t x, PIXELS_t y, cSurfaceBase *pSrc, const cRectI &srcRect, DWORD rop) |
UNITTEST_FRIEND (cSurfaceDC) | |
Public Attributes | |
cSurfaceBase | m_SurfDest |
The destination surface. NOT freed on destruct. "Unlink" this when done. More... | |
cRectI | m_rClipDest |
clip to this rectangle for draws to m_Dest. (m_Dest surface coordinate system) More... | |
cColorRef | m_ColorFore |
Foreground pen. More... | |
cColorRef | m_ColorBack |
Background color (if any) Use Alpha channel. isValidColor() More... | |
params for drawing onto an arbitrary (in system memory) surface. Draw context for a surface. Base for cSurfaceDC2. Does NOT perform raster ops. Can be used to wrap HDC or DirectX surfacec as target. AKA: Device context.
|
noexcept |
GrayLib::cSurfaceDC::cSurfaceDC | ( | COLOR16_t * | pDataDest, |
PIXELS_t | cx, | ||
PIXELS_t | cy, | ||
size_t | iPitchBytes | ||
) |
GrayLib::cSurfaceDC::cSurfaceDC | ( | cSurfaceBase * | pSurfDest | ) |
trap = Intentionally Throw an exception if this is used.
|
virtual |
|
virtual |
|
virtual |
Erase the surface clip area m_rClipDest. set 0's.
|
inlinenoexcept |
non-inclusive
|
inlinenoexcept |
non-inclusive
|
inlinevirtual |
void GrayLib::cSurfaceDC::SetClipDest | ( | const cRectI & | rect | ) |
|
inline |
clipping region for Destination surface.
|
inline |
GrayLib::cSurfaceDC::UNITTEST_FRIEND | ( | cSurfaceDC | ) |
cColorRef GrayLib::cSurfaceDC::m_ColorBack |
Background color (if any) Use Alpha channel. isValidColor()
cColorRef GrayLib::cSurfaceDC::m_ColorFore |
Foreground pen.
cRectI GrayLib::cSurfaceDC::m_rClipDest |
clip to this rectangle for draws to m_Dest. (m_Dest surface coordinate system)
cSurfaceBase GrayLib::cSurfaceDC::m_SurfDest |
The destination surface. NOT freed on destruct. "Unlink" this when done.