0df6c9b5852d2163e7f42ebe4b7d7513f2663a4f
[oweals/cde.git] / cde / lib / DtWidget / DialogBox.h
1 /* $XConsortium: DialogBox.h /main/4 1995/10/26 09:30:36 rswiston $ */
2 /**---------------------------------------------------------------------
3 ***     
4 ***     file:           DialogBox.h
5 ***
6 ***     project:        MotifPlus Widgets
7 ***
8 ***     description:    Public include file for DtDialogBox class.
9 ***     
10 ***     
11 ***                     (c) Copyright 1990 by Hewlett-Packard Company.
12 ***
13 ***
14 ***-------------------------------------------------------------------*/
15
16
17 #ifndef _DtDialogBox_h
18 #define _DtDialogBox_h
19
20 #include <Xm/Xm.h>
21 #include <Dt/DtStrDefs.h>
22
23 #ifndef DtIsDialogBox
24 #define DtIsDialogBox(w) XtIsSubclass(w, dtDialogBoxWidgetClass)
25 #endif /* XmIsDialogBox */
26
27
28 extern Widget _DtCreateDialogBox( 
29                         Widget parent,
30                         char *name,
31                         ArgList arglist,
32                         Cardinal argcount) ;
33 extern Widget __DtCreateDialogBoxDialog( 
34                         Widget ds_p,
35                         String name,
36                         ArgList db_args,
37                         Cardinal db_n) ;
38 extern Widget _DtDialogBoxGetButton( 
39                         Widget w,
40                         Cardinal pos) ;
41 extern Widget _DtDialogBoxGetWorkArea( 
42                         Widget w) ;
43
44
45 extern WidgetClass dtDialogBoxWidgetClass;
46
47 typedef struct _DtDialogBoxClassRec * DtDialogBoxWidgetClass;
48 typedef struct _DtDialogBoxRec      * DtDialogBoxWidget;
49
50
51 #define XmBUTTON        11
52
53
54 #define XmCR_DIALOG_BUTTON      100
55
56 typedef struct
57 {
58         int             reason;
59         XEvent *        event;
60         Cardinal        button_position;
61         Widget          button;
62 } DtDialogBoxCallbackStruct;
63
64
65 #endif /* _DtDialogBox_h */
66 /* DON'T ADD ANYTHING AFTER THIS #endif */