diff options
author | Dan Gudmundsson <[email protected]> | 2016-02-25 09:22:31 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2016-02-29 09:21:50 +0100 |
commit | 375a6d9b157aab42c0a4e866ff5933494a2ea081 (patch) | |
tree | 645eda588991eda2c8b5893f79039c7f0297efd6 /lib/wx/api_gen | |
parent | 349673e2ffaa0916890fa3e24205197e79e371cd (diff) | |
download | otp-375a6d9b157aab42c0a4e866ff5933494a2ea081.tar.gz otp-375a6d9b157aab42c0a4e866ff5933494a2ea081.tar.bz2 otp-375a6d9b157aab42c0a4e866ff5933494a2ea081.zip |
wx: Add wxWindow SetDoubleBuffered and IsDoubleBuffered from wxWidgets 3.0
This is really needed on windows to get rid of flickering when updating
some widgets. These functions are only available if 3.0 and not on mac
where everything is double buffered already.
Diffstat (limited to 'lib/wx/api_gen')
-rw-r--r-- | lib/wx/api_gen/wx_extra/added_func.h | 7 | ||||
-rw-r--r-- | lib/wx/api_gen/wxapi.conf | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lib/wx/api_gen/wx_extra/added_func.h b/lib/wx/api_gen/wx_extra/added_func.h index 0698621c5f..417188cc8a 100644 --- a/lib/wx/api_gen/wx_extra/added_func.h +++ b/lib/wx/api_gen/wx_extra/added_func.h @@ -32,3 +32,10 @@ class wxToolBar { wxToolBarToolBase * AddStretchableSpace(); wxToolBarToolBase * InsertStretchableSpace(size_t pos); }; + + +class wxWindow { + public: + bool IsDoubleBuffered(); + void SetDoubleBuffered(bool on); +}; diff --git a/lib/wx/api_gen/wxapi.conf b/lib/wx/api_gen/wxapi.conf index f5a6751696..4b34b9ead8 100644 --- a/lib/wx/api_gen/wxapi.conf +++ b/lib/wx/api_gen/wxapi.conf @@ -150,7 +150,10 @@ 'ShouldInheritColours','Show','Thaw','TransferDataFromWindow', 'TransferDataToWindow',%'UnregisterHotKey', 'Update','UpdateWindowUI','Validate', - 'WarpPointer']}. + 'WarpPointer', + {'IsDoubleBuffered', [{test_if, "wxCHECK_VERSION(3,0,0)"}]}, + {'SetDoubleBuffered', [{test_if, "wxCHECK_VERSION(3,0,0) && !defined(__WXMAC__)"}]} +]}. {class, wxTopLevelWindowGTK, wxWindow, [{alias, [{wxTopLevelWindowGTK, wxTopLevelWindow}]}], |