1
/* $Xorg: ListP.h,v 1.4 2001/02/09 02:03:44 xorgcvs Exp $ */
4
Copyright 1989, 1994, 1998 The Open Group
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
12
The above copyright notice and this permission notice shall be included in
13
all copies or substantial portions of the Software.
15
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
Except as contained in this notice, the name of The Open Group shall not be
23
used in advertising or otherwise to promote the sale, use or other dealings
24
in this Software without prior written authorization from The Open Group.
26
/* $XFree86: xc/lib/Xaw/ListP.h,v 1.9 2001/12/14 19:54:40 dawes Exp $ */
30
* This is a List widget. It allows the user to select an item in a list and
31
* notifies the application through a callback function.
34
* By: Chris D. Peterson
35
* MIT - Project Athena
42
* List Widget Private Data
44
#include <X11/Xaw/SimpleP.h>
45
#include <X11/Xaw/List.h>
47
#define NO_HIGHLIGHT XAW_LIST_NONE
48
#define OUT_OF_RANGE -1
51
/* New fields for the List widget class */
56
/* Full class record */
57
typedef struct _ListClassRec {
58
CoreClassPart core_class;
59
SimpleClassPart simple_class;
60
ListClassPart list_class;
63
extern ListClassRec listClassRec;
65
/* New fields for the List widget */
69
Dimension internal_width; /* if not 3d, user sets directly */
70
Dimension internal_height;
71
Dimension column_space; /* half of *_space is add on
73
Dimension row_space; /* each item's text bounding box
74
half added to longest for right */
78
Boolean vertical_cols;
79
int longest; /* in pixels */
82
XFontSet fontset; /* Sheeran, Omron KK, 93/03/05 */
83
String *list; /* for i18n, always in multibyte
85
XtCallbackList callback;
88
int is_highlighted; /* set to the item currently
90
int highlight; /* set to the item that should be
92
int col_width; /* width of each column */
93
int row_height; /* height of each row */
94
int nrows; /* number of rows in the list */
95
int ncols; /* number of columns in the list */
99
int freedoms; /* flags for resizing height
103
Boolean show_current;
104
char pad1[(sizeof(XtPointer) - sizeof(Boolean)) +
105
(sizeof(XtPointer) - sizeof(int))];
106
XtPointer pad2[2]; /* for future use and keep binary compatability */
111
/* Full instance record */
112
typedef struct _ListRec {
118
#endif /* _XawListP_h */