*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->NetBSD man pages -> menu_hook (3)              
Title
Content
Arch
Section
 

MENU_HOOK(3)

Contents


NAME    [Toc]    [Back]

     item_init, item_term, menu_init, menu_term, set_item_init, set_item_term,
     set_menu_init, set_menu_term - get or set handler functions for menu
     post/unpost or item change

LIBRARY    [Toc]    [Back]

     Curses Menu Library (libmenu, -lmenu)

SYNOPSIS    [Toc]    [Back]

     #include <menu.h>

     void (*hook)()
     item_init(MENU *menu);

     void (*hook)()
     item_term(MENU *menu);

     void (*hook)()
     menu_init(MENU *menu);

     void (*hook)()
     menu_term(MENU *menu);

     int
     set_item_init(MENU *menu, void (*hook)()));

     int
     set_item_term(MENU *menu, void (*hook)()));

     int
     set_menu_init(MENU *menu, void (*hook)()));

     int
     set_menu_term(MENU *menu, void (*hook)()));

DESCRIPTION    [Toc]    [Back]

     The item_init() function returns a pointer to the function that will be
     called whenever the menu is posted and also just after the current item
     changes.  This is set by the set_item_init() call.  The item_term() function
 returns a pointer to the function that will be called before the
     menu is unposted and just before the current item changes, this pointer
     is set by the set_item_term() call.  The menu_init() functions returns a
     pointer to the function that will be called just before the menu is
     posted to the screen.  This pointer is set by the set_menu_init() function
 call.  The menu_term() function returns a pointer to the function
     that will be called just after the menu has been unposted, this pointer
     is set by the set_menu_term() function.

SEE ALSO    [Toc]    [Back]

      
      
     curses(3), menus(3)

NOTES    [Toc]    [Back]

     The header <menu.h> automatically includes both <curses.h> and <eti.h>.

BSD                           September 10, 1999                           BSD
[ Back ]
 Similar pages
Name OS Title
menu_post NetBSD post (draw) or unpost a menu
popup IRIX Post a popup menu
item_opts_off FreeBSD set and get menu item options
set_menu_opts FreeBSD set and get menu item options
item_value OpenBSD set and get menu item values
item_value FreeBSD set and get menu item values
set_item_value FreeBSD set and get menu item values
mitem_opts OpenBSD set and get menu item options
mitem_value OpenBSD set and get menu item values
set_item_value OpenBSD set and get menu item values
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service