structs.objc.h.golden 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. // Objective-C API for talking to structs Go package.
  2. // gobind -lang=objc structs
  3. //
  4. // File is generated by gobind. Do not edit.
  5. #ifndef __Structs_H__
  6. #define __Structs_H__
  7. @import Foundation;
  8. #include "ref.h"
  9. #include "Universe.objc.h"
  10. @class StructsS;
  11. @class StructsS2;
  12. @class StructsStructs;
  13. @protocol StructsI;
  14. @class StructsI;
  15. @protocol StructsI <NSObject>
  16. - (void)m;
  17. @end
  18. @interface StructsS : NSObject <goSeqRefInterface> {
  19. }
  20. @property(strong, readonly) _Nonnull id _ref;
  21. - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
  22. - (nonnull instancetype)init;
  23. @property (nonatomic) double x;
  24. @property (nonatomic) double y;
  25. - (StructsS* _Nullable)identity:(NSError* _Nullable* _Nullable)error;
  26. - (double)sum;
  27. @end
  28. @interface StructsS2 : NSObject <goSeqRefInterface, StructsI> {
  29. }
  30. @property(strong, readonly) _Nonnull id _ref;
  31. - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
  32. - (nonnull instancetype)init;
  33. - (void)m;
  34. - (NSString* _Nonnull)string;
  35. @end
  36. /**
  37. * Structs is a struct with the same name as its package.
  38. */
  39. @interface StructsStructs : NSObject <goSeqRefInterface, StructsI> {
  40. }
  41. @property(strong, readonly) _Nonnull id _ref;
  42. - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
  43. - (nonnull instancetype)init;
  44. - (void)m;
  45. @end
  46. FOUNDATION_EXPORT StructsS* _Nullable StructsIdentity(StructsS* _Nullable s);
  47. FOUNDATION_EXPORT StructsS* _Nullable StructsIdentityWithError(StructsS* _Nullable s, NSError* _Nullable* _Nullable error);
  48. @class StructsI;
  49. @interface StructsI : NSObject <goSeqRefInterface, StructsI> {
  50. }
  51. @property(strong, readonly) _Nonnull id _ref;
  52. - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
  53. - (void)m;
  54. @end
  55. #endif