QuartzCore-Structs.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. /**
  2. * This header is generated by class-dump-z 0.2-1.
  3. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.
  4. *
  5. * Source: /System/Library/Frameworks/QuartzCore.framework/QuartzCore
  6. */
  7. #import <CoreGraphics/CoreGraphics.h>
  8. #import <QuartzCore/QuartzCore.h>
  9. #import <IOSurface/IOSurface.h>
  10. #include <pthread.h>
  11. #include <sys/cdefs.h>
  12. typedef struct {
  13. int x;
  14. } XXStruct_RiyHGD;
  15. typedef struct Atomic {
  16. XXStruct_RiyHGD _v;
  17. } Atomic;
  18. typedef struct Object {
  19. /*function-pointer*/ void** _field1;
  20. Atomic _field2;
  21. } Object;
  22. typedef struct Timing Timing;
  23. typedef struct Vector Vector;
  24. typedef struct Animation {
  25. /*function-pointer*/ void** _field1;
  26. Atomic _field2;
  27. float _field3;
  28. Timing* _field4;
  29. Vector* _field5;
  30. void* _field6;
  31. unsigned _field7;
  32. unsigned _field8;
  33. } Animation;
  34. typedef struct _CAAttrList* CAAttrListRef;
  35. typedef struct Proxy {
  36. /*function-pointer*/ void** _field1;
  37. Atomic _field2;
  38. unsigned long long _field3;
  39. } Proxy;
  40. typedef struct Mutex {
  41. pthread_t _m;
  42. } Mutex;
  43. typedef struct Shmem Shmem;
  44. typedef struct Commit Commit;
  45. typedef struct CGColorSpace* CGColorSpaceRef;
  46. @class CAContext, CALayer;
  47. typedef struct Context {
  48. unsigned _field1;
  49. struct Context* _field2;
  50. Mutex _field3;
  51. CAContext* _field4;
  52. unsigned _field5;
  53. unsigned _field6;
  54. CALayer* _field7;
  55. struct Context* _field8;
  56. CGColorSpaceRef _field9;
  57. CFDictionaryRef _field10;
  58. unsigned _field11;
  59. unsigned _field12;
  60. CFMachPortRef _field13;
  61. CFRunLoopSourceRef _field14;
  62. Shmem* _field15;
  63. Shmem* _field16;
  64. float _field17;
  65. Commit* _field18;
  66. unsigned _field19 : 1;
  67. unsigned _field20 : 1;
  68. unsigned _field21 : 1;
  69. } Context;
  70. typedef struct LayerExt LayerExt;
  71. /*
  72. template<>
  73. struct TypedArray<CA::Render::Layer>;
  74. template<>
  75. struct TypedArray<CA::Render::Animation>;
  76. */
  77. typedef struct Layer {
  78. /*function-pointer*/ void** _field1;
  79. Atomic _field2;
  80. unsigned _field3;
  81. LayerExt* _field4;
  82. Handle* _field5;
  83. Object* _field6;
  84. CGPoint _field7;
  85. CGSize _field8;
  86. // TypedArray<CA::Render::Layer>* _field9
  87. void* _field9;
  88. // TypedArray<CA::Render::Animation>* _field10;
  89. void* _field10;
  90. } Layer;
  91. typedef struct Shared Shared;
  92. typedef struct SpinLock {
  93. XXStruct_RiyHGD _l;
  94. } SpinLock;
  95. typedef struct Level Level;
  96. typedef struct Command Command;
  97. typedef struct Deleted Deleted;
  98. typedef struct Transaction {
  99. Shared* _field1;
  100. unsigned _field2;
  101. // HashTable<CALayer*,uintptr_t*>* _field3;
  102. void* _field3;
  103. SpinLock* _field4;
  104. unsigned _field5;
  105. Level* _field6;
  106. Command* _field7;
  107. Deleted* _field8;
  108. // List<const void*>* _field9;
  109. void* _field9;
  110. Context* _field10;
  111. // HashTable<CALayer*,CALayer*>* _field11;
  112. void* _field11;
  113. CFRunLoopRef _field12;
  114. CFRunLoopObserverRef _field13;
  115. unsigned _field14 : 1;
  116. } Transaction;
  117. typedef struct _CALayerState* CALayerStateRef;
  118. typedef struct _CALayerAnimation* CALayerAnimationRef;
  119. @class CALayerArray;
  120. typedef struct _CALayerArrayIvars {
  121. CALayer** layers;
  122. unsigned count;
  123. unsigned capacity;
  124. unsigned long mutations;
  125. BOOL retained;
  126. } CALayerArrayIvars;
  127. typedef struct {
  128. unsigned long _field1;
  129. id* _field2;
  130. unsigned long* _field3;
  131. unsigned long _field4[5];
  132. } XXStruct_kFm5bA;
  133. typedef struct CAMediaTimingFunctionPrivate {
  134. float _field1[2];
  135. float _field2[2];
  136. } CAMediaTimingFunctionPrivate;
  137. typedef struct _EAGLNativeWindowObject {
  138. int version;
  139. /*function-pointer*/ void* attach;
  140. /*function-pointer*/ void* detach;
  141. /*function-pointer*/ void* begin;
  142. /*function-pointer*/ void* swap;
  143. /*function-pointer*/ void* collect;
  144. } EAGLNativeWindowObject;
  145. typedef struct EAGLNativeWindowCallbacksRec {
  146. void* callback_data;
  147. /*function-pointer*/ void* create_buffer;
  148. /*function-pointer*/ void* destroy_buffer;
  149. } EAGLNativeWindowCallbacksRec;
  150. typedef struct x_list_struct x_list_struct;
  151. typedef struct _CAImageQueue* CAImageQueueRef;
  152. @class CAEAGLLayer;
  153. typedef struct _CAEAGLNativeWindow {
  154. EAGLNativeWindowObject _field1;
  155. EAGLNativeWindowCallbacksRec _field2;
  156. x_list_struct* _field3;
  157. Atomic _field4;
  158. SpinLock _field5;
  159. CAImageQueueRef _field6;
  160. CAEAGLLayer* _field7;
  161. x_list_struct* _field8;
  162. unsigned _field9;
  163. IOSurfaceRef _field10;
  164. unsigned _field11 : 1;
  165. unsigned _field12 : 1;
  166. } CAEAGLNativeWindow;
  167. typedef struct Display {
  168. /*function-pointer*/ void** _field1;
  169. id _field2;
  170. CFStringRef _field3;
  171. CFStringRef _field4;
  172. } Display;
  173. typedef struct Condition {
  174. pthread_cond_t _field1;
  175. } Condition;
  176. typedef struct _opaque_pthread_t opaque_pthread_t;
  177. typedef struct DisplayLink {
  178. /*function-pointer*/ void** _field1;
  179. Display* _field2;
  180. void* _field3;
  181. SEL _field4;
  182. void* _field5;
  183. int _field6;
  184. Mutex _field7;
  185. Condition _field8;
  186. opaque_pthread_t* _field9;
  187. id _field10;
  188. CFRunLoopRef _field11;
  189. // List<const __CFString*>* _field12;
  190. void* _field12;
  191. unsigned long long _field13;
  192. unsigned long long _field14;
  193. unsigned _field15 : 1;
  194. } DisplayLink;
  195. typedef struct PendingOperation PendingOperation;
  196. typedef struct Shape Shape;
  197. typedef struct _CARenderOGLContext* CARenderOGLContextRef;
  198. typedef struct Server {
  199. /*function-pointer*/ void** _field1;
  200. SpinLock _field2;
  201. Display* _field3;
  202. CFStringRef _field4;
  203. Mutex _field5;
  204. Condition _field6;
  205. unsigned _field7;
  206. Context** _field8;
  207. unsigned _field9;
  208. unsigned _field10;
  209. SpinLock _field11;
  210. PendingOperation* _field12;
  211. Context* _field13;
  212. Context* _field14;
  213. unsigned _field15;
  214. Shape* _field16;
  215. unsigned _field17;
  216. CARenderOGLContextRef _field18;
  217. double _field19;
  218. unsigned _field20 : 1;
  219. unsigned _field21 : 1;
  220. unsigned _field22 : 1;
  221. unsigned _field23 : 1;
  222. } Server;
  223. typedef struct CAWindowServerImpl {
  224. CFArrayRef _field1;
  225. unsigned _field2;
  226. } CAWindowServerImpl;
  227. typedef struct {
  228. int _field1;
  229. int _field2;
  230. } XXStruct_K5nmsA;
  231. __BEGIN_DECLS
  232. NSString* CAAtomGetString(unsigned atomNum);
  233. unsigned CAInternAtom(NSString* atomStr);
  234. // log CA object to stdout.
  235. typedef void* CARenderObjectRef;
  236. void CARenderShow(CARenderObjectRef object);
  237. CARenderObjectRef CARenderRetain(CARenderObjectRef object);
  238. void CARenderRelease(CARenderObjectRef object);
  239. unsigned CAGetDebugFlags();
  240. void CASetDebugFlags(unsigned flags);
  241. __END_DECLS