LibreOffice Module vcl (master)  1
Classes | Public Member Functions | List of all members
SkiaCompatibleDC Class Reference

#include <gdiimpl.hxx>

Inheritance diagram for SkiaCompatibleDC:
[legend]
Collaboration diagram for SkiaCompatibleDC:
[legend]

Classes

struct  Texture
 

Public Member Functions

 SkiaCompatibleDC (SalGraphics &rGraphics, int x, int y, int width, int height)
 
virtual std::unique_ptr< TexturegetAsMaskTexture () const override
 Obtain the texture in format for WinSalGraphicsImplBase::DrawTextMask(). More...
 
sk_sp< SkImage > getAsImage () const
 
sk_sp< SkImage > getAsMaskImage () const
 
sk_sp< SkImage > getAsImageDiff (const SkiaCompatibleDC &white) const
 
- Public Member Functions inherited from CompatibleDC
virtual ~CompatibleDC ()
 
HDC getCompatibleHDC ()
 
SalTwoRect getTwoRect () const
 
long getBitmapWidth () const
 
long getBitmapHeight () const
 
void fill (sal_uInt32 color)
 Reset the DC with the defined color. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from CompatibleDC
static std::unique_ptr< CompatibleDCcreate (SalGraphics &rGraphics, int x, int y, int width, int height)
 
- Protected Member Functions inherited from CompatibleDC
 CompatibleDC (SalGraphics &rGraphics, int x, int y, int width, int height, bool disable=true)
 
- Protected Attributes inherited from CompatibleDC
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...
 
WinSalGraphicsImplBasempImpl
 The SalGraphicsImpl where we will draw. If null, we ignore the drawing, it means it happened directly to the DC... More...
 

Detailed Description

Definition at line 29 of file skia/win/gdiimpl.hxx.

Constructor & Destructor Documentation

SkiaCompatibleDC::SkiaCompatibleDC ( SalGraphics rGraphics,
int  x,
int  y,
int  width,
int  height 
)

Member Function Documentation

sk_sp<SkImage> SkiaCompatibleDC::getAsImage ( ) const
sk_sp<SkImage> SkiaCompatibleDC::getAsImageDiff ( const SkiaCompatibleDC white) const
sk_sp<SkImage> SkiaCompatibleDC::getAsMaskImage ( ) const
virtual std::unique_ptr<Texture> SkiaCompatibleDC::getAsMaskTexture ( ) const
overridevirtual

Obtain the texture in format for WinSalGraphicsImplBase::DrawTextMask().

Reimplemented from CompatibleDC.


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