X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1b8c7ba607a15a2ff8a04448138df9ffff7df6c5..ecc0e221ee47e8be9fe367bd68ec0e53bea1142e:/wxPython/src/_toolbar.i diff --git a/wxPython/src/_toolbar.i b/wxPython/src/_toolbar.i index bb0a76de5d..70191aaa59 100644 --- a/wxPython/src/_toolbar.i +++ b/wxPython/src/_toolbar.i @@ -43,6 +43,7 @@ enum { wxTB_NOALIGN, wxTB_HORZ_LAYOUT, wxTB_HORZ_TEXT, + wxTB_NO_TOOLTIPS, }; @@ -380,6 +381,8 @@ public: // return True if this is a vertical toolbar, otherwise False bool IsVertical(); + + size_t GetToolsCount() const; }; @@ -411,10 +414,40 @@ public: long style = wxNO_BORDER | wxTB_HORIZONTAL, const wxString& name = wxPyToolBarNameStr); - wxToolBarToolBase *FindToolForPosition(wxCoord x, wxCoord y); - static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); }; //--------------------------------------------------------------------------- + +#if 0 +%{ +#include +%} + +MustHaveApp(wxToolBar); +class wxButtonToolBar : public wxToolBarBase +{ +public: + %pythonAppend wxButtonToolBar "self._setOORInfo(self)" + %pythonAppend wxButtonToolBar() "" + + wxButtonToolBar(wxWindow *parent, + wxWindowID id=-1, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = 0, + const wxString& name = wxPyToolBarNameStr); + %RenameCtor(PreButtonToolBar, wxButtonToolBar()); + + + bool Create(wxWindow *parent, + wxWindowID id=-1, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = 0, + const wxString& name = wxPyToolBarNameStr); +}; + +#endif +//---------------------------------------------------------------------------