darling-cocotron/QuartzCore/CAValueFunction.m
2020-05-12 17:04:15 -04:00

39 lines
1.2 KiB
Objective-C

#import <Foundation/NSString.h>
#import <QuartzCore/CAValueFunction.h>
NSString *const kCAValueFunctionTranslate = @"kCAValueFunctionTranslate";
NSString *const kCAValueFunctionTranslateX = @"kCAValueFunctionTranslateX";
NSString *const kCAValueFunctionTranslateY = @"kCAValueFunctionTranslateY";
NSString *const kCAValueFunctionTranslateZ = @"kCAValueFunctionTranslateZ";
NSString *const kCAValueFunctionScale = @"kCAValueFunctionScale";
NSString *const kCAValueFunctionScaleX = @"kCAValueFunctionScaleX";
NSString *const kCAValueFunctionScaleY = @"kCAValueFunctionScaleY";
NSString *const kCAValueFunctionScaleZ = @"kCAValueFunctionScaleZ";
NSString *const kCAValueFunctionRotateX = @"kCAValueFunctionRotateX";
NSString *const kCAValueFunctionRotateY = @"kCAValueFunctionRotateY";
NSString *const kCAValueFunctionRotateZ = @"kCAValueFunctionRotateZ";
@implementation CAValueFunction
- initWithName: (NSString *) name {
_name = [name copy];
return self;
}
- (void) dealloc {
[_name release];
[super dealloc];
}
+ functionWithName: (NSString *) name {
return [[[self alloc] initWithName: name] autorelease];
}
- (NSString *) name {
return _name;
}
@end