Line 125: |
Line 125: |
| *'''[[gc:setPen]]'''(size, smooth) size {“thin”, “medium”, "thick"}, smooth {“smooth”, "dotted", "dashed"} | | *'''[[gc:setPen]]'''(size, smooth) size {“thin”, “medium”, "thick"}, smooth {“smooth”, "dotted", "dashed"} |
| | | |
− | ==platform== | + | == platform == |
− | These are mainly read-only. These work by writing "'''platform.'''" in front of them. Example : "'''platform.window:invalidate()'''" | + | |
− | *'''[[apilevel()]]''' : Returns the version of the API. Currently (OS 3.0.1) returns 1.0.0. | + | These are mainly read-only. These work by writing "'''platform.'''" in front of them. Example : "'''platform.window:invalidate()'''" |
− | *'''[[window]]''' | + | |
− | : *'''[[width()]]''' - Returns the width of the window. Ex : ''platform.window:height()'' | + | *'''[[platform.apilevel()]]''' : Returns the version of the API. Currently (OS 3.0.1) returns 1.0.0. |
− | : *'''[[height()]]''' - Returns the height of the window | + | *'''[[platform.window]]''' |
− | : *'''[[invalidate()]]''' - Repaints the window (it calls '''on.paint(gc)''') | + | |
− | *'''[[ isDeviceModeRendering()]]''' Returns true or false whether the unit is "rendering" or not | + | :*'''[[platform.window:width()]]''' - Returns the width of the window. Ex : ''platform.window:height()'' |
− | *'''[[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.window:height()]]''' - Returns the height of the window |
− | *'''[[isColorDisplay()]]''' Returns ''true'' if the unit the code is being run on has a color display (-> Nspire CX), and ''false'' otherwise. | + | :*'''[[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.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. |
| | | |
| ==cursor== | | ==cursor== |