Files
RubyMotion/test/vendor/code/code.h
2012-09-10 15:36:37 +02:00

61 lines
1.5 KiB
Objective-C

#import <UIKit/UIKit.h>
struct MyStruct4C {
char a, b, c, d;
};
typedef id (^MyBlock)(void);
@protocol TestProtocol <NSObject>
- (BOOL)testProtocolFlag;
- (void)setTestProtocolFlag:(BOOL)testFlag;
@end
@protocol TestConformsToProtocol <NSObject>
@required
- (int)requiredMethod1;
- (int)requiredMethod2;
@optional
- (int)optionalMethod3;
@end
@interface TestMethod : NSObject <TestProtocol>
{
BOOL _testProtocolFlag;
}
- (CGSize)methodReturningCGSize;
- (CGRect)methodReturningCGRect;
+ (BOOL)testMethodReturningCGSize:(TestMethod *)testMethod;
+ (BOOL)testMethodReturningCGRect:(TestMethod *)testMethod;
+ (BOOL)testMethodAcceptingUIInterfaceOrientation:(UIInterfaceOrientation)orientation;
+ (BOOL)testMethodAcceptingUIEdgeInsets:(UIEdgeInsets)insets;
+ (id)testMethodCallingBlock:(MyBlock)block;
+ (BOOL)testMethodAcceptingCFType:(CFStringRef)cfstring;
+ (BOOL)testMethodAcceptingMyStruct4C:(struct MyStruct4C)s;
+ (BOOL)testMethodAcceptingMyStruct4C:(struct MyStruct4C)s another:(struct MyStruct4C)s2;
+ (BOOL)testMethodAcceptingMyStruct4CValue:(NSValue *)val;
+ (BOOL)testValueForKey:(Class)klass expected:(id)expected;
+ (int)testPointerToStrings:(char **)strs length:(int)len;
- (int)methodReturningLargeInt;
- (id)methodSendingNew:(Class)klass;
+ (BOOL)testConformsToProtocol:(id <TestConformsToProtocol>)obj;
@end
@interface TestIterator : NSObject <NSFastEnumeration>
@end
static inline int TestInlineFunction(int x, int y, int z) {
return x + y + z;
}
extern int lowerCaseConstant;
@interface lowerCaseClass : NSObject
@end