[Python-checkins] python/dist/src/Mac/Modules/cg _CGmodule.c,1.6,1.7

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Fri, 16 Aug 2002 02:09:52 -0700


Update of /cvsroot/python/python/dist/src/Mac/Modules/cg
In directory usw-pr-cvs1:/tmp/cvs-serv18405/cg

Modified Files:
	_CGmodule.c 
Log Message:
Regenerated with PyDoc_STR() around docstrings.


Index: _CGmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/cg/_CGmodule.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** _CGmodule.c	23 Apr 2002 22:45:33 -0000	1.6
--- _CGmodule.c	16 Aug 2002 09:09:19 -0000	1.7
***************
*** 1149,1267 ****
  static PyMethodDef CGContextRefObj_methods[] = {
  	{"CGContextSaveGState", (PyCFunction)CGContextRefObj_CGContextSaveGState, 1,
! 	 "() -> None"},
  	{"CGContextRestoreGState", (PyCFunction)CGContextRefObj_CGContextRestoreGState, 1,
! 	 "() -> None"},
  	{"CGContextScaleCTM", (PyCFunction)CGContextRefObj_CGContextScaleCTM, 1,
! 	 "(float sx, float sy) -> None"},
  	{"CGContextTranslateCTM", (PyCFunction)CGContextRefObj_CGContextTranslateCTM, 1,
! 	 "(float tx, float ty) -> None"},
  	{"CGContextRotateCTM", (PyCFunction)CGContextRefObj_CGContextRotateCTM, 1,
! 	 "(float angle) -> None"},
  	{"CGContextConcatCTM", (PyCFunction)CGContextRefObj_CGContextConcatCTM, 1,
! 	 "(CGAffineTransform transform) -> None"},
  	{"CGContextGetCTM", (PyCFunction)CGContextRefObj_CGContextGetCTM, 1,
! 	 "() -> (CGAffineTransform _rv)"},
  	{"CGContextSetLineWidth", (PyCFunction)CGContextRefObj_CGContextSetLineWidth, 1,
! 	 "(float width) -> None"},
  	{"CGContextSetLineCap", (PyCFunction)CGContextRefObj_CGContextSetLineCap, 1,
! 	 "(int cap) -> None"},
  	{"CGContextSetLineJoin", (PyCFunction)CGContextRefObj_CGContextSetLineJoin, 1,
! 	 "(int join) -> None"},
  	{"CGContextSetMiterLimit", (PyCFunction)CGContextRefObj_CGContextSetMiterLimit, 1,
! 	 "(float limit) -> None"},
  	{"CGContextSetFlatness", (PyCFunction)CGContextRefObj_CGContextSetFlatness, 1,
! 	 "(float flatness) -> None"},
  	{"CGContextSetAlpha", (PyCFunction)CGContextRefObj_CGContextSetAlpha, 1,
! 	 "(float alpha) -> None"},
  	{"CGContextBeginPath", (PyCFunction)CGContextRefObj_CGContextBeginPath, 1,
! 	 "() -> None"},
  	{"CGContextMoveToPoint", (PyCFunction)CGContextRefObj_CGContextMoveToPoint, 1,
! 	 "(float x, float y) -> None"},
  	{"CGContextAddLineToPoint", (PyCFunction)CGContextRefObj_CGContextAddLineToPoint, 1,
! 	 "(float x, float y) -> None"},
  	{"CGContextAddCurveToPoint", (PyCFunction)CGContextRefObj_CGContextAddCurveToPoint, 1,
! 	 "(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y) -> None"},
  	{"CGContextAddQuadCurveToPoint", (PyCFunction)CGContextRefObj_CGContextAddQuadCurveToPoint, 1,
! 	 "(float cpx, float cpy, float x, float y) -> None"},
  	{"CGContextClosePath", (PyCFunction)CGContextRefObj_CGContextClosePath, 1,
! 	 "() -> None"},
  	{"CGContextAddRect", (PyCFunction)CGContextRefObj_CGContextAddRect, 1,
! 	 "(CGRect rect) -> None"},
  	{"CGContextAddArc", (PyCFunction)CGContextRefObj_CGContextAddArc, 1,
! 	 "(float x, float y, float radius, float startAngle, float endAngle, int clockwise) -> None"},
  	{"CGContextAddArcToPoint", (PyCFunction)CGContextRefObj_CGContextAddArcToPoint, 1,
! 	 "(float x1, float y1, float x2, float y2, float radius) -> None"},
  	{"CGContextIsPathEmpty", (PyCFunction)CGContextRefObj_CGContextIsPathEmpty, 1,
! 	 "() -> (int _rv)"},
  	{"CGContextGetPathCurrentPoint", (PyCFunction)CGContextRefObj_CGContextGetPathCurrentPoint, 1,
! 	 "() -> (CGPoint _rv)"},
  	{"CGContextGetPathBoundingBox", (PyCFunction)CGContextRefObj_CGContextGetPathBoundingBox, 1,
! 	 "() -> (CGRect _rv)"},
  	{"CGContextDrawPath", (PyCFunction)CGContextRefObj_CGContextDrawPath, 1,
! 	 "(int mode) -> None"},
  	{"CGContextFillPath", (PyCFunction)CGContextRefObj_CGContextFillPath, 1,
! 	 "() -> None"},
  	{"CGContextEOFillPath", (PyCFunction)CGContextRefObj_CGContextEOFillPath, 1,
! 	 "() -> None"},
  	{"CGContextStrokePath", (PyCFunction)CGContextRefObj_CGContextStrokePath, 1,
! 	 "() -> None"},
  	{"CGContextFillRect", (PyCFunction)CGContextRefObj_CGContextFillRect, 1,
! 	 "(CGRect rect) -> None"},
  	{"CGContextStrokeRect", (PyCFunction)CGContextRefObj_CGContextStrokeRect, 1,
! 	 "(CGRect rect) -> None"},
  	{"CGContextStrokeRectWithWidth", (PyCFunction)CGContextRefObj_CGContextStrokeRectWithWidth, 1,
! 	 "(CGRect rect, float width) -> None"},
  	{"CGContextClearRect", (PyCFunction)CGContextRefObj_CGContextClearRect, 1,
! 	 "(CGRect rect) -> None"},
  	{"CGContextClip", (PyCFunction)CGContextRefObj_CGContextClip, 1,
! 	 "() -> None"},
  	{"CGContextEOClip", (PyCFunction)CGContextRefObj_CGContextEOClip, 1,
! 	 "() -> None"},
  	{"CGContextClipToRect", (PyCFunction)CGContextRefObj_CGContextClipToRect, 1,
! 	 "(CGRect rect) -> None"},
  	{"CGContextSetGrayFillColor", (PyCFunction)CGContextRefObj_CGContextSetGrayFillColor, 1,
! 	 "(float gray, float alpha) -> None"},
  	{"CGContextSetGrayStrokeColor", (PyCFunction)CGContextRefObj_CGContextSetGrayStrokeColor, 1,
! 	 "(float gray, float alpha) -> None"},
  	{"CGContextSetRGBFillColor", (PyCFunction)CGContextRefObj_CGContextSetRGBFillColor, 1,
! 	 "(float r, float g, float b, float alpha) -> None"},
  	{"CGContextSetRGBStrokeColor", (PyCFunction)CGContextRefObj_CGContextSetRGBStrokeColor, 1,
! 	 "(float r, float g, float b, float alpha) -> None"},
  	{"CGContextSetCMYKFillColor", (PyCFunction)CGContextRefObj_CGContextSetCMYKFillColor, 1,
! 	 "(float c, float m, float y, float k, float alpha) -> None"},
  	{"CGContextSetCMYKStrokeColor", (PyCFunction)CGContextRefObj_CGContextSetCMYKStrokeColor, 1,
! 	 "(float c, float m, float y, float k, float alpha) -> None"},
  	{"CGContextSetCharacterSpacing", (PyCFunction)CGContextRefObj_CGContextSetCharacterSpacing, 1,
! 	 "(float spacing) -> None"},
  	{"CGContextSetTextPosition", (PyCFunction)CGContextRefObj_CGContextSetTextPosition, 1,
! 	 "(float x, float y) -> None"},
  	{"CGContextGetTextPosition", (PyCFunction)CGContextRefObj_CGContextGetTextPosition, 1,
! 	 "() -> (CGPoint _rv)"},
  	{"CGContextSetTextMatrix", (PyCFunction)CGContextRefObj_CGContextSetTextMatrix, 1,
! 	 "(CGAffineTransform transform) -> None"},
  	{"CGContextGetTextMatrix", (PyCFunction)CGContextRefObj_CGContextGetTextMatrix, 1,
! 	 "() -> (CGAffineTransform _rv)"},
  	{"CGContextSetTextDrawingMode", (PyCFunction)CGContextRefObj_CGContextSetTextDrawingMode, 1,
! 	 "(int mode) -> None"},
  	{"CGContextSetFontSize", (PyCFunction)CGContextRefObj_CGContextSetFontSize, 1,
! 	 "(float size) -> None"},
  	{"CGContextSelectFont", (PyCFunction)CGContextRefObj_CGContextSelectFont, 1,
! 	 "(char * name, float size, int textEncoding) -> None"},
  	{"CGContextShowText", (PyCFunction)CGContextRefObj_CGContextShowText, 1,
! 	 "(Buffer cstring) -> None"},
  	{"CGContextShowTextAtPoint", (PyCFunction)CGContextRefObj_CGContextShowTextAtPoint, 1,
! 	 "(float x, float y, Buffer cstring) -> None"},
  	{"CGContextEndPage", (PyCFunction)CGContextRefObj_CGContextEndPage, 1,
! 	 "() -> None"},
  	{"CGContextFlush", (PyCFunction)CGContextRefObj_CGContextFlush, 1,
! 	 "() -> None"},
  	{"CGContextSynchronize", (PyCFunction)CGContextRefObj_CGContextSynchronize, 1,
! 	 "() -> None"},
  	{"CGContextSetShouldAntialias", (PyCFunction)CGContextRefObj_CGContextSetShouldAntialias, 1,
! 	 "(int shouldAntialias) -> None"},
  	{"SyncCGContextOriginWithPort", (PyCFunction)CGContextRefObj_SyncCGContextOriginWithPort, 1,
! 	 "(CGrafPtr port) -> None"},
  	{"ClipCGContextToRegion", (PyCFunction)CGContextRefObj_ClipCGContextToRegion, 1,
! 	 "(Rect portRect, RgnHandle region) -> None"},
  	{NULL, NULL, 0}
  };
--- 1149,1267 ----
  static PyMethodDef CGContextRefObj_methods[] = {
  	{"CGContextSaveGState", (PyCFunction)CGContextRefObj_CGContextSaveGState, 1,
! 	 PyDoc_STR("() -> None")},
  	{"CGContextRestoreGState", (PyCFunction)CGContextRefObj_CGContextRestoreGState, 1,
! 	 PyDoc_STR("() -> None")},
  	{"CGContextScaleCTM", (PyCFunction)CGContextRefObj_CGContextScaleCTM, 1,
! 	 PyDoc_STR("(float sx, float sy) -> None")},
  	{"CGContextTranslateCTM", (PyCFunction)CGContextRefObj_CGContextTranslateCTM, 1,
! 	 PyDoc_STR("(float tx, float ty) -> None")},
  	{"CGContextRotateCTM", (PyCFunction)CGContextRefObj_CGContextRotateCTM, 1,
! 	 PyDoc_STR("(float angle) -> None")},
  	{"CGContextConcatCTM", (PyCFunction)CGContextRefObj_CGContextConcatCTM, 1,
! 	 PyDoc_STR("(CGAffineTransform transform) -> None")},
  	{"CGContextGetCTM", (PyCFunction)CGContextRefObj_CGContextGetCTM, 1,
! 	 PyDoc_STR("() -> (CGAffineTransform _rv)")},
  	{"CGContextSetLineWidth", (PyCFunction)CGContextRefObj_CGContextSetLineWidth, 1,
! 	 PyDoc_STR("(float width) -> None")},
  	{"CGContextSetLineCap", (PyCFunction)CGContextRefObj_CGContextSetLineCap, 1,
! 	 PyDoc_STR("(int cap) -> None")},
  	{"CGContextSetLineJoin", (PyCFunction)CGContextRefObj_CGContextSetLineJoin, 1,
! 	 PyDoc_STR("(int join) -> None")},
  	{"CGContextSetMiterLimit", (PyCFunction)CGContextRefObj_CGContextSetMiterLimit, 1,
! 	 PyDoc_STR("(float limit) -> None")},
  	{"CGContextSetFlatness", (PyCFunction)CGContextRefObj_CGContextSetFlatness, 1,
! 	 PyDoc_STR("(float flatness) -> None")},
  	{"CGContextSetAlpha", (PyCFunction)CGContextRefObj_CGContextSetAlpha, 1,
! 	 PyDoc_STR("(float alpha) -> None")},
  	{"CGContextBeginPath", (PyCFunction)CGContextRefObj_CGContextBeginPath, 1,
! 	 PyDoc_STR("() -> None")},
  	{"CGContextMoveToPoint", (PyCFunction)CGContextRefObj_CGContextMoveToPoint, 1,
! 	 PyDoc_STR("(float x, float y) -> None")},
  	{"CGContextAddLineToPoint", (PyCFunction)CGContextRefObj_CGContextAddLineToPoint, 1,
! 	 PyDoc_STR("(float x, float y) -> None")},
  	{"CGContextAddCurveToPoint", (PyCFunction)CGContextRefObj_CGContextAddCurveToPoint, 1,
! 	 PyDoc_STR("(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y) -> None")},
  	{"CGContextAddQuadCurveToPoint", (PyCFunction)CGContextRefObj_CGContextAddQuadCurveToPoint, 1,
! 	 PyDoc_STR("(float cpx, float cpy, float x, float y) -> None")},
  	{"CGContextClosePath", (PyCFunction)CGContextRefObj_CGContextClosePath, 1,
! 	 PyDoc_STR("() -> None")},
  	{"CGContextAddRect", (PyCFunction)CGContextRefObj_CGContextAddRect, 1,
! 	 PyDoc_STR("(CGRect rect) -> None")},
  	{"CGContextAddArc", (PyCFunction)CGContextRefObj_CGContextAddArc, 1,
! 	 PyDoc_STR("(float x, float y, float radius, float startAngle, float endAngle, int clockwise) -> None")},
  	{"CGContextAddArcToPoint", (PyCFunction)CGContextRefObj_CGContextAddArcToPoint, 1,
! 	 PyDoc_STR("(float x1, float y1, float x2, float y2, float radius) -> None")},
  	{"CGContextIsPathEmpty", (PyCFunction)CGContextRefObj_CGContextIsPathEmpty, 1,
! 	 PyDoc_STR("() -> (int _rv)")},
  	{"CGContextGetPathCurrentPoint", (PyCFunction)CGContextRefObj_CGContextGetPathCurrentPoint, 1,
! 	 PyDoc_STR("() -> (CGPoint _rv)")},
  	{"CGContextGetPathBoundingBox", (PyCFunction)CGContextRefObj_CGContextGetPathBoundingBox, 1,
! 	 PyDoc_STR("() -> (CGRect _rv)")},
  	{"CGContextDrawPath", (PyCFunction)CGContextRefObj_CGContextDrawPath, 1,
! 	 PyDoc_STR("(int mode) -> None")},
  	{"CGContextFillPath", (PyCFunction)CGContextRefObj_CGContextFillPath, 1,
! 	 PyDoc_STR("() -> None")},
  	{"CGContextEOFillPath", (PyCFunction)CGContextRefObj_CGContextEOFillPath, 1,
! 	 PyDoc_STR("() -> None")},
  	{"CGContextStrokePath", (PyCFunction)CGContextRefObj_CGContextStrokePath, 1,
! 	 PyDoc_STR("() -> None")},
  	{"CGContextFillRect", (PyCFunction)CGContextRefObj_CGContextFillRect, 1,
! 	 PyDoc_STR("(CGRect rect) -> None")},
  	{"CGContextStrokeRect", (PyCFunction)CGContextRefObj_CGContextStrokeRect, 1,
! 	 PyDoc_STR("(CGRect rect) -> None")},
  	{"CGContextStrokeRectWithWidth", (PyCFunction)CGContextRefObj_CGContextStrokeRectWithWidth, 1,
! 	 PyDoc_STR("(CGRect rect, float width) -> None")},
  	{"CGContextClearRect", (PyCFunction)CGContextRefObj_CGContextClearRect, 1,
! 	 PyDoc_STR("(CGRect rect) -> None")},
  	{"CGContextClip", (PyCFunction)CGContextRefObj_CGContextClip, 1,
! 	 PyDoc_STR("() -> None")},
  	{"CGContextEOClip", (PyCFunction)CGContextRefObj_CGContextEOClip, 1,
! 	 PyDoc_STR("() -> None")},
  	{"CGContextClipToRect", (PyCFunction)CGContextRefObj_CGContextClipToRect, 1,
! 	 PyDoc_STR("(CGRect rect) -> None")},
  	{"CGContextSetGrayFillColor", (PyCFunction)CGContextRefObj_CGContextSetGrayFillColor, 1,
! 	 PyDoc_STR("(float gray, float alpha) -> None")},
  	{"CGContextSetGrayStrokeColor", (PyCFunction)CGContextRefObj_CGContextSetGrayStrokeColor, 1,
! 	 PyDoc_STR("(float gray, float alpha) -> None")},
  	{"CGContextSetRGBFillColor", (PyCFunction)CGContextRefObj_CGContextSetRGBFillColor, 1,
! 	 PyDoc_STR("(float r, float g, float b, float alpha) -> None")},
  	{"CGContextSetRGBStrokeColor", (PyCFunction)CGContextRefObj_CGContextSetRGBStrokeColor, 1,
! 	 PyDoc_STR("(float r, float g, float b, float alpha) -> None")},
  	{"CGContextSetCMYKFillColor", (PyCFunction)CGContextRefObj_CGContextSetCMYKFillColor, 1,
! 	 PyDoc_STR("(float c, float m, float y, float k, float alpha) -> None")},
  	{"CGContextSetCMYKStrokeColor", (PyCFunction)CGContextRefObj_CGContextSetCMYKStrokeColor, 1,
! 	 PyDoc_STR("(float c, float m, float y, float k, float alpha) -> None")},
  	{"CGContextSetCharacterSpacing", (PyCFunction)CGContextRefObj_CGContextSetCharacterSpacing, 1,
! 	 PyDoc_STR("(float spacing) -> None")},
  	{"CGContextSetTextPosition", (PyCFunction)CGContextRefObj_CGContextSetTextPosition, 1,
! 	 PyDoc_STR("(float x, float y) -> None")},
  	{"CGContextGetTextPosition", (PyCFunction)CGContextRefObj_CGContextGetTextPosition, 1,
! 	 PyDoc_STR("() -> (CGPoint _rv)")},
  	{"CGContextSetTextMatrix", (PyCFunction)CGContextRefObj_CGContextSetTextMatrix, 1,
! 	 PyDoc_STR("(CGAffineTransform transform) -> None")},
  	{"CGContextGetTextMatrix", (PyCFunction)CGContextRefObj_CGContextGetTextMatrix, 1,
! 	 PyDoc_STR("() -> (CGAffineTransform _rv)")},
  	{"CGContextSetTextDrawingMode", (PyCFunction)CGContextRefObj_CGContextSetTextDrawingMode, 1,
! 	 PyDoc_STR("(int mode) -> None")},
  	{"CGContextSetFontSize", (PyCFunction)CGContextRefObj_CGContextSetFontSize, 1,
! 	 PyDoc_STR("(float size) -> None")},
  	{"CGContextSelectFont", (PyCFunction)CGContextRefObj_CGContextSelectFont, 1,
! 	 PyDoc_STR("(char * name, float size, int textEncoding) -> None")},
  	{"CGContextShowText", (PyCFunction)CGContextRefObj_CGContextShowText, 1,
! 	 PyDoc_STR("(Buffer cstring) -> None")},
  	{"CGContextShowTextAtPoint", (PyCFunction)CGContextRefObj_CGContextShowTextAtPoint, 1,
! 	 PyDoc_STR("(float x, float y, Buffer cstring) -> None")},
  	{"CGContextEndPage", (PyCFunction)CGContextRefObj_CGContextEndPage, 1,
! 	 PyDoc_STR("() -> None")},
  	{"CGContextFlush", (PyCFunction)CGContextRefObj_CGContextFlush, 1,
! 	 PyDoc_STR("() -> None")},
  	{"CGContextSynchronize", (PyCFunction)CGContextRefObj_CGContextSynchronize, 1,
! 	 PyDoc_STR("() -> None")},
  	{"CGContextSetShouldAntialias", (PyCFunction)CGContextRefObj_CGContextSetShouldAntialias, 1,
! 	 PyDoc_STR("(int shouldAntialias) -> None")},
  	{"SyncCGContextOriginWithPort", (PyCFunction)CGContextRefObj_SyncCGContextOriginWithPort, 1,
! 	 PyDoc_STR("(CGrafPtr port) -> None")},
  	{"ClipCGContextToRegion", (PyCFunction)CGContextRefObj_ClipCGContextToRegion, 1,
! 	 PyDoc_STR("(Rect portRect, RgnHandle region) -> None")},
  	{NULL, NULL, 0}
  };
***************
*** 1324,1328 ****
  static PyMethodDef CG_methods[] = {
  	{"CreateCGContextForPort", (PyCFunction)CG_CreateCGContextForPort, 1,
! 	 "(CGrafPtr) -> CGContextRef"},
  	{NULL, NULL, 0}
  };
--- 1324,1328 ----
  static PyMethodDef CG_methods[] = {
  	{"CreateCGContextForPort", (PyCFunction)CG_CreateCGContextForPort, 1,
! 	 PyDoc_STR("(CGrafPtr) -> CGContextRef")},
  	{NULL, NULL, 0}
  };