Document wxDC::[GS]etGraphicsContext

This commit is contained in:
Robin Dunn
2020-06-26 13:35:34 -07:00
parent f80ac025ba
commit c43af017c9

View File

@@ -1687,6 +1687,21 @@ public:
void GetLogicalOrigin(wxCoord *x, wxCoord *y) const; void GetLogicalOrigin(wxCoord *x, wxCoord *y) const;
wxPoint GetLogicalOrigin() const; wxPoint GetLogicalOrigin() const;
//@} //@}
/**
If supported by the platform and the @a wxDC implementation, this method
will return the @a wxGraphicsContext associated with the DC. Otherwise
@NULL is returned.
*/
virtual wxGraphicsContext* GetGraphicsContext() const;
/**
Associate a wxGraphicsContext with the DC. Ignored if not supported by
the specific @a wxDC implementation. It is unlikely that this will need to
be used in application code.
*/
virtual void SetGraphicsContext( wxGraphicsContext* ctx );
}; };