-
Notifications
You must be signed in to change notification settings - Fork 0
Documentation
There is whole documentation on this library, if you can't find anything here, try look to the code, it should be well commented (I hope).
Object representing some scene that will be displayed.
- noClear: true/false viz NoClear object
- timeOut: timeout in secs viz [TimeOut object
- simplePath: when Simple is not installed in
/opt/bin/simple
, another way could be specified here - encoding: encoding of output
- takes object from "List of objects that can be added to Scene" or list of these objects and add it to the scene
- display object from scene and waits for input, if timeOut is not specified.
- result of SAS (program input) stores to .input as list of id and textinput (if any was given):
['id', 'textinput']
or['id', None]
- search objects from scene by id and when find match, deletes it from there.
Good for short texts like headlights etc.
- x: x coordinate
- y: y coordinate
- w: weight
- h: height
- text - text that will be displayed
- id - id of this object
- fontSize - font size (when specified, FontSize object will be added before this)
- justify - text alignment - possible inputs are "left", "center" or "right" (when specified, Justify object will be added before this)
Good for longer and multi line texts.
- x: x coordinate
- y: y coordinate
- w: weight
- h: height
- text - text that will be displayed
- id - id of this object
- fontSize - font size (when specified, FontSize object will be added before this)
- justify - text alignment - possible inputs are "left", "center" or "right" (when specified, Justify object will be added before this)
Button
- x: x coordinate
- y: y coordinate
- w: weight
- h: height
- text - text that will be displayed
- id - id of this object
- fontSize - font size (when specified, FontSize object will be added before this)
- justify - text alignment - possible inputs are "left", "center" or "right" (when specified, Justify object will be added before this)
Text field that can be edited by onscreen keyboard. Good for shorter text on one line.
- x: x coordinate
- y: y coordinate
- w: weight
- h: height
- text - text that will be displayed
- id - id of this object
- fontSize - font size (when specified, FontSize object will be added before this)
- justify - text alignment - possible inputs are "left", "center" or "right" (when specified, Justify object will be added before this)
Text field that can be edited by onscreen keyboard. Good for longer text on multiple lines.
- x: x coordinate
- y: y coordinate
- w: weight
- h: height
- text - text that will be displayed
- id - id of this object
- fontSize - font size (when specified, FontSize object will be added before this)
- justify - text alignment - possible inputs are "left", "center" or "right" (when specified, Justify object will be added before this)
Image that will be displayed
- x: x coordinate
- y: y coordinate
- w: weight
- h: height
- path: Full path to image that should be displayed
- id: id of this object
Horizontal slider, by which number from range can be chosen.
###Parameters:
- x: x coordinate
- y: y coordinate
- w: weight
- h: height
- min: Minimum value that will be on slider
- max: Maximum value that will be on slider
- value: Current/initial value that will be chosen on slider
Specifies font size for next objects. It is valid until next occurrence of this object.
- size: Font size
Specifies text alignment for next objects. It is valid until next occurrence of this object.
- justify: possible inputs are "left", "right" and "center"
Specifies timeout that SAS will wait until it exits. Its only way to exit without any input.
- timeout: timeout in secs
When used, SAS will not clear the display before render.
- None