1 /*
2 **
3 ** Frame.h
4 **
5 ** Copyright (C) 2004 Jose E. Marchesi
6 **
7 ** This program is free software; you can redistribute it and/or modify
8 ** it under the terms of the GNU General Public License as published by
9 ** the Free Software Foundation; either version 3 of the License, or
10 ** (at your option) any later version.
11 **
12 ** This program is distributed in the hope that it will be useful,
13 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 ** GNU General Public License for more details.
16 **
17 ** You should have received a copy of the GNU General Public License
18 ** along with GNU gv; see the file COPYING.  If not, write to
19 ** the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 ** Boston, MA 02111-1307, USA.
21 **
22 ** Author:   Jose E. Marchesi (jemarch@gnu.org)
23 **           GNU Project
24 **
25 */
26 
27 #ifndef _XawFrame_h
28 #define _XawFrame_h
29 
30 #include "paths.h"
31 #include INC_X11(Xfuncproto.h)
32 
33 #define XtNshadowWidth "shadowWidth"
34 #define XtCShadowWidth "ShadowWidth"
35 #define XtNtopShadowPixel "topShadowPixel"
36 #define XtCTopShadowPixel "TopShadowPixel"
37 #define XtNbottomShadowPixel "bottomShadowPixel"
38 #define XtCBottomShadowPixel "BottomShadowPixel"
39 #define XtNuserData "userData"
40 #define XtCUserData "UserData"
41 
42 typedef enum {
43   XawRAISED,
44   XawSUNKEN,
45   XawCHISELED,
46   XawLEDGED,
47   XawFrameMassiveRaised
48 } XawFrameType;
49 
50 #define XtNframeType "frameType"
51 #define XtCFrameType "FrameType"
52 #define XtRFrameType "FrameType"
53 
54 #ifndef XtNhSpace
55 #define XtNhSpace "hSpace"
56 #endif
57 #ifndef XtNvSpace
58 #define XtNvSpace "vSpace"
59 #endif
60 #ifndef XtCHSpace
61 #define XtCHSpace "HSpace"
62 #endif
63 #ifndef XtCVSpace
64 #define XtCVSpace "VSpace"
65 #endif
66 
67 /* Class record constants */
68 
69 extern WidgetClass frameWidgetClass;
70 
71 typedef struct _FrameClassRec *FrameWidgetClass;
72 typedef struct _FrameRec      *FrameWidget;
73 
74 _XFUNCPROTOBEGIN
75 
76 extern Boolean                  FrameConvertStringToFrameType (
77     Display*		/* dpy */,
78     XrmValue*		/* args */,
79     Cardinal*		/* num_args */,
80     XrmValuePtr		/* fromVal */,
81     XrmValuePtr		/* toVal */,
82     XtPointer*		/* converter_data */
83 );
84 
85 extern void                     FrameDrawFrame (
86     Widget,        /* widget */
87     int,           /* x */
88     int,           /* y */
89     int,           /* width */
90     int,           /* height */
91     XawFrameType,  /* frame_type */
92     int,           /* shadow width */
93     GC,            /* light GC */
94     GC             /* dark GC */
95 );
96 
97 _XFUNCPROTOEND
98 
99 #endif /* _XawFrame_h */
100