Refactor wxGCDC to delegate acquiring/releasing HDC to wxGraphicsContext
Instead of implementing MSW-specific code to handle HDC for GDI+ context directly in wxGCDC delegate acquiring/releasing HDC to underlying wxGraphicsContext. Decoupling GDI+-specific code from wxGCDC will allow us to implement handling HDC in other graphics renderers in a clean way.
This commit is contained in:
@@ -881,6 +881,11 @@ public:
|
||||
void SetContentScaleFactor(double contentScaleFactor);
|
||||
double GetContentScaleFactor() const { return m_contentScaleFactor; }
|
||||
|
||||
#ifdef __WXMSW__
|
||||
virtual WXHDC GetNativeHDC() = 0;
|
||||
virtual void ReleaseNativeHDC(WXHDC hdc) = 0;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
// These fields must be initialized in the derived class ctors.
|
||||
wxDouble m_width,
|
||||
|
Reference in New Issue
Block a user