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:
@@ -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);
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user