Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

275 lines
7.2 KiB

  1. /*
  2. File: QD3DCustomElements.h
  3. Contains: Custom QuickTime Elements in QuickDraw 3D
  4. Version: Technology: Quickdraw 3D 1.6
  5. Release: QuickTime 7.3
  6. Copyright: (c) 2007 (c) 1995-1998 by Apple Computer, Inc., all rights reserved.
  7. Bugs?: For bug reports, consult the following page on
  8. the World Wide Web:
  9. http://developer.apple.com/bugreporter/
  10. */
  11. #ifndef __QD3DCUSTOMELEMENTS__
  12. #define __QD3DCUSTOMELEMENTS__
  13. #ifndef __QD3D__
  14. #include <QD3D.h>
  15. #endif
  16. #ifndef __MOVIES__
  17. #include <Movies.h>
  18. #endif
  19. #if PRAGMA_ONCE
  20. #pragma once
  21. #endif
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. #if PRAGMA_IMPORT
  26. #pragma import on
  27. #endif
  28. #if PRAGMA_STRUCT_ALIGN
  29. #pragma options align=power
  30. #elif PRAGMA_STRUCT_PACKPUSH
  31. #pragma pack(push, 2)
  32. #elif PRAGMA_STRUCT_PACK
  33. #pragma pack(2)
  34. #endif
  35. #if PRAGMA_ENUM_ALWAYSINT
  36. #if defined(__fourbyteints__) && !__fourbyteints__
  37. #define __QD3DCUSTOMELEMENTS__RESTORE_TWOBYTEINTS
  38. #pragma fourbyteints on
  39. #endif
  40. #pragma enumsalwaysint on
  41. #elif PRAGMA_ENUM_OPTIONS
  42. #pragma option enum=int
  43. #elif PRAGMA_ENUM_PACK
  44. #if __option(pack_enums)
  45. #define __QD3DCUSTOMELEMENTS__RESTORE_PACKED_ENUMS
  46. #pragma options(!pack_enums)
  47. #endif
  48. #endif
  49. /******************************************************************************
  50. ** **
  51. ** Name Data Structure Definitions **
  52. ** **
  53. *****************************************************************************/
  54. #define CEcNameElementName "Apple Computer, Inc.:NameElement"
  55. /******************************************************************************
  56. ** **
  57. ** Custom Name Element Functions **
  58. ** **
  59. *****************************************************************************/
  60. #if CALL_NOT_IN_CARBON
  61. /*
  62. * CENameElement_SetData()
  63. *
  64. * Availability:
  65. * Non-Carbon CFM: not available
  66. * CarbonLib: not available
  67. * Mac OS X: not available
  68. */
  69. EXTERN_API_C( TQ3Status )
  70. CENameElement_SetData(
  71. TQ3Object object,
  72. const char * name);
  73. /*
  74. * CENameElement_GetData()
  75. *
  76. * Availability:
  77. * Non-Carbon CFM: not available
  78. * CarbonLib: not available
  79. * Mac OS X: not available
  80. */
  81. EXTERN_API_C( TQ3Status )
  82. CENameElement_GetData(
  83. TQ3Object object,
  84. char ** name);
  85. /*
  86. * CENameElement_EmptyData()
  87. *
  88. * Availability:
  89. * Non-Carbon CFM: not available
  90. * CarbonLib: not available
  91. * Mac OS X: not available
  92. */
  93. EXTERN_API_C( TQ3Status )
  94. CENameElement_EmptyData(char ** name);
  95. /******************************************************************************
  96. ** **
  97. ** URL Data Structure Definitions **
  98. ** **
  99. *****************************************************************************/
  100. #define CEcUrlElementName "Apple Computer, Inc.:URLElement"
  101. #endif /* CALL_NOT_IN_CARBON */
  102. enum TCEUrlOptions {
  103. kCEUrlOptionNone = 0,
  104. kCEUrlOptionUseMap = 1
  105. };
  106. typedef enum TCEUrlOptions TCEUrlOptions;
  107. struct TCEUrlData {
  108. char * url;
  109. char * description;
  110. TCEUrlOptions options;
  111. };
  112. typedef struct TCEUrlData TCEUrlData;
  113. /******************************************************************************
  114. ** **
  115. ** Custom URL Element Functions **
  116. ** **
  117. *****************************************************************************/
  118. #if CALL_NOT_IN_CARBON
  119. /*
  120. * CEUrlElement_SetData()
  121. *
  122. * Availability:
  123. * Non-Carbon CFM: not available
  124. * CarbonLib: not available
  125. * Mac OS X: not available
  126. */
  127. EXTERN_API_C( TQ3Status )
  128. CEUrlElement_SetData(
  129. TQ3Object object,
  130. TCEUrlData * urlData);
  131. /*
  132. * CEUrlElement_GetData()
  133. *
  134. * Availability:
  135. * Non-Carbon CFM: not available
  136. * CarbonLib: not available
  137. * Mac OS X: not available
  138. */
  139. EXTERN_API_C( TQ3Status )
  140. CEUrlElement_GetData(
  141. TQ3Object object,
  142. TCEUrlData ** urlData);
  143. /*
  144. * CEUrlElement_EmptyData()
  145. *
  146. * Availability:
  147. * Non-Carbon CFM: not available
  148. * CarbonLib: not available
  149. * Mac OS X: not available
  150. */
  151. EXTERN_API_C( TQ3Status )
  152. CEUrlElement_EmptyData(TCEUrlData ** urlData);
  153. /******************************************************************************
  154. ** **
  155. ** Wire Data Definitions **
  156. ** **
  157. *****************************************************************************/
  158. #define CEcWireElementName "Apple Computer, Inc.:WireElement"
  159. /******************************************************************************
  160. ** **
  161. ** Wire Custom Element Functions **
  162. ** **
  163. *****************************************************************************/
  164. /*
  165. * CEWireElement_SetData()
  166. *
  167. * Availability:
  168. * Non-Carbon CFM: not available
  169. * CarbonLib: not available
  170. * Mac OS X: not available
  171. */
  172. EXTERN_API_C( TQ3Status )
  173. CEWireElement_SetData(
  174. TQ3Object object,
  175. QTAtomContainer wireData);
  176. /*
  177. * CEWireElement_GetData()
  178. *
  179. * Availability:
  180. * Non-Carbon CFM: not available
  181. * CarbonLib: not available
  182. * Mac OS X: not available
  183. */
  184. EXTERN_API_C( TQ3Status )
  185. CEWireElement_GetData(
  186. TQ3Object object,
  187. QTAtomContainer * wireData);
  188. /*
  189. * CEWireElement_EmptyData()
  190. *
  191. * Availability:
  192. * Non-Carbon CFM: not available
  193. * CarbonLib: not available
  194. * Mac OS X: not available
  195. */
  196. EXTERN_API_C( TQ3Status )
  197. CEWireElement_EmptyData(QTAtomContainer * wireData);
  198. #endif /* CALL_NOT_IN_CARBON */
  199. #if PRAGMA_ENUM_ALWAYSINT
  200. #pragma enumsalwaysint reset
  201. #ifdef __QD3DCUSTOMELEMENTS__RESTORE_TWOBYTEINTS
  202. #pragma fourbyteints off
  203. #endif
  204. #elif PRAGMA_ENUM_OPTIONS
  205. #pragma option enum=reset
  206. #elif defined(__QD3DCUSTOMELEMENTS__RESTORE_PACKED_ENUMS)
  207. #pragma options(pack_enums)
  208. #endif
  209. #if PRAGMA_STRUCT_ALIGN
  210. #pragma options align=reset
  211. #elif PRAGMA_STRUCT_PACKPUSH
  212. #pragma pack(pop)
  213. #elif PRAGMA_STRUCT_PACK
  214. #pragma pack()
  215. #endif
  216. #ifdef PRAGMA_IMPORT_OFF
  217. #pragma import off
  218. #elif PRAGMA_IMPORT
  219. #pragma import reset
  220. #endif
  221. #ifdef __cplusplus
  222. }
  223. #endif
  224. #endif /* __QD3DCUSTOMELEMENTS__ */