comparison src/gui.h @ 384:bbff43aa5eb7 r21-2-7

Import from CVS: tag r21-2-7
author cvs
date Mon, 13 Aug 2007 11:08:24 +0200
parents d883f39b8495
children aabb7f5b1c81
comparison
equal deleted inserted replaced
383:6a50c6a581a5 384:bbff43aa5eb7
25 /* Written by kkm on 12/24/97 */ 25 /* Written by kkm on 12/24/97 */
26 26
27 #ifndef _XEMACS_GUI_H_ 27 #ifndef _XEMACS_GUI_H_
28 #define _XEMACS_GUI_H_ 28 #define _XEMACS_GUI_H_
29 29
30 #ifdef HAVE_POPUPS
31 int separator_string_p (CONST char *s); 30 int separator_string_p (CONST char *s);
32 void get_gui_callback (Lisp_Object, Lisp_Object *, Lisp_Object *); 31 void get_gui_callback (Lisp_Object, Lisp_Object *, Lisp_Object *);
33 32
34 extern int popup_up_p; 33 extern int popup_up_p;
35 34
74 void gui_item_init (struct gui_item *pgui_item); 73 void gui_item_init (struct gui_item *pgui_item);
75 void gui_item_add_keyval_pair (struct gui_item *pgui_item, 74 void gui_item_add_keyval_pair (struct gui_item *pgui_item,
76 Lisp_Object key, Lisp_Object val); 75 Lisp_Object key, Lisp_Object val);
77 void gui_parse_item_keywords (Lisp_Object item, struct gui_item *pgui_item); 76 void gui_parse_item_keywords (Lisp_Object item, struct gui_item *pgui_item);
78 int gui_item_active_p (CONST struct gui_item *pgui_item); 77 int gui_item_active_p (CONST struct gui_item *pgui_item);
78 int gui_item_selected_p (CONST struct gui_item *pgui_item);
79 int gui_item_included_p (CONST struct gui_item *pgui_item, Lisp_Object into); 79 int gui_item_included_p (CONST struct gui_item *pgui_item, Lisp_Object into);
80 int gui_item_hash (Lisp_Object, struct gui_item*, int);
81 Lisp_Object mark_gui_item (struct gui_item* p, void (*markobj) (Lisp_Object));
80 unsigned int gui_item_display_flush_left (CONST struct gui_item *pgui_item, 82 unsigned int gui_item_display_flush_left (CONST struct gui_item *pgui_item,
81 char* buf, Bytecount buf_len); 83 char* buf, Bytecount buf_len);
82 unsigned int gui_item_display_flush_right (CONST struct gui_item *pgui_item, 84 unsigned int gui_item_display_flush_right (CONST struct gui_item *pgui_item,
83 char* buf, Bytecount buf_len); 85 char* buf, Bytecount buf_len);
84 86
85 #endif /* HAVE_POPUPS */ 87 /* this is mswindows biased but reasonably safe I think */
88 #define GUI_ITEM_ID_SLOTS 8
89 #define GUI_ITEM_ID_MIN(s) (s * 0x2000)
90 #define GUI_ITEM_ID_MAX(s) (0x1FFF + GUI_ITEM_ID_MIN (s))
91 #define GUI_ITEM_ID_BITS(x,s) (((x) & 0x1FFF) + GUI_ITEM_ID_MIN (s))
86 92
87 #endif /* _XEMACS_GUI_H_ */ 93 #endif /* _XEMACS_GUI_H_ */