|  
       
 Adding GraphWin Member FunctionsNot every operation of the programming interface of GraphWin is available in the interactive interface. However, there is an easy way of adding operations of typevoid GraphWin::func();. 
      The operation 
          gw.add_member(void (*GraphWin::func)(), 
                  string label, int menu_id=0);
      adds a new button 
        with label  Example:The following program adds a "redraw" button, that callsgw.redraw(), 
      to the main menu bar, we use 
      #include <LEDA/graphics/graphwin.h>
int main()
{
  leda::GraphWin gw;
  gw.add_member_call(&leda::GraphWin::redraw,"redraw");
  gw.display(); gw.edit();
 
  return 0;
}
     | 
     
      See also:Customizing the Interactive Interface Complete Example for Customizing the Interface Manual Pages: |