/Frameworks/AppKit/rhino.platform/CPGraphicsContext.j
http://github.com/jfahrenkrug/MapKit-HelloWorld · Unknown · 32 lines · 32 code · 0 blank · 0 comment · 0 complexity · 11c89bdc796cb82a106ec6ecfe998532 MD5 · raw file
- c;960;
- var _1=nil;
- var _2=objj_allocateClassPair(CPObject,"CPGraphicsContext"),_3=_2.isa;
- class_addIvars(_2,[new objj_ivar("_graphicsPort")]);
- objj_registerClassPair(_2);
- objj_addClassForBundle(_2,objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
- class_addMethods(_2,[new objj_method(sel_getUid("initWithGraphicsPort:"),function(_4,_5,_6){
- with(_4){
- _4=objj_msgSendSuper({receiver:_4,super_class:objj_getClass("CPObject")},"init");
- if(_4){
- _graphicsPort=_6;
- }
- return _4;
- }
- }),new objj_method(sel_getUid("graphicsPort"),function(_7,_8){
- with(_7){
- return _graphicsPort;
- }
- })]);
- class_addMethods(_3,[new objj_method(sel_getUid("currentContext"),function(_9,_a){
- with(_9){
- return _1;
- }
- }),new objj_method(sel_getUid("setCurrentContext:"),function(_b,_c,_d){
- with(_b){
- _1=_d;
- }
- }),new objj_method(sel_getUid("graphicsContextWithGraphicsPort:flipped:"),function(_e,_f,_10,_11){
- with(_e){
- return objj_msgSend(objj_msgSend(_e,"alloc"),"initWithGraphicsPort:",_10);
- }
- })]);