This is the documentation for the latest development branch of M68k MicroPython and may refer to features that are not available in released versions.

If you are looking for the documentation for a specific release, use the drop-down menu on the left and select the desired version.

qd

qd - Wrapped MacOS APIs

qd.grafSize: int
qd.srcCopy: int
qd.srcOr: int
qd.srcXor: int
qd.srcBic: int
qd.notSrcCopy: int
qd.notSrcOr: int
qd.notSrcXor: int
qd.notSrcBic: int
qd.patCopy: int
qd.patOr: int
qd.patXor: int
qd.patBic: int
qd.notPatCopy: int
qd.notPatOr: int
qd.notPatXor: int
qd.notPatBic: int
qd.grayishTextOr: int
qd.hilite: int
qd.blackColor: int
qd.whiteColor: int
qd.redColor: int
qd.greenColor: int
qd.blueColor: int
qd.cyanColor: int
qd.magentaColor: int
qd.yellowColor: int
qd.picLParen: int
qd.picRParen: int
qd.normal: int
qd.bold: int
qd.italic: int
qd.underline: int
qd.outline: int
qd.shadow: int
qd.condense: int
qd.extend: int
class qd.Region

A uctypes structure

rgnSize: int
rgnBBox: Rect
class qd.BitMap

A uctypes structure

baseAddr: Ptr
rowBytes: int
bounds: Rect
class qd.Pattern

A uctypes structure

pat: Byte[8]
class qd.Cursor

A uctypes structure

data: Bits16
mask: Bits16
hotSpot: Point
qd.frame: int
qd.paint: int
qd.erase: int
qd.invert: int
qd.fill: int
class qd.Polygon

A uctypes structure

polySize: int
polyBBox: Rect
polyPoints: Point[1]
class qd.FontInfo

A uctypes structure

ascent: int
descent: int
widMax: int
leading: int
class qd.QDProcs

A uctypes structure

textProc: QDTextUPP
lineProc: QDLineUPP
rectProc: QDRectUPP
rRectProc: QDRRectUPP
ovalProc: QDOvalUPP
arcProc: QDArcUPP
polyProc: QDPolyUPP
rgnProc: QDRgnUPP
bitsProc: QDBitsUPP
commentProc: QDCommentUPP
txMeasProc: QDTexMeasUPP
getPicProc: QDGetPicUPP
putPicProc: QDPutPicUPP
class qd.GrafPort

A uctypes structure

device: int
portBits: BitMap
portRect: Rect
visRgn: RgnHandle
clipRgn: RgnHandle
bkPat: Pattern
fillPat: Pattern
pnLoc: Point
pnSize: Point
pnMode: int
pnPat: Pattern
pnVis: int
txFont: int
txFace: Style
filler: Byte
txMode: int
txSize: int
spExtra: Fixed
fgColor: int
bkColor: int
colrBit: int
patStretch: int
picSave: Handle
rgnSave: Handle
polySave: Handle
grafProcs: QDProcsPtr
class qd.Picture

A uctypes structure

picSize: int
picFrame: Rect
class qd.PenState

A uctypes structure

pnLoc: Point
pnSize: Point
pnMode: int
pnPat: Pattern
qd.blend: int
qd.addPin: int
qd.addOver: int
qd.subPin: int
qd.transparent: int
qd.adMax: int
qd.subOver: int
qd.adMin: int
qd.mask: int
qd.pHiliteBit: int
qd.hiliteBit: int
qd.defQDColors: int
class qd.RGBColor

A uctypes structure

red: uint16_t
green: uint16_t
blue: uint16_t
class qd.HSVColor

A uctypes structure

hue: SmallFract
saturation: SmallFract
value: SmallFract
class qd.HSLColor

A uctypes structure

hue: SmallFract
saturation: SmallFract
lightness: SmallFract
class qd.CMYColor

A uctypes structure

cyan: SmallFract
magenta: SmallFract
yellow: SmallFract
class qd.ColorSpec

A uctypes structure

value: int
rgb: RGBColor
class qd.ColorTable

A uctypes structure

ctSeed: int
ctFlags: uint16_t
ctSize: int
ctTable: cSpecArray
class qd.CQDProcs

A uctypes structure

textProc: QDTextUPP
lineProc: QDLineUPP
rectProc: QDRectUPP
rRectProc: QDRRectUPP
ovalProc: QDOvalUPP
arcProc: QDArcUPP
polyProc: QDPolyUPP
rgnProc: QDRgnUPP
bitsProc: QDBitsUPP
commentProc: QDCommentUPP
txMeasProc: QDTexMeasUPP
getPicProc: QDGetPicUPP
putPicProc: QDPutPicUPP
opcodeProc: Ptr
newProc1Proc: Ptr
newProc2Proc: Ptr
newProc3Proc: Ptr
newProc4Proc: Ptr
newProc5Proc: Ptr
newProc6Proc: Ptr
class qd.PixMap

A uctypes structure

baseAddr: Ptr
rowBytes: int
bounds: Rect
pmVersion: int
packType: int
packSize: int
hRes: Fixed
vRes: Fixed
pixelType: int
pixelSize: int
cmpCount: int
cmpSize: int
planeBytes: int
pmTable: CTabHandle
pmReserved: int
qd.ROWMASK: int
class qd.PixPat

A uctypes structure

patType: int
patMap: PixMapHandle
patData: Handle
patXData: Handle
patXValid: int
patXMap: Handle
pat1Data: Pattern
class qd.CGrafPort

A uctypes structure

device: int
portPixMap: PixMapHandle
portVersion: int
grafVars: Handle
chExtra: int
pnLocHFrac: int
portRect: Rect
visRgn: RgnHandle
clipRgn: RgnHandle
bkPixPat: PixPatHandle
rgbFgColor: RGBColor
rgbBkColor: RGBColor
pnLoc: Point
pnSize: Point
pnMode: int
pnPixPat: PixPatHandle
fillPixPat: PixPatHandle
pnVis: int
txFont: int
txFace: Style
filler: Byte
txMode: int
txSize: int
spExtra: Fixed
fgColor: int
bkColor: int
colrBit: int
patStretch: int
picSave: Handle
rgnSave: Handle
polySave: Handle
grafProcs: CQDProcsPtr
class qd.CCrsr

A uctypes structure

crsrType: int
crsrMap: PixMapHandle
crsrData: Handle
crsrXData: Handle
crsrXValid: int
crsrXHandle: Handle
crsr1Data: Bits16
crsrMask: Bits16
crsrHotSpot: Point
crsrXTable: int
crsrID: int
class qd.MatchRec

A uctypes structure

red: uint16_t
green: uint16_t
blue: uint16_t
matchData: int32_t
class qd.QDGlobals

A uctypes structure

privates: char[76]
randSeed: int32_t
screenBits: BitMap
arrow: Cursor
dkGray: Pattern
ltGray: Pattern
gray: Pattern
black: Pattern
white: Pattern
thePort: GrafPtr
qd.LMGetScrVRes() object
qd.LMSetScrVRes(value) None
qd.LMGetScrHRes() object
qd.LMSetScrHRes(value) None
qd.LMGetScreenRow() object
qd.LMSetScreenRow(value) None
qd.LMGetRndSeed() object
qd.LMSetRndSeed(value) None
qd.LMGetScreenVars() object
qd.LMSetScreenVars(value) None
qd.LMGetKey1Trans() object
qd.LMSetKey1Trans(value) None
qd.LMGetKey2Trans() object
qd.LMSetKey2Trans(value) None
qd.LMGetJUnknown574() object
qd.LMSetJUnknown574(value) None
qd.LMGetJADBProc() object
qd.LMSetJADBProc(value) None
qd.LMGetJHideCursor() object
qd.LMSetJHideCursor(value) None
qd.LMGetJShowCursor() object
qd.LMSetJShowCursor(value) None
qd.LMGetJShieldCursor() object
qd.LMSetJShieldCursor(value) None
qd.LMGetJScrnAddr() object
qd.LMSetJScrnAddr(value) None
qd.LMGetJScrnSize() object
qd.LMSetJScrnSize(value) None
qd.LMGetJInitCrsr() object
qd.LMSetJInitCrsr(value) None
qd.LMGetJSetCrsr() object
qd.LMSetJSetCrsr(value) None
qd.LMGetJCrsrObscure() object
qd.LMSetJCrsrObscure(value) None
qd.LMGetJUpdateProc() object
qd.LMSetJUpdateProc(value) None
qd.LMGetScrnBase() object
qd.LMSetScrnBase(value) None
qd.LMGetCrsrPin() object
qd.LMSetCrsrPin(value) None
qd.LMGetQDColors() object
qd.LMSetQDColors(value) None
qd.LMGetCrsrVis() object
qd.LMSetCrsrVis(value) None
qd.LMGetCrsrBusy() object
qd.LMSetCrsrBusy(value) None
qd.LMGetCrsrState() object
qd.LMSetCrsrState(value) None
qd.LMGetmousemask() object
qd.LMSetmousemask(value) None
qd.LMGetmouseoffset() object
qd.LMSetmouseoffset(value) None
qd.LMGetJCrsrTask() object
qd.LMSetJCrsrTask(value) None
qd.LMGetHiliteMode() object
qd.LMSetHiliteMode(value) None
qd.LMGetPortList() object
qd.LMSetPortList(value) None
qd.CopyBits(src_bitmap: BitMap, dst_bitmap: BitMap, src_rect: Rect, dst_rect: Rect, mode: int, mask: RgnHandle) None
qd.ScrollRect(rp: Rect, dh: int, dv: int, updatergn: RgnHandle) None
qd.ForeColor(c: int) None
qd.BackColor(c: int) None
qd.ColorBit(b: int) None
qd.SetCursor(cp: Cursor) None
qd.InitCursor() None
qd.HideCursor() None
qd.ShowCursor() None
qd.ObscureCursor() None
qd.ShieldCursor(rp: Rect, p: Point) None
qd.InitGraf(gp: GrafPtr) None
qd.SetPort(p: GrafPtr) None
qd.InitPort(p: GrafPtr) None
qd.OpenPort(p: GrafPtr) None
qd.ClosePort(p: GrafPtr) None
qd.GetPort(pp: GrafPtr) None
qd.GrafDevice(d: int) None
qd.SetPortBits(bm: BitMap) None
qd.PortSize(w: int, h: int) None
qd.MovePortTo(lg: int, tg: int) None
qd.SetOrigin(h: int, v: int) None
qd.SetClip(r: RgnHandle) None
qd.GetClip(r: RgnHandle) None
qd.ClipRect(r: Rect) None
qd.BackPat(pp: Pattern) None
qd.SeedFill(srcp: Ptr, dstp: Ptr, srcr: int, dstr: int, height: int, width: int, seedh: int, seedv: int) None
qd.CalcMask(srcp: Ptr, dstp: Ptr, srcr: int, dstr: int, height: int, width: int) None
qd.CopyMask(srcbp: BitMap, mskbp: BitMap, dstbp: BitMap, srcrp: Rect, mskrp: Rect, dstrp: Rect) None
qd.GetMaskTable() array.array[h]
qd.CharExtra(Extra: Fixed) None
qd.MakeRGBPat(ph: PixPatHandle, colorp: RGBColor) None
qd.Random() int
qd.GetPixel(h: int, v: int) Boolean
qd.StuffHex(p: Ptr, s: ConstStringPtr) None
qd.ScalePt(pt: Point, srcr: Rect, dstr: Rect) None
qd.MapPt(pt: Point, srcr: Rect, dstr: Rect) None
qd.MapRect(r: Rect, srcr: Rect, dstr: Rect) None
qd.MapRgn(rh: RgnHandle, srcr: Rect, dstr: Rect) None
qd.MapPoly(poly: PolyHandle, srcr: Rect, dstr: Rect) None
qd.HidePen() None
qd.ShowPen() None
qd.GetPen(ptp: Point) None
qd.GetPenState(ps: PenState) None
qd.SetPenState(ps: PenState) None
qd.PenSize(w: int, h: int) None
qd.PenMode(m: int) None
qd.PenPat(pp: Pattern) None
qd.PenNormal() None
qd.MoveTo(h: int, v: int) None
qd.Move(dh: int, dv: int) None
qd.LineTo(h: int, v: int) None
qd.Line(dh: int, dv: int) None
qd.DrawPicture(pic: PicHandle, destrp: Rect) None
qd.OpenPicture(pf: Rect) PicHandle
qd.ClosePicture() None
qd.PicComment(kind: int, size: int, hand: Handle) None
qd.KillPicture(pic: PicHandle) None
qd.AddPt(src: Point, dst: Point) None
qd.SubPt(src: Point, dst: Point) None
qd.SetPt(pt: Point, h: int, v: int) None
qd.EqualPt(p1: Point, p2: Point) Boolean
qd.LocalToGlobal(pt: Point) None
qd.GlobalToLocal(pt: Point) None
qd.OpenPoly() PolyHandle
qd.ClosePoly() None
qd.KillPoly(poly: PolyHandle) None
qd.OffsetPoly(poly: PolyHandle, dh: int, dv: int) None
qd.SetRect(r: Rect, left: int, top: int, right: int, bottom: int) None
qd.OffsetRect(r: Rect, dh: int, dv: int) None
qd.InsetRect(r: Rect, dh: int, dv: int) None
qd.EmptyRect(r: Rect) Boolean
qd.SectRect(s1: Rect, s2: Rect, dest: Rect) Boolean
qd.UnionRect(s1: Rect, s2: Rect, dest: Rect) None
qd.PtInRect(p: Point, r: Rect) Boolean
qd.Pt2Rect(p1: Point, p2: Point, dest: Rect) None
qd.PtToAngle(rp: Rect, p: Point, angle: array.array['h']) None
qd.EqualRect(r1: Rect, r2: Rect) Boolean
qd.NewRgn() RgnHandle
qd.OpenRgn() None
qd.CopyRgn(s: RgnHandle, d: RgnHandle) None
qd.CloseRgn(rh: RgnHandle) None
qd.DisposeRgn(rh: RgnHandle) None
qd.SetEmptyRgn(rh: RgnHandle) None
qd.SetRectRgn(rh: RgnHandle, left: int, top: int, right: int, bottom: int) None
qd.RectRgn(rh: RgnHandle, rect: Rect) None
qd.OffsetRgn(rh: RgnHandle, dh: int, dv: int) None
qd.PtInRgn(p: Point, rh: RgnHandle) Boolean
qd.InsetRgn(rh: RgnHandle, dh: int, dv: int) None
qd.SectRgn(s1: RgnHandle, s2: RgnHandle, dest: RgnHandle) None
qd.UnionRgn(s1: RgnHandle, s2: RgnHandle, dest: RgnHandle) None
qd.DiffRgn(s1: RgnHandle, s2: RgnHandle, dest: RgnHandle) None
qd.XorRgn(s1: RgnHandle, s2: RgnHandle, dest: RgnHandle) None
qd.RectInRgn(rp: Rect, rh: RgnHandle) Boolean
qd.EqualRgn(r1: RgnHandle, r2: RgnHandle) Boolean
qd.EmptyRgn(rh: RgnHandle) Boolean
qd.FrameRect(r: Rect) None
qd.PaintRect(r: Rect) None
qd.EraseRect(r: Rect) None
qd.InvertRect(r: Rect) None
qd.FillRect(r: Rect, pat: Pattern) None
qd.FrameOval(r: Rect) None
qd.PaintOval(r: Rect) None
qd.EraseOval(r: Rect) None
qd.InvertOval(r: Rect) None
qd.FillOval(r: Rect, pat: Pattern) None
qd.FrameRoundRect(r: Rect, ow: int, oh: int) None
qd.PaintRoundRect(r: Rect, ow: int, oh: int) None
qd.EraseRoundRect(r: Rect, ow: int, oh: int) None
qd.InvertRoundRect(r: Rect, ow: int, oh: int) None
qd.FillRoundRect(r: Rect, ow: int, oh: int, pat: Pattern) None
qd.FrameArc(r: Rect, start: int, angle: int) None
qd.PaintArc(r: Rect, start: int, angle: int) None
qd.EraseArc(r: Rect, start: int, angle: int) None
qd.InvertArc(r: Rect, start: int, angle: int) None
qd.FillArc(r: Rect, start: int, angle: int, pat: Pattern) None
qd.FrameRgn(rh: RgnHandle) None
qd.PaintRgn(rh: RgnHandle) None
qd.EraseRgn(rh: RgnHandle) None
qd.InvertRgn(rh: RgnHandle) None
qd.FillRgn(rh: RgnHandle, pat: Pattern) None
qd.FramePoly(poly: PolyHandle) None
qd.PaintPoly(poly: PolyHandle) None
qd.ErasePoly(poly: PolyHandle) None
qd.InvertPoly(poly: PolyHandle) None
qd.FillPoly(poly: PolyHandle, pat: Pattern) None
qd.SetStdProcs(procs: QDProcs) None
qd.StdArc(verb: GrafVerb, r: Rect, starta: int, arca: int) None
qd.StdBits(srcbmp: BitMap, srcrp: Rect, dstrp: Rect, mode: int, mask: RgnHandle) None
qd.StdLine(p: Point) None
qd.StdOval(v: GrafVerb, rp: Rect) None
qd.StdComment(kind: int, size: int, hand: Handle) None
qd.StdGetPic(dp: void, bc: int) None
qd.StdPutPic(sp: void, bc: int) None
qd.StdPoly(verb: GrafVerb, ph: PolyHandle) None
qd.StdRRect(verb: GrafVerb, r: Rect, width: int, height: int) None
qd.StdRect(v: GrafVerb, rp: Rect) None
qd.StdRgn(verb: GrafVerb, rgn: RgnHandle) None
qd.StdText(n: int, textbufp: Ptr, num: Point, den: Point) None
qd.StdTxMeas(n: int, p: Ptr, nump: Point, denp: Point, finfop: FontInfo) int
qd.MeasureText(n: int, text: Ptr, chars: Ptr) None
qd.TextFont(f: int) None
qd.TextFace(thef: int) None
qd.TextMode(m: int) None
qd.TextSize(s: int) None
qd.SpaceExtra(e: Fixed) None
qd.DrawChar(thec: CharParameter) None
qd.DrawString(s: ConstStringPtr) None
qd.DrawText(tb: const Ptr, fb: int, bc: int) None
qd.CharWidth(thec: CharParameter) int
qd.StringWidth(s: ConstStringPtr) int
qd.TextWidth(tb: Ptr, fb: int, bc: int) int
qd.GetFontInfo(ip: FontInfo) None
qd.GetCPixel(h: int, v: int, colorp: RGBColor) None
qd.SetCPixel(h: int, v: int, colorp: RGBColor) None
qd.SeedCFill(srcbp: BitMap, dstbp: BitMap, srcrp: Rect, dstrp: Rect, seedh: int, seedv: int, matchprocp: ProcPtr, matchdata: int) None
qd.CalcCMask(srcbp: BitMap, dstbp: BitMap, srcrp: Rect, dstrp: Rect, seedrgbp: RGBColor, matchprocp: ProcPtr, matchdata: int) None
qd.CopyDeepMask(srcBits: BitMap, maskBits: BitMap, dstBits: BitMap, srcRect: Rect, maskRect: Rect, dstRect: Rect, mode: int, maskRgn: RgnHandle) None
qd.GetPortTextFont(p: CGrafPtr) int16_t
qd.GetPortTextSize(p: CGrafPtr) int16_t
qd.QDFlushPortBuffer(p: CGrafPtr, rgn: RgnHandle) None
qd.GetPortBounds(p: CGrafPtr, r: Rect) None
qd.GetPortVisibleRegion(p: CGrafPtr, rgn: RgnHandle) None
qd.GetRegionBounds(rgn: RgnHandle, r: Rect) None
qd.GetPortBitMapForCopyBits(p: CGrafPtr) BitMap
qd.GetQDGlobalsScreenBits(bm: BitMap) None
qd.qdGlobals() QDGlobals