:mod:`qd` ========= .. py:module:: qd .. autoapi-nested-parse:: qd - Wrapped MacOS APIs .. py:data:: grafSize :type: int .. py:data:: srcCopy :type: int .. py:data:: srcOr :type: int .. py:data:: srcXor :type: int .. py:data:: srcBic :type: int .. py:data:: notSrcCopy :type: int .. py:data:: notSrcOr :type: int .. py:data:: notSrcXor :type: int .. py:data:: notSrcBic :type: int .. py:data:: patCopy :type: int .. py:data:: patOr :type: int .. py:data:: patXor :type: int .. py:data:: patBic :type: int .. py:data:: notPatCopy :type: int .. py:data:: notPatOr :type: int .. py:data:: notPatXor :type: int .. py:data:: notPatBic :type: int .. py:data:: grayishTextOr :type: int .. py:data:: hilite :type: int .. py:data:: blackColor :type: int .. py:data:: whiteColor :type: int .. py:data:: redColor :type: int .. py:data:: greenColor :type: int .. py:data:: blueColor :type: int .. py:data:: cyanColor :type: int .. py:data:: magentaColor :type: int .. py:data:: yellowColor :type: int .. py:data:: picLParen :type: int .. py:data:: picRParen :type: int .. py:data:: normal :type: int .. py:data:: bold :type: int .. py:data:: italic :type: int .. py:data:: underline :type: int .. py:data:: outline :type: int .. py:data:: shadow :type: int .. py:data:: condense :type: int .. py:data:: extend :type: int .. py:class:: Region A uctypes structure .. py:attribute:: rgnSize :type: int .. py:attribute:: rgnBBox :type: Rect .. py:class:: BitMap A uctypes structure .. py:attribute:: baseAddr :type: Ptr .. py:attribute:: rowBytes :type: int .. py:attribute:: bounds :type: Rect .. py:class:: Pattern A uctypes structure .. py:attribute:: pat :type: Byte[8] .. py:class:: Cursor A uctypes structure .. py:attribute:: data :type: Bits16 .. py:attribute:: mask :type: Bits16 .. py:attribute:: hotSpot :type: Point .. py:data:: frame :type: int .. py:data:: paint :type: int .. py:data:: erase :type: int .. py:data:: invert :type: int .. py:data:: fill :type: int .. py:class:: Polygon A uctypes structure .. py:attribute:: polySize :type: int .. py:attribute:: polyBBox :type: Rect .. py:attribute:: polyPoints :type: Point[1] .. py:class:: FontInfo A uctypes structure .. py:attribute:: ascent :type: int .. py:attribute:: descent :type: int .. py:attribute:: widMax :type: int .. py:attribute:: leading :type: int .. py:class:: QDProcs A uctypes structure .. py:attribute:: textProc :type: QDTextUPP .. py:attribute:: lineProc :type: QDLineUPP .. py:attribute:: rectProc :type: QDRectUPP .. py:attribute:: rRectProc :type: QDRRectUPP .. py:attribute:: ovalProc :type: QDOvalUPP .. py:attribute:: arcProc :type: QDArcUPP .. py:attribute:: polyProc :type: QDPolyUPP .. py:attribute:: rgnProc :type: QDRgnUPP .. py:attribute:: bitsProc :type: QDBitsUPP .. py:attribute:: commentProc :type: QDCommentUPP .. py:attribute:: txMeasProc :type: QDTexMeasUPP .. py:attribute:: getPicProc :type: QDGetPicUPP .. py:attribute:: putPicProc :type: QDPutPicUPP .. py:class:: GrafPort A uctypes structure .. py:attribute:: device :type: int .. py:attribute:: portBits :type: BitMap .. py:attribute:: portRect :type: Rect .. py:attribute:: visRgn :type: RgnHandle .. py:attribute:: clipRgn :type: RgnHandle .. py:attribute:: bkPat :type: Pattern .. py:attribute:: fillPat :type: Pattern .. py:attribute:: pnLoc :type: Point .. py:attribute:: pnSize :type: Point .. py:attribute:: pnMode :type: int .. py:attribute:: pnPat :type: Pattern .. py:attribute:: pnVis :type: int .. py:attribute:: txFont :type: int .. py:attribute:: txFace :type: Style .. py:attribute:: filler :type: Byte .. py:attribute:: txMode :type: int .. py:attribute:: txSize :type: int .. py:attribute:: spExtra :type: Fixed .. py:attribute:: fgColor :type: int .. py:attribute:: bkColor :type: int .. py:attribute:: colrBit :type: int .. py:attribute:: patStretch :type: int .. py:attribute:: picSave :type: Handle .. py:attribute:: rgnSave :type: Handle .. py:attribute:: polySave :type: Handle .. py:attribute:: grafProcs :type: QDProcsPtr .. py:class:: Picture A uctypes structure .. py:attribute:: picSize :type: int .. py:attribute:: picFrame :type: Rect .. py:class:: PenState A uctypes structure .. py:attribute:: pnLoc :type: Point .. py:attribute:: pnSize :type: Point .. py:attribute:: pnMode :type: int .. py:attribute:: pnPat :type: Pattern .. py:data:: blend :type: int .. py:data:: addPin :type: int .. py:data:: addOver :type: int .. py:data:: subPin :type: int .. py:data:: transparent :type: int .. py:data:: adMax :type: int .. py:data:: subOver :type: int .. py:data:: adMin :type: int .. py:data:: mask :type: int .. py:data:: pHiliteBit :type: int .. py:data:: hiliteBit :type: int .. py:data:: defQDColors :type: int .. py:class:: RGBColor A uctypes structure .. py:attribute:: red :type: uint16_t .. py:attribute:: green :type: uint16_t .. py:attribute:: blue :type: uint16_t .. py:class:: HSVColor A uctypes structure .. py:attribute:: hue :type: SmallFract .. py:attribute:: saturation :type: SmallFract .. py:attribute:: value :type: SmallFract .. py:class:: HSLColor A uctypes structure .. py:attribute:: hue :type: SmallFract .. py:attribute:: saturation :type: SmallFract .. py:attribute:: lightness :type: SmallFract .. py:class:: CMYColor A uctypes structure .. py:attribute:: cyan :type: SmallFract .. py:attribute:: magenta :type: SmallFract .. py:attribute:: yellow :type: SmallFract .. py:class:: ColorSpec A uctypes structure .. py:attribute:: value :type: int .. py:attribute:: rgb :type: RGBColor .. py:class:: ColorTable A uctypes structure .. py:attribute:: ctSeed :type: int .. py:attribute:: ctFlags :type: uint16_t .. py:attribute:: ctSize :type: int .. py:attribute:: ctTable :type: cSpecArray .. py:class:: CQDProcs A uctypes structure .. py:attribute:: textProc :type: QDTextUPP .. py:attribute:: lineProc :type: QDLineUPP .. py:attribute:: rectProc :type: QDRectUPP .. py:attribute:: rRectProc :type: QDRRectUPP .. py:attribute:: ovalProc :type: QDOvalUPP .. py:attribute:: arcProc :type: QDArcUPP .. py:attribute:: polyProc :type: QDPolyUPP .. py:attribute:: rgnProc :type: QDRgnUPP .. py:attribute:: bitsProc :type: QDBitsUPP .. py:attribute:: commentProc :type: QDCommentUPP .. py:attribute:: txMeasProc :type: QDTexMeasUPP .. py:attribute:: getPicProc :type: QDGetPicUPP .. py:attribute:: putPicProc :type: QDPutPicUPP .. py:attribute:: opcodeProc :type: Ptr .. py:attribute:: newProc1Proc :type: Ptr .. py:attribute:: newProc2Proc :type: Ptr .. py:attribute:: newProc3Proc :type: Ptr .. py:attribute:: newProc4Proc :type: Ptr .. py:attribute:: newProc5Proc :type: Ptr .. py:attribute:: newProc6Proc :type: Ptr .. py:class:: PixMap A uctypes structure .. py:attribute:: baseAddr :type: Ptr .. py:attribute:: rowBytes :type: int .. py:attribute:: bounds :type: Rect .. py:attribute:: pmVersion :type: int .. py:attribute:: packType :type: int .. py:attribute:: packSize :type: int .. py:attribute:: hRes :type: Fixed .. py:attribute:: vRes :type: Fixed .. py:attribute:: pixelType :type: int .. py:attribute:: pixelSize :type: int .. py:attribute:: cmpCount :type: int .. py:attribute:: cmpSize :type: int .. py:attribute:: planeBytes :type: int .. py:attribute:: pmTable :type: CTabHandle .. py:attribute:: pmReserved :type: int .. py:data:: ROWMASK :type: int .. py:class:: PixPat A uctypes structure .. py:attribute:: patType :type: int .. py:attribute:: patMap :type: PixMapHandle .. py:attribute:: patData :type: Handle .. py:attribute:: patXData :type: Handle .. py:attribute:: patXValid :type: int .. py:attribute:: patXMap :type: Handle .. py:attribute:: pat1Data :type: Pattern .. py:class:: CGrafPort A uctypes structure .. py:attribute:: device :type: int .. py:attribute:: portPixMap :type: PixMapHandle .. py:attribute:: portVersion :type: int .. py:attribute:: grafVars :type: Handle .. py:attribute:: chExtra :type: int .. py:attribute:: pnLocHFrac :type: int .. py:attribute:: portRect :type: Rect .. py:attribute:: visRgn :type: RgnHandle .. py:attribute:: clipRgn :type: RgnHandle .. py:attribute:: bkPixPat :type: PixPatHandle .. py:attribute:: rgbFgColor :type: RGBColor .. py:attribute:: rgbBkColor :type: RGBColor .. py:attribute:: pnLoc :type: Point .. py:attribute:: pnSize :type: Point .. py:attribute:: pnMode :type: int .. py:attribute:: pnPixPat :type: PixPatHandle .. py:attribute:: fillPixPat :type: PixPatHandle .. py:attribute:: pnVis :type: int .. py:attribute:: txFont :type: int .. py:attribute:: txFace :type: Style .. py:attribute:: filler :type: Byte .. py:attribute:: txMode :type: int .. py:attribute:: txSize :type: int .. py:attribute:: spExtra :type: Fixed .. py:attribute:: fgColor :type: int .. py:attribute:: bkColor :type: int .. py:attribute:: colrBit :type: int .. py:attribute:: patStretch :type: int .. py:attribute:: picSave :type: Handle .. py:attribute:: rgnSave :type: Handle .. py:attribute:: polySave :type: Handle .. py:attribute:: grafProcs :type: CQDProcsPtr .. py:class:: CCrsr A uctypes structure .. py:attribute:: crsrType :type: int .. py:attribute:: crsrMap :type: PixMapHandle .. py:attribute:: crsrData :type: Handle .. py:attribute:: crsrXData :type: Handle .. py:attribute:: crsrXValid :type: int .. py:attribute:: crsrXHandle :type: Handle .. py:attribute:: crsr1Data :type: Bits16 .. py:attribute:: crsrMask :type: Bits16 .. py:attribute:: crsrHotSpot :type: Point .. py:attribute:: crsrXTable :type: int .. py:attribute:: crsrID :type: int .. py:class:: MatchRec A uctypes structure .. py:attribute:: red :type: uint16_t .. py:attribute:: green :type: uint16_t .. py:attribute:: blue :type: uint16_t .. py:attribute:: matchData :type: int32_t .. py:class:: QDGlobals A uctypes structure .. py:attribute:: privates :type: char[76] .. py:attribute:: randSeed :type: int32_t .. py:attribute:: screenBits :type: BitMap .. py:attribute:: arrow :type: Cursor .. py:attribute:: dkGray :type: Pattern .. py:attribute:: ltGray :type: Pattern .. py:attribute:: gray :type: Pattern .. py:attribute:: black :type: Pattern .. py:attribute:: white :type: Pattern .. py:attribute:: thePort :type: GrafPtr .. py:function:: LMGetScrVRes() -> object .. py:function:: LMSetScrVRes(value) -> None .. py:function:: LMGetScrHRes() -> object .. py:function:: LMSetScrHRes(value) -> None .. py:function:: LMGetScreenRow() -> object .. py:function:: LMSetScreenRow(value) -> None .. py:function:: LMGetRndSeed() -> object .. py:function:: LMSetRndSeed(value) -> None .. py:function:: LMGetScreenVars() -> object .. py:function:: LMSetScreenVars(value) -> None .. py:function:: LMGetKey1Trans() -> object .. py:function:: LMSetKey1Trans(value) -> None .. py:function:: LMGetKey2Trans() -> object .. py:function:: LMSetKey2Trans(value) -> None .. py:function:: LMGetJUnknown574() -> object .. py:function:: LMSetJUnknown574(value) -> None .. py:function:: LMGetJADBProc() -> object .. py:function:: LMSetJADBProc(value) -> None .. py:function:: LMGetJHideCursor() -> object .. py:function:: LMSetJHideCursor(value) -> None .. py:function:: LMGetJShowCursor() -> object .. py:function:: LMSetJShowCursor(value) -> None .. py:function:: LMGetJShieldCursor() -> object .. py:function:: LMSetJShieldCursor(value) -> None .. py:function:: LMGetJScrnAddr() -> object .. py:function:: LMSetJScrnAddr(value) -> None .. py:function:: LMGetJScrnSize() -> object .. py:function:: LMSetJScrnSize(value) -> None .. py:function:: LMGetJInitCrsr() -> object .. py:function:: LMSetJInitCrsr(value) -> None .. py:function:: LMGetJSetCrsr() -> object .. py:function:: LMSetJSetCrsr(value) -> None .. py:function:: LMGetJCrsrObscure() -> object .. py:function:: LMSetJCrsrObscure(value) -> None .. py:function:: LMGetJUpdateProc() -> object .. py:function:: LMSetJUpdateProc(value) -> None .. py:function:: LMGetScrnBase() -> object .. py:function:: LMSetScrnBase(value) -> None .. py:function:: LMGetCrsrPin() -> object .. py:function:: LMSetCrsrPin(value) -> None .. py:function:: LMGetQDColors() -> object .. py:function:: LMSetQDColors(value) -> None .. py:function:: LMGetCrsrVis() -> object .. py:function:: LMSetCrsrVis(value) -> None .. py:function:: LMGetCrsrBusy() -> object .. py:function:: LMSetCrsrBusy(value) -> None .. py:function:: LMGetCrsrState() -> object .. py:function:: LMSetCrsrState(value) -> None .. py:function:: LMGetmousemask() -> object .. py:function:: LMSetmousemask(value) -> None .. py:function:: LMGetmouseoffset() -> object .. py:function:: LMSetmouseoffset(value) -> None .. py:function:: LMGetJCrsrTask() -> object .. py:function:: LMSetJCrsrTask(value) -> None .. py:function:: LMGetHiliteMode() -> object .. py:function:: LMSetHiliteMode(value) -> None .. py:function:: LMGetPortList() -> object .. py:function:: LMSetPortList(value) -> None .. py:function:: CopyBits(src_bitmap: BitMap, dst_bitmap: BitMap, src_rect: Rect, dst_rect: Rect, mode: int, mask: RgnHandle) -> None .. py:function:: ScrollRect(rp: Rect, dh: int, dv: int, updatergn: RgnHandle) -> None .. py:function:: ForeColor(c: int) -> None .. py:function:: BackColor(c: int) -> None .. py:function:: ColorBit(b: int) -> None .. py:function:: SetCursor(cp: Cursor) -> None .. py:function:: InitCursor() -> None .. py:function:: HideCursor() -> None .. py:function:: ShowCursor() -> None .. py:function:: ObscureCursor() -> None .. py:function:: ShieldCursor(rp: Rect, p: Point) -> None .. py:function:: InitGraf(gp: GrafPtr) -> None .. py:function:: SetPort(p: GrafPtr) -> None .. py:function:: InitPort(p: GrafPtr) -> None .. py:function:: OpenPort(p: GrafPtr) -> None .. py:function:: ClosePort(p: GrafPtr) -> None .. py:function:: GetPort(pp: GrafPtr) -> None .. py:function:: GrafDevice(d: int) -> None .. py:function:: SetPortBits(bm: BitMap) -> None .. py:function:: PortSize(w: int, h: int) -> None .. py:function:: MovePortTo(lg: int, tg: int) -> None .. py:function:: SetOrigin(h: int, v: int) -> None .. py:function:: SetClip(r: RgnHandle) -> None .. py:function:: GetClip(r: RgnHandle) -> None .. py:function:: ClipRect(r: Rect) -> None .. py:function:: BackPat(pp: Pattern) -> None .. py:function:: SeedFill(srcp: Ptr, dstp: Ptr, srcr: int, dstr: int, height: int, width: int, seedh: int, seedv: int) -> None .. py:function:: CalcMask(srcp: Ptr, dstp: Ptr, srcr: int, dstr: int, height: int, width: int) -> None .. py:function:: CopyMask(srcbp: BitMap, mskbp: BitMap, dstbp: BitMap, srcrp: Rect, mskrp: Rect, dstrp: Rect) -> None .. py:function:: GetMaskTable() -> array.array[h] .. py:function:: CharExtra(Extra: Fixed) -> None .. py:function:: MakeRGBPat(ph: PixPatHandle, colorp: RGBColor) -> None .. py:function:: Random() -> int .. py:function:: GetPixel(h: int, v: int) -> Boolean .. py:function:: StuffHex(p: Ptr, s: ConstStringPtr) -> None .. py:function:: ScalePt(pt: Point, srcr: Rect, dstr: Rect) -> None .. py:function:: MapPt(pt: Point, srcr: Rect, dstr: Rect) -> None .. py:function:: MapRect(r: Rect, srcr: Rect, dstr: Rect) -> None .. py:function:: MapRgn(rh: RgnHandle, srcr: Rect, dstr: Rect) -> None .. py:function:: MapPoly(poly: PolyHandle, srcr: Rect, dstr: Rect) -> None .. py:function:: HidePen() -> None .. py:function:: ShowPen() -> None .. py:function:: GetPen(ptp: Point) -> None .. py:function:: GetPenState(ps: PenState) -> None .. py:function:: SetPenState(ps: PenState) -> None .. py:function:: PenSize(w: int, h: int) -> None .. py:function:: PenMode(m: int) -> None .. py:function:: PenPat(pp: Pattern) -> None .. py:function:: PenNormal() -> None .. py:function:: MoveTo(h: int, v: int) -> None .. py:function:: Move(dh: int, dv: int) -> None .. py:function:: LineTo(h: int, v: int) -> None .. py:function:: Line(dh: int, dv: int) -> None .. py:function:: DrawPicture(pic: PicHandle, destrp: Rect) -> None .. py:function:: OpenPicture(pf: Rect) -> PicHandle .. py:function:: ClosePicture() -> None .. py:function:: PicComment(kind: int, size: int, hand: Handle) -> None .. py:function:: KillPicture(pic: PicHandle) -> None .. py:function:: AddPt(src: Point, dst: Point) -> None .. py:function:: SubPt(src: Point, dst: Point) -> None .. py:function:: SetPt(pt: Point, h: int, v: int) -> None .. py:function:: EqualPt(p1: Point, p2: Point) -> Boolean .. py:function:: LocalToGlobal(pt: Point) -> None .. py:function:: GlobalToLocal(pt: Point) -> None .. py:function:: OpenPoly() -> PolyHandle .. py:function:: ClosePoly() -> None .. py:function:: KillPoly(poly: PolyHandle) -> None .. py:function:: OffsetPoly(poly: PolyHandle, dh: int, dv: int) -> None .. py:function:: SetRect(r: Rect, left: int, top: int, right: int, bottom: int) -> None .. py:function:: OffsetRect(r: Rect, dh: int, dv: int) -> None .. py:function:: InsetRect(r: Rect, dh: int, dv: int) -> None .. py:function:: EmptyRect(r: Rect) -> Boolean .. py:function:: SectRect(s1: Rect, s2: Rect, dest: Rect) -> Boolean .. py:function:: UnionRect(s1: Rect, s2: Rect, dest: Rect) -> None .. py:function:: PtInRect(p: Point, r: Rect) -> Boolean .. py:function:: Pt2Rect(p1: Point, p2: Point, dest: Rect) -> None .. py:function:: PtToAngle(rp: Rect, p: Point, angle: array.array['h']) -> None .. py:function:: EqualRect(r1: Rect, r2: Rect) -> Boolean .. py:function:: NewRgn() -> RgnHandle .. py:function:: OpenRgn() -> None .. py:function:: CopyRgn(s: RgnHandle, d: RgnHandle) -> None .. py:function:: CloseRgn(rh: RgnHandle) -> None .. py:function:: DisposeRgn(rh: RgnHandle) -> None .. py:function:: SetEmptyRgn(rh: RgnHandle) -> None .. py:function:: SetRectRgn(rh: RgnHandle, left: int, top: int, right: int, bottom: int) -> None .. py:function:: RectRgn(rh: RgnHandle, rect: Rect) -> None .. py:function:: OffsetRgn(rh: RgnHandle, dh: int, dv: int) -> None .. py:function:: PtInRgn(p: Point, rh: RgnHandle) -> Boolean .. py:function:: InsetRgn(rh: RgnHandle, dh: int, dv: int) -> None .. py:function:: SectRgn(s1: RgnHandle, s2: RgnHandle, dest: RgnHandle) -> None .. py:function:: UnionRgn(s1: RgnHandle, s2: RgnHandle, dest: RgnHandle) -> None .. py:function:: DiffRgn(s1: RgnHandle, s2: RgnHandle, dest: RgnHandle) -> None .. py:function:: XorRgn(s1: RgnHandle, s2: RgnHandle, dest: RgnHandle) -> None .. py:function:: RectInRgn(rp: Rect, rh: RgnHandle) -> Boolean .. py:function:: EqualRgn(r1: RgnHandle, r2: RgnHandle) -> Boolean .. py:function:: EmptyRgn(rh: RgnHandle) -> Boolean .. py:function:: FrameRect(r: Rect) -> None .. py:function:: PaintRect(r: Rect) -> None .. py:function:: EraseRect(r: Rect) -> None .. py:function:: InvertRect(r: Rect) -> None .. py:function:: FillRect(r: Rect, pat: Pattern) -> None .. py:function:: FrameOval(r: Rect) -> None .. py:function:: PaintOval(r: Rect) -> None .. py:function:: EraseOval(r: Rect) -> None .. py:function:: InvertOval(r: Rect) -> None .. py:function:: FillOval(r: Rect, pat: Pattern) -> None .. py:function:: FrameRoundRect(r: Rect, ow: int, oh: int) -> None .. py:function:: PaintRoundRect(r: Rect, ow: int, oh: int) -> None .. py:function:: EraseRoundRect(r: Rect, ow: int, oh: int) -> None .. py:function:: InvertRoundRect(r: Rect, ow: int, oh: int) -> None .. py:function:: FillRoundRect(r: Rect, ow: int, oh: int, pat: Pattern) -> None .. py:function:: FrameArc(r: Rect, start: int, angle: int) -> None .. py:function:: PaintArc(r: Rect, start: int, angle: int) -> None .. py:function:: EraseArc(r: Rect, start: int, angle: int) -> None .. py:function:: InvertArc(r: Rect, start: int, angle: int) -> None .. py:function:: FillArc(r: Rect, start: int, angle: int, pat: Pattern) -> None .. py:function:: FrameRgn(rh: RgnHandle) -> None .. py:function:: PaintRgn(rh: RgnHandle) -> None .. py:function:: EraseRgn(rh: RgnHandle) -> None .. py:function:: InvertRgn(rh: RgnHandle) -> None .. py:function:: FillRgn(rh: RgnHandle, pat: Pattern) -> None .. py:function:: FramePoly(poly: PolyHandle) -> None .. py:function:: PaintPoly(poly: PolyHandle) -> None .. py:function:: ErasePoly(poly: PolyHandle) -> None .. py:function:: InvertPoly(poly: PolyHandle) -> None .. py:function:: FillPoly(poly: PolyHandle, pat: Pattern) -> None .. py:function:: SetStdProcs(procs: QDProcs) -> None .. py:function:: StdArc(verb: GrafVerb, r: Rect, starta: int, arca: int) -> None .. py:function:: StdBits(srcbmp: BitMap, srcrp: Rect, dstrp: Rect, mode: int, mask: RgnHandle) -> None .. py:function:: StdLine(p: Point) -> None .. py:function:: StdOval(v: GrafVerb, rp: Rect) -> None .. py:function:: StdComment(kind: int, size: int, hand: Handle) -> None .. py:function:: StdGetPic(dp: void, bc: int) -> None .. py:function:: StdPutPic(sp: void, bc: int) -> None .. py:function:: StdPoly(verb: GrafVerb, ph: PolyHandle) -> None .. py:function:: StdRRect(verb: GrafVerb, r: Rect, width: int, height: int) -> None .. py:function:: StdRect(v: GrafVerb, rp: Rect) -> None .. py:function:: StdRgn(verb: GrafVerb, rgn: RgnHandle) -> None .. py:function:: StdText(n: int, textbufp: Ptr, num: Point, den: Point) -> None .. py:function:: StdTxMeas(n: int, p: Ptr, nump: Point, denp: Point, finfop: FontInfo) -> int .. py:function:: MeasureText(n: int, text: Ptr, chars: Ptr) -> None .. py:function:: TextFont(f: int) -> None .. py:function:: TextFace(thef: int) -> None .. py:function:: TextMode(m: int) -> None .. py:function:: TextSize(s: int) -> None .. py:function:: SpaceExtra(e: Fixed) -> None .. py:function:: DrawChar(thec: CharParameter) -> None .. py:function:: DrawString(s: ConstStringPtr) -> None .. py:function:: DrawText(tb: const Ptr, fb: int, bc: int) -> None .. py:function:: CharWidth(thec: CharParameter) -> int .. py:function:: StringWidth(s: ConstStringPtr) -> int .. py:function:: TextWidth(tb: Ptr, fb: int, bc: int) -> int .. py:function:: GetFontInfo(ip: FontInfo) -> None .. py:function:: GetCPixel(h: int, v: int, colorp: RGBColor) -> None .. py:function:: SetCPixel(h: int, v: int, colorp: RGBColor) -> None .. py:function:: SeedCFill(srcbp: BitMap, dstbp: BitMap, srcrp: Rect, dstrp: Rect, seedh: int, seedv: int, matchprocp: ProcPtr, matchdata: int) -> None .. py:function:: CalcCMask(srcbp: BitMap, dstbp: BitMap, srcrp: Rect, dstrp: Rect, seedrgbp: RGBColor, matchprocp: ProcPtr, matchdata: int) -> None .. py:function:: CopyDeepMask(srcBits: BitMap, maskBits: BitMap, dstBits: BitMap, srcRect: Rect, maskRect: Rect, dstRect: Rect, mode: int, maskRgn: RgnHandle) -> None .. py:function:: GetPortTextFont(p: CGrafPtr) -> int16_t .. py:function:: GetPortTextSize(p: CGrafPtr) -> int16_t .. py:function:: QDFlushPortBuffer(p: CGrafPtr, rgn: RgnHandle) -> None .. py:function:: GetPortBounds(p: CGrafPtr, r: Rect ) -> None .. py:function:: GetPortVisibleRegion(p: CGrafPtr, rgn: RgnHandle) -> None .. py:function:: GetRegionBounds(rgn: RgnHandle, r: Rect ) -> None .. py:function:: GetPortBitMapForCopyBits(p: CGrafPtr) -> BitMap .. py:function:: GetQDGlobalsScreenBits(bm: BitMap ) -> None .. py:function:: qdGlobals() -> QDGlobals