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.

textedit

textedit - Wrapped MacOS APIs

textedit.teFlushDefault: int
textedit.teCenter: int
textedit.teFlushRight: int
textedit.teFlushLeft: int
textedit.teJustLeft: int
textedit.teJustCenter: int
textedit.teJustRight: int
textedit.teForceLeft: int
textedit.doFont: int
textedit.doFace: int
textedit.doSize: int
textedit.doColor: int
textedit.doAll: int
textedit.addSize: int
textedit.doToggle: int
textedit.teFind: int
textedit.teHilite: int
textedit.teDraw: int
textedit.teCaret: int
textedit.caret_vis: int
textedit.caret_invis: int
textedit.hilite_vis: int
textedit.teFAutoScroll: int
textedit.teFTextBuffering: int
textedit.teFOutlineHilite: int
textedit.teFInlineInput: int
textedit.teFUseTextServices: int
textedit.teBitClear: int
textedit.teBitSet: int
textedit.teBitTest: int
class textedit.TERec

A uctypes structure

destRect: Rect
viewRect: Rect
selRect: Rect
lineHeight: int
fontAscent: int
selPoint: Point
selStart: int
selEnd: int
active: int
wordBreak: ProcPtr
clikLoop: ProcPtr
clickTime: int
clickLoc: int
caretTime: int
caretState: int
just: int
teLength: int
hText: Handle
recalBack: int
recalLines: int
clikStuff: int
crOnly: int
txFont: int
txFace: Style
filler: Byte
txMode: int
txSize: int
inPort: GrafPtr
highHook: ProcPtr
caretHook: ProcPtr
nLines: int
lineStarts: INTEGER[1]
class textedit.StyleRun

A uctypes structure

startChar: int
styleIndex: int
class textedit.STElement

A uctypes structure

stCount: int
stHeight: int
stAscent: int
stFont: int
stFace: Style
filler: Byte
stSize: int
stColor: RGBColor
class textedit.LHElement

A uctypes structure

lhHeight: int
lhAscent: int
class textedit.TextStyle

A uctypes structure

tsFont: int
tsFace: Style
filler: Byte
tsSize: int
tsColor: RGBColor
class textedit.ScrpSTElement

A uctypes structure

scrpStartChar: int
scrpHeight: int
scrpAscent: int
scrpFont: int
scrpFace: Style
filler: Byte
scrpSize: int
scrpColor: RGBColor
class textedit.StScrpRec

A uctypes structure

scrpNStyles: int
scrpStyleTab: ScrpSTTable
class textedit.NullSTRec

A uctypes structure

TEReserved: int
nullScrap: StScrpHandle
class textedit.TEStyleRec

A uctypes structure

nRuns: int
nStyles: int
styleTab: STHandle
lhTab: LHHandle
teRefCon: int
nullStyle: NullSTHandle
runs: StyleRun[1]
textedit.LMGetTEDoText() object
textedit.LMSetTEDoText(value) None
textedit.LMGetTERecal() object
textedit.LMSetTERecal(value) None
textedit.LMGetTEScrpLength() object
textedit.LMSetTEScrpLength(value) None
textedit.LMGetTEScrpHandle() object
textedit.LMSetTEScrpHandle(value) None
textedit.TESetText(p: Ptr, ln: int, teh: TEHandle) None
textedit.TEGetText(teh: TEHandle) CharsHandle
textedit.TESetAlignment(j: int, teh: TEHandle) None
textedit.TEUpdate(r: Rect, teh: TEHandle) None
textedit.TETextBox(p: Ptr, ln: int, r: Rect, j: int) None
textedit.TEScroll(dh: int, dv: int, teh: TEHandle) None
textedit.TEKey(thec: CharParameter, teh: TEHandle) None
textedit.TECopy(teh: TEHandle) None
textedit.TECut(teh: TEHandle) None
textedit.TEPaste(teh: TEHandle) None
textedit.TEDelete(teh: TEHandle) None
textedit.TEInsert(p: Ptr, ln: int, teh: TEHandle) None
textedit.TEPinScroll(dh: int, dv: int, teh: TEHandle) None
textedit.TESelView(teh: TEHandle) None
textedit.TEAutoView(autoflag: Boolean, teh: TEHandle) None
textedit.TEStyleNew(dst: Rect, view: Rect) TEHandle
textedit.TESetStyleHandle(theHandle: TEStyleHandle, teh: TEHandle) None
textedit.TEGetStyleHandle(teh: TEHandle) TEStyleHandle
textedit.TEGetStyleScrapHandle(teh: TEHandle) StScrpHandle
textedit.TEStyleInsert(text: Ptr, length: int, hST: StScrpHandle, teh: TEHandle) None
textedit.TEGetOffset(pt: Point, teh: TEHandle) int
textedit.TEGetPoint(offset: int, teh: TEHandle) int
textedit.TEGetHeight(endLine: int, startLine: int, teh: TEHandle) int32_t
textedit.TEGetStyle(offset: int, theStyle: TextStyle, lineHeight: array.array['h'], fontAscent: array.array['h'], teh: TEHandle) None
textedit.TEStylePaste(teh: TEHandle) None
textedit.TESetStyle(mode: int, newStyle: TextStyle, redraw: Boolean, teh: TEHandle) None
textedit.TEReplaceStyle(mode: int, oldStyle: TextStyle, newStyle: TextStyle, redraw: Boolean, teh: TEHandle) None
textedit.TEContinuousStyle(modep: array.array['h'], thestyle: TextStyle, teh: TEHandle) Boolean
textedit.TEUseStyleScrap(start: int, stop: int, newstyles: StScrpHandle, redraw: Boolean, teh: TEHandle) None
textedit.TECustomHook(sel: int, addr: ProcPtr, teh: TEHandle) None
textedit.TENumStyles(start: int, stop: int, teh: TEHandle) int
textedit.TEInit() None
textedit.TENew(dst: Rect, view: Rect) TEHandle
textedit.TEDispose(teh: TEHandle) None
textedit.TEIdle(teh: TEHandle) None
textedit.TEClick(p: Point, ext: Boolean, teh: TEHandle) None
textedit.TESetSelect(start: int, stop: int, teh: TEHandle) None
textedit.TEActivate(teh: TEHandle) None
textedit.TEDeactivate(teh: TEHandle) None
textedit.TESetWordBreak(wb: ProcPtr, teh: TEHandle) None
textedit.TESetClickLoop(cp: ProcPtr, teh: TEHandle) None
textedit.TECalText(teh: TEHandle) None
textedit.TEFromScrap() OSErr
textedit.TEToScrap() OSErr
textedit.TEScrapHandle() Handle
textedit.TEGetScrapLength() int
textedit.TESetScrapLength(ln: int) None
textedit.TEFeatureFlag(feature: int16_t, action: int16_t, te: TEHandle) int16_t