Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / lib / DtHelp / XUICreateI.h
1 /* $XConsortium: XUICreateI.h /main/10 1996/03/21 15:38:59 rcs $ */
2 /************************************<+>*************************************
3  ****************************************************************************
4  **
5  **   File:        XUICreateI.h
6  **
7  **   Project:     Cde Help System
8  **
9  **   Description: Internal file for XUICreate.c
10  **
11  ****************************************************************************
12  ************************************<+>*************************************/
13 /*
14  * (c) Copyright 1996 Digital Equipment Corporation.
15  * (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992,
16                  1993, 1994, 1996 Hewlett-Packard Company.
17  * (c) Copyright 1993, 1994, 1996 International Business Machines Corp.
18  * (c) Copyright 1993, 1994, 1996 Sun Microsystems, Inc.
19  * (c) Copyright 1993, 1994, 1996 Novell, Inc. 
20  * (c) Copyright 1996 FUJITSU LIMITED.
21  * (c) Copyright 1996 Hitachi.
22  */
23
24 #ifndef _DtHelpCreateI_h
25 #define _DtHelpCreateI_h
26
27 #include "Dt/CanvasP.h"
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 /*****************************************************************************
33  *                 Defines
34  *****************************************************************************/
35 /*
36  * scroll bar flags
37  */
38 #define _DtHelpNONE         0
39 #define _DtHelpSTATIC       1
40 #define _DtHelpAS_NEEDED    2
41
42 #define _DtHelpVERTICAL_SCROLLBAR               0
43 #define _DtHelpHORIZONTAL_SCROLLBAR     1
44
45 /*
46  * scroll bar macros
47  */
48 #define _DtHelpSET_AS_NEEDED(x,y)               ((x) | (1 << y))
49 #define _DtHelpIS_AS_NEEDED(x, y)               ((x) & (1 << y))
50
51 /*****************************************************************************
52  *                 Semi-Public Routines
53  *****************************************************************************/
54 extern  void    __DtHelpInitializeFontList (
55                         Display         *dpy,
56                         XFontStruct     *default_font);
57
58 /*****************************************************************************
59  *                 Public Routines
60  *****************************************************************************/
61 extern  XtPointer       _DtHelpCreateDisplayArea (
62                                 Widget  parent,
63                                 char   *name,
64                                 short   vert_flag,
65                                 short   horiz_flag,
66                                 Boolean marker_flag,
67                                 int     rows,
68                                 int     columns,
69                                 void    (*hyperTextCB)(),
70                                 void    (*resizeCB)(),
71                                 int     (*exec_ok_routine)(),
72                                 XtPointer client_data,
73                                 XmFontList  default_list );
74
75 extern  XtPointer       _DtHelpCreateOutputArea (
76                                 Widget  parent,
77                                 char   *name,
78                                 short   vert_flag,
79                                 short   horiz_flag,
80                                 Boolean marker_flag,
81                                 _DtCvValue honor_size,
82                                 _DtCvRenderType render_type,
83                                 Dimension       width,
84                                 Dimension       height,
85                                 unsigned short media_resolution,
86                                 void    (*hyperTextCB)(),
87                                 void    (*resizeCB)(),
88                                 int     (*exec_ok_routine)(),
89                                 XtPointer client_data,
90                                 XmFontList  default_list );
91
92 #ifdef __cplusplus
93 }
94 #endif
95 #endif /* _DtHelpCreateI_h */