Changes

Jump to navigation Jump to search

Category:platform

602 bytes added, 11:05, 13 September 2017
no edit summary
Line 1: Line 1:  
== Quick Overview ==
 
== Quick Overview ==
   −
*[[platform.gc|gc]] : Returns a dummy graphics context used in specific conditions.
+
*[[platform.gc]] : Returns a dummy graphics context used in specific conditions. '''Doesn't exist anymore in 3.2+ (see ''withGC'' below)'''
*[[isColorDisplay]] : Returns true if the display of the host platform is color-capable (Nspire CX and emulator). Returns false if the display is gray scale (Nspire non-CX).       
+
*[[platform.isColorDisplay]]() : Returns true if the display of the host platform is color-capable (Nspire CX and emulator). Returns false if the display is grayscale (Nspire non-CX).       
*[[isDeviceModeRendering]] : Returns true if the script is running on the hand-held device or in the emulator of the desktop software. Returns false if the script is running in the normal view of the desktop software.
+
*[[platform.isDeviceModeRendering]]() : Returns true if the script is running on the hand-held device or in the emulator (with the calculator view), and false if the script is running in the normal view of the emulator.
*[[:Category:platform.window|window]] : Returns the window object currently owned by the script application.
+
*[[platform.isTabletModeRendering]]() : Returns true if the script is running on a tablet device (iPad app) and false otherwise.
 +
 
 +
*[[:Category:platform.window|platform.window]] : Returns the window object currently owned by the script application. The window object contains several other methods.
 +
*[[platform.withGC]](...) : executes a function which a passed dummy [[gc]].
 +
*[[platform.registerErrorHandler]](...) : A global error handler for the lua script.
 +
*[[platform.hw]]() : returns a number corresponding to the type of device the script is running on.
 +
*[[platform.getDeviceID]]() : returns a unique device identifier.
 +
 
 +
 
 +
 
 +
<br />
 +
<br />

Navigation menu