1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
|
/*
* This widget manages one child widget, placing a decorative border
* around it. The frame may have an optional title, which will be placed
* at the top, breaking the decoration. The title may be any widget, but
* is normally some sort of label widget.
*
* Border styles are as follow:
*
* None no border
* Solid solid border in foreground color
* Raised raised 3d look
* Lowered pressed 3d look
* Ridge raised ridge
* Groove indented groove
* Trough indented groove with flat bottom.
*/
#ifndef _MwFrame_h
#define _MwFrame_h
#include <X11/Xmu/Converters.h>
/***********************************************************************
*
* MwFrame Widget (subclass of CompositeClass)
*
***********************************************************************/
/* Parameters:
Name Class RepType Default Value
---- ----- ------- -------------
shadowType ShadowType ShadowType solid
shadowWidth ShadowWidth Dimension
foreground Foreground Pixel XtDefaultForeground
title Title Widget NULL
justify Justify XtJustify left
marginWidth Margin Dimension 0
marginHeight Margin Dimension 0
allowResize AllowResize Boolean True
beNiceToColormap BeNiceToColormap Boolean False
topShadowContrast TopShadowContrast int 20
bottomShadowContrast BottomShadowContrast int 40
background Background Pixel XtDefaultBackground
border BorderColor Pixel XtDefaultForeground
borderWidth BorderWidth Dimension 0
destroyCallback Callback Pointer NULL
mappedWhenManaged MappedWhenManaged Boolean True
width Width Dimension 0
height Height Dimension 0
x Position Position 0
y Position Position 0
Notes:
1 internalWidth, internalHeight specify the margins around the child widget
2 allowResize specifies if child widget is allowed to resize itself.
3 BeNiceToColormap causes the MwFrame widget to use fewer colors.
*/
/* New fields */
#ifndef XtNtitle
#define XtNtitle "title"
#define XtCTitle "Title"
#endif
#ifndef XtNshadowType
#define XtNshadowType "shadowType"
#define XtCShadowType "ShadowType"
#define XtRShadowType "ShadowType"
#endif
#ifndef XtNallowResize
#define XtNallowResize "allowResize"
#endif
#ifndef XtCAllowResize
#define XtCAllowResize "AllowResize"
#endif
#ifndef XtNmarginWidth
#define XtNmarginWidth "marginWidth"
#define XtNmarginHeight "marginHeight"
#endif
#ifndef XtNshadowWidth
#define XtNshadowWidth "shadowWidth"
#define XtCShadowWidth "ShadowWidth"
#define XtNtopShadowPixel "topShadowPixel"
#define XtCTopShadowPixel "TopShadowPixel"
#define XtNbottomShadowPixel "bottomShadowPixel"
#define XtCBottomShadowPixel "BottomShadowPixel"
#define XtNtopShadowContrast "topShadowContrast"
#define XtCTopShadowContrast "TopShadowContrast"
#define XtNbottomShadowContrast "bottomShadowContrast"
#define XtCBottomShadowContrast "BottomShadowContrast"
#endif
#ifndef XtNinsensitiveContrast
#define XtNinsensitiveContrast "insensitiveContrast"
#define XtCInsensitiveContrast "InsensitiveContrast"
#endif
#ifndef XtNtopShadowPixmap
#define XtNtopShadowPixmap "topShadowPixmap"
#define XtCTopShadowPixmap "TopShadowPixmap"
#define XtNbottomShadowPixmap "bottomShadowPixmap"
#define XtCBottomShadowPixmap "BottomShadowPixmap"
#endif
#ifndef XtNbeNiceToColormap
#define XtNbeNiceToColormap "beNiceToColormap"
#define XtCBeNiceToColormap "BeNiceToColormap"
#define XtNbeNiceToColourmap "beNiceToColormap"
#define XtCBeNiceToColourmap "BeNiceToColormap"
#endif
typedef enum { Blank, /* no border */
Solid, /* solid border in foreground color */
Raised, /* raised 3d look */
Lowered, /* pressed 3d look */
Ridge, /* raised ridge */
Groove, /* indented groove */
Plateau, /* raised ridge with flat top */
Trough} /* indented groove with flat bottom */
XtShadowType ;
/* Class record constants */
extern WidgetClass mwFrameWidgetClass;
typedef struct _MwFrameClassRec *MwFrameWidgetClass;
typedef struct _MwFrameRec *MwFrameWidget;
#endif /* _MwFrame_h */
|