Document that wxGraphicsContext::DrawText angles are in radians

This resolves confusion reported by a wxPython user:
https://github.com/wxWidgets/Phoenix/issues/1815
This commit is contained in:
Scott Talbert
2020-10-12 13:50:27 -04:00
parent 5e8b39f02a
commit ab65087e93

View File

@@ -804,8 +804,8 @@ public:
@param y
The y coordinate position to draw the text at.
@param angle
The angle relative to the (default) horizontal direction to draw
the string.
The angle, in radians, relative to the (default) horizontal
direction to draw the string.
*/
void DrawText(const wxString& str, wxDouble x, wxDouble y, wxDouble angle);
@@ -833,8 +833,8 @@ public:
@param y
The y coordinate position to draw the text at.
@param angle
The angle relative to the (default) horizontal direction to draw
the string.
The angle, in radians, relative to the (default) horizontal
direction to draw the string.
@param backgroundBrush
Brush to fill the text with.
*/