2 * $XConsortium: MListP.h,v 1.12 89/12/11 15:09:04 kit Exp $
4 * Copyright 1989 Massachusetts Institute of Technology
6 * Permission to use, copy, modify, distribute, and sell this software and its
7 * documentation for any purpose is hereby granted without fee, provided that
8 * the above copyright notice appear in all copies and that both that
9 * copyright notice and this permission notice appear in supporting
10 * documentation, and that the name of M.I.T. not be used in advertising or
11 * publicity pertaining to distribution of the software without specific,
12 * written prior permission. M.I.T. makes no representations about the
13 * suitability of this software for any purpose. It is provided "as is"
14 * without express or implied warranty.
16 * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
17 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
18 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
20 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
21 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23 * Author: Chris D. Peterson, MIT X Consortium
28 * MListP.h - Private definitions for MList widget
30 * This is the MList widget, it is useful to display a list, without the
31 * overhead of having a widget for each item in the list. It allows
32 * the user to select an item in a list and notifies the application through
33 * a callback function.
36 * By: Chris D. Peterson
37 * MIT - Project Athena
43 /***********************************************************************
45 * MList Widget Private Data
47 ***********************************************************************/
49 #include <X11/Xaw/SimpleP.h>
52 #define NO_HIGHLIGHT XAW_LIST_NONE
53 #define OUT_OF_RANGE -1
56 /* New fields for the MList widget class record */
58 typedef struct {int foo;} MListClassPart;
60 /* Full class record declaration */
61 typedef struct _MListClassRec {
62 CoreClassPart core_class;
63 SimpleClassPart simple_class;
64 MListClassPart list_class;
67 extern MListClassRec mlistClassRec;
69 /* New fields for the MList widget record */
73 Dimension internal_width,
82 int nitems; /* number of items in the list. */
85 XtCallbackList callback;
89 int *is_highlighted,/* set to the items currently highlighted. */
90 nhighlighted, /* number of items hightlighted */
91 highlight, /*set to the item that should be highlighted.*/
92 col_width, /* width of each column. */
93 row_height, /* height of each row. */
94 nrows, /* number of rows in the list. */
95 ncols; /* number of columns in the list. */
96 GC normgc, /* a couple o' GC's. */
98 graygc; /* used when inactive. */
103 /****************************************************************
105 * Full instance record declaration
107 ****************************************************************/
109 typedef struct _MListRec {
115 #endif /* _XawMListP_h */