Add wxWindow parameter to wxAuiTabArt::SetSizingInfo()
We need a valid window pointer to use the correct DPI scaling factor for anything sizing-related, but this function didn't have any, so add one to it now. Unfortunately we need to have a default value for the new parameter for backwards-compatibility purposes, but document that this parameter is not really optional and must always be specified. Also add wxWindow parameter to wxAuiTabContainer::SetRect(), which needs it in order to pass it to this function. Currently this window is only used for converting logical pixels to physical ones, but it will also be used for selecting the correct bitmap size in the upcoming commits.
This commit is contained in:
parent
0b51dfe134
commit
8dcedf56d7
5 changed files with 46 additions and 17 deletions
|
|
@ -151,7 +151,7 @@ public:
|
|||
void SetColour(const wxColour& colour);
|
||||
void SetActiveColour(const wxColour& colour);
|
||||
void DoShowHide();
|
||||
void SetRect(const wxRect& rect);
|
||||
void SetRect(const wxRect& rect, wxWindow* wnd = NULL);
|
||||
|
||||
void RemoveButton(int id);
|
||||
void AddButton(int id,
|
||||
|
|
@ -200,6 +200,8 @@ public:
|
|||
|
||||
bool IsDragging() const { return m_isDragging; }
|
||||
|
||||
void SetRect(const wxRect& rect) { wxAuiTabContainer::SetRect(rect, this); }
|
||||
|
||||
protected:
|
||||
// choose the default border for this window
|
||||
virtual wxBorder GetDefaultBorder() const wxOVERRIDE { return wxBORDER_NONE; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue