2
* Copyright 1990, 1992 -- Integrated Computer Solutions, Inc.
6
* AUTHOR: Chris D. Peterson
13
#if defined(VMS) || defined(__VMS)
14
#include <X11/apienvset.h>
17
/************************************************************
19
*************************************************************/
20
#include <Xm/ManagerP.h>
21
#include <Xm/IconBox.h>
27
/************************************************************
28
* TYPEDEFS AND DEFINES
29
*************************************************************/
33
* Hack to get around naming conventions. The XmConstraintPartOffset macro
34
* requires our contraint part structure to have this name
36
#define XmIconBoxConstraintPart IconInfo
39
* Access macros for widget instance fields
41
#define XmIconBox_min_v_cells(w) (((XmIconBoxWidget)(w))->box.min_v_cells)
42
#define XmIconBox_min_h_cells(w) (((XmIconBoxWidget)(w))->box.min_h_cells)
43
#define XmIconBox_v_margin(w) (((XmIconBoxWidget)(w))->box.v_margin)
44
#define XmIconBox_h_margin(w) (((XmIconBoxWidget)(w))->box.h_margin)
45
#define XmIconBox_min_cell_width(w) (((XmIconBoxWidget)(w))->box.min_cell_width)
46
#define XmIconBox_min_cell_height(w) (((XmIconBoxWidget)(w))->box.min_cell_height)
47
#define XmIconBox_cell_width(w) (((XmIconBoxWidget)(w))->box.cell_width)
48
#define XmIconBox_cell_height(w) (((XmIconBoxWidget)(w))->box.cell_height)
50
#define XmIconBoxC_cell_x(w) (((XmIconBoxConstraintsRec*)((w)->core.constraints))->icon.cell_x)
51
#define XmIconBoxC_cell_y(w) (((XmIconBoxConstraintsRec*)((w)->core.constraints))->icon.cell_y)
52
#define XmIconBoxC_pref_width(w) (((XmIconBoxConstraintsRec*)((w)->core.constraints))->icon.pref_width)
53
#define XmIconBoxC_pref_height(w) (((XmIconBoxConstraintsRec*)((w)->core.constraints))->icon.pref_height)
55
/************************************************************
57
*************************************************************/
59
/************************************************************
61
*************************************************************/
64
XtPointer extension; /* Just in case we need it later. */
67
typedef struct _XmIconBoxClassRec {
68
CoreClassPart core_class;
69
CompositeClassPart composite_class;
70
ConstraintClassPart constraint_class;
71
XmManagerClassPart manager_class;
72
XmIconBoxClassPart box_class;
78
Dimension min_v_cells; /* Default number of cells in the vert dir. */
79
Dimension min_h_cells; /* Default number of cells in the horiz dir. */
80
Dimension v_margin; /* Amount of space to leave between cells */
81
Dimension h_margin; /* and window edges. */
82
Dimension min_cell_width; /* Minimum width of the cells. */
83
Dimension min_cell_height; /* Minimum height of the cells. */
87
Dimension cell_width; /* Width and height of all cells. */
88
Dimension cell_height;
93
typedef struct _XmIconBoxRec {
95
CompositePart composite;
96
ConstraintPart constraint;
97
XmManagerPart manager;
101
typedef struct _IconInfo {
107
short cell_x; /* X location of this icon in cell space. */
108
short cell_y; /* Y location of this icon in cell space. */
114
Dimension pref_width, pref_height; /* The preferred size of this widget. */
117
typedef struct _XmIconBoxConstraintsRec {
118
XmManagerConstraintPart manager;
120
} XmIconBoxConstraintsRec, *XmIconBoxConstraints;
122
/************************************************************
123
* EXTERNAL DECLARATIONS
124
*************************************************************/
126
extern XmIconBoxClassRec xmIconBoxClassRec;
128
/************************************************************
129
* STATIC DECLARATIONS
130
*************************************************************/
133
} /* Closes scope of 'extern "C"' declaration */
136
#if defined(VMS) || defined(__VMS)
137
#include <X11/apienvrst.h>
140
#endif /* _XmIconBoxP_h */