LibreOffice Module vcl (master) 1
|
Class that creates (and destroys) a compatible Device Context. More...
#include <salgdi.h>
Public Member Functions | |
virtual | ~CompatibleDC () |
HDC | getCompatibleHDC () |
SalTwoRect | getTwoRect () const |
tools::Long | getBitmapWidth () const |
tools::Long | getBitmapHeight () const |
void | fill (sal_uInt32 color) |
Reset the DC with the defined color. More... | |
Static Public Member Functions | |
static std::unique_ptr< CompatibleDC > | create (SalGraphics &rGraphics, int x, int y, int width, int height) |
Protected Member Functions | |
CompatibleDC (SalGraphics &rGraphics, int x, int y, int width, int height, bool disable=true) | |
Protected Attributes | |
HDC | mhCompatibleDC |
The compatible DC that we create for our purposes. More... | |
HBITMAP | mhBitmap |
DIBSection that we use for the GDI drawing, and later obtain. More... | |
HBITMAP | mhOrigBitmap |
Return the previous bitmap to undo the SelectObject. More... | |
sal_uInt32 * | mpData |
DIBSection data. More... | |
SalTwoRect | maRects |
Mapping between the GDI position and OpenGL, to use for OpenGL drawing. More... | |
WinSalGraphicsImplBase * | mpImpl |
The SalGraphicsImpl where we will draw. If null, we ignore the drawing, it means it happened directly to the DC... More... | |
Class that creates (and destroys) a compatible Device Context.
This is to be used for GDI drawing into a DIB that we later use for a different drawing method, such as a texture for OpenGL drawing or surface for Skia drawing.
Definition at line 93 of file win/salgdi.h.
|
protected |
|
virtual |
|
static |
void CompatibleDC::fill | ( | sal_uInt32 | color | ) |
Reset the DC with the defined color.
|
inline |
Definition at line 127 of file win/salgdi.h.
References maRects, and SalTwoRect::mnSrcHeight.
|
inline |
Definition at line 126 of file win/salgdi.h.
References maRects, and SalTwoRect::mnSrcWidth.
|
inline |
Definition at line 122 of file win/salgdi.h.
References mhCompatibleDC.
|
inline |
Definition at line 124 of file win/salgdi.h.
References maRects.
|
protected |
Mapping between the GDI position and OpenGL, to use for OpenGL drawing.
Definition at line 109 of file win/salgdi.h.
Referenced by getBitmapHeight(), getBitmapWidth(), and getTwoRect().
|
protected |
DIBSection that we use for the GDI drawing, and later obtain.
Definition at line 100 of file win/salgdi.h.
|
protected |
The compatible DC that we create for our purposes.
Definition at line 97 of file win/salgdi.h.
Referenced by getCompatibleHDC().
|
protected |
Return the previous bitmap to undo the SelectObject.
Definition at line 103 of file win/salgdi.h.
|
protected |
DIBSection data.
Definition at line 106 of file win/salgdi.h.
|
protected |
The SalGraphicsImpl where we will draw. If null, we ignore the drawing, it means it happened directly to the DC...
Definition at line 112 of file win/salgdi.h.