search for: pos_of_tool

Displaying 2 results from an estimated 2 matches for "pos_of_tool".

2007 Jun 22
0
[1055] trunk/wxruby2/swig/classes/ToolBar.i: Chnage methods returning ToolBarToolBase to return position of new tool;
...tmap& bitmap1, const wxBitmap& bitmap2 = wxNullBitmap, wxItemKind kind = wxITEM_NORMAL, const wxString& shortHelpString = "", const wxString& longHelpString = "", wxObject* clientData = NULL); </del><ins>+// +%typemap(out) wxToolBarToolBase* { + int pos_of_tool = arg1->GetToolPos($1->GetId()); + $result = INT2NUM(pos_of_tool); +} </ins><span class="cx"> </span><ins>+ +// Versions of methods that accept a ToolBarTool argument are not +// supported in wxRuby, because that class is not ported. +%ignore wxToolBar::Add...
2007 Jun 22
0
[1058] trunk/wxruby2/swig: Move TB_ constants into ToolBar and add the new 2.8 ones.
...Hence, all +// access to ToolBar changing methods is via Wx::ToolBar. </ins><span class="cx"> %typemap(out) wxToolBarToolBase* { </span><ins>+ // arg1 here is the typecase C++ self; $1 is the new ToolBarToolBase </ins><span class="cx"> int pos_of_tool = arg1->GetToolPos($1->GetId()); </span><span class="cx"> $result = INT2NUM(pos_of_tool); </span><span class="cx"> } </span></span></pre> </div> </div> </body> </html>