Document that wxGCDC takes ownership of the provided context

This is a rather important detail which the documentation completely
forgot to mention.
This commit is contained in:
Vadim Zeitlin
2018-12-06 03:43:37 +01:00
parent 507e331eb1
commit aa6a8fbdf0

View File

@@ -40,6 +40,10 @@ public:
/**
Construct a wxGCDC from an existing graphics context.
Note that this object takes ownership of @a context and will delete it
when it is destroyed or when SetGraphicsContext() is called with a
different context object.
*/
wxGCDC(wxGraphicsContext* context);
@@ -64,8 +68,11 @@ public:
/**
Set the graphics context to be used for this wxGCDC.
Note that this object takes ownership of @a context and will delete it when
it is destroyed or when SetGraphicsContext() is called again.
*/
void SetGraphicsContext( wxGraphicsContext* ctx );
void SetGraphicsContext(wxGraphicsContext* context);
};