1 /* $XConsortium: ViewP.h /main/3 1995/10/26 09:35:17 rswiston $ */
2 /**---------------------------------------------------------------------
6 *** project: MotifPlus Widgets
8 *** description: Private include file for DtView class.
11 *** (c) Copyright 1990 by Hewlett-Packard Company.
14 ***-------------------------------------------------------------------*/
21 #include <Xm/BulletinBP.h>
27 /*-------------------------------------------------------------
33 typedef struct _DtViewClassPart
40 typedef struct _DtViewClassRec
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;
53 extern DtViewClassRec dtViewClassRec;
58 /*-------------------------------------------------------------
64 typedef struct _DtViewPart
66 Dimension width_increment;
67 Dimension height_increment;
69 Dimension right_inset;
71 Dimension bottom_inset;
72 unsigned char box_type;
73 Boolean subpanel_unpost_on_select;
74 Boolean subpanel_torn;
77 /* Full Instance Record
79 typedef struct _DtViewRec
82 CompositePart composite;
83 ConstraintPart constraint;
84 XmManagerPart manager;
85 XmBulletinBoardPart bulletin_board;
91 /*-------------------------------------------------------------
92 ** Constraint Structure
97 typedef struct _DtViewConstraintPart
99 unsigned char foo_bar;
100 } DtViewConstraintPart, * DtViewConstraint;
102 /* Full Constraint Record
104 typedef struct _DtViewConstraintRec
106 XmManagerConstraintPart manager_constraint;
107 XmFormConstraintPart form_constraint;
108 DtViewConstraintPart view_constraint;
109 } DtViewConstraintRec, * DtViewConstraintPtr;
112 /*-------------------------------------------------------------
113 ** Class and Instance Macros
116 /* DtView Class Macros
119 /* DtView Instance Macros
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)
134 #endif /* _DtViewP_h */
136 /* DON'T ADD ANYTHING AFTER THIS #endif */