From 9e8352b5cbe1e23437b38d0d1395883dc7d7ce18 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 10 Oct 2019 14:00:51 +0200 Subject: [PATCH] Document in comments that wxAuiToolBarArt element sizes use DIPs This is not as good as relying on the type system, but better than nothing. --- include/wx/aui/auibar.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/wx/aui/auibar.h b/include/wx/aui/auibar.h index 986575ad83..8fdcfce4e2 100644 --- a/include/wx/aui/auibar.h +++ b/include/wx/aui/auibar.h @@ -318,6 +318,8 @@ public: wxWindow* wnd, const wxAuiToolBarItem& item) = 0; + // Note that these functions work with the size in DIPs, not physical + // pixels. virtual int GetElementSize(int elementId) = 0; virtual void SetElementSize(int elementId, int size) = 0; @@ -431,6 +433,7 @@ protected: wxPen m_gripperPen2; wxPen m_gripperPen3; + // These values are in DIPs and not physical pixels. int m_separatorSize; int m_gripperSize; int m_overflowSize;