From c43af017c930063fde972d5b7e01db51e409b899 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 26 Jun 2020 13:35:34 -0700 Subject: [PATCH] Document wxDC::[GS]etGraphicsContext --- interface/wx/dc.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/interface/wx/dc.h b/interface/wx/dc.h index f8d4fee4ad..f206348a7f 100644 --- a/interface/wx/dc.h +++ b/interface/wx/dc.h @@ -1687,6 +1687,21 @@ public: void GetLogicalOrigin(wxCoord *x, wxCoord *y) 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 ); + };