gdnative_api_struct.gen.gen.go 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. // Copyright © 2019 - 2020 Oscar Campos <oscar.campos@thepimpam.com>
  2. // Copyright © 2017 - William Edwards
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. //
  8. // http://www.apache.org/licenses/LICENSE-2.0
  9. //
  10. // Unless required by applicable law or agreed to in writing, software
  11. // distributed under the License is distributed on an "AS IS" BASIS,
  12. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. // See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. package gdnative
  16. // ==================================================================
  17. // This file was autogenerated by PimPam GDNative-Go binding tools
  18. // Please do not modify this file, any change will be lost
  19. // ==================================================================
  20. /*
  21. #include "gdnative.gen.h"
  22. #include <gdnative_api_struct.gen.h>
  23. // Include all headers for now. TODO: Look up all the required
  24. // headers we need to import based on the method arguments and return types.
  25. #include <gdnative/aabb.h>
  26. #include <gdnative/array.h>
  27. #include <gdnative/basis.h>
  28. #include <gdnative/color.h>
  29. #include <gdnative/dictionary.h>
  30. #include <gdnative/gdnative.h>
  31. #include <gdnative/node_path.h>
  32. #include <gdnative/plane.h>
  33. #include <gdnative/pool_arrays.h>
  34. #include <gdnative/quat.h>
  35. #include <gdnative/rect2.h>
  36. #include <gdnative/rid.h>
  37. #include <gdnative/string.h>
  38. #include <gdnative/string_name.h>
  39. #include <gdnative/transform.h>
  40. #include <gdnative/transform2d.h>
  41. #include <gdnative/variant.h>
  42. #include <gdnative/vector2.h>
  43. #include <gdnative/vector3.h>
  44. #include <gdnative_api_struct.gen.h>
  45. */
  46. import "C"
  47. import "unsafe"
  48. // NewEmptyGdnativeExtAndroidApiStruct will return a pointer to an empty
  49. // initialized GdnativeExtAndroidApiStruct. This is primarily used in
  50. // conjunction with MethodBindPtrCall.
  51. func NewEmptyGdnativeExtAndroidApiStruct() Pointer {
  52. var obj C.godot_gdnative_ext_android_api_struct
  53. return Pointer{base: unsafe.Pointer(&obj)}
  54. }
  55. // NewPointerFromGdnativeExtAndroidApiStruct will return an unsafe pointer to the given
  56. // object. This is primarily used in conjunction with MethodBindPtrCall.
  57. func NewPointerFromGdnativeExtAndroidApiStruct(obj GdnativeExtAndroidApiStruct) Pointer {
  58. return Pointer{base: unsafe.Pointer(obj.getBase())}
  59. }
  60. // NewGdnativeExtAndroidApiStructFromPointer will return a GdnativeExtAndroidApiStruct from the
  61. // given unsafe pointer. This is primarily used in conjunction with MethodBindPtrCall.
  62. func NewGdnativeExtAndroidApiStructFromPointer(ptr Pointer) GdnativeExtAndroidApiStruct {
  63. return GdnativeExtAndroidApiStruct{base: (*C.godot_gdnative_ext_android_api_struct)(ptr.getBase())}
  64. }
  65. // GdnativeExtAndroidApiStruct data structure wrapper
  66. type GdnativeExtAndroidApiStruct struct {
  67. base *C.godot_gdnative_ext_android_api_struct
  68. Type Uint
  69. Version GdnativeApiVersion
  70. }
  71. // returns the wrapped C base data type for this type
  72. func (gdt GdnativeExtAndroidApiStruct) getBase() *C.godot_gdnative_ext_android_api_struct {
  73. return gdt.base
  74. }
  75. // NewEmptyGdnativeExtArvr12ApiStruct will return a pointer to an empty
  76. // initialized GdnativeExtArvr12ApiStruct. This is primarily used in
  77. // conjunction with MethodBindPtrCall.
  78. func NewEmptyGdnativeExtArvr12ApiStruct() Pointer {
  79. var obj C.godot_gdnative_ext_arvr_1_2_api_struct
  80. return Pointer{base: unsafe.Pointer(&obj)}
  81. }
  82. // NewPointerFromGdnativeExtArvr12ApiStruct will return an unsafe pointer to the given
  83. // object. This is primarily used in conjunction with MethodBindPtrCall.
  84. func NewPointerFromGdnativeExtArvr12ApiStruct(obj GdnativeExtArvr12ApiStruct) Pointer {
  85. return Pointer{base: unsafe.Pointer(obj.getBase())}
  86. }
  87. // NewGdnativeExtArvr12ApiStructFromPointer will return a GdnativeExtArvr12ApiStruct from the
  88. // given unsafe pointer. This is primarily used in conjunction with MethodBindPtrCall.
  89. func NewGdnativeExtArvr12ApiStructFromPointer(ptr Pointer) GdnativeExtArvr12ApiStruct {
  90. return GdnativeExtArvr12ApiStruct{base: (*C.godot_gdnative_ext_arvr_1_2_api_struct)(ptr.getBase())}
  91. }
  92. // GdnativeExtArvr12ApiStruct data structure wrapper
  93. type GdnativeExtArvr12ApiStruct struct {
  94. base *C.godot_gdnative_ext_arvr_1_2_api_struct
  95. Type Uint
  96. Version GdnativeApiVersion
  97. }
  98. // returns the wrapped C base data type for this type
  99. func (gdt GdnativeExtArvr12ApiStruct) getBase() *C.godot_gdnative_ext_arvr_1_2_api_struct {
  100. return gdt.base
  101. }
  102. // NewEmptyGdnativeExtVideodecoderApiStruct will return a pointer to an empty
  103. // initialized GdnativeExtVideodecoderApiStruct. This is primarily used in
  104. // conjunction with MethodBindPtrCall.
  105. func NewEmptyGdnativeExtVideodecoderApiStruct() Pointer {
  106. var obj C.godot_gdnative_ext_videodecoder_api_struct
  107. return Pointer{base: unsafe.Pointer(&obj)}
  108. }
  109. // NewPointerFromGdnativeExtVideodecoderApiStruct will return an unsafe pointer to the given
  110. // object. This is primarily used in conjunction with MethodBindPtrCall.
  111. func NewPointerFromGdnativeExtVideodecoderApiStruct(obj GdnativeExtVideodecoderApiStruct) Pointer {
  112. return Pointer{base: unsafe.Pointer(obj.getBase())}
  113. }
  114. // NewGdnativeExtVideodecoderApiStructFromPointer will return a GdnativeExtVideodecoderApiStruct from the
  115. // given unsafe pointer. This is primarily used in conjunction with MethodBindPtrCall.
  116. func NewGdnativeExtVideodecoderApiStructFromPointer(ptr Pointer) GdnativeExtVideodecoderApiStruct {
  117. return GdnativeExtVideodecoderApiStruct{base: (*C.godot_gdnative_ext_videodecoder_api_struct)(ptr.getBase())}
  118. }
  119. // GdnativeExtVideodecoderApiStruct data structure wrapper
  120. type GdnativeExtVideodecoderApiStruct struct {
  121. base *C.godot_gdnative_ext_videodecoder_api_struct
  122. Type Uint
  123. Version GdnativeApiVersion
  124. }
  125. // returns the wrapped C base data type for this type
  126. func (gdt GdnativeExtVideodecoderApiStruct) getBase() *C.godot_gdnative_ext_videodecoder_api_struct {
  127. return gdt.base
  128. }
  129. // NewEmptyGdnativeExtNetApiStruct will return a pointer to an empty
  130. // initialized GdnativeExtNetApiStruct. This is primarily used in
  131. // conjunction with MethodBindPtrCall.
  132. func NewEmptyGdnativeExtNetApiStruct() Pointer {
  133. var obj C.godot_gdnative_ext_net_api_struct
  134. return Pointer{base: unsafe.Pointer(&obj)}
  135. }
  136. // NewPointerFromGdnativeExtNetApiStruct will return an unsafe pointer to the given
  137. // object. This is primarily used in conjunction with MethodBindPtrCall.
  138. func NewPointerFromGdnativeExtNetApiStruct(obj GdnativeExtNetApiStruct) Pointer {
  139. return Pointer{base: unsafe.Pointer(obj.getBase())}
  140. }
  141. // NewGdnativeExtNetApiStructFromPointer will return a GdnativeExtNetApiStruct from the
  142. // given unsafe pointer. This is primarily used in conjunction with MethodBindPtrCall.
  143. func NewGdnativeExtNetApiStructFromPointer(ptr Pointer) GdnativeExtNetApiStruct {
  144. return GdnativeExtNetApiStruct{base: (*C.godot_gdnative_ext_net_api_struct)(ptr.getBase())}
  145. }
  146. // GdnativeExtNetApiStruct data structure wrapper
  147. type GdnativeExtNetApiStruct struct {
  148. base *C.godot_gdnative_ext_net_api_struct
  149. Type Uint
  150. Version GdnativeApiVersion
  151. }
  152. // returns the wrapped C base data type for this type
  153. func (gdt GdnativeExtNetApiStruct) getBase() *C.godot_gdnative_ext_net_api_struct {
  154. return gdt.base
  155. }
  156. // NewEmptyGdnativeCore12ApiStruct will return a pointer to an empty
  157. // initialized GdnativeCore12ApiStruct. This is primarily used in
  158. // conjunction with MethodBindPtrCall.
  159. func NewEmptyGdnativeCore12ApiStruct() Pointer {
  160. var obj C.godot_gdnative_core_1_2_api_struct
  161. return Pointer{base: unsafe.Pointer(&obj)}
  162. }
  163. // NewPointerFromGdnativeCore12ApiStruct will return an unsafe pointer to the given
  164. // object. This is primarily used in conjunction with MethodBindPtrCall.
  165. func NewPointerFromGdnativeCore12ApiStruct(obj GdnativeCore12ApiStruct) Pointer {
  166. return Pointer{base: unsafe.Pointer(obj.getBase())}
  167. }
  168. // NewGdnativeCore12ApiStructFromPointer will return a GdnativeCore12ApiStruct from the
  169. // given unsafe pointer. This is primarily used in conjunction with MethodBindPtrCall.
  170. func NewGdnativeCore12ApiStructFromPointer(ptr Pointer) GdnativeCore12ApiStruct {
  171. return GdnativeCore12ApiStruct{base: (*C.godot_gdnative_core_1_2_api_struct)(ptr.getBase())}
  172. }
  173. // GdnativeCore12ApiStruct data structure wrapper
  174. type GdnativeCore12ApiStruct struct {
  175. base *C.godot_gdnative_core_1_2_api_struct
  176. Type Uint
  177. Version GdnativeApiVersion
  178. }
  179. // returns the wrapped C base data type for this type
  180. func (gdt GdnativeCore12ApiStruct) getBase() *C.godot_gdnative_core_1_2_api_struct {
  181. return gdt.base
  182. }
  183. // NewEmptyGdnativeCore11ApiStruct will return a pointer to an empty
  184. // initialized GdnativeCore11ApiStruct. This is primarily used in
  185. // conjunction with MethodBindPtrCall.
  186. func NewEmptyGdnativeCore11ApiStruct() Pointer {
  187. var obj C.godot_gdnative_core_1_1_api_struct
  188. return Pointer{base: unsafe.Pointer(&obj)}
  189. }
  190. // NewPointerFromGdnativeCore11ApiStruct will return an unsafe pointer to the given
  191. // object. This is primarily used in conjunction with MethodBindPtrCall.
  192. func NewPointerFromGdnativeCore11ApiStruct(obj GdnativeCore11ApiStruct) Pointer {
  193. return Pointer{base: unsafe.Pointer(obj.getBase())}
  194. }
  195. // NewGdnativeCore11ApiStructFromPointer will return a GdnativeCore11ApiStruct from the
  196. // given unsafe pointer. This is primarily used in conjunction with MethodBindPtrCall.
  197. func NewGdnativeCore11ApiStructFromPointer(ptr Pointer) GdnativeCore11ApiStruct {
  198. return GdnativeCore11ApiStruct{base: (*C.godot_gdnative_core_1_1_api_struct)(ptr.getBase())}
  199. }
  200. // GdnativeCore11ApiStruct data structure wrapper
  201. type GdnativeCore11ApiStruct struct {
  202. base *C.godot_gdnative_core_1_1_api_struct
  203. Type Uint
  204. Version GdnativeApiVersion
  205. }
  206. // returns the wrapped C base data type for this type
  207. func (gdt GdnativeCore11ApiStruct) getBase() *C.godot_gdnative_core_1_1_api_struct {
  208. return gdt.base
  209. }