10 #ifndef INCLUDED_VCL_INC_WIN_SCOPED_GDI_HXX
11 #define INCLUDED_VCL_INC_WIN_SCOPED_GDI_HXX
19 template <
typename H, auto DeleterFunc>
struct GDIDeleter
25 template <
typename H, auto DeleterFunc>
26 using ScopedGDI = std::unique_ptr<H, GDIDeleter<H, DeleterFunc>>;
67 HDC
get()
const {
return m_hDC; }
73 #endif // INCLUDED_VCL_INC_WIN_SCOPED_GDI_HXX
ScopedGDI< HBITMAP, DeleteBitmap > ScopedHBITMAP
std::unique_ptr< H, GDIDeleter< H, DeleterFunc >> ScopedGDI
ScopedGDI< HPEN, DeletePen > ScopedHPEN
ScopedGDI< HRGN, DeleteRegion > ScopedHRGN
ScopedH::pointer m_hOrigH
ScopedSelectedGDI(HDC hDC, typename ScopedH::pointer h)
ScopedGDI< HBRUSH, DeleteBrush > ScopedHBRUSH
void ImplReleaseCachedDC(sal_uLong nID)
ScopedGDI< HFONT, DeleteFont > ScopedHFONT
ScopedCachedHDC(HBITMAP hBitmap)
HDC ImplGetCachedDC(sal_uLong nID, HBITMAP hBmp=nullptr)
ScopedGDI< HDC, DeleteDC > ScopedHDC