PageRenderTime 584ms CodeModel.GetById 14ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 568ms

/Frameworks/AppKit/browser.platform/CPGraphicsContext.j

http://github.com/jfahrenkrug/MapKit-HelloWorld
Unknown | 32 lines | 32 code | 0 blank | 0 comment | 0 complexity | 11c89bdc796cb82a106ec6ecfe998532 MD5 | raw file
 1c;960;
 2var _1=nil;
 3var _2=objj_allocateClassPair(CPObject,"CPGraphicsContext"),_3=_2.isa;
 4class_addIvars(_2,[new objj_ivar("_graphicsPort")]);
 5objj_registerClassPair(_2);
 6objj_addClassForBundle(_2,objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
 7class_addMethods(_2,[new objj_method(sel_getUid("initWithGraphicsPort:"),function(_4,_5,_6){
 8with(_4){
 9_4=objj_msgSendSuper({receiver:_4,super_class:objj_getClass("CPObject")},"init");
10if(_4){
11_graphicsPort=_6;
12}
13return _4;
14}
15}),new objj_method(sel_getUid("graphicsPort"),function(_7,_8){
16with(_7){
17return _graphicsPort;
18}
19})]);
20class_addMethods(_3,[new objj_method(sel_getUid("currentContext"),function(_9,_a){
21with(_9){
22return _1;
23}
24}),new objj_method(sel_getUid("setCurrentContext:"),function(_b,_c,_d){
25with(_b){
26_1=_d;
27}
28}),new objj_method(sel_getUid("graphicsContextWithGraphicsPort:flipped:"),function(_e,_f,_10,_11){
29with(_e){
30return objj_msgSend(objj_msgSend(_e,"alloc"),"initWithGraphicsPort:",_10);
31}
32})]);