Version 4.4
This reference guide applies to TI-Nspire™ software version 4.4. To obtain the latest version of the documentation go to TI-Nspire™ Lua Scripting API Reference Guide.
Standard Libraries
Basic Library Functions
Coroutine Sub-Library
Module Library
String Library
Table Library
Math Library
Unimplemented Libraries and Functions
Touch Library
Overview
On-Screen Keyboard and Screen Resize Behavior
Event Handling
Library Functions
ppi
xppi
yppi
enabled
isKeyboardAvailable
isKeyboardVisible
showKeyboard
2D Editor Library
newRichText
createChemBox
createMathBox
getExpression
getExpressionSelection
getText
hasFocus
isVisible
move
registerFilter
resize
setBorder
setBorderColor
setColorable
setDisable2DinRT
setExpression
setFocus
setFontSize
setMainFont
setReadOnly
setSelectable
setSizeChangeListener
setText
setTextChangeListener
setTextColor
setWordWrapWidth
Class Library
class
Clipboard Library
addText
Cursor Library
set
hide
show
Document Library
markChanged
activate
arrowDown
arrowKey
arrowLeft
arrowRight
arrowUp
charIn
backspaceKey
backTabKey
clearKey
construction
contextMenu
copy
create
cut
deactivate
deleteKey
destroy
enterKey
escapeKey
getFocus
getSymbolList
grabDown
grabUp
help
keyboardDown
keyboardUp
loseFocus
mouseDown
mouseMove
mouseUp
paint
paste
propertiesChanged
restore
returnKey
rightMouseDown
rightMouseUp
save
tabKey
timer
varchange
Graphics Library
clipRect
drawArc
drawImage
drawLine
drawPolyLine
drawRect
drawString
fillArc
fillPolygon
fillRect
getStringHeight
getStringWidth
setColorRGB
setFont
setPen
Image Library
new
height
rotate
width
Locale Library
name
Math Library Extension
eval
evalStr
getEvalSettings
setEvalSettings
Platform Library
apiLevel
hw
isColorDisplay
isDeviceModeRendering
isTabletModeRendering
registerErrorHandler
window
height and width
invalidate
setBackgroundColor
getScrollHeight
setScrollHeight
displayInvalidatedRectangles
withGC
getDeviceID
String Library Extension
split
uchar
usub
pack
unpack
Timer Library
getMilliSecCounter
start
stop
Tool Palette Library
register
enable
enableCut
enableCopy
enablePaste
Variable Library
list
makeNumericList
monitor
recall
recallAt
recallStr
store
storeAt
unmonitor
Physics Library
Miscellaneous routines
INFINITY
momentForBox
momentForCircle
momentForPoly
momentForSegment
Vectors
Vect
add
clamp
cross
dist
distsq
dot
eql
length
lengthsq
lerp
lerpconst
mult
near
neg
normalize
normalizeSafe
perp
project
rperp
setx
sety
slerp
slerpconst
sub
toangle
unrotate
x
y
BoundingBoxes
BB
b
clampVect
containsBB
containsVect
expand
intersects
l
merge
setb
r
setl
setr
sett
t
wrapVect
Bodies
Body
angle
angVel
applyForce
applyImpulse
data
force
isRogue
isSleeping
local2World
kineticEnergy
mass
moment
pos
resetForces
rot
setAngle
setAngVel
setData
setForce
setMass
setMoment
setPos
setPositionFunc
setTorque
setVel
setVelocityFunc
setVLimit
setWLimit
sleep
sleepWithGroup
torque
updatePosition
updateVelocity
vel
vLimit
wLimit
world2Local
Shapes
body
collisionType
friction
group
layers
rawBB
restitution
sensor
setCollisionType
setFriction
setGroup
setLayers
setRestitution
setSensor
setSurfaceV
surfaceV
Circle Shapes
CircleShape
offset
radius
Polygon Shapes
PolyShape
numVerts
points
vert
Segment Shapes
SegmentShape
a
normal
Spaces
Space
addBody
addConstraint
addCollisionHandler
addPostStepCallback
addShape
addStaticShape
damping
elasticIterations
gravity
idleSpeedThreshold
iterations
rehashShape
rehashStatic
removeBody
removeConstraint
removeShape
removeStaticShape
resizeActiveHash
resizeStaticHash
setDamping
setElasticIterations
setGravity
setIdleSpeedThreshold
setIterations
setSleepTimeThreshold
sleepTimeThreshold
step
Constraints
Damped Rotary Spring
Damped Spring
Gear Joint
Groove Joint
Pin Joint
Pivot Joint
Ratchet Joint
Rotary Limit Joint
Simple Motor
Slide Joints
Arbiters and Collision Pairs
#
bodies
depth
elasticity
impulse
isFirstContact
point
setElasticity
shapes
totalImpulse
totalImpulseWithFriction
Shape Queries
pointQuery
segmentQuery
Space Queries
pointQueryFirst
segmentQueryFirst
SegmentQueryInfo
hitDist
hitPoint
Bluetooth® Smart Library
Bluetooth® LE
addStateListener
removeStateListener
Format Specifier for pack and unpack
Bluetooth® LE Central
startScanning
stopScanning
isScanning
Peripheral Class
getName
getState
connect
disconnect
discoverServices
getServices
Service Class
getUUID
discoverCharacteristics
getCharacteristics
Characteristic Class
setValueUpdateListener
setWriteCompleteListener
read
setNotify
getValue
write
ASI Library
require 'asi'
Port Class
getIdentifier
setBaudRate
setWriteListener
setReadListener
setReadTimeout
Script Compatibility
Backward and Forward Compatibility
Document Compatibility
Scripting Compatibility
Creating Scripts for a Future Software Release
Platform Compatibility
Deprecated API Functions and API Behavior
gc
drawString Vertical Alignment
Requested API Level