Back to index

texmacs  1.0.7.15
Functions
aqua_menu.h File Reference
#include "aqua_widget.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

NSMenu * to_nsmenu (widget w)
NSMenuItem * to_nsmenuitem (widget w)

Function Documentation

NSMenu* to_nsmenu ( widget  w)

Definition at line 466 of file aqua_menu.mm.

{
  if (typeid(*w.rep) == typeid(aqua_menu_rep)) {
    aqua_menu_rep *ww = ((aqua_menu_rep*)w.rep);
       NSMenu *m =[[[ww->item submenu] retain] autorelease];
       [ww->item setSubmenu:nil];
       return m;
  }
  else return nil;
}
NSMenuItem* to_nsmenuitem ( widget  w)

Definition at line 477 of file aqua_menu.mm.

{
       return ((aqua_menu_rep*)w.rep)->item;
}