compiled notes about mojo API
a compilation of individual issues created by Mathieu Christe @LaPolice in the roboDocs fork
mojo docs
mojo.drawingTools
skew
If only one argument is provided a proportional skew is applied. (remove duplicate line)
mojo.events
A simple event observer that can help receive events and silently catch TypeErrors.
becomeActive + becomeInactive
Called when a tool becomes active event is posted.
spaceCenterKeyUp
Called when a Space Center key up event is posted.
mojo.roboFont
OpenFont
Optionally showInterface can be toggle on/off. (showInterface should be highlighted)
sortBy
A list of sort description strings and/or sort functions may also be provided. This should be in order of most to least important. For example, to sort by family name and then style name, do this: (not sure if “magic” should be the word right below this paragraph?)
Get a list of fonts that matches familyName. (four times)
mojo.smartSet
Optionally provide a font get_s_ the smartsets from the font. (maybe “to get” instead? to be corrected four times)
mojo.tools
A wrapper for a NSCallback to a normal Python object. A wrapper for a NSObject callback.
mojo.UI
dontShowAgainMessage
The informative text to be displayed in the dialog.
CodeEditor
posSize Tuple of four (left, top, width, height) lexer A pygements lexer: `from pygments.lexers usesTabs Boolean representing if the editor showLineNumbers Boolean representing if line numbers should be shown
AccordionView
new layout for posSize, descriptions, backgroundColor with gray boxes?
setBackgroundColor
Set the background of the scrol_l_ view to color.
MultiLineView
Available arguments when initiating a multi-line view object:
GlyphSequenceEditText
Return a bool indicating if the object is enable_d_ or not. title a string representing the title.
DoodleWindow
.. image:: /_images/Window.png (link to a missing image?) also this is suspect :) :: Tuple of four or maybe it's Tuple of the form, as it appears below (check the 4 instances)
[broken rest table formatting]
.. _NSScreen: https://developer.apple.com/documentation/appkit/nsscreen?language=objc (I've spotted this a couple of times…)
[broken rest URL formatting]
StatusInteractivePopUpWindow
.. image:: /_images/Window.png ::
[broken rest table formatting]
Tuple of four or maybe it's Tuple of the form, as it appears below (check the 4 instances)
Same remarks for these as for DoodleWindow: ScrollToFirstResponderSheet, ModalWindow, ShowHideFloatingWindow, ShowHideWindow
EditIntStepper
Why is the description of EditIntStepper the same as EditStepper?
StatusBar + LightStatusBar + LightStatusBar + SimpleStatus
different layout with gray boxes for posSize, notificationName, horizontalLine, textAlign, textPosLeft and textPosRight
An optional notification name to subscribe
RoboFont observers
spaceCenterKeyUp
_C_alled when a Space Center key up event is posted.