Line 113: |
Line 113: |
| These are mainly read-only. These work by writing "'''platform.'''" in front of them. Example : "'''platform.window:invalidate()'''" | | These are mainly read-only. These work by writing "'''platform.'''" in front of them. Example : "'''platform.window:invalidate()'''" |
| | | |
− | *'''[[platform.apilevel()]]''' : Returns the version of the API. Currently (OS 3.0.1) returns 1.0.0. | + | *'''[[platform.apilevel]]''' : Returns the version of the API. Currently (OS 3.0.1) returns 1.0.0. |
| *'''[[platform.window]]''' | | *'''[[platform.window]]''' |
| | | |
− | :*'''[[platform.window:width()]]''' - Returns the width of the window. Ex : ''platform.window:height()'' | + | :*'''[[platform.window:width]]''' - Returns the width of the window. Ex : ''platform.window:height()'' |
− | :*'''[[platform.window:height()]]''' - Returns the height of the window | + | :*'''[[platform.window:height]]''' - Returns the height of the window |
− | :*'''[[platform.window:invalidate()]]''' - Repaints the window (it calls '''on.paint(gc)''') | + | :*'''[[platform.window:invalidate]]''' - Repaints the window (it calls '''on.paint(gc)''') |
| | | |
− | *'''[[platform.isDeviceModeRendering()]]''' Returns true or false whether the unit is "rendering" or not | + | *'''[[platform.isDeviceModeRendering]]''' Returns true or false whether the unit is "rendering" or not |
| *'''[[platform.gc]]''' - Other way to call '''gc'''. Use it like that : '''platform.gc():setAlpha(...)''' for example. This is useful when you're in a function outside '''on.paint(gc)''' (but this function has to be called within [[on.paint]](gc).) | | *'''[[platform.gc]]''' - Other way to call '''gc'''. Use it like that : '''platform.gc():setAlpha(...)''' for example. This is useful when you're in a function outside '''on.paint(gc)''' (but this function has to be called within [[on.paint]](gc).) |
− | *'''[[platform.isColorDisplay()]]''' Returns ''true'' if the unit the code is being run on has a color display (-> Nspire CX), and ''false'' otherwise. | + | *'''[[platform.isColorDisplay]]''' Returns ''true'' if the unit the code is being run on has a color display (-> Nspire CX), and ''false'' otherwise. |
| | | |
| == cursor == | | == cursor == |