LibreOffice Module vcl (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
WinSalVirtualDevice Class Reference

#include <salvd.h>

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

Public Member Functions

HDC getHDC () const
 
WinSalGraphicsgetGraphics () const
 
void setGraphics (WinSalGraphics *pVirGraphics)
 
WinSalVirtualDevicegetNext () const
 
 WinSalVirtualDevice (HDC hDC=nullptr, HBITMAP hBMP=nullptr, sal_uInt16 nBitCount=0, bool bForeignDC=false, tools::Long nWidth=0, tools::Long nHeight=0)
 
virtual ~WinSalVirtualDevice () override
 
virtual SalGraphicsAcquireGraphics () override
 
virtual void ReleaseGraphics (SalGraphics *pGraphics) override
 
virtual bool SetSize (tools::Long nNewDX, tools::Long nNewDY) override
 
virtual tools::Long GetWidth () const override
 
virtual tools::Long GetHeight () const override
 
- Public Member Functions inherited from SalVirtualDevice
 SalVirtualDevice ()
 
virtual ~SalVirtualDevice () override
 
virtual bool IsOffScreen () const override
 
virtual SalGraphicsAcquireGraphics ()=0
 
virtual void ReleaseGraphics (SalGraphics *pGraphics)=0
 
virtual bool SetSize (tools::Long nNewDX, tools::Long nNewDY)=0
 
virtual bool SetSizeUsingBuffer (tools::Long nNewDX, tools::Long nNewDY, sal_uInt8 *)
 
- Public Member Functions inherited from SalGeometryProvider
virtual ~SalGeometryProvider ()
 
virtual tools::Long GetWidth () const =0
 
virtual tools::Long GetHeight () const =0
 
virtual bool IsOffScreen () const =0
 

Static Public Member Functions

static HBITMAP ImplCreateVirDevBitmap (HDC hDC, tools::Long nDX, tools::Long nDY, sal_uInt16 nBitCount, void **ppDummy)
 

Private Attributes

HDC mhLocalDC
 
ScopedHBITMAP mhBmp
 
HBITMAP mhDefBmp
 
std::unique_ptr< WinSalGraphicsmpGraphics
 
WinSalVirtualDevicempNext
 
sal_uInt16 mnBitCount
 
bool mbGraphics
 
bool mbForeignDC
 
tools::Long mnWidth
 
tools::Long mnHeight
 

Detailed Description

Definition at line 33 of file win/salvd.h.

Constructor & Destructor Documentation

◆ WinSalVirtualDevice()

WinSalVirtualDevice::WinSalVirtualDevice ( HDC  hDC = nullptr,
HBITMAP  hBMP = nullptr,
sal_uInt16  nBitCount = 0,
bool  bForeignDC = false,
tools::Long  nWidth = 0,
tools::Long  nHeight = 0 
)

◆ ~WinSalVirtualDevice()

virtual WinSalVirtualDevice::~WinSalVirtualDevice ( )
overridevirtual

Member Function Documentation

◆ AcquireGraphics()

virtual SalGraphics * WinSalVirtualDevice::AcquireGraphics ( )
overridevirtual

Implements SalVirtualDevice.

◆ getGraphics()

WinSalGraphics * WinSalVirtualDevice::getGraphics ( ) const
inline

Definition at line 49 of file win/salvd.h.

References mpGraphics.

◆ getHDC()

HDC WinSalVirtualDevice::getHDC ( ) const
inline

Definition at line 48 of file win/salvd.h.

References mhLocalDC.

◆ GetHeight()

virtual tools::Long WinSalVirtualDevice::GetHeight ( ) const
inlineoverridevirtual

Implements SalGeometryProvider.

Definition at line 64 of file win/salvd.h.

References mnHeight.

◆ getNext()

WinSalVirtualDevice * WinSalVirtualDevice::getNext ( ) const
inline

Definition at line 51 of file win/salvd.h.

References mpNext.

◆ GetWidth()

virtual tools::Long WinSalVirtualDevice::GetWidth ( ) const
inlineoverridevirtual

Implements SalGeometryProvider.

Definition at line 63 of file win/salvd.h.

References mnWidth.

◆ ImplCreateVirDevBitmap()

static HBITMAP WinSalVirtualDevice::ImplCreateVirDevBitmap ( HDC  hDC,
tools::Long  nDX,
tools::Long  nDY,
sal_uInt16  nBitCount,
void **  ppDummy 
)
static

◆ ReleaseGraphics()

virtual void WinSalVirtualDevice::ReleaseGraphics ( SalGraphics pGraphics)
overridevirtual

Implements SalVirtualDevice.

◆ setGraphics()

void WinSalVirtualDevice::setGraphics ( WinSalGraphics pVirGraphics)
inline

Definition at line 50 of file win/salvd.h.

References mpGraphics.

◆ SetSize()

virtual bool WinSalVirtualDevice::SetSize ( tools::Long  nNewDX,
tools::Long  nNewDY 
)
overridevirtual

Implements SalVirtualDevice.

Member Data Documentation

◆ mbForeignDC

bool WinSalVirtualDevice::mbForeignDC
private

Definition at line 43 of file win/salvd.h.

◆ mbGraphics

bool WinSalVirtualDevice::mbGraphics
private

Definition at line 42 of file win/salvd.h.

◆ mhBmp

ScopedHBITMAP WinSalVirtualDevice::mhBmp
private

Definition at line 37 of file win/salvd.h.

◆ mhDefBmp

HBITMAP WinSalVirtualDevice::mhDefBmp
private

Definition at line 38 of file win/salvd.h.

◆ mhLocalDC

HDC WinSalVirtualDevice::mhLocalDC
private

Definition at line 36 of file win/salvd.h.

Referenced by getHDC().

◆ mnBitCount

sal_uInt16 WinSalVirtualDevice::mnBitCount
private

Definition at line 41 of file win/salvd.h.

◆ mnHeight

tools::Long WinSalVirtualDevice::mnHeight
private

Definition at line 45 of file win/salvd.h.

Referenced by GetHeight().

◆ mnWidth

tools::Long WinSalVirtualDevice::mnWidth
private

Definition at line 44 of file win/salvd.h.

Referenced by GetWidth().

◆ mpGraphics

std::unique_ptr<WinSalGraphics> WinSalVirtualDevice::mpGraphics
private

Definition at line 39 of file win/salvd.h.

Referenced by getGraphics(), and setGraphics().

◆ mpNext

WinSalVirtualDevice* WinSalVirtualDevice::mpNext
private

Definition at line 40 of file win/salvd.h.

Referenced by getNext().


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