Add optional wxWindow parameter to wxButtonBase::GetDefaultSize()
When per-monitor DPI is used, the default button size depends on the DPI of the display. Use the window to determine this DPI.
This commit is contained in:
@@ -39,8 +39,9 @@ public:
|
||||
// returns the old default item (possibly NULL)
|
||||
virtual wxWindow *SetDefault();
|
||||
|
||||
// returns the default button size for this platform
|
||||
static wxSize GetDefaultSize();
|
||||
// returns the default button size for this platform, and optionally for a
|
||||
// specific window when the platform supports per-monitor DPI
|
||||
static wxSize GetDefaultSize(wxWindow* win = NULL);
|
||||
|
||||
protected:
|
||||
wxDECLARE_NO_COPY_CLASS(wxButtonBase);
|
||||
|
Reference in New Issue
Block a user