2
0

XInterfaceI.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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: XInterfaceI.h /main/8 1995/12/18 16:23:57 cde-hp $ */
  24. /*************************************<+>*************************************
  25. *****************************************************************************
  26. **
  27. ** File: XInterface.h
  28. **
  29. ** Project:
  30. **
  31. ** Description: Public Header file for Canvas.c
  32. **
  33. ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
  34. **
  35. ** (c) Copyright 1993, 1994 Hewlett-Packard Company
  36. ** (c) Copyright 1993, 1994 International Business Machines Corp.
  37. ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  38. ** (c) Copyright 1993, 1994 Novell, Inc.
  39. **
  40. *******************************************************************
  41. *************************************<+>*************************************/
  42. #ifndef _XInterface_h
  43. #define _XInterface_h
  44. #ifdef __cplusplus
  45. extern "C" {
  46. #endif
  47. /******** Public Defines Declarations ********/
  48. /******** Public Typedef Declarations ********/
  49. /******** Public Structures Declarations ********/
  50. /******** Public Macro Declarations ********/
  51. /******** Semi-Private Function Declarations ********/
  52. extern void _DtHelpDADestroyRegion (
  53. _DtCvPointer client_data,
  54. _DtCvPointer reg_info);
  55. extern void _DtHelpDADestroyGraphic (
  56. _DtCvPointer client_data,
  57. _DtCvPointer graphic_ptr);
  58. extern void _DtHelpDADestroySpc (
  59. _DtCvPointer client_data,
  60. _DtCvPointer spc_handle);
  61. extern const char *_DtHelpDAGetSpcString(int idx);
  62. extern _DtCvStatus _DtHelpDALoadGraphic (
  63. _DtCvPointer client_data,
  64. char *vol_xid,
  65. char *topic_xid,
  66. char *file_xid,
  67. char *format,
  68. char *method,
  69. _DtCvUnit *ret_width,
  70. _DtCvUnit *ret_height,
  71. _DtCvPointer *ret_region);
  72. extern void _DtHelpDAResolveFont (
  73. _DtCvPointer client_data,
  74. char *lang,
  75. const char *char_set,
  76. _DtHelpFontHints font_attr,
  77. _DtCvPointer *ret_font);
  78. extern _DtCvStatus _DtHelpDAResolveSpc (
  79. _DtCvPointer client_data,
  80. char *lang,
  81. const char *char_set,
  82. _DtHelpFontHints font_attr,
  83. const char *spc_string,
  84. _DtCvPointer *ret_handle,
  85. _DtCvUnit *ret_width,
  86. _DtCvUnit *ret_height,
  87. _DtCvUnit *ret_ascent);
  88. /******** Virtual UI Function Declarations ********/
  89. extern _DtCvStatus _DtHelpDABuildSelection (
  90. _DtCvPointer client_data,
  91. _DtCvElemType elem_type,
  92. unsigned int mask,
  93. _DtCvPointer *prev_info,
  94. _DtCvUnit space,
  95. _DtCvUnit width,
  96. _DtCvFlags flags,
  97. _DtCvPointer data);
  98. extern void _DtHelpDAGetCvsMetrics (
  99. _DtCvPointer client_data,
  100. _DtCvElemType elem_type,
  101. _DtCvPointer ret_metrics);
  102. extern void _DtHelpDAGetFontMetrics (
  103. _DtCvPointer client_data,
  104. _DtCvPointer font_ptr,
  105. _DtCvUnit *ret_ascent,
  106. _DtCvUnit *ret_descent,
  107. _DtCvUnit *char_width,
  108. _DtCvUnit *ret_super,
  109. _DtCvUnit *ret_sub);
  110. extern _DtCvUnit _DtHelpDAGetStrWidth (
  111. _DtCvPointer client_data,
  112. _DtCvElemType elem_type,
  113. _DtCvPointer data);
  114. extern void _DtHelpDARenderElem (
  115. _DtCvPointer client_data,
  116. _DtCvElemType elem_type,
  117. _DtCvUnit x,
  118. _DtCvUnit y,
  119. int link_type,
  120. _DtCvFlags old_flags,
  121. _DtCvFlags new_flags,
  122. _DtCvElemType trav_type,
  123. _DtCvPointer trav_data,
  124. _DtCvPointer data);
  125. extern void _DtHelpDATocMarker (
  126. XtPointer client_data,
  127. Boolean draw);
  128. #ifdef __cplusplus
  129. } /* Close scope of 'extern "C"' declaration which encloses file. */
  130. #endif
  131. #endif /* _XInterface_h */
  132. /* DON'T ADD ANYTHING AFTER THIS #endif */