[SDK][INCLUDE] Improve Gdiplus::Graphics (#2211)

CORE-16585
This commit is contained in:
Katayama Hirofumi MZ 2019-12-31 20:40:16 +09:00 committed by GitHub
parent 8ecbb44463
commit 8968b14235
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 340 additions and 175 deletions

View file

@ -655,6 +655,13 @@ class CachedBitmap : public GdiplusBase
CachedBitmap(const CachedBitmap &);
CachedBitmap &
operator=(const CachedBitmap &);
// get native
friend inline GpCachedBitmap *&
getNat(const CachedBitmap *cb)
{
return const_cast<CachedBitmap *>(cb)->nativeCachedBitmap;
}
};
class FontCollection : public GdiplusBase
@ -1367,6 +1374,13 @@ class Region : public GdiplusBase
this->status = status;
return status;
}
// get native
friend inline GpRegion *&
getNat(const Region *region)
{
return const_cast<Region *>(region)->region;
}
};
class CustomLineCap : public GdiplusBase