From ab65087e9368c25993527c12da8d3646e6279a75 Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Mon, 12 Oct 2020 13:50:27 -0400 Subject: [PATCH] Document that wxGraphicsContext::DrawText angles are in radians This resolves confusion reported by a wxPython user: https://github.com/wxWidgets/Phoenix/issues/1815 --- interface/wx/graphics.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/interface/wx/graphics.h b/interface/wx/graphics.h index ccca9d7c62..768a4305e0 100644 --- a/interface/wx/graphics.h +++ b/interface/wx/graphics.h @@ -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. */