Nspire Lua 脚本应用编程手册
目录表1 标准库................................................................................................................................. 51.1 Math(数学)库............................................................................................................... 51.2 String(字符串)......................................................................................................... 库51.3 Table(表)库.................................................................................................................. 51.4 Coroutine(协程)........................................................................................................... 51.5 内置函数..................................................................................................................... 51.6 标准库的未实现部分.................................................................................................. 52 Image(图片)库.................................................................................................................... 62.1 new.............................................................................................................................. 62.2 width............................................................................................................................ 62.3 height........................................................................................................................... 62.4 copy............................................................................................................................. 73 Graphic(绘图)库.................................................................................................................. 83.1 clipRect....................................................................................................................... 83.2 drawArc....................................................................................................................... 83.3 drawImage.................................................................................................................. 93.4 drawLine..................................................................................................................... 93.5 drawPolyLine.............................................................................................................. 93.6 drawRect..................................................................................................................... 93.7 drawString.................................................................................................................. 93.8 fillArc............................................................................................................................ 93.9 fillPolygon................................................................................................................. 103.10 fillRect....................................................................................................................... 103.11 getStringHeight........................................................................................................ 103.12 getStringWidth......................................................................................................... 103.13 setColorRGB............................................................................................................ 103.14 setFont...................................................................................................................... 103.15 setPen....................................................................................................................... 114 String(字符串)库扩充....................................................................................................... 124.1 split............................................................................................................................ 124.2 uchar......................................................................................................................... 124.3 usub........................................................................................................................... 125 Math(数学)库扩充............................................................................................................ 135.1 eval............................................................................................................................ 136 Clipboard(剪贴板)库......................................................................................................... 146.1 addText..................................................................................................................... 146.2 getText...................................................................................................................... 147 Document(文档)库............................................................................................................ 157.1 markChanged.......................................................................................................... 158 SymbolTable(符号表)库................................................................................................... 168.1 list.............................................................................................................................. 168.2 recall.......................................................................................................................... 168.3 recallstr..................................................................................................................... 168.4 store.......................................................................................................................... 168.5 monitor...................................................................................................................... 168.6 unmonitor.................................................................................................................. 179 Locale(区域)库.................................................................................................................. 189.1 name......................................................................................................................... 1810 Timer(计时器)库............................................................................................................... 1910.1 getMilliSecCounter.................................................................................................. 1910.2 start........................................................................................................................... 1910.3 stop........................................................................................................................... 1911 2DEditor(文本编辑器)................................................................................................... 2011.1 getExpression.......................................................................................................... 2011.2 getExpressionSelection.......................................................................................... 2011.3 getText...................................................................................................................... 2011.4 isVisible.................................................................................................................... 2011.5 move......................................................................................................................... 2011.6 newRichText............................................................................................................. 2011.7 resize........................................................................................................................ 2111.8 setExpression.......................................................................................................... 2111.9 setFocus................................................................................................................... 2111.10 setFontSize.............................................................................................................. 2111.11 setFormattedText.................................................................................................... 2111.12 setMainFont............................................................................................................. 2111.13 setReadOnly............................................................................................................. 2111.14 setText...................................................................................................................... 2211.15 setVisible.................................................................................................................. 2212 Toolpalette(工具栏)库....................................................................................................... 2312.1 register...................................................................................................................... 2312.2 enable....................................................................................................................... 2312.3 enableCut................................................................................................................. 2412.4 enableCopy.............................................................................................................. 2412.5 enablePaste............................................................................................................. 2413 Cursor(光标)库.................................................................................................................. 2513.1 set.............................................................................................................................. 2513.2 hide........................................................................................................................... 2513.3 show.......................................................................................................................... 2614 Platform(平台)库.............................................................................................................. 2714.1 gc............................................................................................................................... 2714.2 isColorDisplay......................................................................................................... 2714.3 isDeviceModeRendering........................................................................................ 2714.4 window...................................................................................................................... 2715 Class(类)库........................................................................................................................ 2915.1 class.......................................................................................................................... 2916 元组空间库........................................................................................................................ 3016.1 put.............................................................................................................................. 3016.2 read........................................................................................................................... 3016.3 readAll....................................................................................................................... 3016.4 take........................................................................................................................... 3016.5 addListener.............................................................................................................. 3016.6 removeListener........................................................................................................ 3117 事件处理.......................................................................................................................... 3217.1 activate..................................................................................................................... 3217.2 arrowDown............................................................................................................... 3217.3 arrowKey.................................................................................................................. 3217.4 arrowLeft................................................................................................................... 3217.5 arrowRight................................................................................................................ 3217.6 arrowUp.................................................................................................................... 3317.7 charIn......................................................................................................................... 3317.8 backspaceKey......................................................................................................... 3317.9 backtabKey.............................................................................................................. 3317.10 clearKey.................................................................................................................... 3317.11 contextMenu............................................................................................................. 3317.12 copy........................................................................................................................... 3417.13 create........................................................................................................................ 3417.14 cut.............................................................................................................................. 3417.15 deactivate................................................................................................................. 3417.16 deleteKey................................................................................................................. 3417.17 destroy...................................................................................................................... 3417.18 enterKey................................................................................................................... 3517.19 escapeKey............................................................................................................... 3517.20 getFocus................................................................................................................... 3517.21 grabDown................................................................................................................. 3517.22 grabMove................................................................................................................. 3517.23 grabUp...................................................................................................................... 3517.24 help............................................................................................................................ 3617.25 loseFocus................................................................................................................. 3617.26 mouseDown............................................................................................................. 3617.27 mouseMove.............................................................................................................. 3617.28 mouseUp.................................................................................................................. 3617.29 paint.......................................................................................................................... 3617.30 paste......................................................................................................................... 3617.31 resize........................................................................................................................ 3717.32 restore....................................................................................................................... 3717.33 returnKey.................................................................................................................. 3717.34 rightMouseDown...................................................................................................... 3717.35 rightMouseUp........................................................................................................... 3717.36 save........................................................................................................................... 3717.37 tabKey....................................................................................................................... 3817.38 timer.......................................................................................................................... 3817.39 varChange................................................................................................................ 3818 应用生命周期.................................................................................................................... 39给力 本帖最后由 wtof1996 于 2013-10-30 22:31 编辑
这货不是最新的啊,最新的在官网上面有.....
http://education.ti.com/zh-CN/china/guidebook/details/zh-CN/59108CCE54484B76AF68879C217D47B2/ti-nspire_scripting-api-guide
LZ这个都是我很早很早以前修改的版本了,然后放到了TI的群里面 这个指导太重要 了 很好,这东西多一点更好。哈哈
页:
[1]