Added FindById
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9e58eb5674
commit
a6d2f5bb02
@ -303,9 +303,8 @@ public:
|
||||
shortHelp, longHelp, clientData)
|
||||
}
|
||||
|
||||
// TODO?
|
||||
//wxToolBarToolBase *AddTool (wxToolBarToolBase *tool);
|
||||
//wxToolBarToolBase *InsertTool (size_t pos, wxToolBarToolBase *tool);
|
||||
%name(AddToolItem) wxToolBarToolBase *AddTool (wxToolBarToolBase *tool);
|
||||
%name(InsertToolItem) wxToolBarToolBase *InsertTool (size_t pos, wxToolBarToolBase *tool);
|
||||
|
||||
wxToolBarToolBase *AddControl(wxControl *control);
|
||||
wxToolBarToolBase *InsertControl(size_t pos, wxControl *control);
|
||||
@ -376,6 +375,9 @@ public:
|
||||
// there is no tool at this point (corrdinates are client)
|
||||
wxToolBarToolBase *FindToolForPosition(wxCoord x, wxCoord y);
|
||||
|
||||
// find the tool by id
|
||||
wxToolBarToolBase *FindById(int toolid) const;
|
||||
|
||||
// return True if this is a vertical toolbar, otherwise False
|
||||
bool IsVertical();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user