// // DKArcPath.h // GCDrawKit // // Created by graham on 25/06/2008. // Copyright 2008 Apptree.net. All rights reserved. // #import "DKDrawablePath.h" @interface DKArcPath : DKDrawablePath { float mRadius; float mStartAngle; float mEndAngle; NSPoint mCentre; BOOL mIsWedge; } - (void) setRadius:(float) rad; - (float) radius; - (void) setStartAngle:(float) sa; - (float) startAngle; - (void) setEndAngle:(float) ea; - (float) endAngle; - (void) setIsWedge:(BOOL) wedge; - (BOOL) isWedge; @end // partcodes this class defines - note that the implicit partcodes used by DKDrawablePtah are not used by this class, // so we don't need to ensure these are out of range. The numbers here are entirely arbitrary. enum { kDKArcPathRadiusPart = 22, kDKArcPathStartAnglePart, kDKArcPathEndAnglePart, kDKArcPathCentrePointPart, kDKArcPathRotationKnobPart };