summaryrefslogtreecommitdiff
path: root/include/X11/Xaw/ListP.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/X11/Xaw/ListP.h')
-rw-r--r--include/X11/Xaw/ListP.h91
1 files changed, 47 insertions, 44 deletions
diff --git a/include/X11/Xaw/ListP.h b/include/X11/Xaw/ListP.h
index f492559..12915f0 100644
--- a/include/X11/Xaw/ListP.h
+++ b/include/X11/Xaw/ListP.h
@@ -23,11 +23,10 @@ Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
*/
+/* $XFree86: xc/lib/Xaw/ListP.h,v 1.9 2001/12/14 19:54:40 dawes Exp $ */
/*
- * ListP.h - Private definitions for List widget
- *
* This is a List widget. It allows the user to select an item in a list and
* notifies the application through a callback function.
*
@@ -39,12 +38,9 @@ in this Software without prior written authorization from The Open Group.
#ifndef _XawListP_h
#define _XawListP_h
-/***********************************************************************
- *
+/*
* List Widget Private Data
- *
- ***********************************************************************/
-
+ */
#include <X11/Xaw/SimpleP.h>
#include <X11/Xaw/List.h>
@@ -52,11 +48,12 @@ in this Software without prior written authorization from The Open Group.
#define OUT_OF_RANGE -1
#define OKAY 0
-/* New fields for the List widget class record */
-
-typedef struct {int foo;} ListClassPart;
+/* New fields for the List widget class */
+typedef struct {
+ XtPointer extension;
+} ListClassPart;
-/* Full class record declaration */
+/* Full class record */
typedef struct _ListClassRec {
CoreClassPart core_class;
SimpleClassPart simple_class;
@@ -65,47 +62,53 @@ typedef struct _ListClassRec {
extern ListClassRec listClassRec;
-/* New fields for the List widget record */
+/* New fields for the List widget */
typedef struct {
/* resources */
- Pixel foreground;
- Dimension internal_width, /* if not 3d, user sets directly. */
- internal_height,
- column_space, /* half of *_space is add on top/bot/left of*/
- row_space; /* each item's text bounding box. half added to longest for right */
- int default_cols;
- Boolean force_cols,
- paste,
- vertical_cols;
- int longest; /* in pixels */
- int nitems; /* number of items in the list. */
+ Pixel foreground;
+ Dimension internal_width; /* if not 3d, user sets directly */
+ Dimension internal_height;
+ Dimension column_space; /* half of *_space is add on
+ top/bot/left of */
+ Dimension row_space; /* each item's text bounding box
+ half added to longest for right */
+ int default_cols;
+ Boolean force_cols;
+ Boolean paste;
+ Boolean vertical_cols;
+ int longest; /* in pixels */
+ int nitems;
XFontStruct *font;
- XFontSet fontset; /* Sheeran, Omron KK, 93/03/05 */
- String * list; /* for i18n, always in multibyte format */
+ XFontSet fontset; /* Sheeran, Omron KK, 93/03/05 */
+ String *list; /* for i18n, always in multibyte
+ format */
XtCallbackList callback;
- /* private state */
- int is_highlighted, /* set to the item currently highlighted. */
- highlight, /* set to the item that should be highlighted.*/
- col_width, /* width of each column. */
- row_height, /* height of each row. */
- nrows, /* number of rows in the list. */
- ncols; /* number of columns in the list. */
- GC normgc, /* a couple of GC's. */
- revgc,
- graygc; /* used when inactive. */
-
- int freedoms; /* flags for resizing height and width */
-
+ /* private */
+ int is_highlighted; /* set to the item currently
+ highlighted */
+ int highlight; /* set to the item that should be
+ highlighted */
+ int col_width; /* width of each column */
+ int row_height; /* height of each row */
+ int nrows; /* number of rows in the list */
+ int ncols; /* number of columns in the list */
+ GC normgc;
+ GC revgc;
+ GC graygc;
+ int freedoms; /* flags for resizing height
+ and width */
+#ifndef OLDXAW
+ int selected;
+ Boolean show_current;
+ char pad1[(sizeof(XtPointer) - sizeof(Boolean)) +
+ (sizeof(XtPointer) - sizeof(int))];
+ XtPointer pad2[2]; /* for future use and keep binary compatability */
+#endif
} ListPart;
-/****************************************************************
- *
- * Full instance record declaration
- *
- ****************************************************************/
-
+/* Full instance record */
typedef struct _ListRec {
CorePart core;
SimplePart simple;