annotate src/gui.h @ 251:677f6a0ee643 r20-5b24

Import from CVS: tag r20-5b24
author cvs
date Mon, 13 Aug 2007 10:19:59 +0200
parents 557eaa0339bf
children b2472a1930f2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
1 /* Generic GUI code. (menubars, scrollbars, toolbars, dialogs)
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
2 Copyright (C) 1995 Board of Trustees, University of Illinois.
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
3 Copyright (C) 1995, 1996 Ben Wing.
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
4 Copyright (C) 1995 Sun Microsystems, Inc.
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
5
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
6 This file is part of XEmacs.
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
7
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
8 XEmacs is free software; you can redistribute it and/or modify it
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
9 under the terms of the GNU General Public License as published by the
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
10 Free Software Foundation; either version 2, or (at your option) any
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
11 later version.
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
12
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
13 XEmacs is distributed in the hope that it will be useful, but WITHOUT
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
16 for more details.
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
17
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
18 You should have received a copy of the GNU General Public License
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
19 along with XEmacs; see the file COPYING. If not, write to
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
20 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
21 Boston, MA 02111-1307, USA. */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
22
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
23 /* Synched up with: Not in FSF. */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
24
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
25 /* Written by kkm on 12/24/97 */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
26
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
27 #ifndef _XEMACS_GUI_H_
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
28 #define _XEMACS_GUI_H_
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
29
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
30 #ifdef HAVE_POPUPS
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
31 int separator_string_p (CONST char *s);
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
32 extern int popup_up_p;
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
33
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
34 /* This structure describes gui button,
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
35 menu item or submenu properties */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
36 struct gui_item
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
37 {
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
38 Lisp_Object name; /* String */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
39 Lisp_Object callback; /* Symbol or form */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
40 Lisp_Object suffix; /* String */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
41 Lisp_Object active; /* Form */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
42 Lisp_Object included; /* Form */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
43 Lisp_Object config; /* Anything EQable */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
44 Lisp_Object filter; /* Form */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
45 Lisp_Object style; /* Symbol */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
46 Lisp_Object selected; /* Form */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
47 Lisp_Object keys; /* String */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
48 };
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
49 #define GUI_ITEM_LAST_GCPROED keys
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
50 #define GUI_ITEM_GCPRO_COUNT \
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
51 (slot_offset(struct gui_item, GUI_ITEM_LAST_GCPROED) / sizeof(Lisp_Object) + 1)
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
52
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
53 void gui_item_init (struct gui_item *pgui_item);
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
54 void gui_item_add_keyval_pair (struct gui_item *pgui_item,
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
55 Lisp_Object key, Lisp_Object val);
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
56 void gui_parse_item_keywords (Lisp_Object item, struct gui_item *pgui_item);
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
57 int gui_item_active_p (CONST struct gui_item *pgui_item);
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
58 int gui_item_included_p (CONST struct gui_item *pgui_item, Lisp_Object into);
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
59 unsigned int gui_item_display_flush_left (CONST struct gui_item *pgui_item,
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
60 char* buf, unsigned int buf_len);
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
61 unsigned int gui_item_display_flush_right (CONST struct gui_item *pgui_item,
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
62 char* buf, unsigned int buf_len);
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 231
diff changeset
63
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
64 #endif /* HAVE_POPUPS */
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
65
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents:
diff changeset
66 #endif /* _XEMACS_GUI_H_ */