2 * $XConsortium: ListP.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 * ListP.h - Private definitions for List widget
30 * This is the List 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 * List Widget Private Data
47 ***********************************************************************/
49 #include <./Xaw3_1SimpleP.h>
50 #include <./Xaw3_1List.h>
52 #define NO_HIGHLIGHT XAW_LIST_NONE
53 #define OUT_OF_RANGE -1
56 /* New fields for the List widget class record */
58 typedef struct {int foo
;} ListClassPart
;
60 /* Full class record declaration */
61 typedef struct _ListClassRec
{
62 CoreClassPart core_class
;
63 SimpleClassPart simple_class
;
64 ListClassPart list_class
;
67 extern ListClassRec listClassRec
;
69 /* New fields for the List 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 item currently highlighted. */
90 highlight
, /*set to the item that should be highlighted.*/
91 col_width
, /* width of each column. */
92 row_height
, /* height of each row. */
93 nrows
, /* number of rows in the list. */
94 ncols
; /* number of columns in the list. */
95 GC normgc
, /* a couple o' GC's. */
97 graygc
; /* used when inactive. */
102 /****************************************************************
104 * Full instance record declaration
106 ****************************************************************/
108 typedef struct _ListRec
{
114 #endif /* _XawListP_h */