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.

windowmgr

windowmgr - Wrapped MacOS APIs

windowmgr.documentProc: int
windowmgr.dBoxProc: int
windowmgr.plainDBox: int
windowmgr.altDBoxProc: int
windowmgr.noGrowDocProc: int
windowmgr.movableDBoxProc: int
windowmgr.rDocProc: int
windowmgr.dialogKind: int
windowmgr.userKind: int
windowmgr.inDesk: int
windowmgr.inMenuBar: int
windowmgr.inSysWindow: int
windowmgr.inContent: int
windowmgr.inDrag: int
windowmgr.inGrow: int
windowmgr.inGoAway: int
windowmgr.noConstraint: int
windowmgr.hAxisOnly: int
windowmgr.vAxisOnly: int
windowmgr.wDraw: int
windowmgr.wHit: int
windowmgr.wCalcRgns: int
windowmgr.wNew: int
windowmgr.wDispose: int
windowmgr.wGrow: int
windowmgr.wDrawGIcon: int
windowmgr.kWindowMsgDraw: int
windowmgr.kWindowMsgHitTest: int
windowmgr.kWindowMsgCalculateShape: int
windowmgr.kWindowMsgInitialize: int
windowmgr.kWindowMsgCleanUp: int
windowmgr.kWindowMsgDrawGrowOutline: int
windowmgr.kWindowMsgDrawGrowBox: int
windowmgr.wNoHit: int
windowmgr.wInContent: int
windowmgr.wInDrag: int
windowmgr.wInGrow: int
windowmgr.wInGoAway: int
windowmgr.wContentColor: int
windowmgr.wFrameColor: int
windowmgr.wTextColor: int
windowmgr.wHiliteColor: int
windowmgr.wTitleBarColor: int
windowmgr.wHiliteColorLight: int
windowmgr.wHiliteColorDark: int
windowmgr.wTitleBarLight: int
windowmgr.wTitleBarDark: int
windowmgr.wDialogLight: int
windowmgr.wDialogDark: int
windowmgr.wTingeLight: int
windowmgr.wTingeDark: int
windowmgr.deskPatID: int
class windowmgr.ControlRecord

A uctypes structure

class windowmgr.WindowRecord

A uctypes structure

port: GrafPort
windowKind: int
visible: Boolean
hilited: Boolean
goAwayFlag: Boolean
spareFlag: Boolean
strucRgn: RgnHandle
contRgn: RgnHandle
updateRgn: RgnHandle
windowDefProc: Handle
dataHandle: Handle
titleHandle: StringHandle
titleWidth: int
controlList: ControlHandle
nextWindow: WindowRecord
windowPic: PicHandle
refCon: int
class windowmgr.WStateData

A uctypes structure

userState: Rect
stdState: Rect
windowmgr.inZoomIn: int
windowmgr.inZoomOut: int
windowmgr.wInZoomIn: int
windowmgr.wInZoomOut: int
class windowmgr.AuxWinRec

A uctypes structure

class windowmgr.AuxWinRec

A uctypes structure

awNext: AuxWinHandle
awOwner: WindowPtr
awCTable: CTabHandle
dialogCItem: Handle
awFlags: int
awReserved: CTabHandle
awRefCon: int
windowmgr.LMGetWindowList() object
windowmgr.LMSetWindowList(value) None
windowmgr.LMGetSaveUpdate() object
windowmgr.LMSetSaveUpdate(value) None
windowmgr.LMGetPaintWhite() object
windowmgr.LMSetPaintWhite(value) None
windowmgr.LMGetWMgrPort() object
windowmgr.LMSetWMgrPort(value) None
windowmgr.LMGetWMgrCPort() object
windowmgr.LMSetWMgrCPort(value) None
windowmgr.LMGetOldStructure() object
windowmgr.LMSetOldStructure(value) None
windowmgr.LMGetOldContent() object
windowmgr.LMSetOldContent(value) None
windowmgr.LMGetGrayRgn() object
windowmgr.LMSetGrayRgn(value) None
windowmgr.LMGetSaveVisRgn() object
windowmgr.LMSetSaveVisRgn(value) None
windowmgr.LMGetDragHook() object
windowmgr.LMSetDragHook(value) None
windowmgr.LMGetDragPattern() object
windowmgr.LMSetDragPattern(value) None
windowmgr.LMGetDeskPattern() object
windowmgr.LMSetDeskPattern(value) None
windowmgr.LMGetCurActivate() object
windowmgr.LMSetCurActivate(value) None
windowmgr.LMGetCurDeactive() object
windowmgr.LMSetCurDeactive(value) None
windowmgr.LMGetDeskHook() object
windowmgr.LMSetDeskHook(value) None
windowmgr.LMGetGhostWindow() object
windowmgr.LMSetGhostWindow(value) None
windowmgr.LMGetAuxWinHead() object
windowmgr.LMSetAuxWinHead(value) None
windowmgr.LMGetDeskCPat() object
windowmgr.LMSetDeskCPat(value) None
windowmgr.SetWTitle(w: WindowPtr, t: ConstStringPtr) None
windowmgr.GetWTitle(w: WindowPtr, t: StringPtr) None
windowmgr.FrontWindow() WindowPtr
windowmgr.HiliteWindow(w: WindowPtr, flag: Boolean) None
windowmgr.BringToFront(w: WindowPtr) None
windowmgr.SelectWindow(w: WindowPtr) None
windowmgr.ShowHide(w: WindowPtr, flag: Boolean) None
windowmgr.HideWindow(w: WindowPtr) None
windowmgr.ShowWindow(w: WindowPtr) None
windowmgr.SendBehind(w: WindowPtr, behind: WindowPtr) None
windowmgr.DrawGrowIcon(w: WindowPtr) None
windowmgr.InitWindows() None
windowmgr.GetWMgrPort(wp: GrafPtr) None
windowmgr.NewWindow(wst: void, r: Rect, title: ConstStringPtr, vis: Boolean, procid: int, behind: WindowPtr, gaflag: Boolean, rc: int) WindowPtr
windowmgr.GetNewWindow(wid: int, wst: void, behind: WindowPtr) WindowPtr
windowmgr.CloseWindow(w: WindowPtr) None
windowmgr.NewCWindow(storage: void, arg1: Rect, arg2: ConstStringPtr, arg3: Boolean, arg4: int, arg5: WindowPtr, arg6: Boolean, arg7: int) WindowPtr
windowmgr.GetNewCWindow(arg0: int, arg1: void, arg2: WindowPtr) WindowPtr
windowmgr.DisposeWindow(w: WindowPtr) None
windowmgr.SetWRefCon(w: WindowPtr, data: int) None
windowmgr.GetWRefCon(w: WindowPtr) int
windowmgr.SetWindowPic(w: WindowPtr, p: PicHandle) None
windowmgr.GetWindowPic(w: WindowPtr) PicHandle
windowmgr.PinRect(r: Rect, p: Point) int
windowmgr.DragTheRgn(rgn: RgnHandle, startp: Point, limit: Rect, slop: Rect, axis: int, proc: ProcPtr) int
windowmgr.DragGrayRgn(rgn: RgnHandle, startp: Point, limit: Rect, slop: Rect, axis: int, proc: ProcPtr) int
windowmgr.ClipAbove(w: WindowPeek) None
windowmgr.CheckUpdate(ev: EventRecord) Boolean
windowmgr.SaveOld(w: WindowPeek) None
windowmgr.PaintOne(w: WindowPeek, clobbered: RgnHandle) None
windowmgr.PaintBehind(w: WindowPeek, clobbered: RgnHandle) None
windowmgr.CalcVis(w: WindowPeek) None
windowmgr.CalcVisBehind(w: WindowPeek, clobbered: RgnHandle) None
windowmgr.DrawNew(w: WindowPeek, flag: Boolean) None
windowmgr.GetWVariant(w: WindowPtr) int
windowmgr.FindWindow(p: Point, wpp: WindowPtr) int
windowmgr.TrackBox(wp: WindowPtr, pt: Point, part: int) Boolean
windowmgr.TrackGoAway(w: WindowPtr, p: Point) Boolean
windowmgr.ZoomWindow(wp: WindowPtr, part: int, front: Boolean) None
windowmgr.MoveWindow(wp: WindowPtr, h: int, v: int, front: Boolean) None
windowmgr.DragWindow(wp: WindowPtr, p: Point, rp: Rect) None
windowmgr.GrowWindow(w: WindowPtr, startp: Point, rp: Rect) int
windowmgr.SizeWindow(w: WindowPtr, width: int, height: int, flag: Boolean) None
windowmgr.InvalRect(r: Rect) None
windowmgr.InvalRgn(r: RgnHandle) None
windowmgr.ValidRect(r: Rect) None
windowmgr.ValidRgn(r: RgnHandle) None
windowmgr.BeginUpdate(w: WindowPtr) None
windowmgr.EndUpdate(w: WindowPtr) None
windowmgr.SetWinColor(w: WindowPtr, new_w_ctab: CTabHandle) None
windowmgr.SetDeskCPat(arg0: PixPatHandle) None
windowmgr.GetAuxWin(arg0: WindowPtr, arg1: AuxWinHandle) Boolean
windowmgr.GetWindowKind(win: WindowRef) int
windowmgr.SetPortWindowPort(win: WindowRef) None
windowmgr.GetWindowPortBounds(window: WindowRef, bounds: Rect) None
windowmgr.GetWindowPort(w: WindowRef) CGrafPtr
windowmgr.InvalWindowRect(w: WindowRef, r: Rect) None