]> andersk Git - moira.git/blame - clients/cluster/MListP.h
Diane Delgado's changes for a fixed table-locking order
[moira.git] / clients / cluster / MListP.h
CommitLineData
3a3bd871 1/*
2 * $XConsortium: MListP.h,v 1.12 89/12/11 15:09:04 kit Exp $
3 *
4 * Copyright 1989 Massachusetts Institute of Technology
5 *
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.
15 *
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.
22 *
23 * Author: Chris D. Peterson, MIT X Consortium
24 */
25
26
27/*
28 * MListP.h - Private definitions for MList widget
29 *
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.
34 *
35 * Created: 8/13/88
36 * By: Chris D. Peterson
37 * MIT - Project Athena
38 */
39
40#ifndef _XawMListP_h
41#define _XawMListP_h
42
43/***********************************************************************
44 *
45 * MList Widget Private Data
46 *
47 ***********************************************************************/
48
49#include <X11/Xaw/SimpleP.h>
50#include "MList.h"
51
52#define NO_HIGHLIGHT XAW_LIST_NONE
53#define OUT_OF_RANGE -1
54#define OKAY 0
55
56/* New fields for the MList widget class record */
57
58typedef struct {int foo;} MListClassPart;
59
60/* Full class record declaration */
61typedef struct _MListClassRec {
62 CoreClassPart core_class;
63 SimpleClassPart simple_class;
64 MListClassPart list_class;
65} MListClassRec;
66
67extern MListClassRec mlistClassRec;
68
69/* New fields for the MList widget record */
70typedef struct {
71 /* resources */
72 Pixel foreground;
73 Dimension internal_width,
74 internal_height,
75 column_space,
76 row_space;
77 int default_cols;
78 Boolean force_cols,
79 paste,
80 vertical_cols;
81 int longest;
82 int nitems; /* number of items in the list. */
83 XFontStruct *font;
84 String * list;
85 XtCallbackList callback;
86
87 /* private state */
88
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. */
97 revgc,
98 graygc; /* used when inactive. */
99
100} MListPart;
101
102
103/****************************************************************
104 *
105 * Full instance record declaration
106 *
107 ****************************************************************/
108
109typedef struct _MListRec {
110 CorePart core;
111 SimplePart simple;
112 MListPart list;
113} MListRec;
114
115#endif /* _XawMListP_h */
This page took 0.08562 seconds and 5 git commands to generate.