1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
/**********************************************************************
* menu,h - Menu system declarations
*
* Copyright 1993, David Nedde
*
* Permission to use, copy, modify, and distribute this software
* and its documentation for any purpose and without fee is granted
* provided that the above copyright notice appears in all copies.
* It is provided "as is" without express or implied warranty.
**********************************************************************/
#ifndef __MENU_H__
#define __MENU_H__
#include <X11/Intrinsic.h>
#include "table.h"
typedef struct {
table_type mc_table; /* Table of callbacks avalibale for use */
table_type closure_table; /* Table of callbacks added */
Widget menubar;
#ifdef ATHENA
Pixmap on_bitmap;
Pixmap off_bitmap;
#endif
} menu_struct_type, *menu_type;
typedef struct {
int set;
} menuCallbackStruct;
typedef void (*menuCallbackProc)(/* Widget, caddr_t,
menuCallbackStruct *, char * */);
menu_type menu__create(/* form */);
void menu__destroy(/*menu*/);
void menu__add_callback(/* menu, action_name,
menu_callback_proc, user_data */);
void menu__set_toggle(/* menu, widget_name, set*/);
Bool menu__get_toggle(/* menu, widget_name*/);
void menu__set_sensitivity(/* menu, widget_name, sensitive*/);
#endif
|