2
0

XUICreateI.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. #ifndef _DtHelpCreateI_h
  46. #define _DtHelpCreateI_h
  47. #include "Dt/CanvasP.h"
  48. #ifdef __cplusplus
  49. extern "C" {
  50. #endif
  51. /*****************************************************************************
  52. * Defines
  53. *****************************************************************************/
  54. /*
  55. * scroll bar flags
  56. */
  57. #define _DtHelpNONE 0
  58. #define _DtHelpSTATIC 1
  59. #define _DtHelpAS_NEEDED 2
  60. #define _DtHelpVERTICAL_SCROLLBAR 0
  61. #define _DtHelpHORIZONTAL_SCROLLBAR 1
  62. /*
  63. * scroll bar macros
  64. */
  65. #define _DtHelpSET_AS_NEEDED(x,y) ((x) | (1 << y))
  66. #define _DtHelpIS_AS_NEEDED(x, y) ((x) & (1 << y))
  67. /*****************************************************************************
  68. * Semi-Public Routines
  69. *****************************************************************************/
  70. extern void __DtHelpInitializeFontList (
  71. Display *dpy,
  72. XFontStruct *default_font);
  73. /*****************************************************************************
  74. * Public Routines
  75. *****************************************************************************/
  76. extern XtPointer _DtHelpCreateDisplayArea (
  77. Widget parent,
  78. char *name,
  79. short vert_flag,
  80. short horiz_flag,
  81. Boolean marker_flag,
  82. int rows,
  83. int columns,
  84. void (*hyperTextCB)(),
  85. void (*resizeCB)(),
  86. int (*exec_ok_routine)(),
  87. XtPointer client_data,
  88. XmFontList default_list );
  89. extern XtPointer _DtHelpCreateOutputArea (
  90. Widget parent,
  91. char *name,
  92. short vert_flag,
  93. short horiz_flag,
  94. Boolean marker_flag,
  95. _DtCvValue honor_size,
  96. _DtCvRenderType render_type,
  97. Dimension width,
  98. Dimension height,
  99. unsigned short media_resolution,
  100. void (*hyperTextCB)(),
  101. void (*resizeCB)(),
  102. int (*exec_ok_routine)(),
  103. XtPointer client_data,
  104. XmFontList default_list );
  105. #ifdef __cplusplus
  106. }
  107. #endif
  108. #endif /* _DtHelpCreateI_h */