PageRenderTime 23ms CodeModel.GetById 19ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/Frameworks/AppKit/rhino.platform/CAMediaTimingFunction.j

http://github.com/jfahrenkrug/MapKit-HelloWorld
Unknown | 58 lines | 58 code | 0 blank | 0 comment | 0 complexity | 0333343acaf9814ba0928c17549b5a42 MD5 | raw file
 1I;21;Foundation/CPObject.jI;25;Foundation/CPDictionary.jI;21;Foundation/CPString.jc;2072;
 2kCAMediaTimingFunctionLinear="kCAMediaTimingFunctionLinear";
 3kCAMediaTimingFunctionEaseIn="kCAMediaTimingFunctionEaseIn";
 4kCAMediaTimingFunctionEaseOut="kCAMediaTimingFunctionEaseOut";
 5kCAMediaTimingFunctionEaseInEaseOut="kCAMediaTimingFunctionEaseInEaseOut";
 6var _1=nil;
 7var _2=objj_allocateClassPair(CPObject,"CAMediaTimingFunction"),_3=_2.isa;
 8class_addIvars(_2,[new objj_ivar("_c1x"),new objj_ivar("_c1y"),new objj_ivar("_c2x"),new objj_ivar("_c2y")]);
 9objj_registerClassPair(_2);
10objj_addClassForBundle(_2,objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
11class_addMethods(_2,[new objj_method(sel_getUid("initWithControlPoints::::"),function(_4,_5,_6,_7,_8,_9){
12with(_4){
13_4=objj_msgSendSuper({receiver:_4,super_class:objj_getClass("CPObject")},"init");
14if(_4){
15_c1x=_6;
16_c1y=_7;
17_c2x=_8;
18_c2y=_9;
19}
20return _4;
21}
22}),new objj_method(sel_getUid("getControlPointAtIndex:values:"),function(_a,_b,_c,_d){
23with(_a){
24if(_c==0){
25_d[0]=0;
26_d[1]=0;
27}else{
28if(_c==1){
29_d[0]=_c1x;
30_d[1]=_c1y;
31}else{
32if(_c==2){
33_d[0]=_c2x;
34_d[1]=_c2y;
35}else{
36_d[0]=1;
37_d[1]=1;
38}
39}
40}
41}
42})]);
43class_addMethods(_3,[new objj_method(sel_getUid("functionWithName:"),function(_e,_f,_10){
44with(_e){
45if(!_1){
46_1=objj_msgSend(CPDictionary,"dictionary");
47objj_msgSend(_1,"setObject:forKey:",objj_msgSend(CAMediaTimingFunction,"functionWithControlPoints::::",0,0,1,1),kCAMediaTimingFunctionLinear);
48objj_msgSend(_1,"setObject:forKey:",objj_msgSend(CAMediaTimingFunction,"functionWithControlPoints::::",0.42,0,1,1),kCAMediaTimingFunctionEaseIn);
49objj_msgSend(_1,"setObject:forKey:",objj_msgSend(CAMediaTimingFunction,"functionWithControlPoints::::",0,0,0.58,1),kCAMediaTimingFunctionEaseOut);
50objj_msgSend(_1,"setObject:forKey:",objj_msgSend(CAMediaTimingFunction,"functionWithControlPoints::::",0.42,0,0.58,1),kCAMediaTimingFunctionEaseInEaseOut);
51}
52return objj_msgSend(_1,"objectForKey:",_10);
53}
54}),new objj_method(sel_getUid("functionWithControlPoints::::"),function(_11,_12,c1x,c1y,c2x,c2y){
55with(_11){
56return objj_msgSend(objj_msgSend(_11,"alloc"),"initWithControlPoints::::",c1x,c1y,c2x,c2y);
57}
58})]);