48
|
1 /* vi:set ts=8 sts=4 sw=4:
|
|
2 *
|
|
3 * VIM - Vi IMproved by Bram Moolenaar
|
|
4 *
|
|
5 * Do ":help uganda" in Vim to read copying and usage conditions.
|
|
6 * Do ":help credits" in Vim to see a list of people who contributed.
|
|
7 * See README.txt for an overview of the Vim source code.
|
|
8 */
|
|
9 /*
|
|
10 *
|
|
11 * (C) 2002,2005 by Marcin Dalecki <martin@dalecki.de>
|
|
12 *
|
|
13 * MARCIN DALECKI ASSUMES NO RESPONSIBILITY FOR THE USE OR INABILITY TO USE ANY
|
|
14 * OF THIS SOFTWARE . THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
|
|
15 * KIND, AND MARCIN DALECKI EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES,
|
|
16 * INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
17 * FITNESS FOR A PARTICULAR PURPOSE.
|
|
18 */
|
|
19
|
|
20 #ifndef EnhancedB_H
|
|
21 #define EnhancedB_H
|
|
22
|
|
23 /*
|
|
24 * New resources for the Extended Pushbutton widget
|
|
25 */
|
|
26
|
|
27 #ifndef XmNshift
|
|
28 # define XmNshift "shift"
|
|
29 #endif
|
|
30 #ifndef XmCShift
|
|
31 # define XmCShift "Shift"
|
|
32 #endif
|
|
33
|
|
34 #ifndef XmNlabelLocation
|
|
35 # define XmNlabelLocation "labelLocation"
|
|
36 #endif
|
|
37 #ifndef XmCLocation
|
|
38 # define XmCLocation "Location"
|
|
39 #endif
|
|
40
|
|
41 #ifndef XmNpixmapData
|
|
42 # define XmNpixmapData "pixmapData"
|
|
43 #endif
|
|
44
|
|
45 #ifndef XmNpixmapFile
|
|
46 # define XmNpixmapFile "pixmapFile"
|
|
47 #endif
|
|
48
|
|
49 /*
|
|
50 * Constants for labelLocation.
|
|
51 */
|
147
|
52 #ifdef HAVE_XM_JOINSIDET_H
|
48
|
53 # include <Xm/JoinSideT.h>
|
|
54 #else
|
|
55 # define XmLEFT 1
|
|
56 # define XmRIGHT 2
|
|
57 # define XmTOP 3
|
|
58 # define XmBOTTOM 4
|
|
59 #endif
|
|
60
|
|
61 #define XmIsEnhancedButton(w) XtIsSubclass(w, xmEnhancedButtonWidgetClass)
|
|
62
|
|
63 /*
|
1206
|
64 * Convenience creation function.
|
48
|
65 */
|
|
66 extern Widget XgCreateEPushButtonWidget(Widget, char *, ArgList, Cardinal);
|
|
67
|
|
68 extern WidgetClass xmEnhancedButtonWidgetClass;
|
|
69 typedef struct _XmEnhancedButtonClassRec *XmEnhancedButtonWidgetClass;
|
|
70 typedef struct _XmEnhancedButtonRec *XmEnhancedButtonWidget;
|
|
71
|
|
72 #endif
|