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
|
/*
* MwFrameP.h - Private definitions for MwFrame widget
*
*/
#ifndef _MwFrameP_h
#define _MwFrameP_h
/***********************************************************************
*
* MwFrame Widget Private Data
*
***********************************************************************/
#include <X11/IntrinsicP.h>
#include "MwFrame.h"
/* New fields for the MwFrame widget class record */
typedef struct {XtPointer extension;} MwFrameClassPart;
/* Full class record declaration */
typedef struct _MwFrameClassRec {
CoreClassPart core_class;
CompositeClassPart composite_class;
MwFrameClassPart frame_class;
} MwFrameClassRec;
extern MwFrameClassRec mwFrameClassRec;
/****************************************************************
*
* instance record declaration
*
****************************************************************/
/* New fields for the MwFrame widget record */
typedef struct {
/* resources */
XtShadowType type ;
Dimension shadowWidth ;
Pixel foreground ;
Widget title ;
XtJustify justify ;
Dimension marginHeight, marginWidth ;
Boolean allowResize ;
Boolean be_nice_to_cmap ;
int top_shadow_contrast ;
int bot_shadow_contrast ;
/* private state */
GC foregroundGC ; /* for solid borders */
GC topGC ;
GC botGC ;
Boolean needs_layout ;
Position tx,ty ; /* title posn */
Position sy,sh ; /* shadow position, height */
} MwFramePart;
typedef struct _MwFrameRec {
CorePart core;
CompositePart composite;
MwFramePart frame;
} MwFrameRec;
#endif /* _MwFrameP_h */
|