diff options
author | Dan Gudmundsson <[email protected]> | 2013-01-23 15:21:47 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2013-01-23 15:21:47 +0100 |
commit | 489b963bae3dd522bca228978f0b164ec422fc6f (patch) | |
tree | 4fcc707cbdc1ba091e651c6fd3ec77f222a1bbc6 /lib/wx/api_gen/wx_extra/bugs.h | |
parent | 694513b8297e09e22fdf47d63772b5044ef50164 (diff) | |
download | otp-489b963bae3dd522bca228978f0b164ec422fc6f.tar.gz otp-489b963bae3dd522bca228978f0b164ec422fc6f.tar.bz2 otp-489b963bae3dd522bca228978f0b164ec422fc6f.zip |
wx: Add wxTreeCtrl:isTreeItemIdOk/1
Since I have replaced the wxTreeItemIdClass with integers, there
is no way to verify that it is a valid wxTreeItemId that is returned
from the wxTreeCtrl:getItem* functions.
Still the check is that is non null so beware don't construct your own id's.
Diffstat (limited to 'lib/wx/api_gen/wx_extra/bugs.h')
-rw-r--r-- | lib/wx/api_gen/wx_extra/bugs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/wx/api_gen/wx_extra/bugs.h b/lib/wx/api_gen/wx_extra/bugs.h index b8f3dfcb00..e3a4fa200b 100644 --- a/lib/wx/api_gen/wx_extra/bugs.h +++ b/lib/wx/api_gen/wx_extra/bugs.h @@ -34,3 +34,9 @@ class WXDLLIMPEXP_ADV wxGridCellNumberRenderer : public wxGridCellStringRenderer wxGridCellNumberRenderer(); }; +// Enable test for valid wxTreeItemId's +class WXDLLIMPEXP_ADV wxTreeCtrlBase : public wxControl +{ + public: + static bool IsTreeItemIdOk(wxTreeItemId id); +} |