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