Merge branch 'master' into cde-next
[oweals/cde.git] / cde / lib / DtHelp / XUICreateI.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these libraries and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: XUICreateI.h /main/10 1996/03/21 15:38:59 rcs $ */
24 /************************************<+>*************************************
25  ****************************************************************************
26  **
27  **   File:        XUICreateI.h
28  **
29  **   Project:     Cde Help System
30  **
31  **   Description: Internal file for XUICreate.c
32  **
33  ****************************************************************************
34  ************************************<+>*************************************/
35 /*
36  * (c) Copyright 1996 Digital Equipment Corporation.
37  * (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992,
38                  1993, 1994, 1996 Hewlett-Packard Company.
39  * (c) Copyright 1993, 1994, 1996 International Business Machines Corp.
40  * (c) Copyright 1993, 1994, 1996 Sun Microsystems, Inc.
41  * (c) Copyright 1993, 1994, 1996 Novell, Inc. 
42  * (c) Copyright 1996 FUJITSU LIMITED.
43  * (c) Copyright 1996 Hitachi.
44  */
45
46 #ifndef _DtHelpCreateI_h
47 #define _DtHelpCreateI_h
48
49 #include "Dt/CanvasP.h"
50
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
54 /*****************************************************************************
55  *                 Defines
56  *****************************************************************************/
57 /*
58  * scroll bar flags
59  */
60 #define _DtHelpNONE         0
61 #define _DtHelpSTATIC       1
62 #define _DtHelpAS_NEEDED    2
63
64 #define _DtHelpVERTICAL_SCROLLBAR               0
65 #define _DtHelpHORIZONTAL_SCROLLBAR     1
66
67 /*
68  * scroll bar macros
69  */
70 #define _DtHelpSET_AS_NEEDED(x,y)               ((x) | (1 << y))
71 #define _DtHelpIS_AS_NEEDED(x, y)               ((x) & (1 << y))
72
73 /*****************************************************************************
74  *                 Semi-Public Routines
75  *****************************************************************************/
76 extern  void    __DtHelpInitializeFontList (
77                         Display         *dpy,
78                         XFontStruct     *default_font);
79
80 /*****************************************************************************
81  *                 Public Routines
82  *****************************************************************************/
83 extern  XtPointer       _DtHelpCreateDisplayArea (
84                                 Widget  parent,
85                                 char   *name,
86                                 short   vert_flag,
87                                 short   horiz_flag,
88                                 Boolean marker_flag,
89                                 int     rows,
90                                 int     columns,
91                                 void    (*hyperTextCB)(),
92                                 void    (*resizeCB)(),
93                                 int     (*exec_ok_routine)(),
94                                 XtPointer client_data,
95                                 XmFontList  default_list );
96
97 extern  XtPointer       _DtHelpCreateOutputArea (
98                                 Widget  parent,
99                                 char   *name,
100                                 short   vert_flag,
101                                 short   horiz_flag,
102                                 Boolean marker_flag,
103                                 _DtCvValue honor_size,
104                                 _DtCvRenderType render_type,
105                                 Dimension       width,
106                                 Dimension       height,
107                                 unsigned short media_resolution,
108                                 void    (*hyperTextCB)(),
109                                 void    (*resizeCB)(),
110                                 int     (*exec_ok_routine)(),
111                                 XtPointer client_data,
112                                 XmFontList  default_list );
113
114 #ifdef __cplusplus
115 }
116 #endif
117 #endif /* _DtHelpCreateI_h */