Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / lib / DtWidget / ViewP.h
1 /* $XConsortium: ViewP.h /main/3 1995/10/26 09:35:17 rswiston $ */
2 /**---------------------------------------------------------------------
3 ***     
4 ***     file:           ViewP.h
5 ***
6 ***     project:        MotifPlus Widgets
7 ***
8 ***     description:    Private include file for DtView class.
9 ***     
10 ***     
11 ***                     (c) Copyright 1990 by Hewlett-Packard Company.
12 ***
13 ***
14 ***-------------------------------------------------------------------*/
15
16
17 #ifndef _DtViewP_h
18 #define _DtViewP_h
19
20 #include <Xm/XmP.h>
21 #include <Xm/BulletinBP.h>
22 #include <Xm/FormP.h>
23 #include <Dt/View.h>
24
25
26
27 /*-------------------------------------------------------------
28 **      Class Structure
29 */
30
31 /*      Class Part
32 */
33 typedef struct _DtViewClassPart
34 {
35         caddr_t                 extension;
36 } DtViewClassPart;
37
38 /*      Full Class Record
39 */
40 typedef struct _DtViewClassRec
41 {
42         CoreClassPart           core_class;
43         CompositeClassPart      composite_class;
44         ConstraintClassPart     constraint_class;
45         XmManagerClassPart      manager_class;
46         XmBulletinBoardClassPart        bulletin_board_class;
47         XmFormClassPart         form_class;
48         DtViewClassPart view_class;
49 } DtViewClassRec;
50
51 /*      Actual Class
52 */
53 extern DtViewClassRec dtViewClassRec;
54
55
56
57 \f
58 /*-------------------------------------------------------------
59 **      Instance Structure
60 */
61
62 /*      Instance Part
63 */
64 typedef struct _DtViewPart
65 {
66         Dimension       width_increment;
67         Dimension       height_increment;
68         Dimension       left_inset;
69         Dimension       right_inset;
70         Dimension       top_inset;
71         Dimension       bottom_inset;
72         unsigned char   box_type;
73         Boolean         subpanel_unpost_on_select;
74         Boolean         subpanel_torn;
75 } DtViewPart;
76
77 /*      Full Instance Record
78 */
79 typedef struct _DtViewRec
80 {
81         CorePart                core;
82         CompositePart           composite;
83         ConstraintPart          constraint;
84         XmManagerPart           manager;
85         XmBulletinBoardPart     bulletin_board;
86         XmFormPart              form;
87         DtViewPart              view;
88 } DtViewRec;
89
90
91 /*-------------------------------------------------------------
92 **      Constraint Structure
93 */
94
95 /*      Constraint Part
96 */
97 typedef struct _DtViewConstraintPart
98 {
99         unsigned char   foo_bar;
100 } DtViewConstraintPart, * DtViewConstraint;
101
102 /*      Full Constraint Record
103 */
104 typedef struct _DtViewConstraintRec
105 {
106         XmManagerConstraintPart         manager_constraint;
107         XmFormConstraintPart            form_constraint;
108         DtViewConstraintPart    view_constraint;
109 } DtViewConstraintRec, * DtViewConstraintPtr;
110
111
112 /*-------------------------------------------------------------
113 **      Class and Instance Macros
114 */
115
116 /*      DtView Class Macros
117 */      
118
119 /*      DtView Instance Macros
120 */
121 #define M_BottomShadowColor(m)  (m -> manager.bottom_shadow_color)
122 #define M_TopShadowColor(m)     (m -> manager.top_shadow_color)
123 #define M_HighlightColor(m)     (m -> manager.highlight_color)
124 #define M_BackgroundPixmap(m)   (m -> core.background_pixmap)
125 #define M_LeftInset(m)          (m -> view.left_inset)
126 #define M_RightInset(m)         (m -> view.right_inset)
127 #define M_TopInset(m)           (m -> view.top_inset)
128 #define M_BottomInset(m)        (m -> view.bottom_inset)
129 #define M_BoxType(m)            (m -> view.box_type)
130 #define M_WidthIncrement(m)     (m -> view.width_increment)
131 #define M_HeightIncrement(m)    (m -> view.height_increment)
132
133
134 #endif /* _DtViewP_h */
135
136 /* DON'T ADD ANYTHING AFTER THIS #endif */