xTalk Suite · extension catalogue

Extensions for HyperXTalk and LiveCode Community

Free, open-source extensions for any IDE built on LiveCode Community 9. Most are thin layers over proven open-source libraries; the rest are plain script. Each package carries its own documentation, which appears in the Dictionary once it is installed.

Installing an extension

  1. Download its .lce file below. Leave it zipped.
  2. In HyperXTalk or LiveCode Community 9, choose Tools > Extension Manager.
  3. Click + and choose the .lce file.

Some extensions need another installed first: each entry says which under "Install first", and installing a family from the top down gets the order right. "Works with" names other extensions its documentation pairs it with, which some of its features may need.

An installed extension loads every time the IDE starts. To put one in a standalone, tick it in Standalone Application Settings > Inclusions (choose "Select inclusions for the standalone application"). A script library, or one with no native code, runs anywhere the IDE runs; a native library carries compiled code for the platforms listed with it. The macOS libraries are not signed or notarized, so macOS may ask before it lets them load. To check a download, compare its SHA-256 with SHA256SUMS.

Pre-release These extensions are new, and most of the testing so far has been in OXT-Beyond. Please report anything that goes wrong.

01

aixt

One package

Local AI for OpenXTalk0.1.0native library

Runs language models and speech recognition on this computer, with llama.cpp and whisper.cpp: no service, no account, and nothing leaves the machine.

  • Win 64
  • macOS
  • Linux 64
  • Linux ARM
Downloadaixt-0.1.0.lce · 12.9 MB
More about Local AI for OpenXTalk

A language model is a GGUF file (most models on Hugging Face have one: Llama, Qwen, Phi, Gemma, Mistral and many more). Load it with aiModelLoad. Then aiAnswer asks it one question and returns the answer, and aiChat starts writing an answer to a whole conversation as a job that a stack follows with aiJobTake while the words come, so the window stays alive. aiEmbed and aiSimilarity find text that means the same thing, for searching by meaning.

A speech model is a whisper.cpp file (ggml-base.en.bin and the like). Load it with aiSpeechLoad; aiTranscribe turns a WAV, MP3 or FLAC recording into text with the time of each part.

Models are large, so none ships with this library: point it at the file. Everything runs on the processor; a model of 1 to 4 billion parameters answers at reading speed on a recent computer.

No call here throws on a bad file or a bad argument. A refused call returns 0, false or empty, and aiLastError says why.

Install first
nothing
Topics
AI, Language models, Speech
Author
Seth Morrow Software
Extension id
org.openxtalk.library.aixt
Source
aixt/src/aixt.lcb
Licences
LICENSE
SHA-256
d69769af7161e250f55f88a5564ff22abf28bcd43634e47a7a63d6b4025c67f3
All 28 handlers
  • aiFreeAll()handlerFrees every model, speech model and job.
  • aiChatPrompt(<pModel>,<pMessages>,<pTemplate>)handlerReturns the prompt a chat model expects for a conversation.
  • aiSpeechLoad(<pPath>,<pThreads>)handlerLoads a speech recognition model.
  • aiModelLoad(<pPath>,<pContext>,<pThreads>)handlerLoads a language model from a GGUF file.
  • aiJobCancel(<pJob>)handlerAsks a job to stop.
  • aiJobFree(<pJob>)handlerFrees a job.
  • aiTranscribeText(<pSpeech>,<pAudioPath>,<pOptions>)handlerTurns a recording into text and returns it.
  • aiSpeechLanguages()handlerReturns the languages whisper.cpp can hear.
  • aiJobInfo(<pJob>)handlerReturns the facts of a job.
  • aiChatTemplates()handlerReturns the names of the chat templates llama.cpp knows.
  • aiAnswer(<pModel>,<pQuestion>,<pOptions>)handlerAsks a chat model one question and returns its answer.
  • aiLastError()handlerReturns why the last call was refused.
  • aiModelInfo(<pModel>)handlerReturns what is known about a loaded model.
  • aiJobState(<pJob>)handlerReturns whether a job is still running.
  • aiGenerate(<pModel>,<pPrompt>,<pOptions>)handlerStarts a model writing text that follows a prompt.
  • aiTranscribe(<pSpeech>,<pAudioPath>,<pOptions>)handlerStarts turning a recording into text.
  • aiSimilarity(<pVectorA>,<pVectorB>)handlerReturns how alike in meaning two texts are, from their embeddings.
  • aiJobTake(<pJob>)handlerReturns what a job has written since it was last asked.
  • aiSpeechInfo(<pSpeech>)handlerReturns what is known about a loaded speech model.
  • aiModelFree(<pModel>)handlerFrees a language model.
  • aiJobText(<pJob>)handlerReturns everything a job has written.
  • aiSpeechFree(<pSpeech>)handlerFrees a speech model.
  • aiSystemInfo()handlerReturns what this computer's processor offers llama.cpp.
  • aiLibraryVersion()handlerReturns the versions of aixt and of the llama.cpp and whisper.cpp it was built with.
  • aiEmbed(<pModel>,<pText>)handlerReturns the meaning of a text as a list of numbers.
  • aiTokenCount(<pModel>,<pText>)handlerReturns how many tokens a text is for a model.
  • aiChat(<pModel>,<pMessages>,<pOptions>)handlerStarts a chat model writing its answer to a conversation.
  • aiJobWait(<pJob>,<pMilliseconds>)handlerWaits for a job to end.
02

artnetxt

One package

Art-Net compatible DMX for OpenXTalk0.1.0LCB library

Builds and reads Art-Net packets: DMX512 lighting levels and node discovery over a network.

  • Any platform
Downloadartnetxt-0.1.0.lce · 13.6 KB
More about Art-Net compatible DMX for OpenXTalk

Send levels with artnetBuildDmx, which turns a universe number and up to 512 channel levels into one ArtDmx packet. Find the Art-Net nodes on a network with artnetBuildPoll, and read each node's answer with artnetParseReply. Read levels another controller sends with artnetParseDmx.

This library only turns values into Art-Net bytes and Art-Net bytes back into values. The network is the stack's own: send the bytes with a datagram socket (`open datagram socket`, then `write`) to port 6454, and receive them with `accept datagram connections on port 6454 with message`. The artnet-helpers script (examples/artnet-helpers.livecodescript) does both for you.

Nothing here throws for bad input. A refusal returns an empty result, and artnetLastError says why.

Art-Net(TM) Designed by and Copyright Artistic Licence Holdings Ltd.

Install first
nothing
Topics
Networking, Art-Net, DMX, Lighting, Show control
Author
Seth Morrow Software
Extension id
org.openxtalk.library.artnet
Source
artnetxt/src/artnet.lcb
Licences
LICENSE
SHA-256
d3fae5bc78626054206d2025006e05eef9e845ebb3900e45543e793bdefaf2d8
All 5 handlers
  • artnetBuildDmx(<pUniverse>,<pChannels>)handlerBuilds one ArtDmx packet: the levels of one DMX universe, ready to send.
  • artnetBuildPoll()handlerBuilds an ArtPoll packet, which asks every Art-Net node to say who it is.
  • artnetParseReply(<pData>)handlerReads an ArtPollReply packet: one node's answer to an ArtPoll.
  • artnetParseDmx(<pData>)handlerReads an ArtDmx packet: the levels of one universe that arrived as bytes.
  • artnetLastError()handlerSays why the last call of this library built or read nothing.
03

audioxt

One package

Audio for OpenXTalk0.1.2native library

Sound for xTalk: many sounds mixed at once with low delay, music streamed from disk, tones, a microphone, and the samples themselves, through miniaudio.

  • Win 64
  • Win 32
  • macOS
  • Linux 64
  • Linux 32
  • Linux ARM
  • Android ARM64
  • Android ARM32
  • Android x86-64
  • Android x86
Downloadaudioxt-0.1.2.lce · 3.3 MB
More about Audio for OpenXTalk

An engine (auEngineCreate) is a mixer playing into one sound device. A sound is loaded into an engine from a WAV, FLAC or MP3 file (auSoundLoad), from the bytes of such a file (auSoundLoadData), from raw samples (auSoundFromPCM) or made as a tone (auSoundTone), and played with auSoundStart. Any number of sounds play at the same time, each with its own volume, pan and pitch; auSoundClone plays one loaded effect many times at once. Groups (auGroupCreate) give several sounds one volume slider. A sound can also be given a place in 3D (auSoundSetSpatial).

A microphone is opened with auCaptureOpen; what it hears is read as samples (auCaptureRead) or written straight to a WAV file (auCaptureRecordStart). auDecodeFile turns a sound file into samples and auWAVEncode turns samples into a WAV file.

Engines, sounds, groups and captures are integer handles. 0 means a call was refused, and a stale handle is harmless: getters return 0 or empty, actions do nothing. auLastError says why a call was refused. Every time is in seconds. The library never sends a message: to learn that a sound has ended, call auPollEnded on a timer. Call auShutDown when the stack closes.

This library is separate from the play command and the player object, which work as they always have.

Install first
nothing
Topics
Audio, Sound
Author
Seth Morrow Software
Extension id
org.openxtalk.library.audioxt
Source
audioxt/src/audioxt.lcb
Licences
LICENSE
SHA-256
fa1cbb0e54df9597086af7a6311e659e4922e84fd4f6b3530b255691bde30673
All 112 handlers
  • auEngineSetListenerVelocity(<pEngine>,<pX>,<pY>,<pZ>)handlerSets the listener's velocity, for the Doppler effect.
  • auSoundStartAt(<pSound>,<pSeconds>)handlerStarts a sound at an exact time on its engine's clock.
  • auSoundSetVelocity(<pSound>,<pX>,<pY>,<pZ>)handlerSets a sound's velocity, for the Doppler effect.
  • auSoundIsValid(<pSound>)handlerReports whether a handle is a sound that has not been freed.
  • auCaptureOpen(<pDevice>,<pFormat>,<pSampleRate>,<pChannels>,<pBufferSeconds>)handlerOpens a microphone or another input device.
  • auEngineTime(<pEngine>)handlerReturns an engine's clock: the seconds of sound it has mixed since it was created.
  • auSoundClone(<pSound>)handlerMakes another sound over the same samples, so one loaded effect can play many times at once.
  • auCaptureDeviceLabel(<pCapture>)handlerReturns the name of the device a capture listens to.
  • auCapturePeak(<pCapture>)handlerReturns the loudest level a capture has heard since the last call, for an input meter.
  • auSoundSetRolloff(<pSound>,<pRolloff>)handlerSets how fast a sound fades with distance.
  • auSoundSetLooping(<pSound>,<pFlag>)handlerSets whether a sound starts again when it reaches its end.
  • auSoundSetPitch(<pSound>,<pPitch>)handlerSets the pitch of a sound.
  • auCaptureAvailable(<pCapture>)handlerReturns how much sound is waiting to be read.
  • auCaptureDropped(<pCapture>)handlerReturns how much sound a capture has had to drop.
  • auSoundStopAt(<pSound>,<pSeconds>)handlerStops a sound at an exact time on its engine's clock.
  • auEnginePeak(<pEngine>)handlerReturns the loudest level an engine has played since the last call, for a level meter.
  • auEngineStopAll(<pEngine>)handlerStops every sound of an engine where it is.
  • auCaptureIsRecording(<pCapture>)handlerReports whether a capture is writing a WAV file.
  • auDeviceScan()handlerAsks the audio system which playback and capture devices it has.
  • auSoundSetSpatial(<pSound>,<pFlag>)handlerSets whether a sound has a place in 3D.
  • auSoundIsSpatial(<pSound>)handlerReports whether a sound has a place in 3D.
  • auCaptureSampleRate(<pCapture>)handlerReturns the sample rate of a capture.
  • auSoundLoad(<pEngine>,<pPath>,<pStream>)handlerLoads a sound file: WAV, FLAC or MP3.
  • auEngineCreate(<pDevice>,<pSampleRate>,<pChannels>)handlerOpens a playback device and starts mixing sounds into it.
  • auSoundGroup(<pSound>)handlerReturns the group a sound plays through.
  • auSoundSetGroup(<pSound>,<pGroup>)handlerRoutes a sound through a group.
  • auCaptureRecordStart(<pCapture>,<pSavePath>)handlerStarts writing everything a capture hears to a WAV file.
  • auGroupCreate(<pEngine>)handlerCreates a group: one volume, pan and pitch for many sounds.
  • auCaptureDeviceCount()handlerReturns how many capture devices (microphones and other inputs) the last scan found.
  • auSoundPan(<pSound>)handlerReturns the pan of a sound.
  • auEngineSampleRate(<pEngine>)handlerReturns the sample rate an engine mixes at.
  • auSoundSetFrequency(<pSound>,<pHertz>)handlerChanges the frequency of a tone while it plays.
  • auGroupStart(<pGroup>)handlerLets a group's sounds be heard again after auGroupStop.
  • auGroupFree(<pGroup>)handlerFrees a group.
  • auGroupPitch(<pGroup>)handlerReturns the pitch of a group.
  • auPlaybackDeviceName(<pIndex>)handlerReturns the name of a playback device.
  • auOutChannels()handlerReturns the channel count of the samples the last decode, render or capture read returned.
  • auSoundIsLooping(<pSound>)handlerReports whether a sound loops.
  • auCaptureIsRunning(<pCapture>)handlerReports whether a capture is listening.
  • auSoundSetVolume(<pSound>,<pVolume>)handlerSets the volume of a sound.
  • auEngineRender(<pEngine>,<pFrames>,<pFormat>)handlerMixes the next stretch of sound of an offline engine and returns its samples.
  • auShutDown()handlerCloses every capture and engine and lets the audio system go.
  • auSoundSetPosition(<pSound>,<pX>,<pY>,<pZ>)handlerSets where a sound is.
  • auDecodeData(<pData>,<pFormat>,<pSampleRate>,<pChannels>)handlerDecodes the bytes of a sound file (WAV, FLAC or MP3) into raw samples.
  • auSoundStart(<pSound>)handlerPlays a sound.
  • auEngineSoundCount(<pEngine>)handlerReturns how many sounds an engine holds.
  • auSoundEngine(<pSound>)handlerReturns the engine a sound belongs to.
  • auSoundFree(<pSound>)handlerFrees a sound.
  • auEngineSetVolume(<pEngine>,<pVolume>)handlerSets the master volume of an engine.
  • auEngineCreateOffline(<pSampleRate>,<pChannels>)handlerCreates an engine with no device, whose mix is read as samples.
  • auSoundPosition(<pSound>)handlerReturns the playing position of a sound.
  • auGroupSetVolume(<pGroup>,<pVolume>)handlerSets the volume of a group.
  • auEngineIsOffline(<pEngine>)handlerReports whether an engine was made by auEngineCreateOffline.
  • auDecodeFile(<pPath>,<pFormat>,<pSampleRate>,<pChannels>)handlerDecodes a whole sound file (WAV, FLAC or MP3) into raw samples.
  • auEngineStop(<pEngine>)handlerPauses an engine: nothing is heard and its clock stands still.
  • auCaptureIsValid(<pCapture>)handlerReports whether a handle is an open capture.
  • auPlaybackDeviceIsDefault(<pIndex>)handlerReports whether a playback device is the system's default.
  • auCaptureClose(<pCapture>)handlerCloses a capture.
  • auCaptureChannels(<pCapture>)handlerReturns the channel count of a capture.
  • auEngineFree(<pEngine>)handlerCloses an engine and frees every sound and group made on it.
  • auSoundFade(<pSound>,<pFrom>,<pTo>,<pSeconds>)handlerMoves a sound's volume smoothly from one level to another.
  • auSoundStopWithFade(<pSound>,<pSeconds>)handlerFades a sound out and then stops it.
  • auEngineSetListenerUp(<pEngine>,<pX>,<pY>,<pZ>)handlerSets which way is up for the listener.
  • auCaptureFormat(<pCapture>)handlerReturns the sample format of a capture.
  • auGroupVolume(<pGroup>)handlerReturns the volume of a group.
  • auOutSampleRate()handlerReturns the sample rate of the samples the last decode, render or capture read returned.
  • auEngineDeviceName(<pEngine>)handlerReturns the name of the device an engine plays into.
  • auCaptureStop(<pCapture>)handlerStops listening.
  • auPlaybackDeviceCount()handlerReturns how many playback devices the last scan found.
  • auSoundTone(<pEngine>,<pShape>,<pHertz>,<pAmplitude>)handlerMakes a tone that plays until it is stopped.
  • auCaptureStart(<pCapture>)handlerStarts listening.
  • auPollEnded()handlerFinds the sounds that reached their end since the last call.
  • auCaptureDeviceName(<pIndex>)handlerReturns the name of a capture device.
  • auSoundStop(<pSound>)handlerStops a sound where it is.
  • auGroupStop(<pGroup>)handlerSilences a group.
  • auEngineIsValid(<pEngine>)handlerReports whether a handle is an open engine.
  • auEngineListenerPosition(<pEngine>)handlerReturns where the listener is.
  • auCaptureRead(<pCapture>)handlerReturns the sound that has arrived since the last read.
  • auSoundLength(<pSound>)handlerReturns the length of a sound.
  • auGroupSetPan(<pGroup>,<pPan>)handlerSets the pan of a group.
  • auGroupIsValid(<pGroup>)handlerReports whether a handle is a group that has not been freed.
  • auEndedSound(<pIndex>)handlerReturns one of the sounds the last auPollEnded found.
  • auSoundIsPlaying(<pSound>)handlerReports whether a sound is playing.
  • auSoundSetDoppler(<pSound>,<pFactor>)handlerSets how strong the Doppler effect is for a sound.
  • auEngineStart(<pEngine>)handlerResumes an engine that auEngineStop paused.
  • auSoundLoadData(<pEngine>,<pData>,<pStream>)handlerLoads a sound from the bytes of a sound file: WAV, FLAC or MP3.
  • auLastError()handlerReturns why the last refused call was refused.
  • auSoundSetLoopRange(<pSound>,<pStartSeconds>,<pEndSeconds>)handlerSets the part of a sound that a loop repeats.
  • auEngineChannels(<pEngine>)handlerReturns the channel count an engine mixes to.
  • auABIVersion()handlerReturns the ABI number of the native library that is loaded.
  • auCaptureDeviceIsDefault(<pIndex>)handlerReports whether a capture device is the system's default.
  • auSoundAtEnd(<pSound>)handlerReports whether a sound has reached its end.
  • auSoundPitch(<pSound>)handlerReturns the pitch of a sound.
  • auSoundSetAutoFree(<pSound>,<pFlag>)handlerSets whether a sound is freed when it ends.
  • auSoundSetPan(<pSound>,<pPan>)handlerSets where a sound sits between the left and right speakers.
  • auSoundSeek(<pSound>,<pSeconds>)handlerMoves the playing position of a sound.
  • auWAVEncode(<pData>,<pFormat>,<pSampleRate>,<pChannels>)handlerWraps raw samples as a WAV file.
  • auEngineSetListenerPosition(<pEngine>,<pX>,<pY>,<pZ>)handlerSets where the listener is, for sounds that have a place in 3D.
  • auEngineWaveform(<pEngine>,<pPoints>)handlerReturns the newest sound an engine mixed as a list of points, for an oscilloscope display.
  • auSoundPositionXYZ(<pSound>)handlerReturns where a sound is.
  • auEngineListenerDirection(<pEngine>)handlerReturns the way the listener faces.
  • auLibraryVersion()handlerReturns the versions of the native library and of miniaudio inside it.
  • auCaptureRecordStop(<pCapture>)handlerFinishes the WAV file a capture is recording.
  • auSoundVolume(<pSound>)handlerReturns the volume of a sound.
  • auSoundSetDistanceRange(<pSound>,<pNearest>,<pFarthest>)handlerSets the distances between which a sound fades.
  • auGroupSetPitch(<pGroup>,<pPitch>)handlerSets the pitch of a group.
  • auEngineVolume(<pEngine>)handlerReturns the master volume of an engine.
  • auSoundNoise(<pEngine>,<pColor>,<pAmplitude>)handlerMakes noise that plays until it is stopped.
  • auGroupPan(<pGroup>)handlerReturns the pan of a group.
  • auEngineSetListenerDirection(<pEngine>,<pX>,<pY>,<pZ>)handlerSets the way the listener faces.
  • auSoundFromPCM(<pEngine>,<pData>,<pFormat>,<pSampleRate>,<pChannels>)handlerMakes a sound from raw samples.
  • auBackendName()handlerReturns the name of the audio system the library is using.
04

barcodext

One package

Barcodes and QR codes for OpenXTalk0.1.0native library

Reads QR codes and barcodes out of pictures, and makes them, with zxing-cpp.

  • Win 64
  • Win 32
  • macOS
  • Linux 64
  • Linux 32
  • Linux ARM
  • Android ARM64
  • Android ARM32
  • Android x86-64
  • Android x86
Downloadbarcodext-0.1.0.lce · 10.7 MB
More about Barcodes and QR codes for OpenXTalk

It reads and makes the common kinds: QR Code, Data Matrix, Aztec, PDF417, EAN-13 and EAN-8, UPC-A and UPC-E, Code 128, Code 39, Code 93, ITF, Codabar, DataBar and more. bcFormats lists them.

To read, hand over a picture as an image object's imageData with its width and height. bcReadText returns the text of the first barcode found and bcRead returns every barcode with where it is in the picture. A photo from a camera works: the barcode may be turned, small, or one of several.

To make one, bcCreate returns a picture (an array with "width", "height" and "imageData") to put into an image object, and bcCreateSVG returns the same barcode as SVG text.

No call here throws on a bad picture or a bad argument. A refused call returns empty and bcLastError says why.

Install first
nothing
Topics
Barcodes, Images
Author
Seth Morrow Software
Extension id
org.openxtalk.library.barcodext
Source
barcodext/src/barcodext.lcb
Licences
LICENSE
SHA-256
a782cea6d9a3a15f025bb84e299f30665477bb9541896d7851cc87957012a0d3
All 14 handlers
  • bcLibraryVersion()handlerReturns the versions of the native library and of zxing-cpp inside it.
  • bcLastError()handlerReturns why the last call was refused.
  • bcABIVersion()handlerReturns the ABI number of the native library that is loaded.
  • bcReadAdvanced(<pImageData>,<pWidth>,<pHeight>,<pFormats>,<pOptions>)handlerFinds barcodes in a picture, with every choice the reader has.
  • bcCreateFromData(<pData>,<pFormat>,<pOptions>,<pScale>)handlerMakes a barcode that holds binary data, as a picture.
  • bcCreateAdvanced(<pText>,<pFormat>,<pOptions>,<pScale>,<pQuietZone>,<pShowText>)handlerMakes a barcode as a picture, with every choice the writer has.
  • bcCreateSVG(<pText>,<pFormat>,<pOptions>,<pShowText>)handlerMakes a barcode as SVG text.
  • bcReadFormats(<pImageData>,<pWidth>,<pHeight>,<pFormats>)handlerFinds the barcodes of the kinds you name in a picture.
  • bcReadText(<pImageData>,<pWidth>,<pHeight>)handlerReturns the text of the first barcode found in a picture.
  • bcWritableFormats()handlerReturns the kinds of barcode this library can create.
  • bcCreateMatrix(<pText>,<pFormat>,<pOptions>)handlerMakes a barcode as rows of 1 and 0, for a stack that draws its own.
  • bcFormats()handlerReturns the kinds of barcode this library can read.
  • bcRead(<pImageData>,<pWidth>,<pHeight>)handlerFinds every barcode in a picture.
  • bcCreate(<pText>,<pFormat>,<pScale>)handlerMakes a barcode as a picture.
05

Box2Dxt

2 packages, in install order

Box2D for OpenXTalk0.2.0native library

Bindings to Box2D v3.1, a fast 2D rigid-body physics engine.

  • Win 64
  • Win 32
  • macOS
  • Linux 64
  • Linux 32
  • Linux ARM
  • Android ARM64
  • Android ARM32
  • Android x86-64
  • Android x86
Downloadbox2dxt-0.2.0.lce · 1.9 MB
More about Box2D for OpenXTalk

A world holds bodies; a body carries shapes (its collision geometry and material) and can be linked to other bodies by joints. Worlds, bodies, shapes, joints and chains are integer handles. 0 means a call failed or found nothing, and a stale handle is a harmless no-op: getters return 0, actions do nothing.

Every distance is in metres and every angle in radians, with y pointing up. Keep moving objects roughly 0.1 to 10 metres across and convert to pixels only when drawing. Create a world with b2NewWorld, advance it with b2Step at a fixed time step, then read positions and events back.

Results that do not fit in one value (ray hits, query rows, contact and sensor events, geometry, mass data, bounding boxes) are taken as a snapshot by an update or query call and read back with small getters; their indices are 1-based. The b2k Kit (box2dxt-kit.livecodescript) is a higher-level layer over this binding that works in pixels and degrees.

Install first
nothing
Topics
Physics
Author
Box2Dxt contributors
Extension id
org.openxtalk.box2dxt
Source
box2dxt/src/box2dxt.lcb
Licences
LICENSE, Microsoft-Visual-C++-Runtime.txt
SHA-256
639e7a045fcb6ec5717b9b9fdfd24fed8afc25b0407682d30bc666a80a401bc5
All 376 handlers
  • b2BodyAngularVelocity(<pBody>)handlerReturn a body's angular velocity.
  • b2SetShapeDensity(<pShape>,<pDensity>)handlerChange a shape's density.
  • b2AABBLowerX()handlerReturn the lower x (left edge) of the bounding box snapshot.
  • b2BodyLocalPointVelocityY(<pBody>,<pLocalX>,<pLocalY>)handlerReturn the world y velocity of a body at a point given in its local frame.
  • b2RevoluteSpringDamping(<pJoint>)handlerReturn a revolute joint's spring damping ratio.
  • b2ApplyAngularImpulse(<pBody>,<pImpulse>,<pWake>)handlerApply an angular impulse to a body.
  • b2ShapeDefFilter(<pCategory>,<pMask>,<pGroup>)handlerSet the collision filter for the next shape.
  • b2SetJointTuning(<pWorld>,<pHertz>,<pDamping>)handlerTune how soft a world's joints are.
  • b2IsWarmStartingEnabled(<pWorld>)handlerReport whether a world uses warm starting.
  • b2EnableSleeping(<pWorld>,<pFlag>)handlerTurn sleeping on or off for a whole world.
  • b2SetMaximumLinearSpeed(<pWorld>,<pValue>)handlerSet the top speed of any body in a world.
  • b2ShapeSensorCapacity(<pShape>)handlerReturn how many overlaps a sensor shape may report.
  • b2JointLocalAnchorAX(<pJoint>)handlerReturn the x of the anchor on body A, in that body's local frame.
  • b2SensorEndSensorShape(<pIndex>)handlerReturn the sensor shape of an overlap that ended.
  • b2DestroyWorld(<pWorld>)handlerDestroy a world and everything in it.
  • b2ShapeBody(<pShape>)handlerReturn the body a shape belongs to.
  • b2ShapeContactEventsEnabled(<pShape>)handlerReport whether a shape has begin and end contact events enabled.
  • b2WorldShapeCount()handlerReturn how many shapes the counters snapshot holds.
  • b2WheelIsMotorEnabled(<pJoint>)handlerReport whether a wheel joint's drive motor is on.
  • b2MotorSetCorrectionFactor(<pJoint>,<pFactor>)handlerSet how quickly a motor joint corrects position error.
  • b2RevoluteEnableSpring(<pJoint>,<pFlag>)handlerTurn a revolute joint's rotational spring on or off.
  • b2BodyMoveCount()handlerReturn how many bodies the move snapshot holds.
  • b2WorldProfileSensors()handlerReturn the time the last step spent on updating sensors.
  • b2MotorCorrectionFactor(<pJoint>)handlerReturn a motor joint's correction factor.
  • b2RevoluteSetSpringDamping(<pJoint>,<pDamping>)handlerSet a revolute joint's spring damping ratio.
  • b2WorldProfileUpdate(<pWorld>)handlerSnapshot the timings of a world's last step.
  • b2BodyGravityScale(<pBody>)handlerReturn a body's gravity scale.
  • b2WheelSpringDamping(<pJoint>)handlerReturn a wheel joint's suspension damping ratio.
  • b2JointLocalAnchorBX(<pJoint>)handlerReturn the x of the anchor on body B, in that body's local frame.
  • b2WheelMotorTorque(<pJoint>)handlerReturn the torque a wheel joint's motor applied on the last step.
  • b2QueryFraction(<pIndex>)handlerReturn how far along the cast a query row's hit was.
  • b2ShapeDefMaterialId(<pId>)handlerSet the user material id for the next shape.
  • b2JointBodyB(<pJoint>)handlerReturn a joint's second body.
  • b2CreateChain(<pBody>,<pLoop>,<pFriction>,<pRestitution>)handlerCreate a chain of smooth, one-sided segments on a body.
  • b2ShapeCast(<pWorld>,<pRadius>,<pDx>,<pDy>)handlerSweep a shape from the vertex builder through a world and gather the hits.
  • b2RestitutionThreshold(<pWorld>)handlerReturn a world's restitution threshold.
  • b2BodyWorldCenterX(<pBody>)handlerReturn the x position of a body's centre of mass in world coordinates.
  • b2ShapeEnableSensorEvents(<pShape>,<pFlag>)handlerTurn sensor events on or off for a shape.
  • b2PrismaticMotorForce(<pJoint>)handlerReturn the force a prismatic joint's motor applied on the last step.
  • b2SetShapeRestitution(<pShape>,<pRestitution>)handlerChange a shape's restitution (bounciness).
  • b2ShapeSegmentY1()handlerReturn the local y of the segment's first end from the segment snapshot.
  • b2DestroyShape(<pShape>)handlerRemove a shape from its body.
  • b2BodyAngle(<pBody>)handlerReturn a body's rotation.
  • b2SetTransform(<pBody>,<pX>,<pY>,<pAngle>)handlerMove a body to a new position and angle at once.
  • b2BodyEnableHitEvents(<pBody>,<pFlag>)handlerTurn hit events on or off for every shape of a body.
  • b2ShapeCircleUpdate(<pShape>)handlerSnapshot a circle shape's geometry.
  • b2ShapeCapsuleX2()handlerReturn the local x of the capsule's second centre from the capsule snapshot.
  • b2JointConstraintTorque(<pJoint>)handlerReturn the torque a joint applied on the last step.
  • b2MotorLinearOffsetY(<pJoint>)handlerReturn the y of a motor joint's target offset.
  • b2SetLinearDamping(<pBody>,<pDamping>)handlerSet how quickly a body's linear velocity dies away.
  • b2SetShapeCapsule(<pShape>,<pX1>,<pY1>,<pX2>,<pY2>,<pRadius>)handlerReplace a shape's geometry with a capsule.
  • b2BodyWorldPointVelocityX(<pBody>,<pWorldX>,<pWorldY>)handlerReturn the x velocity of a body at a world point.
  • b2OverlapShape(<pWorld>,<pRadius>)handlerFind every shape that overlaps a shape built from the vertex builder.
  • b2BodyIsEnabled(<pBody>)handlerReport whether a body takes part in the simulation.
  • b2BodyMoveAngle(<pIndex>)handlerReturn the new angle of a moved body.
  • b2MassDataCenterY()handlerReturn the y of the centre of mass from the mass data snapshot.
  • b2ShapeType(<pShape>)handlerReturn a shape's type code.
  • b2SensorBeginCount()handlerReturn how many overlaps began in the sensor snapshot.
  • b2ShapePolygonUpdate(<pShape>)handlerSnapshot a polygon shape's vertices.
  • b2RevoluteIsSpringEnabled(<pJoint>)handlerReport whether a revolute joint's spring is on.
  • b2SetFixedRotation(<pBody>,<pFlag>)handlerStop a body rotating, or let it rotate again.
  • b2ShapeMaterialId(<pShape>)handlerReturn a shape's user material id.
  • b2ShapeSensorEventsEnabled(<pShape>)handlerReport whether a shape has sensor events enabled.
  • b2RayNormalX()handlerReturn the x of the surface normal at the last ray hit.
  • b2MouseSetSpringHertz(<pJoint>,<pHertz>)handlerSet how stiffly a mouse joint's body follows the target.
  • b2ShapeEnableContactEvents(<pShape>,<pFlag>)handlerTurn begin and end contact events on or off for a shape.
  • b2EnableContinuous(<pWorld>,<pFlag>)handlerTurn continuous collision on or off for a whole world.
  • b2BodyJointCount(<pBody>)handlerSnapshot a body's joints and return how many there are.
  • b2SetShapeFilter(<pShape>,<pCategory>,<pMask>,<pGroup>)handlerChange a shape's collision filter.
  • b2DistanceLength(<pJoint>)handlerReturn a distance joint's rest length.
  • b2RevoluteAngle(<pJoint>)handlerReturn a revolute joint's current angle.
  • b2SetShapeSegment(<pShape>,<pX1>,<pY1>,<pX2>,<pY2>)handlerReplace a shape's geometry with a segment.
  • b2DestroyChain(<pChain>)handlerDestroy a chain and its segments.
  • b2SetShapeCircle(<pShape>,<pCx>,<pCy>,<pRadius>)handlerReplace a shape's geometry with a circle.
  • b2BodyLinearDamping(<pBody>)handlerReturn a body's linear damping.
  • b2RayY()handlerReturn the y of the last closest ray's hit point.
  • b2ContactHitNormalY(<pIndex>)handlerReturn the y of a hit event's normal.
  • b2WorldCountersUpdate(<pWorld>)handlerSnapshot a world's object counts.
  • b2BodyY(<pBody>)handlerReturn the y position of a body's origin.
  • b2BodyLocalVectorX(<pBody>,<pWorldX>,<pWorldY>)handlerRotate a world vector into a body's frame and return its x.
  • b2ContactHitX(<pIndex>)handlerReturn the x of a hit event's impact point.
  • b2ShapeCapsuleRadius()handlerReturn the capsule's radius from the capsule snapshot.
  • b2ShapeFilterGroup(<pShape>)handlerReturn a shape's filter group index.
  • b2MotorSetMaxTorque(<pJoint>,<pTorque>)handlerSet the most torque a motor joint may apply.
  • b2PrismaticSpringDamping(<pJoint>)handlerReturn a prismatic joint's spring damping ratio.
  • b2ShapeDefEnablePreSolveEvents(<pFlag>)handlerTurn pre-solve events on or off for the next shape.
  • b2SensorBeginSensorShape(<pIndex>)handlerReturn the sensor shape of an overlap that began.
  • b2RevoluteIsLimitEnabled(<pJoint>)handlerReport whether a revolute joint's angle limit is on.
  • b2OverlapCircle(<pWorld>,<pCx>,<pCy>,<pRadius>)handlerFind every shape that overlaps a circle.
  • b2ShapePolygonVertexX(<pIndex>)handlerReturn the local x of one polygon vertex from the snapshot.
  • b2AddCircle(<pBody>,<pCx>,<pCy>,<pRadius>,<pDensity>,<pFriction>,<pRestitution>)handlerAttach a circle shape to a body.
  • b2BodyVY(<pBody>)handlerReturn the y component of a body's linear velocity.
  • b2PolyAddPoint(<pX>,<pY>)handlerAdd one point to the vertex builder.
  • b2WorldProfileStep()handlerReturn the time the last step spent on the whole step.
  • b2WheelEnableLimit(<pJoint>,<pFlag>)handlerTurn a wheel joint's suspension travel limit on or off.
  • b2Step(<pWorld>,<pDt>,<pSubSteps>)handlerAdvance the simulation by one time step.
  • b2OverlapAABB(<pWorld>,<pX1>,<pY1>,<pX2>,<pY2>)handlerFind every shape whose bounding box overlaps a rectangle.
  • b2SetChainRestitution(<pChain>,<pRestitution>)handlerSet the restitution of every segment of a chain.
  • b2SetVelocity(<pBody>,<pVx>,<pVy>)handlerSet a body's linear velocity.
  • b2ShapePolygonCount()handlerReturn the vertex count of the polygon snapshot.
  • b2ShapeEnablePreSolveEvents(<pShape>,<pFlag>)handlerTurn pre-solve events on or off for a shape.
  • b2EnableSpeculative(<pWorld>,<pFlag>)handlerTurn speculative collision on or off.
  • b2MotorMaxForce(<pJoint>)handlerReturn a motor joint's force cap.
  • b2JointConstraintForceX(<pJoint>)handlerReturn the x of the force a joint applied on the last step.
  • b2IsContinuousEnabled(<pWorld>)handlerReport whether a world uses continuous collision.
  • b2RevoluteSetSpringHertz(<pJoint>,<pHertz>)handlerSet a revolute joint's spring stiffness.
  • b2DisableBody(<pBody>)handlerTake a body out of the simulation without destroying it.
  • b2MotorAngularOffset(<pJoint>)handlerReturn a motor joint's target angle.
  • b2PrismaticEnableSpring(<pJoint>,<pFlag>)handlerTurn a prismatic joint's spring along its axis on or off.
  • b2LoadNativeLibError()handlerReturn the loader's last error message (Linux only).
  • b2JointType(<pJoint>)handlerReturn a joint's type code.
  • b2WorldThreadCount(<pWorld>)handlerReturn how many native workers a world steps with.
  • b2SetTargetTransform(<pBody>,<pX>,<pY>,<pAngle>,<pTimeStep>)handlerDrive a kinematic body to reach a pose after a time step.
  • b2WheelMaxMotorTorque(<pJoint>)handlerReturn a wheel joint's motor torque cap.
  • b2SetAngularVelocity(<pBody>,<pOmega>)handlerSet a body's angular velocity.
  • b2EnableSleep(<pBody>,<pFlag>)handlerAllow or forbid one body to sleep.
  • b2WorldProfileCollide()handlerReturn the time the last step spent on the collide phase.
  • b2SetAwake(<pBody>,<pFlag>)handlerWake a body, or put it to sleep.
  • b2SetBullet(<pBody>,<pFlag>)handlerMark a body as a bullet, or clear the mark.
  • b2NewThreadedWorld(<pGravityX>,<pGravityY>,<pAllowSleep>,<pContinuous>,<pWorkers>)handlerCreate a world whose step can use a pool of native worker threads.
  • b2MaximumLinearSpeed(<pWorld>)handlerReturn a world's body speed limit.
  • b2BodyIsSleepEnabled(<pBody>)handlerReport whether a body may sleep.
  • b2AddCapsule(<pBody>,<pX1>,<pY1>,<pX2>,<pY2>,<pRadius>,<pDensity>,<pFriction>,<pRestitution>)handlerAttach a capsule shape (a rounded line) to a body.
  • b2ShapeSegmentX2()handlerReturn the local x of the segment's second end from the segment snapshot.
  • b2PrismaticIsSpringEnabled(<pJoint>)handlerReport whether a prismatic joint's spring is on.
  • b2BodyIsBullet(<pBody>)handlerReport whether a body is a bullet.
  • b2MassDataInertia()handlerReturn the rotational inertia from the mass data snapshot.
  • b2ChainFriction(<pChain>)handlerReturn a chain's friction.
  • b2ShapePolygonRadius()handlerReturn the rounding radius of the polygon snapshot.
  • b2DistanceMotorForce(<pJoint>)handlerReturn the force a distance joint's motor applied on the last step.
  • b2NewKinematicBody(<pWorld>,<pX>,<pY>)handlerCreate a kinematic body at a position.
  • b2DistanceSetLength(<pJoint>,<pLength>)handlerChange a distance joint's rest length.
  • b2WheelEnableMotor(<pJoint>,<pEnable>,<pSpeed>,<pMaxTorque>)handlerSwitch a wheel joint's drive motor and set it.
  • b2SetContactTuning(<pWorld>,<pHertz>,<pDamping>,<pPushSpeed>)handlerTune how soft a world's contacts are.
  • b2WeldSetStiffness(<pJoint>,<pLinearHertz>,<pLinearDamping>,<pAngularHertz>,<pAngularDamping>)handlerMake a weld joint springy, or rigid again.
  • b2SetJointCollideConnected(<pJoint>,<pFlag>)handlerLet a joint's two bodies collide with each other, or not.
  • b2RevoluteSetMaxMotorTorque(<pJoint>,<pTorque>)handlerSet the most torque a revolute joint's motor may apply.
  • b2QueryCount()handlerReturn how many rows the last world query found.
  • b2MotorJoint(<pWorld>,<pBodyA>,<pBodyB>,<pOffsetX>,<pOffsetY>,<pAngularOffset>,<pMaxForce>,<pMaxTorque>,<pCorrectionFactor>,<pCollide>)handlerDrive body B toward a pose offset from body A.
  • b2WorldBodyCount()handlerReturn how many bodies the counters snapshot holds.
  • b2AwakeBodyCount(<pWorld>)handlerReturn how many bodies in a world are awake.
  • b2RayShape()handlerReturn the shape the last closest ray hit.
  • b2BodyJointAt(<pIndex>)handlerReturn one joint from the body joint snapshot.
  • b2BodyLocalPointY(<pBody>,<pWorldX>,<pWorldY>)handlerReturn the local y of a world point in a body's frame.
  • b2SetShapeMaterialId(<pShape>,<pId>)handlerSet a shape's user material id.
  • b2PolyBegin()handlerStart a new vertex list for a polygon or a query proxy.
  • b2BodyMoveBody(<pIndex>)handlerReturn the body of a move event.
  • b2MassDataMass()handlerReturn the mass from the mass data snapshot.
  • b2SetShapePolygon(<pShape>)handlerReplace a shape's geometry with a polygon from the vertex builder.
  • b2ShapeCircleY()handlerReturn the local y of the circle's centre from the circle snapshot.
  • b2RevoluteMotorTorque(<pJoint>)handlerReturn the torque a revolute joint's motor applied on the last step.
  • b2ShapeClosestPointX(<pShape>,<pTargetX>,<pTargetY>)handlerReturn the x of the point on a shape nearest a world target.
  • b2ShapeFriction(<pShape>)handlerReturn a shape's friction coefficient.
  • b2DistanceMotorSpeed(<pJoint>)handlerReturn a distance joint's motor speed.
  • b2BodyIsFixedRotation(<pBody>)handlerReport whether a body's rotation is locked.
  • b2JointLocalAnchorBY(<pJoint>)handlerReturn the y of the anchor on body B, in that body's local frame.
  • b2WorldGravityX(<pWorld>)handlerReturn the x component of a world's gravity.
  • b2ShapeRayCast(<pShape>,<pX1>,<pY1>,<pX2>,<pY2>)handlerCast a ray against one shape.
  • b2BodyAtPoint(<pWorld>,<pX>,<pY>)handlerFind a body whose shape covers a world point.
  • b2BodyMoveY(<pIndex>)handlerReturn the new y of a moved body.
  • b2ShapeIsSensor(<pShape>)handlerReport whether a shape is a sensor.
  • b2WheelEnableSpring(<pJoint>,<pEnable>,<pHertz>,<pDamping>)handlerSwitch a wheel joint's suspension spring and set it.
  • b2ShapeFilterCategory(<pShape>)handlerReturn a shape's filter category bits.
  • b2BodyShapeCount(<pBody>)handlerSnapshot a body's shapes and return how many there are.
  • b2ChainRestitution(<pChain>)handlerReturn a chain's restitution.
  • b2MouseSetTarget(<pJoint>,<pTargetX>,<pTargetY>)handlerMove a mouse joint's target.
  • b2ShapeEnableHitEvents(<pShape>,<pFlag>)handlerTurn hit events on or off for a shape.
  • b2RevoluteLowerLimit(<pJoint>)handlerReturn a revolute joint's lower angle limit.
  • b2MouseSpringDamping(<pJoint>)handlerReturn a mouse joint's spring damping ratio.
  • b2MotorLinearOffsetX(<pJoint>)handlerReturn the x of a motor joint's target offset.
  • b2RevoluteMaxMotorTorque(<pJoint>)handlerReturn a revolute joint's motor torque cap.
  • b2WeldAngularHertz(<pJoint>)handlerReturn a weld joint's angular stiffness.
  • b2ContactBeginCount()handlerReturn how many pairs began touching in the snapshot.
  • b2SetHitEventThreshold(<pWorld>,<pValue>)handlerSet the approach speed above which a contact reports a hit event.
  • b2PrismaticMotorSpeed(<pJoint>)handlerReturn a prismatic joint's motor speed.
  • b2BodyLocalPointVelocityX(<pBody>,<pLocalX>,<pLocalY>)handlerReturn the world x velocity of a body at a point given in its local frame.
  • b2MassDataCenterX()handlerReturn the x of the centre of mass from the mass data snapshot.
  • b2DistanceMaxLength(<pJoint>)handlerReturn a distance joint's longest allowed length.
  • b2MouseSetMaxForce(<pJoint>,<pForce>)handlerSet the most force a mouse joint may pull with.
  • b2QueryX(<pIndex>)handlerReturn the x of a query row's point.
  • b2QueryNormalY(<pIndex>)handlerReturn the y of a query row's surface normal.
  • b2WorldIslandCount()handlerReturn how many simulation islands the counters snapshot holds.
  • b2ContactHitBodyA(<pIndex>)handlerReturn the first body of a hit event.
  • b2WorldProfileSolve()handlerReturn the time the last step spent on the solve phase.
  • b2ShapeSegmentX1()handlerReturn the local x of the segment's first end from the segment snapshot.
  • b2BodyIsAwake(<pBody>)handlerReport whether a body is awake.
  • b2BodyAngularDamping(<pBody>)handlerReturn a body's angular damping.
  • b2SetAngularDamping(<pBody>,<pDamping>)handlerSet how quickly a body's spin dies away.
  • b2SensorBeginVisitorShape(<pIndex>)handlerReturn the visiting shape of an overlap that began.
  • b2ShapeSensorOverlapsUpdate(<pShape>)handlerSnapshot the shapes overlapping a sensor now.
  • b2RayCastAll(<pWorld>,<pX1>,<pY1>,<pX2>,<pY2>)handlerFind every shape along a ray, nearest first.
  • b2WorldJointCount()handlerReturn how many joints the counters snapshot holds.
  • b2PrismaticSetSpringDamping(<pJoint>,<pDamping>)handlerSet a prismatic joint's spring damping ratio.
  • b2ContactBeginBodyB(<pIndex>)handlerReturn the second body of a pair that began touching.
  • b2BodyLocalVectorY(<pBody>,<pWorldX>,<pWorldY>)handlerRotate a world vector into a body's frame and return its y.
  • b2NewStaticBody(<pWorld>,<pX>,<pY>)handlerCreate a static body at a position.
  • b2RevoluteSetMotorSpeed(<pJoint>,<pSpeed>)handlerSet a revolute joint's motor speed.
  • b2ShapeDefEnableContactEvents(<pFlag>)handlerTurn begin and end contact events on or off for the next shape.
  • b2EnableBody(<pBody>)handlerReturn a disabled body to the simulation.
  • b2BodyLocalCenterX(<pBody>)handlerReturn the x of a body's centre of mass in its local frame.
  • b2RayBody()handlerReturn the body the last closest ray hit.
  • b2AddSegment(<pBody>,<pX1>,<pY1>,<pX2>,<pY2>,<pFriction>,<pRestitution>)handlerAttach a line segment shape to a body.
  • b2SetSleepThreshold(<pBody>,<pThreshold>)handlerSet the speed below which a body may fall asleep.
  • b2BodyAABBUpdate(<pBody>)handlerSnapshot a body's bounding box.
  • b2EnableWarmStarting(<pWorld>,<pFlag>)handlerTurn the solver's warm starting on or off.
  • b2FilterJoint(<pWorld>,<pBodyA>,<pBodyB>)handlerStop exactly two bodies colliding with each other.
  • b2WeldSetReferenceAngle(<pJoint>,<pAngle>)handlerChange the relative angle a weld joint holds.
  • b2ShapeCapsuleY2()handlerReturn the local y of the capsule's second centre from the capsule snapshot.
  • b2ContactsUpdate(<pWorld>)handlerSnapshot the contact events of the last step.
  • b2RayFraction()handlerReturn how far along the last closest ray the hit was.
  • b2ChainAddPoint(<pX>,<pY>)handlerAdd one point to the chain builder.
  • b2JointWakeBodies(<pJoint>)handlerWake both bodies of a joint.
  • b2MouseTargetX(<pJoint>)handlerReturn the x of a mouse joint's target.
  • b2SetRestitutionThreshold(<pWorld>,<pValue>)handlerSet the speed below which collisions stop bouncing.
  • b2BodyEnableContactEvents(<pBody>,<pFlag>)handlerTurn contact events on or off for every shape of a body.
  • b2ShapeRayY()handlerReturn the y of the last shape ray hit.
  • b2MotorSetLinearOffset(<pJoint>,<pX>,<pY>)handlerSet a motor joint's target offset.
  • b2BodyWorldVectorY(<pBody>,<pLocalX>,<pLocalY>)handlerRotate a body-local vector into the world frame and return its y.
  • b2ApplyImpulseAt(<pBody>,<pIx>,<pIy>,<pPointX>,<pPointY>,<pWake>)handlerApply a linear impulse at a world point on a body.
  • b2JointConstraintForceY(<pJoint>)handlerReturn the y of the force a joint applied on the last step.
  • b2ShapeDensity(<pShape>)handlerReturn a shape's density.
  • b2SetChainFriction(<pChain>,<pFriction>)handlerSet the friction of every segment of a chain.
  • b2OverlapPoint(<pWorld>,<pX>,<pY>)handlerFind every shape that contains a world point.
  • b2ShapeMassDataUpdate(<pShape>)handlerSnapshot one shape's mass data.
  • b2BodyMassDataUpdate(<pBody>)handlerSnapshot a body's mass data.
  • b2DistanceSpringHertz(<pJoint>)handlerReturn a distance joint's spring stiffness.
  • b2MouseJoint(<pWorld>,<pBodyA>,<pBodyB>,<pTargetX>,<pTargetY>,<pHertz>,<pDamping>,<pMaxForce>)handlerDrag a body toward a target point.
  • b2WorldProfilePairs()handlerReturn the time the last step spent on finding new contact pairs.
  • b2PrismaticIsLimitEnabled(<pJoint>)handlerReport whether a prismatic joint's travel limit is on.
  • b2PrismaticSetMotorSpeed(<pJoint>,<pSpeed>)handlerSet a prismatic joint's motor speed.
  • b2AddBox(<pBody>,<pHalfW>,<pHalfH>,<pDensity>,<pFriction>,<pRestitution>)handlerAttach a box shape to a body, centred on its origin.
  • b2SensorEndCount()handlerReturn how many overlaps ended in the sensor snapshot.
  • b2ShapeDefEnableHitEvents(<pFlag>)handlerTurn hit events on or off for the next shape.
  • b2ChainSegmentCount(<pChain>)handlerSnapshot a chain's segment shapes and return how many there are.
  • b2ShapeRayNormalX()handlerReturn the x of the surface normal at the last shape ray hit.
  • b2WeldAngularDamping(<pJoint>)handlerReturn a weld joint's angular damping ratio.
  • b2MotorSetAngularOffset(<pJoint>,<pAngle>)handlerSet a motor joint's target angle.
  • b2SensorsUpdate(<pWorld>)handlerSnapshot the sensor events of the last step.
  • b2ChainSegmentAt(<pIndex>)handlerReturn one segment shape from the chain snapshot.
  • b2SetGravityScale(<pBody>,<pScale>)handlerScale how strongly gravity acts on one body.
  • b2RevoluteSpringHertz(<pJoint>)handlerReturn a revolute joint's spring stiffness.
  • b2DestroyBody(<pBody>)handlerDestroy a body, with its shapes and joints.
  • b2ContactBeginBodyA(<pIndex>)handlerReturn the first body of a pair that began touching.
  • b2WheelSetLimits(<pJoint>,<pLower>,<pUpper>)handlerSet a wheel joint's suspension travel range.
  • b2WeldReferenceAngle(<pJoint>)handlerReturn the relative angle a weld joint holds.
  • b2CastRayClosest(<pWorld>,<pX1>,<pY1>,<pX2>,<pY2>)handlerCast a ray through a world and find the closest hit.
  • b2BodyWorldPointX(<pBody>,<pLocalX>,<pLocalY>)handlerReturn the world x of a point given in a body's local frame.
  • b2DistanceEnableSpring(<pJoint>,<pEnable>,<pHertz>,<pDamping>)handlerMake a distance joint springy, or rigid again.
  • b2IsSleepingEnabled(<pWorld>)handlerReport whether a world lets bodies sleep.
  • b2HitEventThreshold(<pWorld>)handlerReturn a world's hit event threshold.
  • b2SensorEndVisitorShape(<pIndex>)handlerReturn the visiting shape of an overlap that ended.
  • b2DistanceSetMotorSpeed(<pJoint>,<pSpeed>)handlerSet a distance joint's motor speed.
  • b2MouseMaxForce(<pJoint>)handlerReturn a mouse joint's force cap.
  • b2WheelUpperLimit(<pJoint>)handlerReturn a wheel joint's upper travel limit.
  • b2MouseSpringHertz(<pJoint>)handlerReturn a mouse joint's spring stiffness.
  • b2RevoluteEnableMotor(<pJoint>,<pEnable>,<pSpeed>,<pMaxTorque>)handlerSwitch a revolute joint's motor and set its speed and torque.
  • b2ShapeCapsuleY1()handlerReturn the local y of the capsule's first centre from the capsule snapshot.
  • b2WheelLowerLimit(<pJoint>)handlerReturn a wheel joint's lower travel limit.
  • b2ShapeHitEventsEnabled(<pShape>)handlerReport whether a shape has hit events enabled.
  • b2NewBody(<pWorld>,<pType>,<pX>,<pY>,<pAngle>,<pBullet>,<pFixedRotation>)handlerCreate a body with every option.
  • b2BodyLocalPointX(<pBody>,<pWorldX>,<pWorldY>)handlerReturn the local x of a world point in a body's frame.
  • b2RevoluteUpperLimit(<pJoint>)handlerReturn a revolute joint's upper angle limit.
  • b2ShapePolygonVertexY(<pIndex>)handlerReturn the local y of one polygon vertex from the snapshot.
  • b2ShapeCircleX()handlerReturn the local x of the circle's centre from the circle snapshot.
  • b2ChainBegin()handlerStart a new point list for a chain.
  • b2ShapeSensorOverlapAt(<pIndex>)handlerReturn one shape from the sensor overlap snapshot.
  • b2WeldJoint(<pWorld>,<pBodyA>,<pBodyB>,<pAx>,<pAy>,<pBx>,<pBy>,<pRefAngle>,<pCollide>)handlerGlue two bodies together rigidly.
  • b2DistanceCurrentLength(<pJoint>)handlerReturn the separation of a distance joint's anchors right now.
  • b2DistanceSetMaxMotorForce(<pJoint>,<pForce>)handlerSet the most force a distance joint's motor may apply.
  • b2ApplyMassFromShapes(<pBody>)handlerRecompute a body's mass from its shapes.
  • b2BodyRotationalInertia(<pBody>)handlerReturn a body's rotational inertia.
  • b2WorldGravityY(<pWorld>)handlerReturn the y component of a world's gravity.
  • b2PrismaticEnableMotor(<pJoint>,<pEnable>,<pSpeed>,<pMaxForce>)handlerSwitch a prismatic joint's motor and set its speed and force.
  • b2BodyMoveX(<pIndex>)handlerReturn the new x of a moved body.
  • b2DistanceIsSpringEnabled(<pJoint>)handlerReport whether a distance joint's spring is on.
  • b2QueryBody(<pIndex>)handlerReturn the body of a query row.
  • b2PrismaticSpeed(<pJoint>)handlerReturn how fast a prismatic joint is sliding.
  • b2AABBUpperX()handlerReturn the upper x (right edge) of the bounding box snapshot.
  • b2RevoluteJoint(<pWorld>,<pBodyA>,<pBodyB>,<pAx>,<pAy>,<pBx>,<pBy>,<pCollide>)handlerPin two bodies together at a point they can rotate about.
  • b2NewDynamicBody(<pWorld>,<pX>,<pY>)handlerCreate a dynamic body at a position.
  • b2AABBLowerY()handlerReturn the lower y (bottom edge) of the bounding box snapshot.
  • b2WheelMotorSpeed(<pJoint>)handlerReturn a wheel joint's target spin.
  • b2PrismaticSpringHertz(<pJoint>)handlerReturn a prismatic joint's spring stiffness.
  • b2AddPolygon(<pBody>,<pDensity>,<pFriction>,<pRestitution>)handlerAttach a convex polygon, built from the vertex builder, to a body.
  • b2DistanceIsLimitEnabled(<pJoint>)handlerReport whether a distance joint's length range is on.
  • b2ShapeDefSensor(<pFlag>)handlerMake the next shape a sensor.
  • b2ChainIsValid(<pChain>)handlerReport whether a chain handle is live.
  • b2JointCollideConnected(<pJoint>)handlerReport whether a joint's two bodies collide with each other.
  • b2PrismaticIsMotorEnabled(<pJoint>)handlerReport whether a prismatic joint's motor is on.
  • b2ContactEndCount()handlerReturn how many pairs stopped touching in the snapshot.
  • b2QueryY(<pIndex>)handlerReturn the y of a query row's point.
  • b2ContactHitCount()handlerReturn how many hit events the last snapshot holds.
  • b2JointLocalAnchorAY(<pJoint>)handlerReturn the y of the anchor on body A, in that body's local frame.
  • b2SetMassData(<pBody>,<pMass>,<pCenterX>,<pCenterY>,<pInertia>)handlerOverride a body's mass, centre of mass and inertia.
  • b2QueryNormalX(<pIndex>)handlerReturn the x of a query row's surface normal.
  • b2DistanceIsMotorEnabled(<pJoint>)handlerReport whether a distance joint's motor is on.
  • b2ShapeRestitution(<pShape>)handlerReturn a shape's restitution (bounciness).
  • b2PrismaticTranslation(<pJoint>)handlerReturn how far a prismatic joint has slid.
  • b2DistanceSpringDamping(<pJoint>)handlerReturn a distance joint's spring damping ratio.
  • b2ApplyImpulse(<pBody>,<pIx>,<pIy>,<pWake>)handlerApply a linear impulse at a body's centre of mass.
  • b2RevoluteMotorSpeed(<pJoint>)handlerReturn a revolute joint's motor speed.
  • b2ShapeSegmentUpdate(<pShape>)handlerSnapshot a segment shape's geometry.
  • b2ContactEndBodyA(<pIndex>)handlerReturn the first body of a pair that stopped touching.
  • b2WheelJoint(<pWorld>,<pBodyA>,<pBodyB>,<pAx>,<pAy>,<pBx>,<pBy>,<pAxisX>,<pAxisY>,<pCollide>)handlerAttach a wheel: a sprung sliding axis plus free spin.
  • b2BodyType(<pBody>)handlerReturn a body's type code.
  • b2BodyLocalCenterY(<pBody>)handlerReturn the y of a body's centre of mass in its local frame.
  • b2QueryShape(<pIndex>)handlerReturn the shape of a query row.
  • b2ShapeSensorOverlapCount()handlerReturn the count of the sensor overlap snapshot.
  • b2JointBodyA(<pJoint>)handlerReturn a joint's first body.
  • b2BodyWorldCenterY(<pBody>)handlerReturn the y position of a body's centre of mass in world coordinates.
  • b2MouseTargetY(<pJoint>)handlerReturn the y of a mouse joint's target.
  • b2ShapeSegmentY2()handlerReturn the local y of the segment's second end from the segment snapshot.
  • b2WorldExplode(<pWorld>,<pX>,<pY>,<pRadius>,<pFalloff>,<pImpulsePerLength>)handlerApply an explosion's impulse to every body near a point.
  • b2ShapeRayFraction()handlerReturn how far along the last shape ray the hit was.
  • b2WeldLinearHertz(<pJoint>)handlerReturn a weld joint's linear stiffness.
  • b2ShapeCapsuleX1()handlerReturn the local x of the capsule's first centre from the capsule snapshot.
  • b2ShapeRayX()handlerReturn the x of the last shape ray hit.
  • b2ShapeDefEnableSensorEvents(<pFlag>)handlerTurn sensor events on or off for the next shape.
  • b2BodyWorldVectorX(<pBody>,<pLocalX>,<pLocalY>)handlerRotate a body-local vector into the world frame and return its x.
  • b2ShapeDefReset()handlerClear every pending shape-def option.
  • b2MotorSetMaxForce(<pJoint>,<pForce>)handlerSet the most force a motor joint may apply.
  • b2ShapeTestPoint(<pShape>,<pX>,<pY>)handlerReport whether a world point lies inside a shape.
  • b2RevoluteEnableLimit(<pJoint>,<pEnable>,<pLowerRad>,<pUpperRad>)handlerSwitch a revolute joint's angle limit and set its range.
  • b2BodyWorldPointVelocityY(<pBody>,<pWorldX>,<pWorldY>)handlerReturn the y velocity of a body at a world point.
  • b2DistanceEnableMotor(<pJoint>,<pFlag>)handlerTurn a distance joint's motor on or off.
  • b2Version()handlerReturn the native library's ABI version.
  • b2WheelIsLimitEnabled(<pJoint>)handlerReport whether a wheel joint's travel limit is on.
  • b2LoadNativeLib(<pPath>)handlerPreload the native library by absolute path (Linux only).
  • b2ApplyForce(<pBody>,<pFx>,<pFy>,<pWake>)handlerApply a force at a body's centre of mass.
  • b2PrismaticSetSpringHertz(<pJoint>,<pHertz>)handlerSet a prismatic joint's spring stiffness.
  • b2DistanceSetLengthRange(<pJoint>,<pMin>,<pMax>)handlerLet a distance joint's length vary within a range.
  • b2DistanceMinLength(<pJoint>)handlerReturn a distance joint's shortest allowed length.
  • b2WorldProfileRefit()handlerReturn the time the last step spent on refitting the broad-phase tree.
  • b2RevoluteIsMotorEnabled(<pJoint>)handlerReport whether a revolute joint's motor is on.
  • b2MouseSetSpringDamping(<pJoint>,<pDamping>)handlerSet a mouse joint's spring damping ratio.
  • b2RayNormalY()handlerReturn the y of the surface normal at the last ray hit.
  • b2PrismaticMaxMotorForce(<pJoint>)handlerReturn a prismatic joint's motor force cap.
  • b2ShapeRayNormalY()handlerReturn the y of the surface normal at the last shape ray hit.
  • b2ContactHitBodyB(<pIndex>)handlerReturn the second body of a hit event.
  • b2PrismaticLowerLimit(<pJoint>)handlerReturn a prismatic joint's lower travel limit.
  • b2PrismaticEnableLimit(<pJoint>,<pEnable>,<pLower>,<pUpper>)handlerSwitch a prismatic joint's travel limit and set its range.
  • b2RayX()handlerReturn the x of the last closest ray's hit point.
  • b2PrismaticJoint(<pWorld>,<pBodyA>,<pBodyB>,<pAx>,<pAy>,<pBx>,<pBy>,<pAxisX>,<pAxisY>,<pRefAngle>,<pCollide>)handlerLet body B slide along an axis fixed in body A.
  • b2ContactHitNormalX(<pIndex>)handlerReturn the x of a hit event's normal.
  • b2BodyX(<pBody>)handlerReturn the x position of a body's origin.
  • b2DistanceJoint(<pWorld>,<pBodyA>,<pBodyB>,<pAx>,<pAy>,<pBx>,<pBy>,<pLength>,<pCollide>)handlerLink two bodies with a rod of fixed length.
  • b2ContactHitY(<pIndex>)handlerReturn the y of a hit event's impact point.
  • b2BodyWorldPointY(<pBody>,<pLocalX>,<pLocalY>)handlerReturn the world y of a point given in a body's local frame.
  • b2ContactHitSpeed(<pIndex>)handlerReturn a hit event's approach speed.
  • b2DestroyJoint(<pJoint>)handlerRemove a joint.
  • b2ApplyTorque(<pBody>,<pTorque>,<pWake>)handlerApply a torque to a body.
  • b2ShapeAABBUpdate(<pShape>)handlerSnapshot one shape's bounding box.
  • b2WheelIsSpringEnabled(<pJoint>)handlerReport whether a wheel joint's suspension spring is on.
  • b2BodyVX(<pBody>)handlerReturn the x component of a body's linear velocity.
  • b2WorldContactCount()handlerReturn how many contacts the counters snapshot holds.
  • b2ApplyForceAt(<pBody>,<pFx>,<pFy>,<pPointX>,<pPointY>,<pWake>)handlerApply a force at a world point on a body.
  • b2BodyShapeAt(<pIndex>)handlerReturn one shape from the body shape snapshot.
  • b2SetBodyType(<pBody>,<pType>)handlerChange a body's type.
  • b2ShapeClosestPointY(<pShape>,<pTargetX>,<pTargetY>)handlerReturn the y of the point on a shape nearest a world target.
  • b2DistanceMaxMotorForce(<pJoint>)handlerReturn a distance joint's motor force cap.
  • b2ContactEndBodyB(<pIndex>)handlerReturn the second body of a pair that stopped touching.
  • b2WeldLinearDamping(<pJoint>)handlerReturn a weld joint's linear damping ratio.
  • b2PrismaticUpperLimit(<pJoint>)handlerReturn a prismatic joint's upper travel limit.
  • b2BodyMass(<pBody>)handlerReturn a body's mass.
  • b2SetShapeFriction(<pShape>,<pFriction>)handlerChange a shape's friction.
  • b2LoadNativeLibHere()handlerPreload box2dxt.so from the running engine's own folder (Linux only).
  • b2WheelSpringHertz(<pJoint>)handlerReturn a wheel joint's suspension stiffness.
  • b2ShapeCircleRadius()handlerReturn the circle's radius from the circle snapshot.
  • b2BodiesUpdate(<pWorld>)handlerSnapshot every body that moved in the last step.
  • b2BodyMoveFellAsleep(<pIndex>)handlerReport whether a moved body fell asleep in the last step.
  • b2SetGravity(<pWorld>,<pGx>,<pGy>)handlerChange a world's gravity.
  • b2NewWorld(<pGravityX>,<pGravityY>,<pAllowSleep>,<pContinuous>)handlerCreate a single-threaded physics world.
  • b2ShapeFilterMask(<pShape>)handlerReturn a shape's filter mask bits.
  • b2MotorMaxTorque(<pJoint>)handlerReturn a motor joint's torque cap.
  • b2ShapeCapsuleUpdate(<pShape>)handlerSnapshot a capsule shape's geometry.
  • b2AABBUpperY()handlerReturn the upper y (top edge) of the bounding box snapshot.

Box2Dxt Kit0.2.0script library

A pure-script game toolkit over the box2dxt extension (Box2D v3.1 physics). You work in screen pixels, screen coordinates (y down) and degrees; the Kit converts to Box2D's metres, radians and y-up, runs a fixed-step frame loop, and moves your controls to follow their bodies.

  • Any platform
Downloadbox2dxt-kit-0.2.0.lce · 133.4 KB
More about Box2Dxt Kit

Start with b2kQuickStart (or b2kSetup and b2kStart), give controls bodies with b2kAddBox or create them with b2kSpawnBox, and set a b2kFrameTarget for per-frame logic and a b2kContactTarget for collision messages. Commands report through the result, so read it on the next line. Besides physics it has keyboard input, sprite sheets and animation, a platformer player controller, a scrolling camera and synthesized sound.

It needs the box2dxt extension loaded: b2kVersion() should return 4.

Install first
Box2D for OpenXTalk
Topics
Physics, Games
Author
Box2Dxt contributors
Extension id
box2dxt-kit
Source
box2dxt/src/box2dxt-kit.livecodescript
Licences
LICENSE
SHA-256
f20209f688da79132398134a0f263ac8537e4d2e01c47f5da75b1b0cda4956fc
All 315 handlers
  • b2kSheetForget <pName>commandForget one sheet.
  • b2kContactB(<pIndex>)functionThe second control of a pair that began touching this frame.
  • b2kQueryToControls(<pCount>)functionTurn the last raw query's rows into Kit controls.
  • b2kVersion()functionThe native library's ABI version.
  • b2kAddCapsule <pControl>,<pDynamic>commandGive a control a capsule (pill) body.
  • b2kPlayerClimbStart <pBody>commandStart the climb's gravity hold.
  • b2kPlayerTickcommandRun one frame of the player controller.
  • b2kSetRestitutionThreshold <pPxPerSec>commandSet the speed below which collisions stop bouncing.
  • b2kSetDensity <pControl>,<pDensity>commandSet a control's shape density, which sets its mass.
  • b2kPlayerMake <pX>,<pY>,<pW>,<pH>,<pSheet>commandCreate a platformer player in one call.
  • b2kSensorEnterSensor(<pIndex>)functionThe sensor control of an entry this frame.
  • b2kSheetPersist <pFlag>commandKeep loaded sheets alive across teardowns.
  • b2kContactCount()functionHow many pairs of bodies began touching this frame.
  • b2kSetSubsteps <pN>commandSet the solver sub-steps per physics step.
  • b2kKeyIsDown(<pKey>)functionReport whether a key is held this frame.
  • b2kCorner(<pWx>,<pWy>,<pLx>,<pLy>,<c>,<s>)functionOne outline corner in screen pixels.
  • b2kAxis(<pName>)functionRead an axis.
  • b2kContactTarget <pObject>commandSet the object that receives contact and sensor messages.
  • b2kBindAxis <pName>,<pNegKeys>,<pPosKeys>commandDefine a -1, 0, +1 axis from two key sets.
  • b2kInputIsOn()functionReport whether the keyboard sample is on.
  • b2kEnsureNativeLibcommandPoint the engine at a box2dxt library saved beside the stack.
  • b2kSheetLoad <pName>,<pPath>,<pFW>,<pFH>,<pCount>,<pMargin>,<pSpacing>commandRegister an image file as a sheet of numbered grid frames.
  • b2kSpriteSetFrame <pCtrl>,<pFrame>commandShow one frame on a sprite, stopping any animation.
  • b2kCamMouseY()functionThe mouse's y in world pixels.
  • b2kRayHitAll(<pX1>,<pY1>,<pX2>,<pY2>)functionEvery Kit control a ray between two screen points crosses.
  • b2kGrab(<pScreenX>,<pScreenY>)functionStart dragging the dynamic body under a screen point.
  • b2kDrawBall <pRef>,<pWx>,<pWy>commandRedraw a ball graphic at a body position.
  • b2kSpriteUnbind <pCtrl>commandStop a sprite following another control.
  • b2kSheetFrameSize(<pName>,<pFrame>)functionA frame's display size.
  • b2kOverlapMoving(<pX1>,<pY1>,<pX2>,<pY2>)functionThe non-static Kit controls overlapping a screen rectangle.
  • b2kPlayerDuckSet <pWantDuck>commandShrink the player to a crawl, or stand up when there is room.
  • b2kSetType <pControl>,<pType>commandChange a body's type by name.
  • b2kHinge <pCtrlA>,<pCtrlB>,<pScreenX>,<pScreenY>commandPin two controls together, or one to the world, at a screen point.
  • b2kSheetAtlasRows(<pName>)functionEvery frame region of a sheet, one per line.
  • b2kSetCategory <pControl>,<pLayerList>commandSet which collision layers a control belongs to.
  • b2kSliderLimitOff <pJoint>commandRemove a slider joint's travel limits.
  • b2kDrawBody <pRef>,<pWx>,<pWy>,<pWa>commandPlace a control at a body pose.
  • b2kStopcommandStop the simulation loop.
  • b2kSleep <pControl>commandPut a body to sleep until something wakes it.
  • b2kBodyOf(<pControl>)functionThe raw Box2D body handle behind a control.
  • b2kPlayerHurtIs()functionReport whether the player is in knockback or its mercy window.
  • b2kRopeSetLength <pJoint>,<pLengthPx>commandSet a distance joint's rest length.
  • b2kPlayerTuneCachecommandCopy the tuning knobs into the controller's fast variables.
  • b2kPlayerGet(<pKey>)functionRead a player tuning knob.
  • b2kSpritesClearcommandRemove every sprite.
  • b2kSpriteNew <pSheet>,<pFrame>,<pX>,<pY>commandCreate a sprite: a transparent button showing a sheet frame.
  • b2kIsBullet(<pControl>)functionReport whether a body uses continuous (bullet) collision.
  • b2kSpriteForget <pRef>commandDrop a sprite's records once its control is gone.
  • b2kSpriteStop <pCtrl>commandStop a sprite's animation on its current frame.
  • b2kContactA(<pIndex>)functionThe first control of a pair that began touching this frame.
  • b2kSpriteFromGIF <pPath>,<pX>,<pY>commandCreate a sprite from an animated GIF file.
  • b2kPlayerClimbEnd <pBody>commandEnd the climb's gravity hold.
  • b2kPausecommandFreeze stepping without stopping the loop.
  • b2kToneBytes(<pFreq>,<pMs>,<pVolPct>,<pShape>)functionSynthesize one note as raw samples.
  • b2kStartcommandStart the simulation loop.
  • b2kKillFloor <pScreenY>commandRemove moving Kit bodies whose centre falls below a screen line.
  • b2kChain <pPoints>,<pLoop>commandBuild smooth static terrain from a list of screen points.
  • b2kCapsuleVerts(<pL>,<pR>,<pHoriz>)functionThe local outline the Kit draws a capsule with.
  • b2kCamApplycommandWrite the camera's scroll.
  • b2kSliderMotorOff <pJoint>commandTurn a slider joint's motor off.
  • b2kSetBullet <pControl>,<pFlag>commandTurn continuous collision on or off for one fast body.
  • b2kSensorExitSensor(<pIndex>)functionThe sensor control of an exit this frame.
  • b2kRope <pCtrlA>,<pCtrlB>,<pLengthPx>commandLink two controls by a distance joint between their centres.
  • b2kSpriteOnFinish <pCtrl>,<pMessage>commandName a message to send when a one-shot animation ends.
  • b2kReshape <pControl>,<pShape>,<pW>,<pH>commandRebuild a body's collision shape from the control's current size.
  • b2kSyncAllcommandRedraw every awake, moving Kit body's control now.
  • b2kInputOffcommandTurn off the per-frame keyboard sample.
  • b2kControlContains(<pControl>,<pScreenX>,<pScreenY>)functionReport whether a screen point is inside one control's collision shape.
  • b2kSpriteRemove <pCtrl>commandRemove a sprite, and its body if it has one.
  • b2kSheetGridRegions <pName>,<pFW>,<pFH>,<pCount>,<pMargin>,<pSpacing>commandRegister numbered grid frames over a sheet's source image.
  • b2kSheetPersists()functionReport whether sheets survive teardown.
  • b2kCamLocSemantics()functionWhich grouped-location model this engine uses.
  • b2kSetMask <pControl>,<pLayerList>commandSet which collision layers a control collides with.
  • b2kSetMaxSpeed <pPxPerSec>commandLimit how fast any body can move.
  • b2kOverlapCircle(<pX>,<pY>,<pRadiusPx>)functionThe Kit controls whose bodies overlap a screen circle.
  • b2kSheetSliceSig(<pSheet>)functionA sheet's provenance stamp.
  • b2kSetGravity <pGx>,<pGy>commandChange the world's gravity.
  • b2kAddPolygon <pControl>,<pDynamic>commandGive a polygon graphic a body built from its own points.
  • b2kIsAwake(<pControl>)functionReport whether a body is awake.
  • b2kWorldCenter(<pControl>)functionA body's centre of mass in screen pixels.
  • b2kCamGoto <pX>,<pY>commandCut the view to a world point.
  • b2kCamTickcommandRun one frame of the camera.
  • b2kSheetAdoptAtlas <pName>,<pPngPath>,<pXmlPath>commandRegister an atlas from the stamp a saved stack carries.
  • b2kWeld <pCtrlA>,<pCtrlB>commandGlue two controls rigidly together.
  • b2kPlayerAttach <pCtrl>commandMake an existing control the player.
  • b2kPlayerDropStartcommandOpen the drop-through window.
  • b2kSoundMuted()functionReport whether sounds are muted.
  • b2kBodyCount()functionHow many bodies the Kit is tracking.
  • b2kReleasecommandLet go of a dragged body.
  • b2kPlayerSet <pKey>,<pValue>commandSet a player tuning knob.
  • b2kSpriteFlipped(<pCtrl>)functionReport whether a sprite is mirrored.
  • b2kToneMake <pName>,<pFreqs>,<pMsPerNote>,<pVolPct>,<pShape>commandSynthesize a sound from note frequencies, with no asset file.
  • b2kWheelMotorOff <pJoint>commandTurn a wheel joint's motor off.
  • b2kAddWallscommandAdd static, invisible walls along the four card edges.
  • b2kAngle(<pControl>)functionA body's rotation in degrees.
  • b2kCamBounds <pX1>,<pY1>,<pX2>,<pY2>commandKeep the view inside the level's rectangle.
  • b2kPlayerHalfW()functionThe player capsule's half-width.
  • b2kSetDamping <pControl>,<pLinear>,<pAngular>commandSet a body's linear and angular damping (drag).
  • b2kAddBox <pControl>,<pDynamic>commandGive a control a box-shaped body matching its rect.
  • b2kSpring <pJoint>,<pHertz>,<pDamping>commandMake a distance joint springy.
  • b2kSetup <pGravityX>,<pGravityY>commandCreate the physics world and reset the Kit to a clean state.
  • b2kPlayerAddLadder <pX1>,<pY1>,<pX2>,<pY2>commandRegister a ladder zone.
  • b2kWheelMotor <pJoint>,<pDegPerSec>,<pMaxTorque>commandDrive a wheel joint at a set spin speed.
  • b2kMoveTo <pControl>,<pScreenX>,<pScreenY>,<pAngleDeg>commandTeleport a body to a screen point and angle.
  • b2kSlider <pCtrlA>,<pCtrlB>,<pAxisDeg>commandLet one control slide along an axis relative to another, or to the world.
  • b2kProfile()functionTimings for the last physics step.
  • b2kSpriteMoveTo <pCtrl>,<pX>,<pY>commandMove a control to a world position, camera-correct.
  • b2kSynccommandRedraw every awake, moving Kit body's control now.
  • b2kCamPos()functionThe view's centre.
  • b2kSetGravityScale <pControl>,<pScale>commandSet a per-body gravity multiplier.
  • b2kInputInjectOffcommandReturn to reading the real keyboard.
  • b2kPlayerInLadder()functionReport whether the player is inside a ladder zone this frame.
  • b2kSpriteFrame(<pCtrl>)functionThe frame a sprite is showing.
  • b2kKeyPressed(<pKey>)functionReport whether a key went down this frame.
  • b2kPush <pControl>,<pDvxPx>,<pDvyPx>commandAdd to a body's velocity in pixels per second.
  • b2kPlayerDropRestorecommandClose the drop-through window.
  • b2kBindAction <pName>,<pKeyList>commandName a set of keys as one action.
  • b2kAddBall <pControl>,<pDynamic>commandGive a control a circular body.
  • b2kKeyReleased(<pKey>)functionReport whether a key came up this frame.
  • b2kLocalAnchor(<pBody>,<pWx>,<pWy>)functionConvert a world point to a raw body's local frame.
  • b2kInputTickcommandTake this frame's keyboard sample.
  • b2kCamShiftX(<pRef>)functionThe horizontal scroll to subtract when placing a control in the viewport.
  • b2kCamOffcommandTurn off the camera.
  • b2kAddChain <pControl>,<pPoints>,<pLoop>commandGive a control a static chain body from its outline points.
  • b2kPlayerOnGround()functionReport whether the player is grounded this frame.
  • b2kRayDist()functionThe distance from the last ray's start to its hit, in pixels.
  • b2kToScreenX(<pWx>)functionConvert a world x in metres to a screen x in pixels.
  • b2kSensorEnterVisitor(<pIndex>)functionThe visiting control of an entry this frame.
  • b2kStepOncecommandAdvance the world exactly one fixed step.
  • b2kSetScale <pPixelsPerMetre>commandSet how many screen pixels make one Box2D metre.
  • b2kToWorldX(<pSx>)functionConvert a screen x in pixels to a world x in metres.
  • b2kPlayerStandUpcommandRestore the player's standing capsule.
  • b2kSetSleepEnabled <pControl>,<pFlag>commandAllow or forbid one body ever falling asleep.
  • b2kCamIsOn()functionReport whether the camera is on.
  • b2kSmoothGround <pPoints>commandBuild an open chain of smooth static terrain.
  • b2kSetFixedRotation <pControl>,<pFlag>commandStop or allow a body's rotation.
  • b2kPlayerDashEnd <pBody>commandEnd a dash.
  • b2kPlayerSwimStart <pBody>commandStart the swim's buoyancy.
  • b2kSheetFromImage <pName>,<pImgRef>,<pFW>,<pFH>,<pCount>,<pMargin>,<pSpacing>commandRegister an image already in the stack as a grid sheet.
  • b2kSheetFrameNames(<pName>)functionEvery frame key of a sheet.
  • b2kSpriteSweepOrphans <pKeepAssets>commandDelete Kit controls a previous session left on the card.
  • b2kPlayerJump <pSpeed>commandMake the player jump, with no ground check.
  • b2kSetStatic <pControl>commandMake a body static (immovable).
  • b2kSpawnBall <pScreenX>,<pScreenY>,<pDiameter>,<pColor>commandCreate a filled circle graphic with a dynamic ball body.
  • b2kWheelSpring <pJoint>,<pHertz>,<pDamping>commandTune a wheel joint's suspension.
  • b2kAddSensor <pControl>,<pShape>commandGive a control a static sensor body: it reports overlaps but never blocks.
  • b2kSensorExitCount()functionHow many sensor exits happened this frame.
  • b2kEnableSleeping <pFlag>commandTurn island sleeping on or off for the whole world.
  • b2kCamFollow <pCtrl>,<pLerp>commandMake the camera follow a control.
  • b2kMotorOff <pJoint>commandTurn a hinge joint's motor off.
  • b2kIsEnabled(<pControl>)functionReport whether a body is in the simulation.
  • b2kActionIsDown(<pName>)functionReport whether any key of an action is held.
  • b2kRayHit(<pX1>,<pY1>,<pX2>,<pY2>)functionCast a ray between two screen points and find the closest hit.
  • b2kHingeAngle(<pJoint>)functionA hinge joint's current angle.
  • b2kRegister <pRef>,<pBody>,<pIsStatic>commandRecord a control and body pair in the Kit's tables.
  • b2kPlayerWallProbe <pBody>,<pAxis>commandLook for a wall beside the player.
  • b2kSoundClip(<pName>)functionThe audioClip that plays a named sound.
  • b2kAddStatic <pControl>commandGive a control an immovable box body.
  • b2kNoCollide <pCtrlA>,<pCtrlB>commandStop two controls colliding with each other.
  • b2kPlayerSprite()functionThe control the controller animates.
  • b2kSpeed(<pControl>)functionA body's speed in pixels per second.
  • b2kResetTablescommandEmpty the Kit's control and body tables.
  • b2kPlayerForget <pFull>commandDrop the controller's state.
  • b2kWall <pX1>,<pY1>,<pX2>,<pY2>commandAdd an invisible static segment between two screen points.
  • b2kLE16(<pN>)functionPack a number as two little-endian bytes.
  • b2kSheetKeyIndex(<pSheet>,<pKey>)functionA frame's position in its sheet.
  • b2kSheetHasFrame(<pName>,<pFrame>)functionReport whether a sheet has a frame.
  • b2kDispatchSensorscommandSend this frame's sensor messages.
  • b2kGravityScale(<pControl>)functionA body's gravity multiplier.
  • b2kRayHitX()functionThe x of the last ray hit, in screen pixels.
  • b2kPlayerSwimEnd <pBody>commandEnd the swim's buoyancy.
  • b2kSpinRate(<pControl>)functionA body's rotation speed in degrees per second.
  • b2kKeyListCodes(<pKeyList>)functionEvery keycode a comma list of key names matches.
  • b2kBodyType(<pControl>)functionA body's type as a word.
  • b2kPlayerResolveArtcommandFind the control whose animations the controller drives.
  • b2kPlayerAddWater <pX1>,<pY1>,<pX2>,<pY2>commandRegister a water (swim) zone.
  • b2kRemove <pControl>commandDestroy a control's body and forget it.
  • b2kDamping(<pControl>)functionA body's linear and angular damping.
  • b2kSoundIsLoaded(<pName>)functionReport whether a named sound exists.
  • b2kPlayerHurt <pFromX>commandKnock the player back from a hit.
  • b2kPlayerControl <pFlag>commandGive the controller control of the player, or make it only observe.
  • b2kFrameMS()functionThe real time the last frame covered.
  • b2kPlayerInWater()functionReport whether the player is inside a water zone this frame.
  • b2kSheetSourceFromFile(<pName>,<pPath>)functionLoad an image file into the hidden source image of a sheet.
  • b2kSliderPos(<pJoint>)functionA slider joint's current translation.
  • b2kRayHitNormalY()functionThe y part of the surface normal at the last ray hit.
  • b2kHarvestEventscommandCollect the last step's contact and sensor events.
  • b2kTorque <pControl>,<pTorque>commandApply a continuous turning force to a body.
  • b2kSheetLoadAtlas <pName>,<pPngPath>,<pXmlPath>commandRegister a packed atlas: a PNG and its TextureAtlas XML.
  • b2kAngularImpulse <pControl>,<pImpulse>commandApply a one-shot, mass-aware turning impulse.
  • b2kDisable <pControl>commandTake a body out of the simulation.
  • b2kSetSensor <pControl>,<pFlag>commandMark a control's shape as a sensor or as solid, for its next rebuild.
  • b2kCamMouseX()functionThe mouse's x in world pixels.
  • b2kAwakeBodyCount()functionHow many bodies Box2D has awake.
  • b2kForce <pControl>,<pFxPx>,<pFyPx>commandApply a continuous force to a body's centre.
  • b2kSheetFrames(<pName>)functionHow many frames a sheet has.
  • b2kSetVelocity <pControl>,<pVxPx>,<pVyPx>commandSet a body's velocity in pixels per second, and wake it.
  • b2kPosition(<pControl>)functionA body's centre in screen pixels.
  • b2kSheetsWipecommandForget every sheet and remove every sprite.
  • b2kCamShiftY(<pRef>)functionThe vertical scroll to subtract when placing a control in the viewport.
  • b2kWavWrap(<pData>)functionWrap raw samples in a WAV file header.
  • b2kAwakeCount()functionHow many non-static Kit bodies are awake.
  • b2kSpriteShowFrame <pRef>,<pKey>commandPoint a sprite's icon at a frame.
  • b2kMotor <pJoint>,<pDegPerSec>,<pMaxTorque>commandDrive a hinge joint at a set speed.
  • b2kSpawnBox <pScreenX>,<pScreenY>,<pW>,<pH>,<pColor>commandCreate a filled rectangle graphic with a dynamic box body.
  • b2kSetCollisionGroup <pControl>,<pGroup>commandSet a control's collision group index.
  • b2kToScreenY(<pWy>)functionConvert a world y in metres (y up) to a screen y in pixels (y down).
  • b2kPlayer()functionThe player control.
  • b2kCamOn <pRect>commandTurn on the scrolling camera.
  • b2kToWorldY(<pSy>)functionConvert a screen y in pixels (y down) to a world y in metres (y up).
  • b2kVelocity(<pControl>)functionA body's velocity in pixels per second.
  • b2kSpriteFPS <pCtrl>,<pFPS>commandOverride a sprite's animation speed.
  • b2kDefineLayer <pName>commandDefine or look up a named collision layer.
  • b2kAnimDef <pSheet>,<pAnim>,<pFrames>,<pFPS>,<pLoop>commandDefine a named animation over a sheet's frames.
  • b2kSpinBy <pControl>,<pDegPerSec>commandAdd to a body's angular velocity, in degrees per second.
  • b2kSoundsWipecommandStop playback and delete every Kit sound.
  • b2kEndContactA(<pIndex>)functionThe first control of a pair that stopped touching this frame.
  • b2kSensorExitVisitor(<pIndex>)functionThe visiting control of an exit this frame.
  • b2kEnableWarmStarting <pFlag>commandTurn the solver's warm starting on or off.
  • b2kWheel <pChassis>,<pWheel>,<pScreenX>,<pScreenY>,<pAxisDeg>commandAttach a wheel to a chassis with a sprung axis and free spin.
  • b2kKeyName(<pCode>)functionThe friendly name of a keycode.
  • b2kSound <pName>commandPlay a named sound.
  • b2kRopeLength(<pJoint>)functionA distance joint's current length.
  • b2kPlayerState()functionThe player's current state.
  • b2kClamp(<pValue>,<pLo>,<pHi>)functionClamp a value into a range.
  • b2kSetJointTuning <pHertz>,<pDamping>commandTune joint softness for the world.
  • b2kActionReleased(<pName>)functionReport whether an action ended this frame.
  • b2kCamDeadzone <pW>,<pH>commandSet a centre box the target may move in before the camera chases.
  • b2kRopeRange <pJoint>,<pMinPx>,<pMaxPx>commandSet a distance joint's minimum and maximum length.
  • b2kSetFriction <pControl>,<pFriction>commandSet a control's shape friction.
  • b2kSyncAllBodiescommandDraw every awake, non-static Kit body.
  • b2kDrawPoly <pRef>,<pWx>,<pWy>,<pWa>commandRedraw a polygon graphic at a body pose.
  • b2kEndContactCount()functionHow many pairs of bodies stopped touching this frame.
  • b2kLayerBits(<pLayerList>)functionTurn a list of layer names into a bitmask.
  • b2kWake <pControl>commandWake a sleeping body.
  • b2kSpritesTickcommandRun one frame of sprite service.
  • b2kWorld()functionThe raw Box2D world handle.
  • b2kSliderLimit <pJoint>,<pLowerPx>,<pUpperPx>commandLimit a slider joint's travel.
  • b2kCamStatus()functionWhy the camera is not working, if it is not.
  • b2kHingeLimit <pJoint>,<pLowerDeg>,<pUpperDeg>commandLimit a hinge joint's angle.
  • b2kMass(<pControl>)functionA body's mass.
  • b2kSheetEnsureFlip <pSheet>,<pKey>commandMake a frame's mirrored image now instead of on first display.
  • b2kActionPressed(<pName>)functionReport whether an action started this frame.
  • b2kPlayerShowState <pNow>,<pVX>commandPlay the animation and facing for the player's state.
  • b2kLE32(<pN>)functionPack a number as four little-endian bytes.
  • b2kPlayerRespawn <pX>,<pY>commandTeleport the player and reset it to a clean standing idle.
  • b2kSoundLoad <pName>,<pPath>commandImport a sound file under a name.
  • b2kKeyInSet(<pSet>,<pKey>)functionReport whether a key is in a comma-wrapped keycode set.
  • b2kSetOrigin <pScreenX>,<pScreenY>commandSet the screen point that maps to the world origin.
  • b2kSetContactTuning <pHertz>,<pDamping>,<pPushPx>commandTune contact softness for the world.
  • b2kEventsResetcommandZero this frame's event counts.
  • b2kNumberOr(<pValue>,<pDefault>)functionReturn a value when it is a number, else a default.
  • b2kRayHitY()functionThe y of the last ray hit, in screen pixels.
  • b2kPlayerDashStart <pBody>commandStart a dash.
  • b2kEndContactB(<pIndex>)functionThe second control of a pair that stopped touching this frame.
  • b2kInputOncommandTurn on the per-frame keyboard sample.
  • b2kSoundStopcommandStop the current sound.
  • b2kExplode <pScreenX>,<pScreenY>,<pRadiusPx>,<pPowerPx>commandPush dynamic bodies away from a point with a radial blast.
  • b2kAddGround <pScreenY>commandAdd a wide, invisible static floor across the card.
  • b2kSetDynamic <pControl>commandMake a body dynamic (moved by forces and collisions).
  • b2kRemoveJoint <pJoint>commandDestroy a joint.
  • b2kFrameTarget <pObject>commandSet the object that receives a b2kFrame message every frame.
  • b2kSpin <pControl>,<pDegPerSec>commandSet a body's angular velocity in degrees per second.
  • b2kCamGroup()functionThe camera's viewport group.
  • b2kPlayerRemovecommandRemove the player controller.
  • b2kSoundLoop <pName>commandLoop a named sound until stopped.
  • b2kPruneDeadRefs <pDead>commandForget controls that no longer exist.
  • b2kSheetAddFrame <pSheet>,<pFrame>,<pX>,<pY>,<pW>,<pH>commandName one rectangular region of a loaded sheet as a frame.
  • b2kSoundMute <pFlag>commandMute or unmute the Kit's sounds.
  • b2kResumecommandResume stepping after a pause.
  • b2kRayHitNormalX()functionThe x part of the surface normal at the last ray hit.
  • b2kSheetEnsureIcon <pSheet>,<pKey>commandSlice a frame's image now instead of on first display.
  • b2kSetSleepThreshold <pControl>,<pPxPerSec>commandSet the speed below which a body may fall asleep.
  • b2kPlayerDefault(<pKey>)functionThe shipped default of a player tuning knob.
  • b2kSpriteFlipH <pCtrl>,<pFlag>commandMake a sprite face left or right.
  • b2kSpriteBind <pCtrl>,<pBodyCtrl>,<pDX>,<pDY>commandPin a sprite to another control's position every frame.
  • b2kSliderMotor <pJoint>,<pPxPerSec>,<pMaxForce>commandDrive a slider joint at a set speed.
  • b2kSpriteAnim(<pCtrl>)functionThe animation a sprite is playing.
  • b2kSensorCount()functionHow many sensor entries happened this frame.
  • b2kPlayerHalfH()functionThe player capsule's current half-height.
  • b2kWeldSpring <pJoint>,<pHertz>,<pDamping>commandMake a weld joint springy.
  • b2kOverlap(<pX1>,<pY1>,<pX2>,<pY2>)functionThe Kit controls whose bodies overlap a screen rectangle.
  • b2kMotorTo <pMover>,<pRef>,<pOffsetXPx>,<pOffsetYPx>,<pAngleDeg>,<pMaxForce>,<pMaxTorque>commandDrive a control toward a pose offset from another control or the world.
  • b2kSheetScale <pName>,<pScale>commandSet the display scale of a sheet's frames.
  • b2kCamUnfollowcommandStop the camera following.
  • b2kControlAt(<pScreenX>,<pScreenY>)functionThe Kit control whose body covers a screen point.
  • b2kSpawnCapsule <pScreenX>,<pScreenY>,<pLength>,<pThickness>,<pColor>commandCreate a pill-shaped graphic with a dynamic capsule body.
  • b2kTeardowncommandStop the loop and destroy the world and all Kit state.
  • b2kEnable <pControl>commandPut a disabled body back into the simulation.
  • b2kSetBounce <pControl>,<pRestitution>commandSet how bouncy a control's shape is (restitution).
  • b2kEdge <pWx1>,<pWy1>,<pWx2>,<pWy2>commandAdd a static segment between two points given in world metres.
  • b2kKeyCodes(<pKey>)functionThe keycodes a key name matches.
  • b2kClearcommandRemove every moving body and every sprite, keeping the world.
  • b2kIsRunning()functionReport whether the loop is running and not paused.
  • b2kSyncBodiescommandDraw the bodies that moved in the last step.
  • b2kXmlAttr(<pLine>,<pAttr>)functionRead one attribute value from an XML tag line.
  • b2kSpritePlay <pCtrl>,<pAnim>,<pRestart>commandPlay a named animation on a sprite.
  • b2kCamAdopt <pCtrl>commandMove an existing control into the camera's viewport.
  • b2kSoundStatus()functionWhy audio is degraded, if it is.
  • b2kKeysHeld()functionEvery key held this frame, by name.
  • b2kHingeLimitOff <pJoint>commandRemove a hinge joint's angle limits.
  • b2kPlayerFacing()functionWhich way the player faces.
  • b2kCamShake <pAmpPx>,<pMs>commandShake the view for a moment.
  • b2kEnableContinuous <pFlag>commandTurn continuous collision (CCD) on or off for the world.
  • b2kCodesInSet(<pSet>,<pCodes>)functionReport whether any of a list of keycodes is in a comma-wrapped set.
  • b2kInputInject <pKeys>commandReplace the keyboard with a scripted set of held keys.
  • b2kQuickStart <pGravityY>commandMake a world with gravity, walls around the card, and start the loop.
  • b2kPlayerProbe <pBody>,<pVY>commandRun the controller's ground probe.
  • b2kImpulse <pControl>,<pIxPx>,<pIyPx>commandApply a one-shot, mass-aware impulse to a body's centre.
  • b2kDrawImage <pRef>,<pWx>,<pWy>,<pWa>commandMove and rotate an image to a body pose.
  • b2kPlayerAnims <pIdle>,<pRun>,<pJump>,<pFall>,<pLand>,<pDuck>,<pClimb>,<pHurt>,<pSwim>,<pWall>,<pDash>commandMap the controller's states to the art's animation names.
  • b2kSetKinematic <pControl>commandMake a body kinematic (moved only by its velocity).
  • b2kExplodeLegacy <pScreenX>,<pScreenY>,<pRadiusPx>,<pPowerPx>commandThe older velocity-based blast, for Kit bodies only.
  • b2kSoundVolume <pPct>commandSet the engine's global playback volume.
  • b2kDispatchContactscommandSend this frame's contact messages.
06

box3dxt

2 packages, in install order

Box3D for OpenXTalk0.1.0native library

Bindings to Box3D, a 3D rigid-body physics engine by Erin Catto.

  • Win 64
  • Win 32
  • macOS
  • Linux 64
  • Linux 32
  • Linux ARM
  • Android ARM64
  • Android ARM32
  • Android x86-64
  • Android x86
Downloadbox3dxt-0.1.0.lce · 5.8 MB
More about Box3D for OpenXTalk

A world holds bodies; a body carries shapes (its collision geometry and material) and can be linked to other bodies by joints. Worlds, bodies, shapes and joints are integer handles. 0 means a call was refused or found nothing, and a stale handle is harmless: getters return 0 or empty, actions do nothing. b3LastError says why a call was refused.

Every distance is in metres and every angle in radians, with y pointing up. Keep moving objects roughly 0.1 to 10 metres across. Create a world with b3WorldCreate, give it bodies with b3BodyCreate and shapes with the b3ShapeAdd calls, advance it with b3WorldStep at a fixed time step, then read every body that moved with b3WorldUpdateMoves.

A rotation is a quaternion, four numbers x, y, z, w; b3QuatFromAxisAngle and b3QuatFromEuler make one. A result of several numbers (a position, a rotation, a bounding box) comes back as comma-separated text such as "1.5,0,-2", so item 1 of it is x. Lists (the shapes of a body, ray hits, events) are taken as a snapshot by one call and read back with small getters; their indices are 1-based.

Box3D decides nothing about drawing, and a stack may draw a world however it likes. To SEE one with no drawing code at all, b3RenderWorld paints every shape into a picture and b3RenderPixels is that picture as the imageData of an image; b3RenderRay turns a click on it into a ray.

Install first
nothing
Topics
Physics, 3D
Author
Seth Morrow Software
Extension id
org.openxtalk.library.boxthreed
Source
box3dxt/src/box3dxt.lcb
Licences
LICENSE
SHA-256
39fef1c1217d31bba14e8afc13716605478655bc7f76e9237ed423207301ec39
All 400 handlers
  • b3WheelSuspensionDampingRatio(<pJoint>)handlerReturns the suspension damping ratio of a wheel joint.
  • b3ShapeSetRollingResistance(<pShape>,<pValue>)handlerChanges the rolling resistance of a shape.
  • b3BodyApplyTorque(<pBody>,<pTx>,<pTy>,<pTz>,<pWake>)handlerTwists a body for the next step.
  • b3ShapeEnableHitEvents(<pShape>,<pFlag>)handlerTurns hit events on or off for a shape.
  • b3ShapeSetDensity(<pShape>,<pValue>,<pUpdateMass>)handlerChanges the density of a shape.
  • b3WorldIsContinuousEnabled(<pWorld>)handlerReports whether continuous collision is on.
  • b3BodySpeed(<pBody>)handlerReturns how fast a body is moving.
  • b3WorldAwakeBodyCount(<pWorld>)handlerReturns how many bodies of a world are awake.
  • b3JointSetForceThreshold(<pJoint>,<pValue>)handlerSets the force above which a joint reports a joint event.
  • b3RevoluteEnableMotor(<pJoint>,<pFlag>)handlerTurns the motor of a revolute joint on or off.
  • b3BodyDestroy(<pBody>)handlerDestroys a body, its shapes and the joints attached to it.
  • b3WorldUpdateMoves(<pWorld>)handlerCollects every body that moved in the last step.
  • b3SensorEndSensor(<pIndex>)handlerReturns the sensor that something left.
  • b3WeldLinearHertz(<pJoint>)handlerReturns the linear hertz of a weld joint.
  • b3JointPrismatic(<pWorld>,<pBodyA>,<pBodyB>,<pPx>,<pPy>,<pPz>,<pAx>,<pAy>,<pAz>,<pCollide>)handlerJoins two bodies with a slider.
  • b3JointSetLocalFrameB(<pJoint>,<pX>,<pY>,<pZ>,<pQx>,<pQy>,<pQz>,<pQw>)handlerMoves where a joint is attached to its second body.
  • b3PrismaticLowerLimit(<pJoint>)handlerReturns the lower limit of a prismatic joint.
  • b3RenderProject(<pX>,<pY>,<pZ>)handlerReturns where a point of the world lands in the last picture.
  • b3RevoluteEnableSpring(<pJoint>,<pFlag>)handlerTurns the spring of a revolute joint on or off.
  • b3BodyWorld(<pBody>)handlerReturns the world a body is in.
  • b3SphericalSetTwistLimits(<pJoint>,<pLower>,<pUpper>)handlerSets how far a spherical joint may twist about its axis each way.
  • b3ShapeAddHeightField(<pBody>,<pCountX>,<pCountZ>,<pSx>,<pSy>,<pSz>,<pFriction>,<pRestitution>)handlerAdds a terrain built from the heights added since b3GeometryBegin.
  • b3HitBody(<pIndex>)handlerReturns the body of one hit of the last cast.
  • b3BodyApplyMassFromShapes(<pBody>)handlerRecomputes a body's mass from its shapes.
  • b3ShapeSetFilter(<pShape>,<pCategory>,<pMask>,<pGroup>)handlerChanges the collision filter of a shape.
  • b3RevoluteSpringHertz(<pJoint>)handlerReturns the spring hertz of a revolute joint.
  • b3PrismaticMaxMotorForce(<pJoint>)handlerReturns the max motor force of a prismatic joint.
  • b3SphericalIsTwistLimitEnabled(<pJoint>)handlerReports whether the twist limit of a spherical joint is on.
  • b3BodyZ(<pBody>)handlerReturns the z of a body's position.
  • b3WheelSpinMotorSpeed(<pJoint>)handlerReturns the spin motor speed of a wheel joint.
  • b3ShapeFriction(<pShape>)handlerReturns the friction of a shape.
  • b3BodyCreate(<pWorld>,<pType>,<pX>,<pY>,<pZ>)handlerCreates a body in a world.
  • b3WorldSetContactTuning(<pWorld>,<pHertz>,<pDamping>,<pSpeed>)handlerTunes how stiffly overlapping shapes are pushed apart.
  • b3BodyPosition(<pBody>)handlerReturns the position of a body.
  • b3RenderPixel(<pX>,<pY>)handlerReturns the colour of one pixel of the last picture.
  • b3RevoluteSetMotorSpeed(<pJoint>,<pValue>)handlerSets the motor speed of a revolute joint.
  • b3JointFilter(<pWorld>,<pBodyA>,<pBodyB>)handlerStops two bodies colliding with each other and does nothing else.
  • b3OverlapAABB(<pWorld>,<pLx>,<pLy>,<pLz>,<pUx>,<pUy>,<pUz>)handlerLists the shapes whose boxes overlap a box.
  • b3LibraryVersion()handlerReturns the versions of the native library and of Box3D inside it.
  • b3WorldShapeCount(<pWorld>)handlerReturns how many shapes a world holds.
  • b3BodyTransform(<pBody>)handlerReturns the position and rotation of a body in one call.
  • b3WheelSetSuspensionDampingRatio(<pJoint>,<pValue>)handlerSets the suspension damping ratio of a wheel joint.
  • b3WheelIsSuspensionEnabled(<pJoint>)handlerReports whether the suspension of a wheel joint is on.
  • b3MotorMaxVelocityTorque(<pJoint>)handlerReturns the max velocity torque of a motor joint.
  • b3AssertText()handlerReturns the last Box3D internal check that failed.
  • b3JointBodyA(<pJoint>)handlerReturns the first body of a joint.
  • b3MotorLinearDampingRatio(<pJoint>)handlerReturns the linear damping ratio of a motor joint.
  • b3WorldStep(<pWorld>,<pSeconds>,<pSubsteps>)handlerAdvances a world by a slice of time.
  • b3BodyApplyImpulse(<pBody>,<pIx>,<pIy>,<pIz>,<pPx>,<pPy>,<pPz>,<pWake>)handlerKicks a body at a point, changing its velocity at once.
  • b3BodyIsAwake(<pBody>)handlerReports whether a body is awake.
  • b3MotorAngularHertz(<pJoint>)handlerReturns the angular hertz of a motor joint.
  • b3RevoluteEnableLimit(<pJoint>,<pFlag>)handlerTurns the limit of a revolute joint on or off.
  • b3PrismaticSpringDampingRatio(<pJoint>)handlerReturns the spring damping ratio of a prismatic joint.
  • b3BodyWorldVector(<pBody>,<pX>,<pY>,<pZ>)handlerConverts a direction in a body's own coordinates into a world direction.
  • b3QueryResetFilter()handlerLets ray casts and overlap queries see every shape again.
  • b3MoveCount()handlerReturns how many bodies the last collected move list holds.
  • b3ShapeTrianglesText(<pShape>)handlerReturns a shape as a list of triangles.
  • b3SphericalTargetRotation(<pJoint>)handlerReturns the rotation the spring of a spherical joint pulls towards.
  • b3WheelEnableSteeringLimit(<pJoint>,<pFlag>)handlerTurns the steering limit of a wheel joint on or off.
  • b3DistanceMaxMotorForce(<pJoint>)handlerReturns the max motor force of a distance joint.
  • b3DistanceIsMotorEnabled(<pJoint>)handlerReports whether the motor of a distance joint is on.
  • b3WheelEnableSuspensionLimit(<pJoint>,<pFlag>)handlerTurns the suspension limit of a wheel joint on or off.
  • b3WheelSetSuspensionHertz(<pJoint>,<pValue>)handlerSets the suspension hertz of a wheel joint.
  • b3BodySetAngularDamping(<pBody>,<pValue>)handlerSets how quickly a body's spin dies away.
  • b3RenderDepth(<pX>,<pY>)handlerReturns how far away the surface at a pixel of the last picture is.
  • b3RenderPixels()handlerReturns the picture the last render painted.
  • b3ShapeBody(<pShape>)handlerReturns the body a shape belongs to.
  • b3MotorSetAngularDampingRatio(<pJoint>,<pValue>)handlerSets the angular damping ratio of a motor joint.
  • b3PrismaticIsLimitEnabled(<pJoint>)handlerReports whether the limit of a prismatic joint is on.
  • b3SphericalIsConeLimitEnabled(<pJoint>)handlerReports whether the cone limit of a spherical joint is on.
  • b3PrismaticEnableLimit(<pJoint>,<pFlag>)handlerTurns the limit of a prismatic joint on or off.
  • b3WheelSetTargetSteeringAngle(<pJoint>,<pValue>)handlerSets the target steering angle of a wheel joint.
  • b3WheelMaxSpinTorque(<pJoint>)handlerReturns the max spin torque of a wheel joint.
  • b3RenderHeight()handlerReturns the height of the last picture.
  • b3DistanceMotorSpeed(<pJoint>)handlerReturns the motor speed of a distance joint.
  • b3ParallelMaxTorque(<pJoint>)handlerReturns the max torque of a parallel joint.
  • b3ShapeAABB(<pShape>)handlerReturns the box that holds a shape.
  • b3WheelSpinSpeed(<pJoint>)handlerReturns the spin speed of a wheel joint.
  • b3RevoluteSpringDampingRatio(<pJoint>)handlerReturns the spring damping ratio of a revolute joint.
  • b3JointDistance(<pWorld>,<pBodyA>,<pBodyB>,<pAx>,<pAy>,<pAz>,<pBx>,<pBy>,<pBz>,<pCollide>)handlerKeeps two points of two bodies a fixed distance apart.
  • b3ShapeColor(<pShape>)handlerReturns the colour a shape was given for the renderer.
  • b3JointWeld(<pWorld>,<pBodyA>,<pBodyB>,<pPx>,<pPy>,<pPz>,<pCollide>)handlerGlues two bodies together.
  • b3HitCount()handlerReturns how many hits the last cast found.
  • b3DistanceSetSpringHertz(<pJoint>,<pValue>)handlerSets the spring hertz of a distance joint.
  • b3ShapeAreHitEventsEnabled(<pShape>)handlerReports whether a shape reports hit events.
  • b3RevoluteMotorTorque(<pJoint>)handlerReturns the motor torque of a revolute joint.
  • b3JointTorqueThreshold(<pJoint>)handlerReturns the torque above which a joint reports a joint event.
  • b3BodyType(<pBody>)handlerReturns the type of a body.
  • b3DistanceSetLengthRange(<pJoint>,<pLower>,<pUpper>)handlerSets the shortest and longest a distance joint may be.
  • b3WorldMaxLinearSpeed(<pWorld>)handlerReturns the fastest any body in a world may move.
  • b3PrismaticSetMotorSpeed(<pJoint>,<pValue>)handlerSets the motor speed of a prismatic joint.
  • b3GeometryAddTriangle(<pPointA>,<pPointB>,<pPointC>)handlerAdds a triangle to the geometry being built.
  • b3BodyLocalPoint(<pBody>,<pX>,<pY>,<pZ>)handlerConverts a world point into a body's own coordinates.
  • b3SphericalConeAngle(<pJoint>)handlerReturns the cone angle of a spherical joint.
  • b3BodyAngularVelocity(<pBody>)handlerReturns the angular velocity of a body.
  • b3WorldGravity(<pWorld>)handlerReturns the gravity of a world.
  • b3BodyEnableSleep(<pBody>,<pFlag>)handlerLets one body sleep, or keeps it awake for good.
  • b3ListCount()handlerReturns how many handles the last list call found.
  • b3BodyX(<pBody>)handlerReturns the x of a body's position.
  • b3WorldUpdateContactEvents(<pWorld>)handlerCollects the touch and hit events of the last step.
  • b3JointMotor(<pWorld>,<pBodyA>,<pBodyB>,<pCollide>)handlerDrives one body relative to another with a force and torque.
  • b3BodyLinearDamping(<pBody>)handlerReturns how quickly a body's movement dies away.
  • b3ShapeIsSensor(<pShape>)handlerReports whether a shape is a sensor.
  • b3JointSetTorqueThreshold(<pJoint>,<pValue>)handlerSets the torque above which a joint reports a joint event.
  • b3GeometryAddPoint(<pX>,<pY>,<pZ>)handlerAdds a point to the geometry being built.
  • b3BodyApplyForce(<pBody>,<pFx>,<pFy>,<pFz>,<pPx>,<pPy>,<pPz>,<pWake>)handlerPushes a body at a point for the next step.
  • b3BodyAngularDamping(<pBody>)handlerReturns how quickly a body's spin dies away.
  • b3DistanceSpringDampingRatio(<pJoint>)handlerReturns the spring damping ratio of a distance joint.
  • b3BodySetSleepThreshold(<pBody>,<pValue>)handlerSets the speed below which a body may fall asleep.
  • b3BodySetRotation(<pBody>,<pQx>,<pQy>,<pQz>,<pQw>)handlerTurns a body to a rotation, keeping its position.
  • b3ABIVersion()handlerReturns the ABI number of the native library that is loaded.
  • b3WheelIsSuspensionLimitEnabled(<pJoint>)handlerReports whether the suspension limit of a wheel joint is on.
  • b3BodyListShapes(<pBody>)handlerLists the shapes of a body.
  • b3ShapeRollingResistance(<pShape>)handlerReturns the rolling resistance of a shape.
  • b3WheelEnableSuspension(<pJoint>,<pFlag>)handlerTurns the suspension of a wheel joint on or off.
  • b3RevoluteSetSpringDampingRatio(<pJoint>,<pValue>)handlerSets the spring damping ratio of a revolute joint.
  • b3SphericalUpperTwistLimit(<pJoint>)handlerReturns the upper twist limit of a spherical joint.
  • b3WorldWorkerCount(<pWorld>)handlerReturns how many worker threads a world steps with.
  • b3ShapeAddCone(<pBody>,<pHeight>,<pRadius1>,<pRadius2>,<pSides>,<pDensity>,<pFriction>,<pRestitution>)handlerAdds a cone (or a tapered cylinder) to a body, standing along y.
  • b3WeldSetAngularDampingRatio(<pJoint>,<pValue>)handlerSets the angular damping ratio of a weld joint.
  • b3SphericalSetSpringHertz(<pJoint>,<pValue>)handlerSets the spring hertz of a spherical joint.
  • b3DistanceSetMaxMotorForce(<pJoint>,<pValue>)handlerSets the max motor force of a distance joint.
  • b3ShapeRestitution(<pShape>)handlerReturns the bounciness of a shape.
  • b3BodySleepThreshold(<pBody>)handlerReturns the speed below which a body may fall asleep.
  • b3ShapeOptionsReset()handlerPuts the shape options back to Box3D's defaults.
  • b3PrismaticTargetTranslation(<pJoint>)handlerReturns the target translation of a prismatic joint.
  • b3JointType(<pJoint>)handlerReturns what kind of joint a handle names.
  • b3MotorMaxSpringTorque(<pJoint>)handlerReturns the max spring torque of a motor joint.
  • b3BodyWorldCenter(<pBody>)handlerReturns a body's centre of mass in world coordinates.
  • b3ShapeDensity(<pShape>)handlerReturns the density of a shape.
  • b3MotorSetMaxVelocityForce(<pJoint>,<pValue>)handlerSets the max velocity force of a motor joint.
  • b3WheelEnableSpinMotor(<pJoint>,<pFlag>)handlerTurns the spin motor of a wheel joint on or off.
  • b3SphericalIsMotorEnabled(<pJoint>)handlerReports whether the motor of a spherical joint is on.
  • b3JointSetCollideConnected(<pJoint>,<pFlag>)handlerChooses whether the two bodies of a joint collide with each other.
  • b3JointRevolute(<pWorld>,<pBodyA>,<pBodyB>,<pPx>,<pPy>,<pPz>,<pAx>,<pAy>,<pAz>,<pCollide>)handlerJoins two bodies with a hinge.
  • b3HitFraction(<pIndex>)handlerReturns how far along the cast one hit was.
  • b3BodyGravityScale(<pBody>)handlerReturns how strongly gravity pulls on a body.
  • b3BodySetLinearDamping(<pBody>,<pValue>)handlerSets how quickly a body's movement dies away.
  • b3BodyApplyImpulseToCenter(<pBody>,<pIx>,<pIy>,<pIz>,<pWake>)handlerKicks a body at its centre of mass, changing its velocity at once.
  • b3WorldEnableSleeping(<pWorld>,<pFlag>)handlerLets resting bodies go to sleep, or keeps every body awake.
  • b3BodySetType(<pBody>,<pType>)handlerChanges the type of a body.
  • b3BodyListJoints(<pBody>)handlerLists the joints attached to a body.
  • b3WheelSetMaxSteeringTorque(<pJoint>,<pValue>)handlerSets the max steering torque of a wheel joint.
  • b3MotorSetMaxVelocityTorque(<pJoint>,<pValue>)handlerSets the max velocity torque of a motor joint.
  • b3DistanceEnableLimit(<pJoint>,<pFlag>)handlerTurns the limit of a distance joint on or off.
  • b3ShapeSetFriction(<pShape>,<pValue>)handlerChanges the friction of a shape.
  • b3SensorBeginCount()handlerReturns how many shapes entered a sensor in the last step.
  • b3UnstableCount()handlerReturns how many bodies have been removed because their motion stopped being a number.
  • b3ShapeType(<pShape>)handlerReturns what kind of shape a handle names.
  • b3ContactEndShapeB(<pIndex>)handlerReturns the second shape of a pair that stopped touching.
  • b3WorldEnableContinuous(<pWorld>,<pFlag>)handlerTurns continuous collision on or off.
  • b3WheelLowerSuspensionLimit(<pJoint>)handlerReturns the lower suspension limit of a wheel joint.
  • b3DistanceIsSpringEnabled(<pJoint>)handlerReports whether the spring of a distance joint is on.
  • b3HasAVX2()handlerReports whether the solver is using AVX2 on this computer.
  • b3JointConstraintTorque(<pJoint>)handlerReturns the torque a joint is applying to hold its bodies.
  • b3PrismaticSetSpringHertz(<pJoint>,<pValue>)handlerSets the spring hertz of a prismatic joint.
  • b3QuatFromEuler(<pRx>,<pRy>,<pRz>)handlerMakes a rotation from three angles.
  • b3ContactBeginShapeB(<pIndex>)handlerReturns the second shape of a pair that started touching.
  • b3BodyLocalVector(<pBody>,<pX>,<pY>,<pZ>)handlerConverts a world direction into a body's own coordinates.
  • b3ContactHitNormal(<pIndex>)handlerReturns the direction of an impact, from the first shape to the second.
  • b3WeldAngularHertz(<pJoint>)handlerReturns the angular hertz of a weld joint.
  • b3QuatToAxisAngle(<pQx>,<pQy>,<pQz>,<pQw>)handlerSplits a rotation into an axis and an angle.
  • b3QuatRotate(<pQx>,<pQy>,<pQz>,<pQw>,<pX>,<pY>,<pZ>)handlerTurns a direction by a rotation.
  • b3GeometryAddHeight(<pHeight>)handlerAdds one height to the geometry being built.
  • b3ShapeOptionsSetSensor(<pFlag>)handlerMakes the next shapes sensors, or solid.
  • b3ParallelSpringHertz(<pJoint>)handlerReturns the spring hertz of a parallel joint.
  • b3WorldBounds(<pWorld>)handlerReturns the box that holds everything in a world.
  • b3ShapeOptionsSetRollingResistance(<pValue>)handlerSets the rolling resistance of the next shapes.
  • b3JointEventJoint(<pIndex>)handlerReturns one joint that passed its threshold.
  • b3WheelTargetSteeringAngle(<pJoint>)handlerReturns the target steering angle of a wheel joint.
  • b3RenderSetLight(<pX>,<pY>,<pZ>)handlerSets the direction the renderer's one light travels.
  • b3DistanceMotorForce(<pJoint>)handlerReturns the motor force of a distance joint.
  • b3PrismaticSetLimits(<pJoint>,<pLower>,<pUpper>)handlerSets how far a prismatic joint may slide each way.
  • b3SphericalSetConeLimit(<pJoint>,<pValue>)handlerSets the cone limit of a spherical joint.
  • b3MotorSetLinearVelocity(<pJoint>,<pVx>,<pVy>,<pVz>)handlerSets the velocity a motor joint drives its second body at.
  • b3WheelMaxSteeringTorque(<pJoint>)handlerReturns the max steering torque of a wheel joint.
  • b3WheelSteeringDampingRatio(<pJoint>)handlerReturns the steering damping ratio of a wheel joint.
  • b3ShapeEnableSensorEvents(<pShape>,<pFlag>)handlerTurns sensor events on or off for a shape.
  • b3BodySetTargetTransform(<pBody>,<pX>,<pY>,<pZ>,<pQx>,<pQy>,<pQz>,<pQw>,<pSeconds>,<pWake>)handlerGives a body the velocity that will bring it to a position and rotation.
  • b3WheelSetSteeringDampingRatio(<pJoint>,<pValue>)handlerSets the steering damping ratio of a wheel joint.
  • b3MotorSetAngularHertz(<pJoint>,<pValue>)handlerSets the angular hertz of a motor joint.
  • b3ShapeDestroy(<pShape>,<pUpdateMass>)handlerRemoves a shape from its body.
  • b3BodySetMotionLocks(<pBody>,<pLx>,<pLy>,<pLz>,<pAx>,<pAy>,<pAz>)handlerLocks a body's movement along, or rotation about, chosen world axes.
  • b3PrismaticSetTargetTranslation(<pJoint>,<pValue>)handlerSets the target translation of a prismatic joint.
  • b3QuatMultiply(<pAx>,<pAy>,<pAz>,<pAw>,<pBx>,<pBy>,<pBz>,<pBw>)handlerCombines two rotations.
  • b3WorldRestitutionThreshold(<pWorld>)handlerReturns the impact speed below which nothing bounces.
  • b3ContactHitShapeB(<pIndex>)handlerReturns the second shape of an impact.
  • b3WorldUpdateSensorEvents(<pWorld>)handlerCollects the sensor events of the last step.
  • b3MotorMaxVelocityForce(<pJoint>)handlerReturns the max velocity force of a motor joint.
  • b3ShapeClosestPoint(<pShape>,<pX>,<pY>,<pZ>)handlerReturns the point of a shape nearest to a world point.
  • b3RenderRay(<pX>,<pY>)handlerReturns the ray from the camera through a point of the last picture.
  • b3JointSpherical(<pWorld>,<pBodyA>,<pBodyB>,<pPx>,<pPy>,<pPz>,<pAx>,<pAy>,<pAz>,<pCollide>)handlerJoins two bodies with a ball and socket.
  • b3RenderSetCamera(<pEyeX>,<pEyeY>,<pEyeZ>,<pTargetX>,<pTargetY>,<pTargetZ>,<pDegrees>)handlerPlaces the camera the renderer looks through.
  • b3MotorMaxSpringForce(<pJoint>)handlerReturns the max spring force of a motor joint.
  • b3PrismaticTranslation(<pJoint>)handlerReturns the translation of a prismatic joint.
  • b3WheelLowerSteeringLimit(<pJoint>)handlerReturns the lower steering limit of a wheel joint.
  • b3WeldSetLinearHertz(<pJoint>,<pValue>)handlerSets the linear hertz of a weld joint.
  • b3SensorEndCount()handlerReturns how many shapes left a sensor in the last step.
  • b3WorldJointCount(<pWorld>)handlerReturns how many joints a world holds.
  • b3LastError()handlerReturns why the last refused call was refused.
  • b3WheelIsSteeringEnabled(<pJoint>)handlerReports whether the steering of a wheel joint is on.
  • b3WorldSetGravity(<pWorld>,<pGx>,<pGy>,<pGz>)handlerSets the gravity of a world.
  • b3JointLinearSeparation(<pJoint>)handlerReturns how far apart a joint's anchor points have been pulled.
  • b3BodyMass(<pBody>)handlerReturns the mass of a body.
  • b3ShapeEnableContactEvents(<pShape>,<pFlag>)handlerTurns begin and end touch events on or off for a shape.
  • b3WheelIsSteeringLimitEnabled(<pJoint>)handlerReports whether the steering limit of a wheel joint is on.
  • b3WorldSetRestitutionThreshold(<pWorld>,<pValue>)handlerSets the impact speed below which nothing bounces.
  • b3ParallelSetMaxTorque(<pJoint>,<pValue>)handlerSets the max torque of a parallel joint.
  • b3BodyIsSleepEnabled(<pBody>)handlerReports whether a body may sleep.
  • b3RenderWidth()handlerReturns the width of the last picture.
  • b3BodyDisable(<pBody>)handlerTakes a body out of the simulation without destroying it.
  • b3WheelSteeringAngle(<pJoint>)handlerReturns the steering angle of a wheel joint.
  • b3WheelSetSteeringHertz(<pJoint>,<pValue>)handlerSets the steering hertz of a wheel joint.
  • b3ShapeIsValid(<pShape>)handlerReports whether a handle names a live shape.
  • b3QuerySetFilter(<pCategory>,<pMask>)handlerLimits the ray casts and overlap queries that follow to some categories.
  • b3ContactBeginCount()handlerReturns how many pairs of shapes started touching in the last step.
  • b3PrismaticSetSpringDampingRatio(<pJoint>,<pValue>)handlerSets the spring damping ratio of a prismatic joint.
  • b3ShapeFilter(<pShape>)handlerReturns the collision filter of a shape.
  • b3SphericalLowerTwistLimit(<pJoint>)handlerReturns the lower twist limit of a spherical joint.
  • b3WorldStepMs(<pWorld>)handlerReturns how long the last step took.
  • b3SensorBeginSensor(<pIndex>)handlerReturns the sensor that something entered.
  • b3HitShape(<pIndex>)handlerReturns the shape of one hit of the last cast.
  • b3ContactHitCount()handlerReturns how many hard impacts the last step had.
  • b3SphericalConeLimit(<pJoint>)handlerReturns the cone limit of a spherical joint.
  • b3JointWakeBodies(<pJoint>)handlerWakes the two bodies of a joint.
  • b3ShapeAddMesh(<pBody>,<pFriction>,<pRestitution>)handlerAdds a triangle mesh built from the points and triangles added since b3GeometryBegin.
  • b3DistanceEnableSpring(<pJoint>,<pFlag>)handlerTurns the spring of a distance joint on or off.
  • b3BodySetGravityScale(<pBody>,<pValue>)handlerSets how strongly gravity pulls on one body.
  • b3RevoluteMotorSpeed(<pJoint>)handlerReturns the motor speed of a revolute joint.
  • b3JointIsValid(<pJoint>)handlerReports whether a handle names a live joint.
  • b3WeldAngularDampingRatio(<pJoint>)handlerReturns the angular damping ratio of a weld joint.
  • b3WorldCreate(<pGx>,<pGy>,<pGz>,<pWorkers>)handlerCreates a physics world.
  • b3ShapeClearColor(<pShape>)handlerTakes a shape's own colour away, so the renderer chooses again.
  • b3WorldSetMaxLinearSpeed(<pWorld>,<pValue>)handlerSets the fastest any body in a world may move.
  • b3WheelSetSuspensionLimits(<pJoint>,<pLower>,<pUpper>)handlerSets how far a wheel may travel on its suspension each way.
  • b3BodyEnableHitEvents(<pBody>,<pFlag>)handlerTurns hit events on or off for every shape of a body.
  • b3PrismaticUpperLimit(<pJoint>)handlerReturns the upper limit of a prismatic joint.
  • b3ShapeAddCylinder(<pBody>,<pHeight>,<pRadius>,<pSides>,<pDensity>,<pFriction>,<pRestitution>)handlerAdds a cylinder to a body, standing along y and centred on it.
  • b3MotorSetAngularVelocity(<pJoint>,<pWx>,<pWy>,<pWz>)handlerSets the spin a motor joint drives its second body at.
  • b3JointForceThreshold(<pJoint>)handlerReturns the force above which a joint reports a joint event.
  • b3AssertCount()handlerReturns how many of Box3D's internal checks have failed since the library loaded.
  • b3DistanceSpringHertz(<pJoint>)handlerReturns the spring hertz of a distance joint.
  • b3PrismaticEnableMotor(<pJoint>,<pFlag>)handlerTurns the motor of a prismatic joint on or off.
  • b3MovesText()handlerReturns the whole move list as text.
  • b3SphericalEnableConeLimit(<pJoint>,<pFlag>)handlerTurns the cone limit of a spherical joint on or off.
  • b3ParallelSetSpringDampingRatio(<pJoint>,<pValue>)handlerSets the spring damping ratio of a parallel joint.
  • b3RenderShapeAt(<pX>,<pY>)handlerReturns the shape drawn at a pixel of the last picture.
  • b3CastRay(<pWorld>,<pOx>,<pOy>,<pOz>,<pDx>,<pDy>,<pDz>)handlerCasts a ray through a world and collects everything it passes through.
  • b3SphericalSpringDampingRatio(<pJoint>)handlerReturns the spring damping ratio of a spherical joint.
  • b3SphericalSetSpringDampingRatio(<pJoint>,<pValue>)handlerSets the spring damping ratio of a spherical joint.
  • b3ShapeAddBox(<pBody>,<pHx>,<pHy>,<pHz>,<pDensity>,<pFriction>,<pRestitution>)handlerAdds a box to a body, centred on it.
  • b3RenderTriangleCount()handlerReturns how many triangles the last render drew from.
  • b3BodySetVelocity(<pBody>,<pVx>,<pVy>,<pVz>)handlerSets the linear velocity of a body.
  • b3ShapeAreContactEventsEnabled(<pShape>)handlerReports whether a shape reports begin and end touch events.
  • b3JointLocalFrameB(<pJoint>)handlerReturns where a joint is attached to its second body.
  • b3ParallelSpringDampingRatio(<pJoint>)handlerReturns the spring damping ratio of a parallel joint.
  • b3QuatFromAxisAngle(<pAx>,<pAy>,<pAz>,<pRadians>)handlerMakes the rotation of an angle about an axis.
  • b3RevoluteAngle(<pJoint>)handlerReturns the angle of a revolute joint.
  • b3WorldDestroy(<pWorld>)handlerDestroys a world and everything in it.
  • b3RevoluteIsLimitEnabled(<pJoint>)handlerReports whether the limit of a revolute joint is on.
  • b3WheelSetMaxSpinTorque(<pJoint>,<pValue>)handlerSets the max spin torque of a wheel joint.
  • b3JointSetLocalFrameA(<pJoint>,<pX>,<pY>,<pZ>,<pQx>,<pQy>,<pQz>,<pQw>)handlerMoves where a joint is attached to its first body.
  • b3MoveFellAsleep(<pIndex>)handlerReports whether a moved body fell asleep at the end of the step.
  • b3WeldLinearDampingRatio(<pJoint>)handlerReturns the linear damping ratio of a weld joint.
  • b3PrismaticSpringHertz(<pJoint>)handlerReturns the spring hertz of a prismatic joint.
  • b3ShapeOptionsSetFilter(<pCategory>,<pMask>,<pGroup>)handlerSets the collision filter of the next shapes.
  • b3JointDestroy(<pJoint>,<pWake>)handlerDestroys a joint.
  • b3WeldSetAngularHertz(<pJoint>,<pValue>)handlerSets the angular hertz of a weld joint.
  • b3DistanceSetSpringDampingRatio(<pJoint>,<pValue>)handlerSets the spring damping ratio of a distance joint.
  • b3JointParallel(<pWorld>,<pBodyA>,<pBodyB>,<pAx>,<pAy>,<pAz>,<pCollide>)handlerKeeps an axis of one body parallel to the same axis of another.
  • b3BodyIsBullet(<pBody>)handlerReports whether a body is a bullet.
  • b3WorldIsValid(<pWorld>)handlerReports whether a handle names a live world.
  • b3JointAngularSeparation(<pJoint>)handlerReturns how far a joint has been bent past what it allows.
  • b3RenderWorld(<pWorld>,<pWidth>,<pHeight>,<pMode>)handlerPaints a world into a picture.
  • b3SphericalSetTargetRotation(<pJoint>,<pQx>,<pQy>,<pQz>,<pQw>)handlerSets the rotation the spring of a spherical joint pulls towards.
  • b3BodySetTransform(<pBody>,<pX>,<pY>,<pZ>,<pQx>,<pQy>,<pQz>,<pQw>)handlerMoves a body to a position and rotation at once.
  • b3PrismaticSpeed(<pJoint>)handlerReturns the speed of a prismatic joint.
  • b3BodyY(<pBody>)handlerReturns the y of a body's position.
  • b3BodyLocalCenter(<pBody>)handlerReturns a body's centre of mass in its own coordinates.
  • b3RevoluteLowerLimit(<pJoint>)handlerReturns the lower limit of a revolute joint.
  • b3RevoluteIsSpringEnabled(<pJoint>)handlerReports whether the spring of a revolute joint is on.
  • b3MotorAngularVelocity(<pJoint>)handlerReturns the spin a motor joint drives at.
  • b3SphericalMotorTorque(<pJoint>)handlerReturns the torque the motor of a spherical joint is applying.
  • b3ContactHitShapeA(<pIndex>)handlerReturns the first shape of an impact.
  • b3BodyMotionLocks(<pBody>)handlerReturns which of a body's motions are locked.
  • b3WeldSetLinearDampingRatio(<pJoint>,<pValue>)handlerSets the linear damping ratio of a weld joint.
  • b3SphericalMaxMotorTorque(<pJoint>)handlerReturns the max motor torque of a spherical joint.
  • b3WorldSetHitEventThreshold(<pWorld>,<pValue>)handlerSets the impact speed above which a hit event is reported.
  • b3WorldExplode(<pWorld>,<pX>,<pY>,<pZ>,<pRadius>,<pFalloff>,<pImpulse>)handlerPushes every body near a point away from it.
  • b3JointWheel(<pWorld>,<pBodyA>,<pBodyB>,<pPx>,<pPy>,<pPz>,<pUx>,<pUy>,<pUz>,<pSx>,<pSy>,<pSz>,<pCollide>)handlerJoins a wheel to a chassis: it spins, rides a suspension and can steer.
  • b3WheelIsSpinMotorEnabled(<pJoint>)handlerReports whether the spin motor of a wheel joint is on.
  • b3JointConstraintForce(<pJoint>)handlerReturns the force a joint is applying to hold its bodies.
  • b3WorldHitEventThreshold(<pWorld>)handlerReturns the impact speed above which a hit event is reported.
  • b3BodyMatrix(<pBody>)handlerReturns the position and rotation of a body as a matrix.
  • b3BodyRotation(<pBody>)handlerReturns the rotation of a body.
  • b3PrismaticIsMotorEnabled(<pJoint>)handlerReports whether the motor of a prismatic joint is on.
  • b3WorldSetWorkerCount(<pWorld>,<pWorkers>)handlerChanges how many worker threads a world steps with.
  • b3RevoluteTargetAngle(<pJoint>)handlerReturns the target angle of a revolute joint.
  • b3BodyApplyAngularImpulse(<pBody>,<pIx>,<pIy>,<pIz>,<pWake>)handlerSpins a body, changing its angular velocity at once.
  • b3HitPoint(<pIndex>)handlerReturns where one hit of the last cast was.
  • b3ShapeAreSensorEventsEnabled(<pShape>)handlerReports whether a shape takes part in sensor events.
  • b3ContactHitPoint(<pIndex>)handlerReturns where an impact happened.
  • b3RenderSetBackground(<pRed>,<pGreen>,<pBlue>)handlerSets the colour the renderer paints where there is no shape.
  • b3BodyPointVelocity(<pBody>,<pX>,<pY>,<pZ>)handlerReturns how fast a point of a body is moving.
  • b3SphericalEnableMotor(<pJoint>,<pFlag>)handlerTurns the motor of a spherical joint on or off.
  • b3ContactHitSpeed(<pIndex>)handlerReturns how fast two shapes met in an impact.
  • b3DistanceCurrentLength(<pJoint>)handlerReturns the current length of a distance joint.
  • b3ShapeAddBoxAt(<pBody>,<pHx>,<pHy>,<pHz>,<pOx>,<pOy>,<pOz>,<pQx>,<pQy>,<pQz>,<pQw>,<pDensity>,<pFriction>,<pRestitution>)handlerAdds a box to a body, placed and turned inside it.
  • b3BodyVelocity(<pBody>)handlerReturns the linear velocity of a body.
  • b3DistanceEnableMotor(<pJoint>,<pFlag>)handlerTurns the motor of a distance joint on or off.
  • b3MotorLinearHertz(<pJoint>)handlerReturns the linear hertz of a motor joint.
  • b3SphericalMotorVelocity(<pJoint>)handlerReturns the spin the motor of a spherical joint drives at.
  • b3PrismaticIsSpringEnabled(<pJoint>)handlerReports whether the spring of a prismatic joint is on.
  • b3WorldBodyCount(<pWorld>)handlerReturns how many bodies a world holds.
  • b3SphericalIsSpringEnabled(<pJoint>)handlerReports whether the spring of a spherical joint is on.
  • b3SensorEndVisitor(<pIndex>)handlerReturns the shape that left a sensor.
  • b3MoveBody(<pIndex>)handlerReturns the body of one move.
  • b3ShapeAddHull(<pBody>,<pDensity>,<pFriction>,<pRestitution>)handlerAdds the convex hull of the points added since b3GeometryBegin.
  • b3ShapeAddSphere(<pBody>,<pCx>,<pCy>,<pCz>,<pRadius>,<pDensity>,<pFriction>,<pRestitution>)handlerAdds a sphere to a body.
  • b3ShapeSetRestitution(<pShape>,<pValue>)handlerChanges the bounciness of a shape.
  • b3BodyShapeCount(<pBody>)handlerReturns how many shapes a body carries.
  • b3PrismaticMotorForce(<pJoint>)handlerReturns the motor force of a prismatic joint.
  • b3SphericalSetMotorVelocity(<pJoint>,<pWx>,<pWy>,<pWz>)handlerSets the spin the motor of a spherical joint drives at.
  • b3DistanceLength(<pJoint>)handlerReturns the length of a distance joint.
  • b3RenderSetSky(<pTopRed>,<pTopGreen>,<pTopBlue>,<pBottomRed>,<pBottomGreen>,<pBottomBlue>)handlerSets a sky: the colours the renderer paints where there is no shape, from the picture's top to its bottom.
  • b3BodySetPosition(<pBody>,<pX>,<pY>,<pZ>)handlerMoves a body to a position, keeping its rotation.
  • b3BodyJointCount(<pBody>)handlerReturns how many joints are attached to a body.
  • b3DistanceSetMotorSpeed(<pJoint>,<pValue>)handlerSets the motor speed of a distance joint.
  • b3WorldIsSleepingEnabled(<pWorld>)handlerReports whether bodies in a world may sleep.
  • b3GeometryPointCount()handlerReturns how many points have been added.
  • b3BodySetAngularVelocity(<pBody>,<pWx>,<pWy>,<pWz>)handlerSets the angular velocity of a body.
  • b3JointBodyB(<pJoint>)handlerReturns the second body of a joint.
  • b3WheelUpperSteeringLimit(<pJoint>)handlerReturns the upper steering limit of a wheel joint.
  • b3SphericalEnableTwistLimit(<pJoint>,<pFlag>)handlerTurns the twist limit of a spherical joint on or off.
  • b3PrismaticSetMaxMotorForce(<pJoint>,<pValue>)handlerSets the max motor force of a prismatic joint.
  • b3WheelSetSpinMotorSpeed(<pJoint>,<pValue>)handlerSets the spin motor speed of a wheel joint.
  • b3WorldContactCount(<pWorld>)handlerReturns how many pairs of shapes are being tracked as touching or near.
  • b3WorldUpdateJointEvents(<pWorld>)handlerCollects the joints whose force or torque passed its threshold in the last step.
  • b3BodyCreateRotated(<pWorld>,<pType>,<pX>,<pY>,<pZ>,<pQx>,<pQy>,<pQz>,<pQw>)handlerCreates a body in a world, already turned.
  • b3ParallelSetSpringHertz(<pJoint>,<pValue>)handlerSets the spring hertz of a parallel joint.
  • b3RevoluteIsMotorEnabled(<pJoint>)handlerReports whether the motor of a revolute joint is on.
  • b3JointEventCount()handlerReturns how many joints the last collected joint event list holds.
  • b3BodySetBullet(<pBody>,<pFlag>)handlerGives a fast, small body continuous collision against other moving bodies.
  • b3ContactEndCount()handlerReturns how many pairs of shapes stopped touching in the last step.
  • b3MotorSetMaxSpringTorque(<pJoint>,<pValue>)handlerSets the max spring torque of a motor joint.
  • b3MotorSetLinearDampingRatio(<pJoint>,<pValue>)handlerSets the linear damping ratio of a motor joint.
  • b3CastRayClosest(<pWorld>,<pOx>,<pOy>,<pOz>,<pDx>,<pDy>,<pDz>)handlerCasts a ray through a world and keeps only the first thing it hits.
  • b3ListItem(<pIndex>)handlerReturns one handle of the last list.
  • b3MoveTransform(<pIndex>)handlerReturns where one moved body is now.
  • b3BodyAABB(<pBody>)handlerReturns the box that holds a body.
  • b3WheelSetSteeringLimits(<pJoint>,<pLower>,<pUpper>)handlerSets how far a wheel may steer each way.
  • b3MotorAngularDampingRatio(<pJoint>)handlerReturns the angular damping ratio of a motor joint.
  • b3ContactEndShapeA(<pIndex>)handlerReturns the first shape of a pair that stopped touching.
  • b3RevoluteSetTargetAngle(<pJoint>,<pValue>)handlerSets the target angle of a revolute joint.
  • b3RevoluteSetLimits(<pJoint>,<pLower>,<pUpper>)handlerSets how far a revolute joint may turn each way.
  • b3ShapeAddCapsule(<pBody>,<pX1>,<pY1>,<pZ1>,<pX2>,<pY2>,<pZ2>,<pRadius>,<pDensity>,<pFriction>,<pRestitution>)handlerAdds a capsule (a cylinder with round ends) to a body.
  • b3WheelEnableSteering(<pJoint>,<pFlag>)handlerTurns the steering of a wheel joint on or off.
  • b3BodyListTouching(<pBody>)handlerLists the bodies a body is touching right now.
  • b3WheelSuspensionHertz(<pJoint>)handlerReturns the suspension hertz of a wheel joint.
  • b3GeometryBegin()handlerStarts a new set of points, triangles and heights.
  • b3MotorSetMaxSpringForce(<pJoint>,<pValue>)handlerSets the max spring force of a motor joint.
  • b3ShapeSetColor(<pShape>,<pRed>,<pGreen>,<pBlue>)handlerGives a shape its own colour in the renderer.
  • b3CastSphere(<pWorld>,<pOx>,<pOy>,<pOz>,<pRadius>,<pDx>,<pDy>,<pDz>)handlerSweeps a sphere through a world and collects everything it touches.
  • b3PrismaticEnableSpring(<pJoint>,<pFlag>)handlerTurns the spring of a prismatic joint on or off.
  • b3ContactBeginShapeA(<pIndex>)handlerReturns the first shape of a pair that started touching.
  • b3RevoluteUpperLimit(<pJoint>)handlerReturns the upper limit of a revolute joint.
  • b3MotorLinearVelocity(<pJoint>)handlerReturns the velocity a motor joint drives at.
  • b3WheelSpinTorque(<pJoint>)handlerReturns the spin torque of a wheel joint.
  • b3RenderByteCount()handlerReturns the size of the last picture in bytes.
  • b3WheelUpperSuspensionLimit(<pJoint>)handlerReturns the upper suspension limit of a wheel joint.
  • b3DistanceMaxLength(<pJoint>)handlerReturns the max length of a distance joint.
  • b3MotorSetLinearHertz(<pJoint>,<pValue>)handlerSets the linear hertz of a motor joint.
  • b3RenderSky()handlerReturns the colours the renderer paints where there is no shape.
  • b3RevoluteMaxMotorTorque(<pJoint>)handlerReturns the max motor torque of a revolute joint.
  • b3RenderCamera()handlerReturns the renderer's camera.
  • b3RevoluteSetSpringHertz(<pJoint>,<pValue>)handlerSets the spring hertz of a revolute joint.
  • b3OverlapSphere(<pWorld>,<pX>,<pY>,<pZ>,<pRadius>)handlerLists the shapes that overlap a sphere.
  • b3RevoluteSetMaxMotorTorque(<pJoint>,<pValue>)handlerSets the max motor torque of a revolute joint.
  • b3DistanceSetLength(<pJoint>,<pValue>)handlerSets the length of a distance joint.
  • b3SphericalSpringHertz(<pJoint>)handlerReturns the spring hertz of a spherical joint.
  • b3WheelSteeringHertz(<pJoint>)handlerReturns the steering hertz of a wheel joint.
  • b3BodyApplyForceToCenter(<pBody>,<pFx>,<pFy>,<pFz>,<pWake>)handlerPushes a body at its centre of mass for the next step.
  • b3BodyIsValid(<pBody>)handlerReports whether a handle names a live body.
  • b3BodySetAwake(<pBody>,<pFlag>)handlerWakes a body or puts it to sleep.
  • b3BodyWorldPoint(<pBody>,<pX>,<pY>,<pZ>)handlerConverts a point in a body's own coordinates into a world point.
  • b3JointLocalFrameA(<pJoint>)handlerReturns where a joint is attached to its first body.
  • b3HitNormal(<pIndex>)handlerReturns which way the surface faces at one hit of the last cast.
  • b3DistanceMinLength(<pJoint>)handlerReturns the min length of a distance joint.
  • b3ShapeListSensorVisitors(<pShape>)handlerLists the shapes that are inside a sensor right now.
  • b3JointCollideConnected(<pJoint>)handlerReports whether the two bodies of a joint collide with each other.
  • b3PrismaticMotorSpeed(<pJoint>)handlerReturns the motor speed of a prismatic joint.
  • b3ShapeOptionsSetEvents(<pContact>,<pHit>,<pSensor>)handlerChooses which events the next shapes report.
  • b3BodyEnable(<pBody>)handlerPuts a disabled body back into the simulation.
  • b3SphericalTwistAngle(<pJoint>)handlerReturns the twist angle of a spherical joint.
  • b3SphericalSetMaxMotorTorque(<pJoint>,<pValue>)handlerSets the max motor torque of a spherical joint.
  • b3SphericalEnableSpring(<pJoint>,<pFlag>)handlerTurns the spring of a spherical joint on or off.
  • b3DistanceIsLimitEnabled(<pJoint>)handlerReports whether the limit of a distance joint is on.
  • b3SensorBeginVisitor(<pIndex>)handlerReturns the shape that entered a sensor.
  • b3BodyIsEnabled(<pBody>)handlerReports whether a body takes part in the simulation.
  • b3WheelSteeringTorque(<pJoint>)handlerReturns the steering torque of a wheel joint.

Box3Dxt Kit0.1.0script library

A pure-script 3D game toolkit over the box3dxt extension (Box3D physics). You work in metres and degrees with y pointing up; the Kit runs the world on a fixed sixtieth-of-a-second step, draws it into one image control, moves the camera, reads the keyboard, steers a player and sends your script messages when things touch.

  • Any platform
Downloadbox3dxt-kit-0.1.0.lce · 92.5 KB
More about Box3Dxt Kit

Start with b3kQuickStart (or b3kSetup, b3kViewMake and b3kStart), make things with b3kSpawnBox and its siblings, and handle b3kFrame for per-frame logic and b3kContact or b3kSensorEnter for touches. Commands report through the result, so read it on the next line. When the render3dxt extension is loaded the Kit draws with it (textured, lit, smooth edges); otherwise it draws with the renderer inside box3dxt.

It needs the box3dxt extension loaded: b3kVersion() returns 1.

Install first
Box3D for OpenXTalk
Works with
render3dxt: 3D Renderer for OpenXTalk
Topics
Physics, Games, 3D
Author
Seth Morrow
Extension id
box3dxt-kit
Source
box3dxt/src/box3dxt-kit.livecodescript
Licences
LICENSE
SHA-256
69242f4e67c53f51ffb9a549e8aa4df3063c7eb3deca17974c584ed41fc1e5ab
All 206 handlers
  • b3kSpawnBox <pX>,<pY>,<pZ>,<pW>,<pH>,<pD>,<pColor>commandMake a box that falls and tumbles.
  • b3kSetVelocity <pThing>,<pVx>,<pVy>,<pVz>commandSet a thing's speed and direction.
  • b3kColor(<pThing>)functionA thing's colour.
  • b3kAddSensorBox <pX>,<pY>,<pZ>,<pW>,<pH>,<pD>commandMake a box-shaped zone that reports what enters and leaves it.
  • b3kSynccommandPut every thing's picture where its body is.
  • b3kSpawnCone <pX>,<pY>,<pZ>,<pHeight>,<pDiameter>,<pColor>commandMake a cone standing on its base along y.
  • b3kDecorPose(<pDecor>)functionSay where a decor is.
  • b3kBindAction <pName>,<pKeyList>commandName a set of keys as one action.
  • b3kPausecommandFreeze the simulation without stopping the loop.
  • b3kSetBullet <pThing>,<pFlag>commandMake a fast thing check every step for what it might pass through.
  • b3kSetFog <pColor>,<pNear>,<pFar>commandFade far things into a colour (render3dxt only).
  • b3kSetLook <pThing>,<pSource>,<pMaterials>,<pScale>commandDraw a 3D model (Wavefront OBJ) in place of a thing's own shape (render3dxt only).
  • b3kSetType <pThing>,<pType>commandChange how a thing moves.
  • b3kStartcommandStart the simulation loop.
  • b3kView()functionThe image the Kit draws into.
  • b3kSetColor <pThing>,<pColor>commandChange a thing's colour.
  • b3kSetSky <pPicture>,<pTurn>,<pTint>commandGive the world a sky: a picture of the whole sky, seen wherever nothing is drawn (render3dxt 0.4.0 or later).
  • b3kSpawnCapsule <pX>,<pY>,<pZ>,<pLength>,<pDiameter>,<pColor>commandMake a capsule (a pill) standing along y.
  • b3kRope <pA>,<pB>,<pLength>commandTie two things together with a rope from centre to centre.
  • b3kHingeAngle(<pJoint>)functionHow far a hinge has turned, or a slider has slid.
  • b3kBallJoint <pA>,<pB>,<pX>,<pY>,<pZ>commandJoin two things with a ball and socket, or hang one from the world.
  • b3kNoCollide <pA>,<pB>commandStop two things colliding with each other.
  • b3kPlayerAttach <pThing>,<pMode>commandMake a thing you already have the player.
  • b3kPlayerSteer <pX>,<pY>commandSteer the player from script instead of the keys.
  • b3kExplode <pX>,<pY>,<pZ>,<pRadius>,<pPower>commandBlow things away from a point.
  • b3kHasPhysics()functionReport whether the box3dxt extension is loaded.
  • b3kType(<pThing>)functionHow a thing moves.
  • b3kMass(<pThing>)functionHow heavy a thing is.
  • b3kGroundPoint(<pH>,<pV>,<pY>)functionWhere the camera's ray through a card point meets a flat level.
  • b3kAddRamp <pX>,<pY>,<pZ>,<pW>,<pH>,<pD>,<pTilt>,<pYaw>,<pColor>commandMake a tilted static box: a ramp or a slide.
  • b3kSetFriction <pThing>,<pValue>commandSet how grippy a thing is.
  • b3kTexture <pName>,<pData>,<pSmooth>,<pCutout>,<pMean>commandName a picture, for the materials of models given as text to wear (render3dxt only).
  • b3kSetShadows <pFlag>,<pMetres>commandTurn the sun's shadows on or off, and choose how far they reach (graphics card only).
  • b3kDrawcommandDraw the picture now.
  • b3kKeyIsDown(<pKey>)functionReport whether a key is held this frame.
  • b3kX(<pThing>)functionA thing's x.
  • b3kInputInjectOffcommandGo back to the real keyboard.
  • b3kSetAmbient <pColor>commandSet the light that reaches every surface (render3dxt only).
  • b3kCamEye()functionWhere the camera's eye is.
  • b3kInputInject <pKeys>commandHold keys from script instead of the keyboard.
  • b3kPlayerRespawn <pX>,<pY>,<pZ>commandPut the player somewhere, still, standing and ready.
  • b3kCamTarget()functionThe point the camera looks at.
  • b3kSpawnModel <pX>,<pY>,<pZ>,<pSource>,<pScale>,<pColor>commandMake a moving thing from a 3D model (Wavefront OBJ).
  • b3kSetLight <pDx>,<pDy>,<pDz>,<pColor>commandSet the direction the sunlight travels.
  • b3kSetRenderMode <pMode>commandChoose how box3dxt's own renderer draws.
  • b3kSetSmooth <pN>commandChoose how smooth edges are (render3dxt only).
  • b3kBrowserTurns()functionReport whether the loop gives the browser turns, as set by b3kSetBrowserTurns.
  • b3kSetGravity <pGx>,<pGy>,<pGz>commandChange gravity.
  • b3kUseGpu <pMode>commandAsk for the graphics card to draw the picture (render3dxt 0.2.0 or later).
  • b3kContactTarget <pObject>commandChoose the object that receives the touch and sensor messages.
  • b3kAddLamp <pX>,<pY>,<pZ>,<pColor>,<pRange>,<pIntensity>commandHang a lamp in the world: a light that shines from a point (render3dxt only).
  • b3kOverlapSphere(<pX>,<pY>,<pZ>,<pRadius>)functionThe things inside a sphere.
  • b3kAddStaticModel <pX>,<pY>,<pZ>,<pSource>,<pScale>,<pColor>commandMake static scenery from a 3D model (Wavefront OBJ), hollows and all.
  • b3kSetGlow <pThing>,<pColor>commandMake a thing glow with a light of its own (render3dxt only).
  • b3kProject(<pX>,<pY>,<pZ>)functionWhere a point of the world appears on the card.
  • b3kStepMode()functionThe step mode set by b3kSetStepMode.
  • b3kBindAxis <pName>,<pNegKeys>,<pPosKeys>commandMake a -1, 0, +1 axis from two sets of keys.
  • b3kTorque <pThing>,<pTx>,<pTy>,<pTz>commandTwist a thing steadily: call it every frame it should act.
  • b3kEnsureNativeLibcommandPoint the engine at libraries saved beside the stack.
  • b3kDecorModel <pName>,<pSource>,<pMaterials>commandName a model, for b3kAddDecor to place as often as it likes.
  • b3kSlider <pA>,<pB>,<pAx>,<pAy>,<pAz>commandLet a thing slide along a line, against another thing or the world.
  • b3kDecorCount()functionCount the decor.
  • b3kPlayerFacing()functionWhich way the player faces.
  • b3kHinge <pA>,<pB>,<pX>,<pY>,<pZ>,<pAx>,<pAy>,<pAz>commandJoin two things with a hinge, or pin one to the world.
  • b3kRemoveJoint <pJoint>commandTake a joint away.
  • b3kShowTextures <pFlag>commandShow or hide the pictures named with b3kTexture, on every model that wears one.
  • b3kGpuDraws()functionReport whether a graphics card is drawing the picture.
  • b3kSpawnHull <pX>,<pY>,<pZ>,<pPoints>,<pColor>commandMake a solid from the tightest shape round some points.
  • b3kPlayerOnGround()functionReport whether the player stands on something.
  • b3kAddPartBox <pThing>,<pW>,<pH>,<pD>,<pX>,<pY>,<pZ>commandGive a thing one more solid box, at a place in its own frame.
  • b3kLastError()functionThe reason the last Kit call that failed gave.
  • b3kTextures()functionThe names of the pictures given with b3kTexture.
  • b3kDistance(<pThingA>,<pThingB>)functionHow far apart two things' centres are.
  • b3kSetGravityScale <pThing>,<pScale>commandScale how strongly gravity pulls one thing.
  • b3kRenderer()functionWho is drawing the picture.
  • b3kPoseLookPart <pThing>,<pPart>,<pX>,<pY>,<pZ>,<pRx>,<pRy>,<pRz>,<pSx>,<pSy>,<pSz>commandPlace and turn one part of a thing's look.
  • b3kThingNamed(<pName>)functionThe thing with a name.
  • b3kSetup <pGx>,<pGy>,<pGz>commandMake a world with gravity, ready for things.
  • b3kPosition(<pThing>)functionWhere a thing is.
  • b3kGlow(<pThing>)functionA thing's glow.
  • b3kStopcommandStop the simulation loop.
  • b3kAddLookPart <pThing>,<pPart>,<pSource>,<pMaterials>,<pScale>commandGive a thing's look a moving part, such as a leg or an arm (render3dxt only).
  • b3kRemoveDecor <pDecor>commandTake a decor away.
  • b3kSetBloom <pStrength>,<pSpread>,<pThreshold>commandMake glowing things glow into the picture around them (graphics card only, render3dxt 0.3.0 or later).
  • b3kHingeLimit <pJoint>,<pLow>,<pHigh>commandStop a hinge or a slider at two ends, or let it go free.
  • b3kIsAwake(<pThing>)functionReport whether a thing is awake (moving, or able to).
  • b3kMoveLamp <pLamp>,<pX>,<pY>,<pZ>commandMove a lamp.
  • b3kIsRunning()functionReport whether the loop is stepping.
  • b3kPlayerGet(<pKey>)functionRead one of the player's knobs.
  • b3kKind(<pThing>)functionWhat kind of thing a thing is.
  • b3kInputOncommandStart reading the keyboard once a frame.
  • b3kCamDragged()functionReport whether the last press on the view dragged the camera.
  • b3kAxis(<pName>)functionRead an axis.
  • b3kVelocity(<pThing>)functionHow a thing is moving.
  • b3kInputOffcommandStop reading the keyboard.
  • b3kShowDecor <pDecor>,<pFlag>commandShow or hide a decor.
  • b3kPointAt(<pH>,<pV>)functionThe point of the world under a point of the card.
  • b3kViewMake <pLeft>,<pTop>,<pWidth>,<pHeight>commandMake an image to draw into and attach it as the view.
  • b3kTurnTo <pThing>,<pYaw>commandTurn a thing to face a heading, upright.
  • b3kInputIsOn()functionReport whether the keyboard is being read.
  • b3kActionIsDown(<pName>)functionReport whether any key of an action is held.
  • b3kLamps()functionThe lamps there are.
  • b3kCamYaw()functionThe camera's yaw round its point.
  • b3kFrameTarget <pObject>commandChoose the object that receives b3kFrame and b3kFell.
  • b3kHitDistance()functionHow far the last ray travelled before it struck.
  • b3kMoveTo <pThing>,<pX>,<pY>,<pZ>commandPut a thing somewhere else at once, at rest.
  • b3kKeyReleased(<pKey>)functionReport whether a key came up this frame.
  • b3kIsVisible(<pThing>)functionReport whether a thing's picture is shown.
  • b3kSetBrowserTurns <pOn>commandLet the browser take a turn in the middle of each frame, so the page's sound plays smoothly (web only).
  • b3kMotor <pJoint>,<pSpeed>,<pMax>commandDrive a hinge or a slider at a steady speed, or stop driving it.
  • b3kStepOncecommandAdvance exactly one 1/60 s step, even while paused.
  • b3kForce <pThing>,<pFx>,<pFy>,<pFz>commandPush a thing steadily: call it every frame it should act.
  • b3kRotation(<pThing>)functionA thing's rotation, as the three angles b3kSetRotation takes.
  • b3kRemoveLamp <pLamp>commandTake a lamp away.
  • b3kGlideTo <pThing>,<pX>,<pY>,<pZ>,<pSeconds>,<pYaw>commandMove a thing to a place over a time, by moving it.
  • b3kNameOf(<pThing>)functionA thing's name.
  • b3kActionReleased(<pName>)functionReport whether an action ended this frame.
  • b3kSpeed(<pThing>)functionHow fast a thing is moving.
  • b3kGravity()functionThe world's gravity.
  • b3kUseRenderer <pWhich>commandChoose who draws the picture.
  • b3kRayHit(<pOx>,<pOy>,<pOz>,<pDx>,<pDy>,<pDz>)functionCast a ray and report the first thing it meets.
  • b3kHasRender3d()functionReport whether the render3dxt extension is loaded.
  • b3kCamZoom <pDistance>commandSet how far the camera stands from its point.
  • b3kSpawnCylinder <pX>,<pY>,<pZ>,<pHeight>,<pDiameter>,<pColor>commandMake a cylinder standing along y.
  • b3kAddStaticBox <pX>,<pY>,<pZ>,<pW>,<pH>,<pD>,<pColor>commandMake a box that never moves: a wall, a step, a table.
  • b3kCamPitch()functionThe camera's pitch above the horizon.
  • b3kEvents()functionThis frame's events, for polling instead of messages.
  • b3kIsThing(<pValue>)functionReport whether a value is a thing the Kit made and still has.
  • b3kPlayerControl <pFlag>commandTurn the keys' control of the player on or off.
  • b3kThingCount()functionHow many things there are.
  • b3kCamDistance()functionHow far the camera stands from its point.
  • b3kSetSubsteps <pN>commandSet how many solver sub-steps each step takes.
  • b3kBloom()functionThe bloom asked for.
  • b3kMouseOverView()functionReport whether the pointer is over the view, in its own window.
  • b3kWeld <pA>,<pB>commandGlue two things together, or one to the world where it is.
  • b3kThings()functionEvery thing there is.
  • b3kSetDamping <pThing>,<pLinear>,<pAngular>commandSlow a thing down over time, like air or water.
  • b3kPlaceDecor <pDecor>,<pX>,<pY>,<pZ>,<pRx>,<pRy>,<pRz>,<pSx>,<pSy>,<pSz>commandMove, turn and stretch a decor.
  • b3kZ(<pThing>)functionA thing's z.
  • b3kPush <pThing>,<pDvx>,<pDvy>,<pDvz>commandChange a thing's speed at once, whatever it weighs.
  • b3kQuickStart <pGy>commandOne call to a running scene: world, view, ground, camera, go.
  • b3kCamOrbit <pYaw>,<pPitch>,<pDistance>,<pTx>,<pTy>,<pTz>commandPut the camera on an orbit round a point.
  • b3kGpuAvailable()functionReport whether a real graphics card is there to draw (render3dxt 0.2.0 or later).
  • b3kTexturesShown()functionWhether the pictures named with b3kTexture are shown.
  • b3kPlayerMake <pX>,<pY>,<pZ>,<pKind>,<pColor>commandMake a player in one call: a thing the keys walk about.
  • b3kShapeOf(<pThing>)functionThe box3dxt shape of a thing, for raw b3Shape... calls.
  • b3kDisable <pThing>commandTake a thing out of the world for now, keeping it.
  • b3kCamSetFov <pDegrees>commandSet the camera's vertical field of view.
  • b3kPlayerRemovecommandLet the player go: the thing stays, the keys stop steering it.
  • b3kAddGround <pSize>,<pY>,<pColorA>,<pColorB>commandLay a square checkered ground.
  • b3kActionPressed(<pName>)functionReport whether an action started this frame.
  • b3kHitPoint()functionWhere the last ray or pick struck.
  • b3kVersion()functionThe Kit's own version.
  • b3kSpawnBall <pX>,<pY>,<pZ>,<pDiameter>,<pColor>commandMake a ball that falls and rolls.
  • b3kCamFollow <pThing>,<pLerp>,<pHeight>commandKeep the camera on a thing as it moves.
  • b3kKeyPressed(<pKey>)functionReport whether a key went down this frame.
  • b3kClearcommandRemove every thing, keep the world.
  • b3kAddWalls <pHeight>,<pColor>commandFence the ground with four walls.
  • b3kSetRotation <pThing>,<pRx>,<pRy>,<pRz>commandTurn a thing to a rotation given as three angles.
  • b3kFrameMS()functionThe real time the last frame covered.
  • b3kSetSpin <pThing>,<pWx>,<pWy>,<pWz>commandSet how fast a thing turns.
  • b3kSetStepMode <pMode>commandChoose how the running loop divides a frame's time into physics steps.
  • b3kResumecommandResume after b3kPause.
  • b3kMaxLamps()functionHow many lamps a world can hold.
  • b3kYaw(<pThing>)functionThe heading a thing faces.
  • b3kCamLookAt <pEx>,<pEy>,<pEz>,<pTx>,<pTy>,<pTz>,<pFov>commandPlace the camera by an eye and a target.
  • b3kSetVisible <pThing>,<pFlag>commandShow or hide a thing's picture.
  • b3kSetTexture <pThing>,<pPath>commandWrap a picture file round a thing (render3dxt only).
  • b3kPlayer()functionThe player's thing.
  • b3kCamShake <pAmount>,<pMilliseconds>commandShake the camera for a moment.
  • b3kSetChecker <pThing>,<pColorA>,<pColorB>,<pCells>commandGive a thing a checkerboard look (render3dxt only).
  • b3kWorld()functionThe box3dxt world the Kit runs.
  • b3kRemove <pThing>commandRemove a thing from the world and the picture.
  • b3kDetail(<pThing>)functionReport how many sides a round thing is drawn with.
  • b3kCamOrbitBy <pDYaw>,<pDPitch>commandTurn the camera round its point.
  • b3kCamText()functionThe camera as the seven numbers both renderers take.
  • b3kTeardowncommandStop the loop and destroy the world and everything the Kit made.
  • b3kIsGliding(<pThing>)functionReport whether a thing is still on its way to a b3kGlideTo place.
  • b3kKeepUpright <pThing>,<pFlag>commandStop a thing from tipping over: it may move but not turn.
  • b3kSky()functionThe sky asked for.
  • b3kIsPaused()functionReport whether the loop is paused.
  • b3kName <pThing>,<pName>commandGive a thing a name to find it by.
  • b3kSetBounce <pThing>,<pValue>commandSet how bouncy a thing is.
  • b3kKillFloor <pY>commandRemove things that fall below a height.
  • b3kCamMouseOrbit <pFlag>commandLet a drag on the view turn the camera.
  • b3kEnable <pThing>commandBring back a thing b3kDisable took out.
  • b3kStats()functionHow the Kit is doing, as one line.
  • b3kY(<pThing>)functionA thing's height.
  • b3kSetDensity <pThing>,<pValue>commandSet how heavy a thing is for its size.
  • b3kPlayerJump <pSpeed>commandMake the player jump, whether or not it stands on anything.
  • b3kViewAttach <pImage>commandDraw into an image you made.
  • b3kSetDetail <pThing>,<pSides>commandDraw a round thing with fewer or more sides (render3dxt only).
  • b3kAddPlatform <pX>,<pY>,<pZ>,<pW>,<pH>,<pD>,<pColor>commandMake a moving platform: a box that moves only as it is told.
  • b3kCamZoomBy <pFactor>commandMove the camera nearer or farther by a factor.
  • b3kThingAt(<pH>,<pV>)functionThe thing under a point of the card.
  • b3kImpulse <pThing>,<pIx>,<pIy>,<pIz>commandKick a thing at its centre.
  • b3kSetBackground <pColor>commandSet the colour behind everything.
  • b3kWake <pThing>commandWake a sleeping thing.
  • b3kFrameError()functionThe error a frame last caught, if any.
  • b3kAddDecor <pName>,<pX>,<pY>,<pZ>,<pTurn>,<pSx>,<pSy>,<pSz>commandPlace a model that is only a picture: no body, nothing to bump into (render3dxt only).
  • b3kCamUnfollowcommandStop following.
  • b3kPlayerSet <pKey>,<pValue>commandSet one of the player's knobs.
  • b3kSetLookPose <pThing>,<pX>,<pY>,<pZ>,<pRx>,<pRy>,<pRz>,<pSx>,<pSy>,<pSz>commandMove, turn and stretch a thing's whole look within it (render3dxt only).
  • b3kHitNormal()functionWhich way the surface faced where the last ray struck.
  • b3kAddSensorBall <pX>,<pY>,<pZ>,<pDiameter>commandMake a ball-shaped zone that reports what enters and leaves it.
  • b3kKeysHeld()functionEvery key held this frame, by name.
07

CoinXT

2 packages, in install order

CoinXT0.1.0native library

Bitcoin and Ethereum cryptography for xTalk: hashes, keys and signatures.

  • Win 64
  • Win 32
  • macOS
  • Linux 64
  • Linux 32
  • Linux ARM
  • Android ARM64
  • Android ARM32
  • Android x86-64
  • Android x86
Downloadcoinxt-0.1.0.lce · 3.1 MB
More about CoinXT

CoinXT wraps two audited native libraries, trezor-crypto and upstream libsecp256k1, and adds no cryptography of its own. This extension is the native half: the digests (Keccak-256, SHA3-256, SHA-256, SHA-512, RIPEMD-160), HMAC, PBKDF2, secp256k1 keys, ECDSA signing, verification and recovery, ECDH, the two BIP-32 tweak steps, the BIP-39 wordlist, BIP-340 Schnorr signatures and the BIP-341 Taproot tweak. Encodings, addresses, mnemonics, HD derivation and transaction building live in the separate CoinXT Script Library (start with cxHexEncode), which must be in the message path, for example with start using stack "coinxt".

Every handler is synchronous and stateless: Data in, Data out, no handles and nothing to close. Hash text through textEncode(tText, "utf-8"). A failure throws an error that begins "CoinXT:" and names the handler, and every call first checks that the installed native library matches this binding (cxCheckABI).

CoinXT is a calculator, not a wallet. It never makes key material (supply your own random bytes, for example from SodiumXT's sxRandomBytes), and storing keys, backing them up and confirming before signing are your app's job.

Install first
nothing
Works with
SodiumXT
Topics
Cryptography
Author
Seth Morrow Software
Extension id
org.openxtalk.library.coin
Source
coinxt/src/coinxt.lcb
Licences
LICENSE, THIRD-PARTY-LICENSES.md, trezor-crypto-LICENSE, trezor-crypto-address-NOTICE.txt, trezor-crypto-hasher-NOTICE.txt
SHA-256
07c43e3caa2f37cbe99f023d224b860d6c17bfd4d2c65f727f6dcba8eff7931c
All 44 handlers
  • cxBip39Wordlist()handlerThe BIP-39 English wordlist as 2048 fixed-width 8-byte slots.
  • cxPubkeyLenUncompressed()handlerThe size in bytes of an uncompressed public key.
  • cxTaprootTweakPubkey(<pInternalKey>,<pMerkleRoot>)handlerThe BIP-341 Taproot output key for an internal x-only key, with its parity.
  • cxSignatureLen()handlerThe size in bytes of an ECDSA signature from cxSign.
  • cxSeckeyTweakAdd(<pSeckey>,<pTweak>)handlerAdd a 32-byte tweak to a private key modulo the group order (one BIP-32 step).
  • cxSchnorrSignatureLen()handlerThe size in bytes of a BIP-340 Schnorr signature.
  • cxBip39WordlistLen()handlerThe size in bytes of the BIP-39 wordlist from cxBip39Wordlist.
  • cxTaprootTweakSeckey(<pSeckey>,<pMerkleRoot>)handlerThe private key that spends a BIP-341 Taproot output.
  • cxSign(<pSeckey>,<pDigest>)handlerSign a 32-byte digest with ECDSA over secp256k1.
  • cxRecoverableSignatureLen()handlerThe size in bytes of a recoverable signature from cxSignRecoverable.
  • cxXOnlyPubkey(<pSeckey>)handlerThe 32-byte x-only public key for a private key (BIP-340).
  • cxCheckABI()handlerCheck that the installed native library matches this binding.
  • cxKeccak256(<pData>)handlerThe Keccak-256 digest of some bytes, the hash Ethereum uses.
  • cxKeccak256Len()handlerThe size in bytes of a Keccak-256 digest.
  • cxSha512Len()handlerThe size in bytes of a SHA-512 digest.
  • cxHmacSha256Len()handlerThe size in bytes of an HMAC-SHA256 result.
  • cxTaprootOutputLen()handlerThe size in bytes of the record cxTaprootTweakPubkey returns.
  • cxSeckeyIsValid(<pSeckey>)handlerWhether some bytes are a valid secp256k1 private key.
  • cxSha256(<pData>)handlerThe SHA-256 digest of some bytes.
  • cxSha512(<pData>)handlerThe SHA-512 digest of some bytes.
  • cxSeckeyLen()handlerThe size in bytes of a secp256k1 private key.
  • cxPubkeyCombine(<pKeys>)handlerThe sum of one or more compressed public keys.
  • cxSha3_256(<pData>)handlerThe SHA3-256 digest of some bytes (NIST FIPS 202).
  • cxEcdhLen()handlerThe size in bytes of the raw ECDH point from cxEcdh.
  • cxPubkeyDecompress(<pPubkey>)handlerExpand a compressed public key to its 65-byte uncompressed form.
  • cxNewSeckey(<pEntropy>)handlerCheck 32 bytes of your own entropy as a secp256k1 private key and return them.
  • cxSchnorrSign(<pSeckey>,<pMessage>,<pAuxRand>)handlerSign a 32-byte message with a BIP-340 Schnorr signature.
  • cxSignRecoverable(<pSeckey>,<pDigest>)handlerSign a 32-byte digest with recoverable ECDSA, as Ethereum does.
  • cxHmacSha512Len()handlerThe size in bytes of an HMAC-SHA512 result.
  • cxXOnlyPubkeyLen()handlerThe size in bytes of an x-only public key, which is also a Taproot output key.
  • cxRipemd160Len()handlerThe size in bytes of a RIPEMD-160 digest.
  • cxPublicKey(<pSeckey>,<pCompressed>)handlerThe public key for a secp256k1 private key.
  • cxRecover(<pSignature>,<pDigest>)handlerThe public key that produced a recoverable signature.
  • cxPubkeyTweakAdd(<pPubkey>,<pTweak>)handlerAdd the point of a 32-byte tweak to a compressed public key (one BIP-32 step).
  • cxEcdh(<pSeckey>,<pPubkey>)handlerThe raw ECDH shared point between your private key and their public key.
  • cxPubkeyLenCompressed()handlerThe size in bytes of a compressed public key.
  • cxRipemd160(<pData>)handlerThe RIPEMD-160 digest of some bytes.
  • cxPbkdf2HmacSha512(<pPassword>,<pSalt>,<pIterations>,<pOutLen>)handlerDerive key bytes from a password with PBKDF2-HMAC-SHA512.
  • cxHmacSha256(<pKey>,<pMessage>)handlerHMAC-SHA256 of a message under a key (RFC 2104).
  • cxVerify(<pPubkey>,<pDigest>,<pSignature>)handlerCheck an ECDSA signature over a 32-byte digest.
  • cxHmacSha512(<pKey>,<pMessage>)handlerHMAC-SHA512 of a message under a key (RFC 2104).
  • cxSchnorrVerify(<pXOnlyPubkey>,<pMessage>,<pSignature>)handlerCheck a BIP-340 Schnorr signature against an x-only public key.
  • cxSha3_256Len()handlerThe size in bytes of a SHA3-256 digest.
  • cxSha256Len()handlerThe size in bytes of a SHA-256 digest.

CoinXT script layer0.1.0script library

The script half of CoinXT: hex, Base58Check, bech32 and SegWit addresses, Bitcoin and Ethereum addresses, WIF keys, RLP, BIP-39 mnemonics, BIP-32 HD derivation, the BIP-341 Taproot address path, and Bitcoin and Ethereum transaction building. It is pure script over the CoinXT extension, which supplies every hash and curve operation (start with cxCheckABI); this layer only moves bytes and checks checksums.

  • Any platform
Downloadcoinxt-script-0.1.0.lce · 71.8 KB
More about CoinXT script layer

It is a separate file from the extension, so it must be in the message path before its handlers resolve, for example with start using stack "coinxt". If the hashes work but every handler here is "handler not found", the extension loaded and this script did not.

Every decoder verifies its checksum and throws an error beginning "CoinXT:" and naming the handler rather than returning a plausible wrong answer. The transaction builders produce the digest; your app signs it with cxSign, cxSignRecoverable or cxSchnorrSign after showing the user what it means. Handlers that read comma lists save and restore the itemDelimiter, so your setting does not affect them.

Install first
CoinXT
Topics
Cryptography
Author
Seth Morrow Software
Extension id
coinxt
Source
coinxt/src/coinxt.livecodescript
Licences
LICENSE, THIRD-PARTY-LICENSES.md, trezor-crypto-LICENSE, trezor-crypto-address-NOTICE.txt, trezor-crypto-hasher-NOTICE.txt
SHA-256
d2ec661e262e6acf2617f9cc1813364830d98e481a21f148129a21637ec9ba94
All 51 handlers
  • cxEth1559Sighash(<pChainId>,<pNonce>,<pMaxPriorityHex>,<pMaxFeeHex>,<pGas>,<pToHex>,<pValueHex>,<pDataHex>)functionThe signing digest for an EIP-1559 (type 2) Ethereum transaction.
  • cxBtcTxEncode(<pVersion>,<pOutpoints>,<pScriptSigs>,<pSequences>,<pWitnesses>,<pOutputs>,<pLocktime>)functionSerialize a full Bitcoin transaction.
  • cxEth1559Encode(<pChainId>,<pNonce>,<pMaxPriorityHex>,<pMaxFeeHex>,<pGas>,<pToHex>,<pValueHex>,<pDataHex>,<pRecid>,<pRHex>,<pSHex>)functionThe signed EIP-1559 (type 2) Ethereum transaction.
  • cxWifDecode(<pWif>)functionDecode a Wallet Import Format (WIF) private key.
  • cxMnemonicToSeed(<pMnemonic>,<pPassphrase>)functionThe 64-byte BIP-39 seed for a mnemonic and passphrase.
  • cxXpub(<pNode>)functionAn HD node as a mainnet "xpub..." string.
  • cxRlpDecode(<pData>)functionDecode one RLP item from the front of some bytes.
  • cxBtcTxid(<pVersion>,<pOutpoints>,<pScriptSigs>,<pSequences>,<pOutputs>,<pLocktime>)functionA Bitcoin transaction's txid, as display-order hex.
  • cxVarInt(<pN>)functionBitcoin CompactSize (varint) encoding of a count.
  • cxHdNeuter(<pNode>)functionThe watch-only form of an HD node: same public key and chain code, no private key.
  • cxXprv(<pNode>)functionAn HD node as a mainnet "xprv..." string.
  • cxSegwitAddressDecode(<pHrp>,<pAddress>)functionDecode a SegWit address, checking it is for the network you expect.
  • cxEthAddress(<pPubkey>)functionThe lowercase Ethereum address ("0x...") for a public key.
  • cxBase58CheckEncode(<pPayload>)functionBase58Check text for a payload.
  • cxTapControlBlock(<pLeafVersion>,<pParity>,<pInternalKeyHex>,<pPathHex>)functionThe control block for a Taproot script-path spend, as hex.
  • cxMnemonicFromEntropy(<pEntropy>)functionThe BIP-39 mnemonic for some entropy.
  • cxEthAddressChecksum(<pAddress>)functionThe EIP-55 mixed-case (checksummed) form of an Ethereum address.
  • cxBase58CheckDecode(<pText>)functionThe payload of a Base58Check string, with its checksum verified.
  • cxDerEncode(<pCompactSig>)functionA 64-byte compact signature as a DER signature.
  • cxRlpEncodeList(<pEncodedItems>)functionWrap already-encoded RLP items as an RLP list.
  • cxMnemonicValidate(<pMnemonic>)functionWhether a mnemonic is well-formed BIP-39 with a correct checksum.
  • cxBtcSighashTaproot(<pVersion>,<pOutpoints>,<pSequences>,<pAmountsSat>,<pScriptPubkeys>,<pOutputs>,<pIndex>,<pLocktime>,<pSighashType>,<pTapleafHex>)functionThe BIP-341 (Taproot) signature hash to sign for one input.
  • cxBech32EncodeValues(<pHrp>,<pValues>,<pSpec>)functionA bech32 or bech32m string from a human-readable part and 5-bit values.
  • cxBtcAddressP2TR(<pOutputKey>)functionA Taproot mainnet address ("bc1p...") for an already-tweaked output key.
  • cxSegwitAddressEncode(<pHrp>,<pVersion>,<pProgram>)functionA SegWit address from a witness version and program.
  • cxBtcAddressP2TRFromInternal(<pInternalKey>,<pMerkleRoot>)functionA Taproot mainnet address ("bc1p...") from an internal key, tweak included.
  • cxHash256(<pData>)functionSHA-256 of SHA-256 of some bytes (Bitcoin's HASH256).
  • cxEthAddressIsChecksummed(<pAddress>)functionWhether an Ethereum address carries a correct EIP-55 checksum.
  • cxEthLegacyEncode(<pNonce>,<pGasPriceHex>,<pGas>,<pToHex>,<pValueHex>,<pDataHex>,<pChainId>,<pRecid>,<pRHex>,<pSHex>)functionThe signed EIP-155 legacy Ethereum transaction.
  • cxHash160(<pData>)functionRIPEMD-160 of SHA-256 of some bytes (Bitcoin's HASH160).
  • cxHdDeriveChild(<pNode>,<pIndex>)functionOne BIP-32 derivation step from an HD node.
  • cxBtcAddressP2PKH(<pPubkey>)functionA legacy mainnet P2PKH address ("1...") for a public key.
  • cxRlpEncodeBytes(<pData>)functionEncode one byte string as an RLP item.
  • cxBtcAddressP2WPKH(<pPubkey>)functionA native SegWit v0 mainnet address ("bc1q...") for a compressed public key.
  • cxMnemonicToEntropy(<pMnemonic>)functionThe entropy a BIP-39 mnemonic encodes, with its checksum verified.
  • cxMnemonicNormalize(<pText>)functionA mnemonic's canonical whitespace: trimmed, one space between words.
  • cxWifEncode(<pSeckeyHex>,<pNetwork>,<pCompressed>)functionA private key as Wallet Import Format (WIF) text.
  • cxBtcOutpoint(<pTxidHex>,<pVout>)functionA 36-byte transaction outpoint from a txid and an output index.
  • cxHexDecode(<pHex>)functionThe bytes a hex string spells.
  • cxBtcOutput(<pAmountSat>,<pScriptHex>)functionA serialized Bitcoin transaction output.
  • cxHexEncode(<pData>)functionLowercase hex text for some bytes.
  • cxBtcSighashLegacy(<pVersion>,<pOutpoints>,<pSequences>,<pIndex>,<pScriptCodeHex>,<pOutputs>,<pLocktime>,<pSighashType>)functionThe pre-SegWit SIGHASH_ALL digest to sign for one input.
  • cxTaprootTweak(<pInternalKey>,<pMerkleRoot>)functionThe BIP-341 Taproot output key and parity for an internal key, as an array.
  • cxHdFromSeed(<pSeed>)functionThe BIP-32 master node for a seed.
  • cxBtcSighashSegwit(<pVersion>,<pOutpoints>,<pSequences>,<pIndex>,<pScriptCodeHex>,<pAmountSat>,<pOutputs>,<pLocktime>,<pSighashType>)functionThe BIP-143 (SegWit v0) SIGHASH_ALL digest to sign for one input.
  • cxTapLeafHash(<pLeafVersion>,<pScriptHex>)functionThe BIP-341 TapLeaf hash of a script.
  • cxTapBranchHash(<pAHex>,<pBHex>)functionThe BIP-341 TapBranch hash of two child hashes.
  • cxBech32DecodeValues(<pText>)functionDecode a bech32 or bech32m string into its parts.
  • cxHdDerivePath(<pNode>,<pPath>)functionWalk a BIP-32 path such as "m/44'/0'/0'/0/0" from an HD node.
  • cxBtcWitness(<pItems>)functionA serialized SegWit witness stack for one input.
  • cxEthLegacySighash(<pNonce>,<pGasPriceHex>,<pGas>,<pToHex>,<pValueHex>,<pDataHex>,<pChainId>)functionThe EIP-155 signing digest for a legacy Ethereum transaction.
08

curlxt

4 packages, in install order

curlxt0.2.1native library

Bindings to libcurl: HTTP and HTTPS, FTP and FTPS, SFTP and SCP, SMTP mail, and WebSockets, for OpenXTalk.

  • Win 64
  • Win 32
  • macOS
  • Linux 64
  • Linux 32
  • Linux ARM
  • Android ARM64
  • Android ARM32
  • Android x86-64
  • Android x86
Downloadcurlxt-0.2.1.lce · 22.8 MB
More about curlxt

curlxt wraps libcurl 8.22.0 (with libssh2 1.11.1 for SFTP). A request is an integer handle: make one with cuRequestNew, set its headers, options and body, then start it with cuStart. Either wait for it on the spot with cuWait (the script pauses until it ends) or let it run in the background and call cuPoll on a timer, which moves every running request along and says which ones have finished. Read the outcome with cuInfo, cuText and cuBody, then release the handle with cuFree. A handle that has gone stale is a harmless no-op.

Nothing moves between calls: a background request makes progress only while cuPoll or cuWait runs. The curlHelpers library (cuStartPolling) runs the timer for you and sends your callback when a request ends, and the tsNet library gives scripts written for LiveCode's tsNet external the same calls, built on this one.

A WebSocket (ws:// or wss://) is a request handle too. Make one with cuWsNew, start it with cuStart, and once it is open send with cuWsSendText or cuWsSendData and read what has arrived with cuWsReadText or cuWsRead. It moves while cuWsPoll (or cuPoll) runs. The curlHelpers library (cuWsOpen) does all of that and sends your handler a message for each thing that happens.

Call cuInitialize once at startup and cuCleanup once at quit.

Install first
nothing
Topics
Networking
Author
Seth Morrow Software
Extension id
org.openxtalk.library.curl
Source
curlxt/src/curl.lcb
Licences
LICENSE, OpenSSL-LICENSE.txt, THIRD-PARTY-LICENSES.md
SHA-256
0240a48826ada4278285b070e396ead7ed77f89f2668c562ff1cf819fb6c45a5
All 29 handlers
  • cuWsSendText(<pSocket>,<pText>)handlerSend a text message on a WebSocket.
  • cuCancel(<pRequest>)handlerStop a request.
  • cuSetHeader(<pRequest>,<pLine>)handlerAdd one request header.
  • cuClearError()handlerClear the text cuLastError returns.
  • cuStart(<pRequest>)handlerStart a request.
  • cuWait(<pRequest>,<pTimeoutMs>)handlerWait for one request to end.
  • cuWsSendData(<pSocket>,<pData>)handlerSend a binary message on a WebSocket.
  • cuInitialize()handlerInitialize curlxt before any other call.
  • cuWsPing(<pSocket>,<pData>)handlerSend a ping on a WebSocket, to check the other side is there.
  • cuWsClose(<pSocket>,<pCode>,<pReason>)handlerClose a WebSocket politely.
  • cuCleanup()handlerGive back one hold taken by cuInitialize.
  • cuPoll()handlerMove every running request along, and list those that ended.
  • cuSetBody(<pRequest>,<pData>)handlerSet the body a request sends.
  • cuInfo(<pRequest>,<pName>)handlerA number about a request.
  • cuBody(<pRequest>)handlerThe response body a request received.
  • cuRequestNew(<pMethod>,<pURL>)handlerMake a new request.
  • cuWsReadText(<pSocket>)handlerTake the next message a WebSocket received, as text.
  • cuLiveCount()handlerHow many request handles are live.
  • cuWsNew(<pURL>)handlerMake a new WebSocket.
  • cuSetOption(<pRequest>,<pName>,<pValue>)handlerSet a number option of a request.
  • cuText(<pRequest>,<pName>)handlerA piece of text about a request.
  • cuWsWait(<pSocket>,<pTimeoutMs>)handlerWait until something happens on a WebSocket.
  • cuLibraryVersion()handlerThe versions of curlxt's ABI, libcurl and the libraries it uses.
  • cuSetTextOption(<pRequest>,<pName>,<pValue>)handlerSet a text option of a request.
  • cuTextData(<pRequest>,<pName>)handlerA piece of text about a request, as its raw bytes.
  • cuWsRead(<pSocket>)handlerTake the next message a WebSocket received, as bytes.
  • cuFree(<pRequest>)handlerRelease a request and everything it holds.
  • cuLastError()handlerThe last error curlxt recorded, as text.
  • cuWsPoll()handlerMove every WebSocket (and every request) along.

curlxt helpers0.2.1script library

The everyday calls for curlxt. Put the curlHelpers stack in use (start using stack "curlHelpers"), then make a request with cuRequestSync, which waits for the answer, or cuRequestAsync, which sends your message when the answer has arrived. A timer moves background requests along; it runs only while one is waiting.

  • Any platform
Downloadcurlxt-helpers-0.2.1.lce · 16.7 KB
More about curlxt helpers

Read the answer with cuResponse and release the request with cuFree.

Install first
curlxt
Topics
Networking
Author
Seth Morrow Software
Extension id
curlHelpers
Source
curlxt/src/curl-helpers.livecodescript
Licences
LICENSE, OpenSSL-LICENSE.txt, THIRD-PARTY-LICENSES.md
SHA-256
e1d55ff62105bfbb00f1cd6f8c1dfdb674c9f9d9de458fc116d525569f93f486
All 18 handlers
  • cuWsWatch <pSocket>,<pTarget>,<pMessage>commandSend a message for each thing that happens on a started WebSocket.
  • cuSetPollInterval <pIntervalMs>commandSet how often the background timer runs.
  • cuWatch <pRequest>,<pTarget>,<pMessage>commandSend a message when a started request ends.
  • cuWsUnwatch <pSocket>commandStop sending messages about a WebSocket.
  • cuWsWatchedCount()functionHow many WebSockets the background timer is watching.
  • cuRequestSync(<pMethod>,<pURL>,<pHeaders>,<pBody>,<pOptions>,<pTimeoutMs>)functionMake a request and wait for its answer.
  • cuRequestAsync(<pMethod>,<pURL>,<pHeaders>,<pBody>,<pOptions>,<pTarget>,<pMessage>)functionMake a request in the background, and get a message when it ends.
  • cuPollLastError()functionThe first background-timer failure since the last clear.
  • cuHelpersError()functionWhy the last cuRequestSync or cuRequestAsync returned 0.
  • cuApplyRequest(<pRequest>,<pHeaders>,<pBody>,<pOptions>)functionApply headers, a body and options to a request that has not started.
  • cuHelpersInit()functionTake one curlxt hold for this library, if it has none.
  • cuWaitingCount()functionHow many background requests are waiting to report.
  • cuHelpersReleasecommandGive back the curlxt hold this library took.
  • cuUnwatch <pRequest>commandStop waiting for a request's message.
  • cuResponse(<pRequest>)functionEverything about an ended request, as an array.
  • cuWsOpen(<pURL>,<pHeaders>,<pOptions>,<pTarget>,<pMessage>)functionOpen a WebSocket in the background, and get a message for each thing that happens on it.
  • cuPollClearErrorcommandForget the failure cuPollLastError reports.
  • cuWsOpenSync(<pURL>,<pHeaders>,<pOptions>,<pTimeoutMs>)functionOpen a WebSocket and wait until it is connected.

LibURL HTTP calls (curlxt)0.2.1script library

The liburlHttpRequest calls of LiveCode Create Classic 11's LibURL HTTP Library (liburlHttpRequest, liburlHttpRequestAbort and liburlHttpRequestDestroyAll), for stacks written for them, built on curlxt. Put the liburlHttp stack in use (start using stack "liburlHttp") and those scripts run unchanged. It does not touch libURL: the URL keyword, post and load url behave as before.

  • Any platform
Downloadcurlxt-liburlhttp-0.2.1.lce · 14.4 KB
Install first
curlxt helpers
Topics
Networking
Author
curlxt contributors
Extension id
liburlHttp
Source
curlxt/src/liburlhttp.livecodescript
Licences
LICENSE, OpenSSL-LICENSE.txt, THIRD-PARTY-LICENSES.md
SHA-256
1346d05dd7c3c0c1ef0d232bde4c313e9f5d10ddd044b4a5a731943b376065c1
All 4 handlers
  • liburlHttpVersion()functionThe version of this library.
  • liburlHttpRequestDestroyAllcommandSilently stop every request this library started.
  • liburlHttpRequestAbort <pRequestId>commandCancel one request that is still running.
  • liburlHttpRequest <pUrl>,<pMethod>,<pHeaders>,<pBody>,<pCallback>,<pProgressCallback>,<pSettings>commandMake an HTTP request, and wait for it or be told when it ends.

tsNet calls (curlxt)0.2.1script library

The tsNet calls (tsNetGet, tsNetPostSync, tsNetSmtpSync and the rest), for stacks written for LiveCode's tsNet external, built on curlxt. Put the tsNetCompat stack in use (start using stack "tsNetCompat") and those scripts run unchanged. New code may prefer curlxt's own calls (cuRequestSync, cuRequestAsync).

  • Any platform
Downloadcurlxt-tsnet-0.2.1.lce · 16.2 KB
Install first
curlxt helpers
Topics
Networking
Author
Seth Morrow Software
Extension id
tsNetCompat
Source
curlxt/src/tsnet.livecodescript
Licences
LICENSE, OpenSSL-LICENSE.txt, THIRD-PARTY-LICENSES.md
SHA-256
9be7949b0977d0f1183aa839ff21789e793701593df12a0d61978cbc2509b572
All 26 handlers
  • tsNetGetStatus(<pConnectionID>)functionHow far a transfer has got.
  • tsNetSetStatusCallback <pCallback>commandGet progress messages for every transfer.
  • tsNetGetSync(<pURL>,<xHeaders>,<rOutHeaders>,<rResult>,<rBytes>,<pSettings>)functionDownload and wait for the data.
  • tsNetUploadSync(<pURL>,<xHeaders>,<pData>,<rOutHeaders>,<rResult>,<rBytes>,<pSettings>)functionUpload data and wait.
  • tsNetHead(<pConnectionID>,<pURL>,<pHeaders>,<pCallback>,<pSettings>)functionAsk for headers only, in the background.
  • tsNetClosecommandStop every transfer and close every connection.
  • tsNetHeadSync(<pURL>,<xHeaders>,<rResult>,<rBytes>,<pSettings>)functionAsk for headers only, and wait.
  • tsNetGetFileSync(<pFile>,<pURL>,<xHeaders>,<rOutHeaders>,<rBytes>,<pSettings>)functionDownload into a file and wait.
  • tsNetSmtpSync(<pURL>,<pFrom>,<pRcpt>,<pData>,<rOutHeaders>,<rBytes>,<pSettings>)functionSend a mail message over SMTP and wait.
  • tsNetUpload(<pConnectionID>,<pURL>,<pHeaders>,<pCallback>,<pData>,<pSettings>)functionUpload data in the background (HTTP PUT, FTP or SFTP store).
  • tsNetUploadFileSync(<pFile>,<pURL>,<xHeaders>,<rOutHeaders>,<rResult>,<rBytes>,<pSettings>)functionUpload a file and wait.
  • tsNetPost(<pConnectionID>,<pURL>,<pHeaders>,<pPostData>,<pCallback>,<pSettings>)functionSend data with POST in the background.
  • tsNetGetFile(<pConnectionID>,<pFile>,<pURL>,<pHeaders>,<pCallback>,<pSettings>)functionDownload into a file in the background.
  • tsNetUploadFile(<pConnectionID>,<pFile>,<pURL>,<pHeaders>,<pCallback>,<pSettings>)functionUpload a file in the background.
  • tsNetInitcommandStart the tsNet calls.
  • tsNetVersion()functionThe tsNet version whose calls this library follows.
  • tsNetSetTimeouts <pDnsCacheTimeout>,<pRequestTimeoutMS>,<pConnectTimeoutMS>,<pAcceptTimeoutMS>,<pLowSpeedTime>,<pLowSpeedLimit>commandSet the timeouts every later transfer uses.
  • tsNetPostSync(<pURL>,<xHeaders>,<pPostData>,<rOutHeaders>,<rResult>,<rBytes>,<pSettings>)functionSend data with POST and wait for the answer.
  • tsNetSmtp(<pConnectionID>,<pURL>,<pFrom>,<pRcpt>,<pCallback>,<pData>,<pSettings>)functionSend a mail message over SMTP in the background.
  • tsNetRetrData(<pConnectionID>,<rError>)functionThe data a background transfer received.
  • tsNetCloseConn <pConnectionID>commandStop a transfer and forget its connection.
  • tsNetCustom(<pConnectionID>,<pURL>,<pRequest>,<pHeaders>,<pCallback>,<pSettings>)functionSend a custom HTTP method, or a raw FTP or SFTP command, in the background.
  • tsNetRetrError(<pConnectionID>)functionWhy a background transfer failed.
  • tsNetCustomSync(<pURL>,<pRequest>,<xHeaders>,<rOutHeaders>,<rResult>,<rBytes>,<pSettings>)functionSend a custom HTTP method, or a raw FTP or SFTP command, and wait.
  • tsNetHeaders(<pConnectionID>)functionThe response headers of a background transfer.
  • tsNetGet(<pConnectionID>,<pURL>,<pHeaders>,<pCallback>,<pSettings>)functionDownload in the background.
09

DataChannelXT

2 packages, in install order

DataChannelXT0.1.0native library

Bindings to libdatachannel: WebRTC data channels for peer-to-peer messaging, including with a web browser.

  • Win 64
  • Win 32
  • macOS
  • Linux 64
  • Linux 32
  • Linux ARM
  • Android ARM64
  • Android ARM32
  • Android x86-64
  • Android x86
Downloaddatachannelxt-0.1.0.lce · 29.7 MB
More about DataChannelXT

DataChannelXT wraps libdatachannel. A peer is one WebRTC connection; a channel is one message stream on a peer. Both are integer handles; 0 means the call failed (see dcLastError), and a handle that has gone stale is a harmless no-op. Action handlers return 0 on success or a negative error: -1 generic, -2 stale handle, -3 bad argument, -4 message too large, -5 the native engine refused, -6 a native exception was caught.

Everything is asynchronous and signaling is yours. Creating a channel starts a negotiation whose description and candidates arrive as events that your code carries to the other peer over any channel you have; the other side's come back through dcSetRemoteDescription and dcAddRemoteCandidate. Events are delivered only when dcPoll drains them, so call it on a timer. The dataChannelHelpers library (dcStartPolling) does that for you and dispatches each event as a message such as dcLocalDescriptionReady, dcChannelOpen and dcMessage.

Call dcCleanup once at quit; there is no automatic unload hook.

Install first
nothing
Topics
Networking
Author
Seth Morrow Software
Extension id
org.openxtalk.library.datachannel
Source
datachannelxt/src/datachannel.lcb
Licences
LICENSE, OpenSSL-LICENSE.txt, THIRD-PARTY-LICENSES.md
SHA-256
0e802efdae4a648e9fb5aa251a4d9777500b2dcf3b328a864d345e1fdf00e078
All 31 handlers
  • dcChannelLabel(<pChannel>)handlerThe label of a data channel.
  • dcFreePeer(<pPeer>)handlerClose and destroy a peer connection and all of its channels.
  • dcCleanup()handlerTear down every peer connection, every channel and the native threads.
  • dcCreatePeer(<pIceServers>)handlerCreate a WebRTC peer connection.
  • dcGatheringState(<pPeer>)handlerThe ICE candidate gathering state of a peer.
  • dcLocalDescriptionType(<pPeer>)handlerThe type of a peer's current local description.
  • dcChannelPeer(<pChannel>)handlerThe peer connection a data channel belongs to.
  • dcPeerState(<pPeer>)handlerThe connection state of a peer.
  • dcSetLocalDescription(<pPeer>,<pType>)handlerStart a manual renegotiation.
  • dcClosePeer(<pPeer>)handlerPolitely close a peer connection.
  • dcSendText(<pChannel>,<pText>)handlerSend one text message on an open channel.
  • dcLastError()handlerThe last error message from the native layer.
  • dcLibraryVersion()handlerThe version of libdatachannel that DataChannelXT was built with.
  • dcClearError()handlerClear the last error message.
  • dcLocalDescription(<pPeer>)handlerThe current local session description of a peer.
  • dcCreateChannelEx(<pPeer>,<pLabel>,<pProtocol>,<pUnordered>,<pMaxRetransmits>,<pMaxLifetimeMs>,<pNegotiated>,<pStreamId>)handlerCreate a data channel with explicit reliability and negotiation options.
  • dcSetRemoteDescription(<pPeer>,<pSdp>,<pType>)handlerApply the other peer's description, received over your signaling channel.
  • dcFreeChannel(<pChannel>)handlerClose and destroy a data channel, freeing its handle.
  • dcSendData(<pChannel>,<pData>)handlerSend one binary message on an open channel.
  • dcChannelIsOpen(<pChannel>)handlerWhether a data channel is open and ready to send.
  • dcChannelMaxMessage(<pChannel>)handlerThe negotiated per-message size limit of a data channel.
  • dcBufferedAmount(<pChannel>)handlerThe number of bytes queued to send on a channel.
  • dcInit()handlerInitialize the native layer early, before the first connection.
  • dcSetBufferedLowThreshold(<pChannel>,<pAmount>)handlerArm the dcBufferedLow event for a channel.
  • dcCreateChannel(<pPeer>,<pLabel>)handlerCreate a reliable, ordered data channel on a peer.
  • dcAddRemoteCandidate(<pPeer>,<pCandidate>,<pMid>)handlerApply one ICE candidate from the other peer.
  • dcPoll()handlerDrain every pending event in one call.
  • dcChannelStreamId(<pChannel>)handlerThe SCTP stream id of a data channel.
  • dcCloseChannel(<pChannel>)handlerPolitely close a data channel.
  • dcSelectedCandidatePair(<pPeer>)handlerThe ICE candidate pair a connected peer is using.
  • dcChannelProtocol(<pChannel>)handlerThe subprotocol of a data channel.

DataChannelXT helpers0.1.0script library

The poll dispatcher and small helpers for DataChannelXT. Put the dataChannelHelpers stack in use (start using stack "dataChannelHelpers") and call dcStartPolling: a timer drains the native event queue with dcPoll and sends one message per event to your card or object, so an app handles plain messages instead of running its own poll loop.

  • Any platform
Downloaddatachannelxt-helpers-0.1.0.lce · 21.6 KB
More about DataChannelXT helpers

The messages are dcLocalDescriptionReady, dcLocalCandidate, dcStateChange, dcGatheringStateChange, dcChannelIncoming, dcChannelOpen, dcChannelClosed, dcMessage, dcChannelError, dcBufferedLow and dcQueueOverflow, each with the event array as its parameter, plus a catch-all dataChannelEvent for every event.

Install first
DataChannelXT
Topics
Networking
Author
Seth Morrow Software
Extension id
dataChannelHelpers
Source
datachannelxt/examples/datachannel-helpers.livecodescript
Licences
LICENSE, OpenSSL-LICENSE.txt, THIRD-PARTY-LICENSES.md
SHA-256
87910fc07ac59d751bcc2e23830e7bcca7670241cb04dd7949a0754daa0883c8
All 7 handlers
  • dcPollClearErrorcommandClear the poll timer's recorded fault.
  • dcPollLastError()functionThe first fault the poll timer recorded since the last clear.
  • dcStartPolling <pTarget>,<pIntervalMs>commandStart draining DataChannelXT events and dispatching them as messages.
  • dcStateName(<pState>)functionA label for a peer connection state number.
  • dcGatheringName(<pState>)functionA label for an ICE gathering state number.
  • dcFormatBytes(<pBytes>)functionFormat a byte count for display.
  • dcStopPollingcommandStop the poll timer.
10

docxt

One package

docxt0.1.1script library

docxt fills in Word documents from your stack. Make a template in Word with tags in double braces where the words should go, such as {{customer}} or {{total}}, and docxt writes a new .docx with your values in their place, keeping every font, table, picture, header and footer of the template. It also reads the mail merge fields Word puts in a document (Mailings, Insert Merge Field).

  • Any platform
Downloaddocxt-0.1.1.lce · 24.1 KB
More about docxt

Open a template with docxOpen, fill it with docxFill from an array, and save the result with docxSave. A section, {{#items}} ... {{/items}}, repeats for each element of a list, so a table row becomes one row per invoice line; {{^items}} ... {{/items}} shows only when the list is empty. docxFillAll makes one document of many records, a page each, for letters to print. docxFields lists the tags a template has, and docxText reads a document's words.

docxt is written in script and needs no other file, so it works on every platform the engine runs on. Nothing here stops your script with an error: a call that fails returns 0, false or empty, and docxLastError says why.

Install first
nothing
Topics
Documents, Word, Mail merge
Author
Seth Morrow Software
Extension id
docxt
Source
docxt/src/docxt.livecodescript
Licences
LICENSE
SHA-256
6c06d3b8ffeed689914d32c501fd5e823fc9123d1182dfbdc7ae8754d8e2095d
All 13 handlers
  • docxClose(<pDocument>)functionCloses a document and frees its memory.
  • docxLastError()functionReturns why the last docxt call that failed did not succeed.
  • docxSaveData(<pDocument>)functionReturns a document as the bytes of a .docx file.
  • docxText(<pDocument>)functionReturns the words of a document's body as plain text.
  • docxFields(<pDocument>)functionLists the tags a template has.
  • docxOpenData(<pData>)functionOpens a Word document held in a variable and returns a handle to it.
  • docxFillAll(<pDocument>,<pRecords>)functionFills a template once for each record and makes one document of them all, a page each.
  • docxVersion()functionReturns the docxt name and version.
  • docxCloseAll()functionCloses every open document.
  • docxFill(<pDocument>,<pData>)functionFills a template's tags from an array.
  • docxOpen(<pPath>)functionOpens a Word document or template file and returns a handle to it.
  • docxMissingFields(<pDocument>)functionLists the tags the last fill of a document found no value for.
  • docxSave(<pDocument>,<pPath>)functionSaves a document as a .docx file.
11

duckdbxt

One package

DuckDB for OpenXTalk0.1.0native library

Query data with SQL, in your stack, with no server: DuckDB, the in-process analytical database. Read big CSV, Parquet and JSON files straight from SQL, join and summarise them, and keep tables in a database file of your own.

  • Win 64
  • Win 32
  • macOS
  • Linux 64
  • Linux 32
  • Linux ARM
  • Android ARM64
  • Android ARM32
  • Android x86-64
  • Android x86
Downloadduckdbxt-0.1.0.lce · 138.7 MB
More about DuckDB for OpenXTalk

Open a database with duckOpen (an empty path makes one in memory, which is all you need to query files), then run SQL: duckQueryText returns a whole result as a tab-delimited table in one call, duckQuery keeps a result to read value by value, and duckExecute runs statements that return no rows. Put values a user typed into SQL with a prepared statement (duckPrepare and the bind calls), never by joining text. A long query can run a step at a time from a timer (duckQueryStart) so your stack stays responsive. duckInsertText adds a tab-delimited table to a table in one call, so an Excel sheet read with xlsxt's xlReadGrid becomes SQL rows. Close what you open, and call duckCloseAll when your stack closes.

Rows and columns are numbered from 1. A handle of 0, -1 or empty means a call was refused; duckLastError says why, and nothing here stops your script with an error.

SQL can read and write any file your stack can: treat SQL you did not write as you would a script. This build loads no extensions from disk or the network; Parquet and JSON are built in. There is no web version yet.

Install first
nothing
Works with
Excel Spreadsheets for OpenXTalk
Topics
Database, SQL, CSV, Parquet
Author
OpenXTalk
Extension id
org.openxtalk.library.duckdbxt
Source
duckdbxt/src/duckdbxt.lcb
Licences
LICENSE, THIRD-PARTY-LICENSES.md
SHA-256
321adc5ecaf6e7b5765a2900602d18875628828d1506092da5b5d37300d07c03
All 42 handlers
  • duckResultFree(<pResult>)handlerFrees a result.
  • duckBindNumber(<pStatement>,<pIndex>,<pValue>)handlerBinds a number to a parameter of a prepared statement.
  • duckResultColumnName(<pResult>,<pColumn>)handlerReturns the name of a column of a result.
  • duckClearBindings(<pStatement>)handlerUnbinds every parameter of a prepared statement.
  • duckStmtExecute(<pStatement>)handlerRuns a prepared statement that returns no rows you need.
  • duckQueryFinish(<pQuery>)handlerReturns the result of a running query that is ready.
  • duckResultNumber(<pResult>,<pRow>,<pColumn>)handlerReturns one value of a result as a number.
  • duckResultText(<pResult>,<pFirst>,<pCount>,<pFlags>)handlerReturns some rows of a result as a tab-delimited table.
  • duckBindNull(<pStatement>,<pIndex>)handlerBinds NULL to a parameter of a prepared statement.
  • duckQueryCancel(<pQuery>)handlerStops a running query and frees it.
  • duckQueryText(<pDatabase>,<pSQL>,<pFlags>)handlerRuns a query and returns its result as a tab-delimited table.
  • duckResultRowsChanged(<pResult>)handlerReturns how many rows the statement behind a result changed.
  • duckLibraryVersion()handlerReturns the version of DuckDB inside the library.
  • duckOpen(<pPath>,<pOptions>)handlerOpens a database file, creating it if need be, or a new one in memory.
  • duckBindText(<pStatement>,<pIndex>,<pText>)handlerBinds a text to a parameter of a prepared statement.
  • duckIsOpen(<pDatabase>)handlerSays whether a database handle is open.
  • duckResultColumnType(<pResult>,<pColumn>)handlerReturns the type of a column of a result.
  • duckResultColumnCount(<pResult>)handlerReturns how many columns a result has.
  • duckABIVersion()handlerReturns the ABI number of the native library that is loaded.
  • duckCloseAll()handlerCloses every open database.
  • duckExecute(<pDatabase>,<pSQL>)handlerRuns SQL that returns no rows you need.
  • duckQuery(<pDatabase>,<pSQL>)handlerRuns a query and keeps its result.
  • duckBindBoolean(<pStatement>,<pIndex>,<pValue>)handlerBinds true or false to a parameter of a prepared statement.
  • duckResultIsNull(<pResult>,<pRow>,<pColumn>)handlerSays whether one value of a result is NULL.
  • duckResultValue(<pResult>,<pRow>,<pColumn>)handlerReturns one value of a result as text, exactly.
  • duckBindBlob(<pStatement>,<pIndex>,<pData>)handlerBinds bytes to a parameter of a prepared statement.
  • duckStmtParamCount(<pStatement>)handlerReturns how many parameters a prepared statement has.
  • duckInterrupt(<pDatabase>)handlerAsks the query running on a database to stop.
  • duckQuoteText(<pText>)handlerReturns a text as an SQL string literal.
  • duckResultRowCount(<pResult>)handlerReturns how many rows a result has.
  • duckStmtQuery(<pStatement>)handlerRuns a prepared statement and keeps its result.
  • duckClose(<pDatabase>)handlerCloses a database and everything that came from it.
  • duckQueryStep(<pQuery>,<pMilliseconds>)handlerWorks on a running query for a moment.
  • duckLastError()handlerReturns why the last refused call was refused.
  • duckPrepare(<pDatabase>,<pSQL>)handlerPrepares SQL with parameters, to run with values bound to them.
  • duckStmtFree(<pStatement>)handlerFrees a prepared statement.
  • duckQueryStart(<pDatabase>,<pSQL>)handlerStarts a query that runs a step at a time, so a long one does not freeze your stack.
  • duckInsertText(<pDatabase>,<pTable>,<pText>,<pFlags>)handlerAdds the rows of a tab-delimited table to a table of a database.
  • duckProgress(<pDatabase>)handlerReturns how far the running query of a database has got.
  • duckStmtParamIndex(<pStatement>,<pName>)handlerReturns the number of a named parameter.
  • duckQuoteName(<pText>)handlerReturns a text as an SQL name.
  • duckOpenCount()handlerReturns how many databases are open.
12

enetxt

2 packages, in install order

enetxt0.1.0native library

Bindings to ENet, reliable UDP networking for games and real-time apps.

  • Win 64
  • Win 32
  • macOS
  • Linux 64
  • Linux 32
  • Linux ARM
  • Android ARM64
  • Android ARM32
  • Android x86-64
  • Android x86
Downloadenetxt-0.1.0.lce · 914.9 KB
More about enetxt

enetxt wraps ENet 1.3.18. A host is a socket: a server host listens on a port, a client host only connects out. A peer is one connection on a host. Hosts and peers are integer handles; 0 means the call failed (see enLastError), and a handle that has gone stale is a harmless no-op.

ENet has no threads of its own. Nothing connects, sends or receives until enPoll services the host, so call it on a timer for as long as a host lives. The enetHelpers library (enStartPolling) does that for you and dispatches each event as a message: enetConnect, enetDisconnect, enetReceive and enetError.

Call enInitialize once at startup and enDeinitialize once at quit.

Install first
nothing
Topics
Networking
Author
Seth Morrow Software
Extension id
org.openxtalk.library.enet
Source
enetxt/src/enet.lcb
Licences
LICENSE, Microsoft-Visual-C++-Runtime.txt, THIRD-PARTY-LICENSES.md
SHA-256
14d198620c9b14017f2742ea78d34111005aeb09b4e01b94767d233e43139961
All 23 handlers
  • enResetPeer(<pPeer>)handlerDrop a connection without telling either side.
  • enHostStatus(<pHost>)handlerReport the state of a host.
  • enPoll(<pHost>)handlerService a host and return its pending events.
  • enHostCreateServer(<pBindHost>,<pPort>,<pMaxPeers>,<pChannels>,<pInBW>,<pOutBW>)handlerCreate a host that listens for connections on a port.
  • enConnect(<pHost>,<pRemoteHost>,<pPort>,<pChannels>,<pData>)handlerStart connecting a host to a remote host.
  • enHostDestroy(<pHost>)handlerClose a host and every connection on it.
  • enDisconnect(<pPeer>,<pData>)handlerClose a connection politely.
  • enFlush(<pHost>)handlerSend queued packets now.
  • enPeerStatus(<pPeer>)handlerReport the state of one connection.
  • enSendText(<pPeer>,<pChannel>,<pText>,<pFlags>)handlerQueue a packet of text to one peer.
  • enDisconnectNow(<pPeer>,<pData>)handlerClose a connection at once.
  • enLibraryVersion()handlerThe version of the ENet library that enetxt was built with.
  • enSetPeerPingInterval(<pPeer>,<pMs>)handlerSet how often an idle peer is pinged.
  • enInitialize()handlerInitialize the ENet library before any other call.
  • enHostCreateClient(<pMaxPeers>,<pChannels>,<pInBW>,<pOutBW>)handlerCreate a host that only makes outgoing connections.
  • enClearError()handlerClear the last error message.
  • enSend(<pPeer>,<pChannel>,<pData>,<pFlags>)handlerQueue a packet of binary data to one peer.
  • enBroadcast(<pHost>,<pChannel>,<pData>,<pFlags>)handlerQueue a packet of binary data to every peer of a host.
  • enSetPeerTimeout(<pPeer>,<pLimit>,<pMinMs>,<pMaxMs>)handlerSet how long a peer may go unanswered before it times out.
  • enSetHostBandwidth(<pHost>,<pInBW>,<pOutBW>)handlerChange a host's bandwidth limits.
  • enLastError()handlerThe last error message from the native layer.
  • enBroadcastText(<pHost>,<pChannel>,<pText>,<pFlags>)handlerQueue a packet of text to every peer of a host.
  • enDeinitialize()handlerRelease the ENet library when your app is done with it.

enetxt helpers0.1.0script library

The poll pump and small helpers for enetxt. Put the enetHelpers stack in use (start using stack "enetHelpers") and register each host with enStartPolling: a timer services every registered host with enPoll and sends one message per event to your card or object, so an app handles plain messages instead of running its own pump.

  • Any platform
Downloadenetxt-helpers-0.1.0.lce · 9.6 KB
More about enetxt helpers

ENet makes no progress unless it is pumped, so this timer is the transport's heartbeat. The messages are enetConnect, enetDisconnect, enetReceive and enetError, each with the event array as its parameter, plus a catch-all enetEvent for every event.

Install first
enetxt
Topics
Networking
Author
Seth Morrow Software
Extension id
enetHelpers
Source
enetxt/examples/enet-helpers.livecodescript
Licences
LICENSE, THIRD-PARTY-LICENSES.md
SHA-256
b8e0ec0cc3aea30e4edd0c40204230a9789e06f8bd53908043c3048000cd09c2
All 6 handlers
  • enStopPolling <pHost>commandRemove a host from the pump, or stop the pump entirely.
  • enPollLastError()functionThe first failure the pump recorded since the last clear.
  • enPollClearErrorcommandClear the pump's recorded failure.
  • enStartPolling <pHost>,<pTarget>,<pIntervalMs>commandAdd a host to the pump and dispatch its events as messages.
  • enStateName(<pState>)functionA label for an ENet peer state number.
  • enFormatBytes(<pBytes>)functionFormat a byte count for display.
13

gamepadxt

One package

Gamepads for OpenXTalk0.1.0native library

Game controllers for xTalk: Xbox, PlayStation, Switch and most other pads, with one button layout, through SDL.

  • Win 64
  • Win 32
  • macOS
  • Linux 64
  • Linux 32
  • Linux ARM
Downloadgamepadxt-0.1.0.lce · 5.5 MB
More about Gamepads for OpenXTalk

Call gpStart once, then gpPoll from a timer (every 16 to 33 milliseconds for a game). Each connected controller is a pad handle, an integer; gpPads lists them. Read what is held with gpPadStick, gpPadAxes and gpPadButton, and read what happened (a button going down, a controller arriving or leaving) from gpEvents. Call gpStop when the stack closes.

Buttons are named by where they are: "south" is the bottom face button on every pad, whatever is printed on it (gpButtonNames lists them all, and gpPadButtonLabel gives the printed letter). A stick axis runs from -1 to 1, with left and up negative; a trigger runs from 0 to 1.

A pad handle stops working when its controller is unplugged, and using one that no longer works is harmless: getters return 0, false or empty and actions do nothing. Nothing here throws; gpLastError says why a call was refused.

gpPadRumble shakes a pad and gpPadSetLED colours its light, where the pad can. gpVirtualAttach makes a pad in software, for on-screen controls and for testing a game with no controller attached.

Install first
nothing
Topics
Gamepad, Controller, Games
Author
Seth Morrow Software
Extension id
org.openxtalk.library.gamepadxt
Source
gamepadxt/src/gamepadxt.lcb
Licences
LICENSE
SHA-256
e05a7b92273d5b94a1f22720f487c692fefc3548b565cfcdce93c793ec353eec
All 54 handlers
  • gpLastError()handlerSays why the last call was refused.
  • gpPadName(<pPad>)handlerReturns a pad's name.
  • gpPadButton(<pPad>,<pButton>)handlerTells whether a button is held down.
  • gpDroppedEvents()handlerReturns how many events were thrown away unread.
  • gpLibraryVersion()handlerReturns the name and version of the library underneath.
  • gpVirtualLED(<pPad>)handlerReturns the colour a virtual pad's light was last set to.
  • gpPadIsVirtual(<pPad>)handlerTells whether a pad was made by gpVirtualAttach.
  • gpVirtualSetAxis(<pPad>,<pAxis>,<pValue>)handlerMoves a stick or a trigger of a virtual pad.
  • gpPadStick(<pPad>,<pSide>)handlerReturns where a stick is, ready to use for movement.
  • gpPadHasRumble(<pPad>)handlerTells whether a pad can rumble.
  • gpVirtualRumble(<pPad>)handlerReturns what a virtual pad was last told to rumble at.
  • gpPadButtonLabel(<pPad>,<pButton>)handlerReturns what is printed on one of a pad's face buttons.
  • gpPadCount()handlerReturns the number of pads connected.
  • gpVirtualSetButton(<pPad>,<pButton>,<pDown>)handlerPresses or releases a button of a virtual pad.
  • gpPadMapping(<pPad>)handlerReturns the mapping line in use for a pad.
  • gpPadHasAxis(<pPad>,<pAxis>)handlerTells whether a pad has a certain axis.
  • gpABIVersion()handlerReturns the ABI number of the native library that is loaded.
  • gpDeadZone()handlerReturns the dead zone set by gpSetDeadZone.
  • gpPadSetPlayer(<pPad>,<pPlayer>)handlerSets the player number a pad shows on its lights.
  • gpPadHasLED(<pPad>)handlerTells whether a pad has a light whose colour can be set.
  • gpEventCount()handlerReturns the number of events waiting.
  • gpPoll()handlerReads every controller once.
  • gpVirtualDetach(<pPad>)handlerRemoves a virtual pad.
  • gpPadGUID(<pPad>)handlerReturns the identifier the mapping database knows a pad's model by.
  • gpAxisNames()handlerLists the axis names this library uses.
  • gpPadSetLED(<pPad>,<pRed>,<pGreen>,<pBlue>)handlerSets the colour of a pad's light.
  • gpButtonNames()handlerLists the button names this library uses.
  • gpPadPlayer(<pPad>)handlerReturns the player number a pad shows on its lights.
  • gpSetDeadZone(<pZone>)handlerSets the dead zone gpPadStick removes.
  • gpVirtualAttach(<pName>)handlerMakes a pad that exists only in software.
  • gpPadButtons(<pPad>)handlerReturns every button that is held down.
  • gpPadAxis(<pPad>,<pAxis>)handlerReturns one axis of a stick, or a trigger.
  • gpPadRumbleTriggers(<pPad>,<pLeft>,<pRight>,<pMilliseconds>)handlerMakes a pad's triggers rumble.
  • gpAssertCount()handlerReturns how many internal checks of the underlying library have failed.
  • gpStop()handlerStops reading game controllers.
  • gpPadVendor(<pPad>)handlerReturns the USB vendor number of a pad.
  • gpPadIsConnected(<pPad>)handlerTells whether a pad handle still names a connected pad.
  • gpPadBattery(<pPad>)handlerReturns how full a pad's battery is.
  • gpPads()handlerReturns the handles of every connected pad.
  • gpPadProduct(<pPad>)handlerReturns the USB product number of a pad.
  • gpPadHasButton(<pPad>,<pButton>)handlerTells whether a pad has a certain button.
  • gpPadHasTriggerRumble(<pPad>)handlerTells whether a pad has motors in its triggers.
  • gpAddMappingsFromFile(<pPath>)handlerLoads a whole file of mappings.
  • gpAddMapping(<pMapping>)handlerTeaches the library a pad it does not know, or corrects one.
  • gpPadPower(<pPad>)handlerReturns how a pad is powered.
  • gpPadAxes(<pPad>)handlerReturns all six axes of a pad in one call.
  • gpPadType(<pPad>)handlerReturns what kind of pad this is.
  • gpPadAt(<pIndex>)handlerReturns the handle of one connected pad, by position.
  • gpSetAxisEvents(<pStep>)handlerTurns events for sticks and triggers on or off.
  • gpAxisEvents()handlerReturns the step set by gpSetAxisEvents.
  • gpIsStarted()handlerTells whether controllers are being read.
  • gpStart()handlerStarts reading game controllers.
  • gpEvents()handlerReturns every waiting event and empties the queue.
  • gpPadRumble(<pPad>,<pLow>,<pHigh>,<pMilliseconds>)handlerMakes a pad rumble.
14

mailxt

One package

mailxt0.1.0script library

mailxt composes, sends and reads email. It builds standard messages with plain text, HTML, attachments and inline pictures, sends them over SMTP, reads a mailbox over IMAP, takes received messages apart, and signs in to Gmail and Microsoft 365 with OAuth2.

  • Any platform
Downloadmailxt-0.1.0.lce · 43.1 KB
More about mailxt

It uses the engine's own sockets, so it needs no extension and works in OXT-Beyond, HyperXTalk and LiveCode Community 9 on desktop and mobile. It does not work in a web page, which has no sockets.

Commands that talk to a server put their answer in it, and an error in

the result: text beginning "mailxt:". Functions do no network work.

The library defines the engine's socketClosed, socketError and socketTimeout messages for its own sockets and passes every other socket's message on.

Install first
nothing
Topics
Networking, Email
Author
mailxt contributors
Extension id
mailxt
Source
mailxt/src/mailxt.livecodescript
Licences
LICENSE
SHA-256
e846820e3645810ccff401cc10aae26fee1ec505857778c3d2bd64f0240a064c
All 46 handlers
  • mailImapSetFlags <pConnection>,<pUids>,<pFlags>,<pAdd>commandSets or clears flags on messages.
  • mailOAuthURL(<pProvider>,<pClientID>,<pRedirect>,<pState>,<pChallenge>,<pOptions>)functionBuilds the address of a provider's OAuth2 sign-in page.
  • mailEncodeHeader(<pText>)functionEncodes text for a mail header.
  • mailSocketClosed(<pSocket>)functionHandles the close of a mailxt socket.
  • mailImapDecodeFolder(<pName>)functionDecodes a folder name from IMAP's modified UTF-7.
  • mailTypeOfFile(<pName>)functionReturns the MIME type for a file name.
  • mailImapCommand <pConnection>,<pCommand>commandSends any IMAP command and returns the server's answer.
  • mailAttachFile <xMessage>,<pPath>,<pName>,<pType>,<pContentId>commandAdds a file to a message as an attachment.
  • mailImapFetch <pConnection>,<pUid>commandDownloads one whole message.
  • mailImapMove <pConnection>,<pUids>,<pFolder>commandMoves messages to another folder.
  • mailEncodeQP(<pText>)functionEncodes text as quoted-printable.
  • mailImapOpen <pAccount>commandOpens a connection to an IMAP server and signs in.
  • mailAccount(<pProvider>,<pService>,<pUser>,<pPassword>,<pToken>)functionMakes an account array for a well-known provider.
  • mailOAuthConnection <pSocket>commandAccepts the browser's connection after a sign-in.
  • mailOAuthRequest <pSocket>,<pData>commandReads the browser's request after a sign-in.
  • mailImapClose <pConnection>commandCloses an IMAP connection.
  • mailVersion()functionReturns the mailxt name and version.
  • mailSocketWritten <pSocket>commandNotes that a write on a mailxt socket has gone out.
  • mailSend <pAccount>,<pMessage>commandSends one message: connects, signs in, sends and disconnects.
  • mailImapSearch <pConnection>,<pCriteria>commandFinds messages in the open folder.
  • mailProvider(<pName>)functionReturns the settings of a well-known mail provider.
  • mailOAuthSignIn <pProvider>,<pClientID>,<pClientSecret>,<pOptions>commandSigns in to Gmail or Microsoft 365 in the browser, with OAuth2.
  • mailLog()functionReturns the protocol log.
  • mailAttachData <xMessage>,<pData>,<pName>,<pType>,<pContentId>commandAdds data to a message as an attachment.
  • mailImapEncodeFolder(<pName>)functionEncodes a folder name the way IMAP spells it.
  • mailSetLog <pOn>commandTurns the protocol log on or off.
  • mailSocketError(<pSocket>,<pError>)functionHandles an error on a mailxt socket.
  • mailSocketConnected <pSocket>commandNotes that a mailxt socket has connected.
  • mailOAuthCancelcommandStops a sign-in that is waiting for the browser.
  • mailSmtpOpen <pAccount>commandOpens a connection to an SMTP server and signs in.
  • mailParse(<pRaw>)functionTakes a received message apart.
  • mailAddressOf(<pText>)functionReturns the bare email address from a name and address.
  • mailOAuthRefresh <pProvider>,<pClientID>,<pClientSecret>,<pRefreshToken>,<pOptions>commandGets a new access token with a refresh token.
  • mailXOAuth2(<pUser>,<pToken>)functionReturns the SASL XOAUTH2 sign-in string for an OAuth2 token.
  • mailImapSelect <pConnection>,<pFolder>,<pReadOnly>commandOpens a folder, so that the commands that follow work in it.
  • mailDecodeQP(<pText>)functionDecodes quoted-printable text into the bytes it encodes.
  • mailSocketRead <pSocket>,<pData>commandTakes data that arrived on a mailxt socket.
  • mailRecipients(<pMessage>)functionReturns every address a message is sent to.
  • mailImapFolders <pConnection>commandLists a mailbox's folders.
  • mailDecodeHeader(<pText>)functionDecodes a mail header into readable text.
  • mailParseAddresses(<pList>)functionSplits a list of email addresses.
  • mailSmtpSend <pConnection>,<pMessage>,<pFrom>,<pRecipients>commandSends a message over an open SMTP connection.
  • mailSocketTimeout(<pSocket>)functionHandles the engine's timeout message for a mailxt socket.
  • mailCompose(<pMessage>)functionBuilds a message ready to send.
  • mailSmtpClose <pConnection>commandCloses an SMTP connection.
  • mailImapList <pConnection>,<pUids>commandLists messages: who sent them, the subject, the date.
15

midixt

One package

MIDI for OpenXTalk0.1.0native library

Sends and receives MIDI: the messages keyboards, controllers, synthesizers, lighting desks and music software use to talk to each other.

  • Win 64
  • Win 32
  • macOS
  • Linux 64
  • Linux 32
  • Linux ARM
Downloadmidixt-0.1.0.lce · 1.6 MB
More about MIDI for OpenXTalk

Open a port with midiOpenOutput or midiOpenInput (their numbers come from midiOutputPorts and midiInputPorts), or make one of your own that other programs can connect to with midiOpenVirtualOutput and midiOpenVirtualInput (macOS and Linux). Send with midiNoteOn, midiControlChange and the other senders, or any bytes at all with midiSend. Incoming MIDI waits in a queue until you collect it with midiPoll, which a timer calls; the midi-helpers script (examples/midi-helpers.livecodescript) runs that timer for you and sends an `scNoteOn`, `scMidiCC` or other message for each event. Close every port with midiClose.

Nothing here throws for a mistake in what you pass. A port that will not open returns 0, and midiLastError says why.

Built on RtMidi by Gary P. Scavone.

Install first
nothing
Topics
MIDI, Music, Show control
Author
Seth Morrow Software
Extension id
org.openxtalk.library.midi
Source
midixt/src/midi.lcb
Licences
LICENSE, THIRD-PARTY-LICENSES.md
SHA-256
e274e19b94d92d044b883c006edb855f3c06d8959a4bc407bf597a8d6a8ae9ce
All 21 handlers
  • midiDecode(<pBytes>)handlerReads one MIDI message into the same event array midiPoll returns.
  • midiOutputPorts()handlerLists the MIDI outputs this computer has.
  • midiLoadNativeLib(<pPath>)handlerLoads the native library from a path you choose (Linux).
  • midiOpenOutput(<pIndex>)handlerOpens a MIDI output so that messages can be sent to it.
  • midiPoll(<pHandle>)handlerCollects the messages an input has received since the last call.
  • midiControlChange(<pHandle>,<pChannel>,<pController>,<pValue>)handlerSends a Control Change.
  • midiProgramChange(<pHandle>,<pChannel>,<pProgram>)handlerSends a Program Change.
  • midiSend(<pHandle>,<pBytes>)handlerSends any MIDI bytes to an output.
  • midiOpenVirtualOutput(<pName>)handlerMakes a new MIDI output that other programs can receive from (macOS and Linux).
  • midiPitchBend(<pHandle>,<pChannel>,<pValue14bit>)handlerSends a Pitch Bend.
  • midiChannelPressure(<pHandle>,<pChannel>,<pValue>)handlerSends Channel Pressure (mono aftertouch).
  • midiLoadNativeLibError()handlerSays why midiLoadNativeLib could not load the library.
  • midiNoteOff(<pHandle>,<pChannel>,<pNote>,<pVelocity>)handlerSends a Note Off.
  • midiLastError()handlerSays why the last MIDI call failed.
  • midiClose(<pHandle>)handlerCloses a MIDI port.
  • midiIgnoreTypes(<pHandle>,<pSysex>,<pTime>,<pSense>)handlerChooses which kinds of message an input skips.
  • midiInputPorts()handlerLists the MIDI inputs this computer has.
  • midiNoteOn(<pHandle>,<pChannel>,<pNote>,<pVelocity>)handlerSends a Note On.
  • midiOpenVirtualInput(<pName>)handlerMakes a new MIDI input that other programs can send to (macOS and Linux).
  • midiVersion()handlerReturns the ABI number of the native library that is loaded.
  • midiOpenInput(<pIndex>)handlerOpens a MIDI input so that its messages can be read.
16

mssqlxt

One package

SQL Server for OpenXTalk0.1.0native library

Read and write Microsoft SQL Server and Azure SQL databases from a stack. Run queries, call stored procedures, and get results as text you can put straight into a field.

  • Win 64
  • Win 32
  • macOS
  • Linux 64
  • Linux 32
  • Linux ARM
  • Android ARM64
  • Android ARM32
  • Android x86-64
  • Android x86
Downloadmssqlxt-0.1.0.lce · 26.3 MB
More about SQL Server for OpenXTalk

Connect with mssqlConnect, then run SQL: mssqlQueryText returns a whole result as a tab-delimited table in one call, mssqlQuery keeps a result to read value by value (with every result set of a batch), and mssqlExecute runs statements that return no rows. Put values a user typed into SQL with a prepared statement (mssqlPrepare and the bind calls), never by joining text. A long query can run while your stack stays responsive (mssqlQueryStart). Close what you open, and call mssqlCloseAll when your stack closes.

Connections are encrypted unless you ask otherwise. Log in with a SQL Server login; Windows logins are not supported. Rows and columns are numbered from 1. A handle of 0, -1 or empty means a call was refused; mssqlLastError says why, and nothing here stops your script with an error.

mssqlxt talks to the server through FreeTDS, which ships beside it as a library of its own (freetds.dll, freetds.so or freetds.dylib) under the GNU LGPL. There is no web version: a browser cannot connect to SQL Server.

Install first
nothing
Topics
Database, SQL, SQL Server, Azure
Author
OpenXTalk
Extension id
org.openxtalk.library.mssqlxt
Source
mssqlxt/src/mssqlxt.lcb
Licences
LICENSE, OpenSSL-LICENSE.txt, THIRD-PARTY-LICENSES.md
SHA-256
a5d4170faa2406a5d1e38a5c9f01a5b83f00c6f30c230d37d530bca05acdfadb
All 43 handlers
  • mssqlResultFree(<pResult>)handlerFrees a result.
  • mssqlResultIsNull(<pResult>,<pRow>,<pColumn>)handlerSays whether a value is NULL.
  • mssqlQuoteName(<pText>)handlerReturns a text as a SQL Server name.
  • mssqlIsLoaded()handlerSays whether the FreeTDS library could be loaded.
  • mssqlLibraryVersion()handlerReturns the versions of mssqlxt and of the FreeTDS library beside it.
  • mssqlBindNumber(<pStatement>,<pIndex>,<pValue>)handlerBinds a number to a parameter of a prepared statement.
  • mssqlBindBlob(<pStatement>,<pIndex>,<pData>)handlerBinds binary data to a parameter of a prepared statement.
  • mssqlQueryCancel(<pQuery>)handlerStops a running query.
  • mssqlShutdown()handlerCloses everything and unloads nothing: a fresh start for mssqlxt.
  • mssqlConnect(<pServer>,<pUser>,<pPassword>,<pDatabase>,<pOptions>)handlerConnects to a SQL Server or Azure SQL database.
  • mssqlResultSetCount(<pResult>)handlerReturns how many result sets a result holds.
  • mssqlResultColumnName(<pResult>,<pColumn>)handlerReturns a column's name.
  • mssqlResultText(<pResult>,<pFirst>,<pCount>,<pFlags>)handlerReturns rows of the selected result set as a tab-delimited table.
  • mssqlQueryFinish(<pQuery>)handlerTakes the result of a running query.
  • mssqlPrepare(<pConnection>,<pSQL>)handlerPrepares SQL with parameters, so values go in without being joined into the text.
  • mssqlQuoteText(<pText>)handlerReturns a text as a SQL Server Unicode string literal.
  • mssqlQueryStart(<pConnection>,<pSQL>)handlerStarts a query that runs while your stack stays responsive.
  • mssqlStmtExecute(<pStatement>)handlerRuns a prepared statement that returns no rows you need.
  • mssqlQuery(<pConnection>,<pSQL>)handlerRuns a query and keeps its results.
  • mssqlBindBoolean(<pStatement>,<pIndex>,<pValue>)handlerBinds a boolean to a parameter of a prepared statement.
  • mssqlClose(<pConnection>)handlerCloses a connection and everything that came from it.
  • mssqlStmtQuery(<pStatement>)handlerRuns a prepared statement and keeps its results.
  • mssqlQueryStep(<pQuery>,<pMilliseconds>)handlerWaits a little for a running query's answer.
  • mssqlStmtParamCount(<pStatement>)handlerReturns the highest parameter number bound so far.
  • mssqlLastError()handlerReturns why the last refused call was refused.
  • mssqlResultNumber(<pResult>,<pRow>,<pColumn>)handlerReturns one value of the selected result set as a number.
  • mssqlResultValue(<pResult>,<pRow>,<pColumn>)handlerReturns one value of the selected result set as text.
  • mssqlOpenCount()handlerReturns how many connections are open.
  • mssqlClearBindings(<pStatement>)handlerUnbinds every parameter of a prepared statement.
  • mssqlResultRowsChanged(<pResult>)handlerReturns how many rows the batch of a result changed.
  • mssqlABIVersion()handlerReturns the ABI number of the native library that is loaded.
  • mssqlMessages()handlerReturns the informational messages the server has sent since you last asked.
  • mssqlExecute(<pConnection>,<pSQL>)handlerRuns SQL that returns no rows you need.
  • mssqlBindText(<pStatement>,<pIndex>,<pText>)handlerBinds a text to a parameter of a prepared statement.
  • mssqlStmtFree(<pStatement>)handlerFrees a prepared statement.
  • mssqlResultColumnType(<pResult>,<pColumn>)handlerReturns a column's SQL Server type.
  • mssqlBindNull(<pStatement>,<pIndex>)handlerBinds NULL to a parameter of a prepared statement.
  • mssqlResultSelect(<pResult>,<pSet>)handlerChooses which result set of a result the other result calls read.
  • mssqlQueryText(<pConnection>,<pSQL>,<pFlags>)handlerRuns a query and returns its result as a tab-delimited table.
  • mssqlResultColumnCount(<pResult>)handlerReturns how many columns the selected result set has.
  • mssqlIsOpen(<pConnection>)handlerSays whether a connection is open and still reaches its server.
  • mssqlResultRowCount(<pResult>)handlerReturns how many rows the selected result set has.
  • mssqlCloseAll()handlerCloses every open connection.
17

NostrXT

2 packages, in install order

NostrXT0.1.0script library

NostrXT is the client side of the Nostr protocol for OpenXTalk, written in pure script: NIP-01 events (build, canonical serialization, id, BIP-340 sign and verify), NIP-19 bech32 entities and NIP-21 nostr: URIs, NIP-44 v2 encrypted payloads, NIP-01 filters and relay messages, NIP-13 proof of work, NIP-05 and NIP-11 parsing, and the pure-compute half of an RFC 6455 websocket client.

  • Any platform
Downloadnostrxt-0.1.0.lce · 61.0 KB
More about NostrXT

This core library does no I/O and holds no connection state. The relay client (the NostrXT Relay Client library, nxr handlers) owns the sockets and composes it, so load this library first.

It adds no cryptography of its own. SHA-256, Schnorr signatures, x-only keys, ECDH and HMAC come from CoinXT; randomness, constant-time compare and the NIP-44 cipher come from SodiumXT. A missing extension disables exactly the features that need it (see nxProbeCapabilities).

No handler here ever throws. A function that fails returns empty (or false for a predicate) and records the reason, which nxLastError returns. Ids, pubkeys, secret keys and signatures cross this API as lowercase hex strings.

Install first
nothing
Works with
CoinXT, SodiumXT
Topics
Networking, Nostr
Author
Seth Morrow Software
Extension id
nostrxt
Source
nostrxt/src/nostrxt.livecodescript
Licences
LICENSE
SHA-256
68425fe17097eae61d8c63cf801186261a7e6d123552915c1e26f56491b6e5f7
All 81 handlers
  • nxWsAcceptFor(<pKeyB64>)functionReturns the Sec-WebSocket-Accept value a server must answer with.
  • nxUnixNow()functionReturns the current unix time in seconds.
  • nxPowCheck(<pEvent>,<pMinBits>)functionTells whether an event meets a NIP-13 proof-of-work target.
  • nxProbeCapabilities()functionReports which extensions NostrXT can use, as a cached array.
  • nxEventVerify(<pEvent>)functionChecks an event's id and signature.
  • nxUriEncode(<pEntity>)functionBuilds a NIP-21 nostr: URI for a shareable entity.
  • nxNoteEncode(<pIdHex>)functionEncodes an event id as a note.
  • nxBech32Decode(<pText>)functionDecodes a bech32 or bech32m string.
  • nxContactsParse(<pEvent>)functionReturns the followed public keys of a kind 3 contact list.
  • nxRelayListParse(<pEvent>)functionReturns the relays of a kind 10002 relay list.
  • nxNip44Encrypt(<pSeckeyHex>,<pPubkeyHex>,<pPlaintext>,<pNonceHex>)functionEncrypts a message for another Nostr key with NIP-44 v2.
  • nxClientReq(<pSubId>,<pFiltersJson>)functionBuilds a NIP-01 REQ message.
  • nxNip44ConversationKey(<pSeckeyHex>,<pPubkeyHex>)functionDerives the NIP-44 v2 conversation key between two keys.
  • nxNsecEncode(<pSeckeyHex>)functionEncodes a secret key as an nsec.
  • nxReplyBuild(<pParentEvent>,<pContent>,<pCreatedAt>)functionBuilds an unsigned kind 1 reply with NIP-10 marked tags.
  • nxNoteDecode(<pText>)functionDecodes a note to a hex event id.
  • nxB64Decode(<pText>)functionDecodes strict standard base64 back to binary data.
  • nxNip44Decrypt(<pSeckeyHex>,<pPubkeyHex>,<pPayload>)functionDecrypts a NIP-44 v2 payload.
  • nxNprofileEncode(<pPubkeyHex>,<pRelayLines>)functionEncodes a public key and relay hints as an nprofile.
  • nxHexDecode(<pHex>)functionConverts hex text (either case) to binary data.
  • nxWsFrameDecode(<pBuffer>)functionParses one websocket frame at the start of a buffer.
  • nxClientEvent(<pEvent>)functionBuilds a NIP-01 EVENT message for a signed event.
  • nxNsecDecode(<pText>)functionDecodes an nsec to a hex secret key.
  • nxVersion()functionReturns the NostrXT name and version.
  • nxNip44PaddedLen(<pLen>)functionReturns the NIP-44 v2 padded length for a plaintext length.
  • nxLastError()functionReturns the reason the most recent failing nx call recorded.
  • nxB64Encode(<pData>)functionEncodes binary data as standard base64 on one line.
  • nxEventHasValidShape(<pEvent>)functionChecks that an event array has the structure NIP-01 requires.
  • nxCtEqualHex(<pAHex>,<pBHex>)functionCompares two hex strings without exiting early on the first difference.
  • nxNip44MessageKeys(<pConvKeyHex>,<pNonceHex>)functionDerives the NIP-44 v2 per-message keys from a conversation key and nonce.
  • nxNip05Url(<pIdentifier>)functionReturns the URL to fetch to check a NIP-05 identifier.
  • nxFilterMatches(<pFilterJson>,<pEvent>)functionTells whether an event matches a NIP-01 filter.
  • nxNaddrDecode(<pText>)functionDecodes an naddr.
  • nxKeyPublic(<pSeckeyHex>)functionDerives the Nostr public key for a secret key.
  • nxPowDifficulty(<pIdHex>)functionReturns the NIP-13 proof-of-work difficulty of an event id.
  • nxKeyGenerate()functionGenerates a new Nostr secret key.
  • nxContactsBuild(<pPubkeyLines>,<pCreatedAt>)functionBuilds an unsigned kind 3 contact list.
  • nxEventBuild(<pKind>,<pContent>,<pTags>,<pCreatedAt>)functionBuilds an unsigned Nostr event.
  • nxEventToJson(<pEvent>)functionConverts an event array to its wire-format JSON object.
  • nxRelayInfoParse(<pJsonBody>)functionReads the common NIP-11 relay information fields.
  • nxTagValues(<pEvent>,<pTagName>)functionReturns the values of every tag with a given name.
  • nxNaddrEncode(<pIdentifier>,<pPubkeyHex>,<pKind>,<pRelayLines>)functionEncodes the coordinate of an addressable event as an naddr.
  • nxJsonType(<pJson>,<pPath>)functionReturns the JSON type of the value at a path.
  • nxNeventEncode(<pIdHex>,<pRelayLines>,<pAuthorHex>,<pKind>)functionEncodes an event pointer as an nevent.
  • nxClientAuth(<pEvent>)functionBuilds a NIP-42 AUTH message for a signed authentication event.
  • nxMetadataBuild(<pName>,<pAbout>,<pPicture>,<pCreatedAt>)functionBuilds an unsigned kind 0 user metadata event.
  • nxJsonCount(<pJson>,<pPath>)functionCounts the elements of a JSON array or the members of a JSON object.
  • nxBech32Encode(<pHrp>,<pHex>,<pSpec>)functionEncodes hex data as a bech32 or bech32m string.
  • nxRelayListBuild(<pRelayLines>,<pCreatedAt>)functionBuilds an unsigned kind 10002 relay list (NIP-65).
  • nxDeleteBuild(<pIdLines>,<pReason>,<pCreatedAt>)functionBuilds an unsigned kind 5 deletion request (NIP-09).
  • nxNpubEncode(<pPubkeyHex>)functionEncodes a public key as an npub.
  • nxNpubDecode(<pText>)functionDecodes an npub to a hex public key.
  • nxWsUrlParse(<pUrl>)functionSplits a ws:// or wss:// URL into its parts.
  • nxHexEncode(<pData>)functionConverts binary data to lowercase hex.
  • nxClientClose(<pSubId>)functionBuilds a NIP-01 CLOSE message.
  • nxIsHex(<pText>,<pLen>)functionTells whether text is all hex digits, optionally of an exact length.
  • nxTagsToText(<pTags>)functionConverts a nested tag array to text, one tag per line.
  • nxEntityDecode(<pText>)functionDecodes any NIP-19 entity, with or without a nostr: prefix.
  • nxTagCount(<pEvent>)functionReturns how many tags an event carries.
  • nxTagFirst(<pEvent>,<pTagName>)functionReturns the value of the first tag with a given name.
  • nxJsonGet(<pJson>,<pPath>)functionReturns the value at a path in a JSON document.
  • nxUriDecode(<pUri>)functionDecodes a NIP-21 nostr: URI.
  • nxWsFrameEncode(<pOpcode>,<pPayload>,<pMaskHex>)functionBuilds one masked client websocket frame.
  • nxTagsFromText(<pText>)functionBuilds a nested tag array from text, one tag per line.
  • nxEventSerialize(<pEvent>)functionReturns the canonical NIP-01 serialization of an event.
  • nxNprofileDecode(<pText>)functionDecodes an nprofile.
  • nxNeventDecode(<pText>)functionDecodes an nevent.
  • nxFilterBuild(<pFilter>)functionBuilds a NIP-01 filter object from an array.
  • nxReactionBuild(<pTargetEvent>,<pContent>,<pCreatedAt>)functionBuilds an unsigned kind 7 reaction (NIP-25).
  • nxNip05Verify(<pJsonBody>,<pUserName>,<pPubkeyHex>)functionTells whether a fetched nostr.json maps a name to a public key.
  • nxJsonEscape(<pText>)functionEscapes text for a JSON string the way NIP-01 requires.
  • nxKeyIsValid(<pSeckeyHex>)functionTells whether hex text is a valid secp256k1 secret key.
  • nxEventFromJson(<pJson>)functionParses a wire-format event object into an event array.
  • nxMetadataParse(<pEvent>)functionReads the common profile fields from a kind 0 event.
  • nxWsHandshakeRequest(<pHost>,<pPort>,<pPath>,<pKeyB64>,<pSecure>)functionBuilds the HTTP upgrade request that opens a websocket.
  • nxAuthBuild(<pRelayUrl>,<pChallenge>,<pCreatedAt>)functionBuilds an unsigned kind 22242 NIP-42 authentication event.
  • nxEventId(<pEvent>)functionComputes the NIP-01 id of an event.
  • nxRelayParse(<pWire>)functionParses one relay-to-client message.
  • nxNip44HasCipher()functionTells whether the NIP-44 cipher is available right now.
  • nxTagItem(<pEvent>,<pIndex>)functionReturns one tag of an event as tab-separated text.
  • nxEventSign(<pEvent>,<pSeckeyHex>,<pAuxHex>)functionSigns an event, filling in its pubkey, id and signature.

NostrXT relay client0.1.0script library

The NostrXT Relay Client is a websocket (RFC 6455) client over engine sockets that speaks the NIP-01 relay protocol: it sends REQ, CLOSE, EVENT and AUTH, and receives EVENT, OK, EOSE, CLOSED, NOTICE and AUTH. It composes the NostrXT core library, so load that first; this library owns only the sockets, buffers and relay handles.

  • Any platform
Downloadnostrxt-relay-0.1.0.lce · 20.7 KB
More about NostrXT relay client

In a web page (the platform is "HTML5": OXT-Beyond's web IDE or a web standalone), which has no engine sockets, each relay is the browser's own WebSocket instead, driven through JavaScript; the handles, commands and callbacks are the same.

Each relay is an integer handle from nxrConnect. Commands report through the result: empty on success, or text starting "NostrXT relay:" for a refusal. Everything that happens later arrives through the callback handler you register with nxrSetCallback, dispatched to the object set by nxrInit.

Inbound events are verified (id and signature) before delivery unless you turn that off with nxrSetVerify. Call nxrShutdown from closeStack: there is no automatic unload.

The library defines the engine's socketError, socketClosed and socketTimeout messages and passes on any that are not for its own sockets. If your stack script handles those messages too, it must pass the ones that are not its own, or another library will hang.

Install first
NostrXT
Topics
Networking, Nostr
Author
Seth Morrow Software
Extension id
nostr-relay
Source
nostrxt/src/nostr-relay.livecodescript
Licences
LICENSE
SHA-256
43f8c09fb46bae74aef067e20bce800379b64405bc1e5cc9250dd26077fd304e
All 21 handlers
  • nxrSocketClosed(<pSocketID>)functionHandles a socketClosed message if it belongs to one of this library's relays.
  • nxrShutdowncommandCloses every relay connection.
  • nxrAuth <pRelay>,<pSignedEvent>commandAnswers a relay's NIP-42 authentication challenge.
  • nxrSocketError(<pSocketID>,<pError>)functionHandles a socketError message if it belongs to one of this library's relays.
  • nxrPing <pRelay>commandSends a websocket ping to a relay.
  • nxrWebPollcommandDelivers the events a web page's relay WebSockets have queued.
  • nxrPublish <pRelay>,<pEvent>commandSends a signed event to a relay.
  • nxrConnect <pUrl>commandOpens a connection to a Nostr relay.
  • nxrDisconnect <pRelay>commandCloses a relay connection.
  • nxrUnsubscribe <pRelay>,<pSubId>commandSends a CLOSE to end a subscription.
  • nxrVersion()functionReturns the relay client's version.
  • nxrState(<pRelay>)functionReturns the connection state of a relay.
  • nxrSetCallback <pRelay>,<pHandlerName>commandRegisters the handler that receives a relay's callbacks.
  • nxrInit <pOwner>commandSets the object whose script receives relay callbacks.
  • nxrSocketTimeout(<pSocketID>)functionHandles a socketTimeout message if it belongs to one of this library's relays.
  • nxrSendRaw <pRelay>,<pText>commandSends one text message to a relay exactly as given.
  • nxrChallenge(<pRelay>)functionReturns the most recent NIP-42 challenge a relay sent.
  • nxrOpenRelays()functionLists every live relay handle.
  • nxrSubscribe <pRelay>,<pSubId>,<pFiltersJson>commandSends a REQ to open a subscription on a relay.
  • nxrUrl(<pRelay>)functionReturns the URL a relay was opened with.
  • nxrSetVerify <pRelay>,<pVerify>commandTurns event verification on or off for one relay.
18

ocrxt

One package

OCR for OpenXTalk0.1.0native library

Read the text in a picture: a scanned page, a photo of a receipt, a screenshot. ocrxt is Tesseract, the open-source OCR engine, inside your stack, with no service to call.

  • Win 64
  • Win 32
  • macOS
  • Linux 64
  • Linux 32
  • Linux ARM
  • Android ARM64
  • Android ARM32
  • Android x86-64
  • Android x86
Downloadocrxt-0.1.0.lce · 20.6 MB
More about OCR for OpenXTalk

Download the language data you need once (ocrLanguageURL names each file), then open an engine with ocrOpen, give it a picture with ocrSetImageFile, ocrSetImageBytes or ocrSetImage (an image's imageData), and read the result: ocrText for plain text, ocrItems for each word or line with its confidence and position, or hOCR, TSV and ALTO for other programs. ocrRecognizeStart reads a big page in the background while your stack stays responsive. ocrPDFBegin writes a searchable PDF of the pages you read.

A handle of 0, -1 or empty means a call was refused; ocrLastError says why, and nothing here stops your script with an error. Close what you open, and call ocrCloseAll when your stack closes. There is no web version yet.

Install first
nothing
Topics
OCR, Text, Images, PDF
Author
OpenXTalk
Extension id
org.openxtalk.library.ocrxt
Source
ocrxt/src/ocrxt.lcb
Licences
LICENSE, THIRD-PARTY-LICENSES.md
SHA-256
56767331848bfc33c3bf2cf793006d4d32b8fa92504cdd301daed9e45d50609b
All 36 handlers
  • ocrIsOpen(<pEngine>)handlerSays whether an engine handle is open.
  • ocrLanguageURL(<pLanguage>,<pKind>)handlerReturns the address to download a language's data from.
  • ocrImageWidth(<pEngine>)handlerReturns the width of the engine's picture.
  • ocrPDFAddPage(<pEngine>)handlerAdds the engine's picture, with its text, as the PDF's next page.
  • ocrLibraryVersion()handlerReturns the versions of ocrxt, Tesseract and Leptonica inside the library.
  • ocrCloseAll()handlerCloses every open engine.
  • ocrHOCR(<pEngine>,<pPage>)handlerReturns the text read from the picture as hOCR.
  • ocrPageMode(<pEngine>)handlerReturns the engine's page segmentation mode.
  • ocrClose(<pEngine>)handlerCloses an engine.
  • ocrImageHeight(<pEngine>)handlerReturns the height of the engine's picture.
  • ocrSetPageMode(<pEngine>,<pMode>)handlerSets how the engine finds text on the page.
  • ocrSetRectangle(<pEngine>,<pLeft>,<pTop>,<pWidth>,<pHeight>)handlerReads only a part of the picture.
  • ocrRecognize(<pEngine>)handlerReads the picture now.
  • ocrPDFEnd(<pEngine>)handlerFinishes the PDF and closes its file.
  • ocrALTO(<pEngine>,<pPage>)handlerReturns the text read from the picture as ALTO XML.
  • ocrAvailableLanguages(<pFolder>)handlerLists the languages a folder holds.
  • ocrOpenCount()handlerReturns how many engines are open.
  • ocrRecognizeStep(<pEngine>,<pMilliseconds>)handlerWaits a little for a background recognition and says how it stands.
  • ocrRecognizeCancel(<pEngine>)handlerStops a background recognition.
  • ocrSetResolution(<pEngine>,<pPPI>)handlerTells the engine the picture's resolution.
  • ocrLanguages(<pEngine>)handlerReturns the languages an engine loaded.
  • ocrGetVariable(<pEngine>,<pName>)handlerReturns one of Tesseract's parameters on an engine.
  • ocrItems(<pEngine>,<pLevel>)handlerReturns the words (or lines, characters...) read, each with its confidence and place.
  • ocrSetImage(<pEngine>,<pPixels>,<pWidth>,<pHeight>,<pFormat>)handlerGives the engine a picture's pixels to read.
  • ocrSetImageFile(<pEngine>,<pPath>)handlerGives the engine a picture file to read.
  • ocrLastError()handlerReturns why the last refused call was refused.
  • ocrTSV(<pEngine>,<pPage>)handlerReturns the text read from the picture as Tesseract's TSV table.
  • ocrSetImageBytes(<pEngine>,<pData>)handlerGives the engine a picture file's bytes to read.
  • ocrRecognizeProgress(<pEngine>)handlerReturns how far a background recognition has come.
  • ocrOpen(<pFolder>,<pLanguages>,<pOptions>)handlerOpens a recognition engine for one or more languages.
  • ocrRecognizeStart(<pEngine>)handlerStarts reading the picture in the background.
  • ocrText(<pEngine>)handlerReturns the text read from the picture.
  • ocrSetVariable(<pEngine>,<pName>,<pValue>)handlerSets one of Tesseract's parameters on an engine.
  • ocrMeanConfidence(<pEngine>)handlerReturns how sure the engine is of the text, on average.
  • ocrABIVersion()handlerReturns the ABI number of the native library that is loaded.
  • ocrPDFBegin(<pEngine>,<pPath>,<pTitle>,<pTextOnly>)handlerBegins a searchable PDF.
19

OnionXT

2 packages, in install order

OnionXT1.0.0script library

A Tor transport and rendezvous layer for OpenXTalk. OnionXT dials any TCP endpoint through Tor's SOCKS5 proxy and creates and reaches v3 onion services, whose address is an ed25519 public key. It talks to a tor daemon that is already running on this machine (SOCKS 127.0.0.1:9050, control 127.0.0.1:9051 by default); it does not embed or ship Tor.

  • Any platform
Downloadonionxt-1.0.0.lce · 42.3 KB
More about OnionXT

Everything is asynchronous. Commands that open something (oxDial, oxCreateService) report a handle in the result at once, and the outcome arrives later through the callbacks you register: a status callback, a per-stream callback and a peer callback. Commands report empty or a handle on success and an "OnionXT: ..." string on failure; every wire error fails closed and tears the resource down.

OnionXT adds no cryptography. The payload is yours to seal (with SodiumXT), and the deterministic-address, SAFECOOKIE and offline-checksum features compose SodiumXT handlers (ABI 6 or later; ABI 7 for the checksum). Free what you open with oxShutdown, for example on closeStack.

Install first
nothing
Works with
SodiumXT
Topics
Networking, Tor
Author
Seth Morrow Software
Extension id
onionxt
Source
onionxt/src/onionxt.livecodescript
Licences
LICENSE
SHA-256
095cf0f7bcb090759b7399a924c065147f98c1f68bed23be2bf6bf8709806582
All 37 handlers
  • oxBootstrapProgress()functionReturn tor's bootstrap progress.
  • oxDisconnectControlcommandClose the control connection.
  • oxSocketError(<pSocketID>,<pError>)functionHandle a socketError message if the socket belongs to OnionXT.
  • oxRemoveService <pService>commandUnpublish an onion service and stop its listener.
  • oxTransportInfo()functionDescribe the OnionXT transport and which optional features are available.
  • oxSocketTimeout(<pSocketID>)functionHandle a socketTimeout message if the socket belongs to OnionXT.
  • oxIsValidAddress(<pOnionAddress>)functionCheck that text is a well-formed v3 .onion address.
  • oxStopTorcommandAsk tor to shut down, then disconnect the control connection.
  • oxTransportListen <pSeed>,<pVirtualPort>,<pLocalPort>commandListen at a seed-derived address through the transport seam.
  • oxTransportDial <pAddress>,<pPort>commandDial a rendezvous address through the transport seam.
  • oxSetStatusCallback <pHandlerName>commandRegister the handler that receives OnionXT status updates.
  • oxShutdowncommandClose every stream, remove every service and disconnect control.
  • oxWrite <pStream>,<pData>commandWrite bytes to an open stream.
  • oxAddressFromPublicKey(<pEd25519Pub>)functionReturn the v3 .onion address for an ed25519 public key.
  • oxCreateService <pVirtualPort>,<pLocalPort>commandPublish a new onion service with a key that tor generates.
  • oxIsControlAuthenticated()functionTell whether the control connection has authenticated.
  • oxCreateServiceFromSeed <pSeed>,<pVirtualPort>,<pLocalPort>commandPublish an onion service whose address is derived from a seed.
  • oxLaunchTor <pTorPath>,<pDataDir>,<pSocksPort>,<pControlPort>commandWrite a torrc and start a tor process for this app (optional Mode B).
  • oxCloseStream <pStream>commandClose a stream and forget its handle.
  • oxSetControlPort <pPort>commandSet the local port of tor's control connection.
  • oxTransportRecv <pStream>,<pHandlerName>commandRegister where a transport stream's inbound bytes are delivered.
  • oxVersion()functionReturn the OnionXT version, and tor's version once it is known.
  • oxPublishService <pVirtualPort>,<pLocalPort>commandPublish an onion service that forwards to a local server you run yourself.
  • oxSetCallbackOwner <pObjectLongId>commandName the object whose script holds your OnionXT callbacks.
  • oxServiceIsReady(<pService>)functionTell whether a service's descriptor has been uploaded.
  • oxDial <pHost>,<pPort>commandOpen a stream to a host and port through Tor.
  • oxPublicKeyFromAddress(<pOnionAddress>)functionReturn the ed25519 public key inside a v3 .onion address.
  • oxStreamState(<pStream>)functionReturn the current state of a stream.
  • oxSetSocksPort <pPort>commandSet the local port of Tor's SOCKS proxy.
  • oxSetControlPassword <pPassword>commandStore the password for tor's HASHEDPASSWORD control authentication.
  • oxServiceAddress(<pService>)functionReturn the .onion address of a service.
  • oxTransportSend <pStream>,<pData>commandSend bytes on a transport stream.
  • oxSetStreamCallback <pStream>,<pHandlerName>commandRegister the handler that receives a stream's events and data.
  • oxSocketClosed(<pSocketID>)functionHandle a socketClosed message if the socket belongs to OnionXT.
  • oxIsReady()functionTell whether tor is fully bootstrapped and the control connection is authenticated.
  • oxConnectControlcommandOpen and authenticate the control connection to the tor daemon.
  • oxSetPeerCallback <pHandlerName>commandRegister the handler called when a peer connects to one of your onion services.

OnionXT HTTP server1.0.0script library

A small HTTP/1.1 server for Tor onion services, built entirely on OnionXT's accept loop, so it runs wherever OnionXT runs and needs no other HTTP library. Load OnionXT too, connect and authenticate its control port, then call oxhServe to publish an onion that answers HTTP.

  • Any platform
Downloadonionxt-httpd-1.0.0.lce · 11.7 KB
More about OnionXT HTTP server

Requests go to a registered route (oxhRoute) first, then to static files under a folder (oxhSetRoot or oxhServeFiles), and otherwise get a 404. Each connection serves one request and is closed after the response (Connection: close). OnionXT has already refused non-loopback peers before a request reaches this module.

Install first
OnionXT
Topics
Networking, Tor
Author
Seth Morrow Software
Extension id
onion-httpd
Source
onionxt/src/onion-httpd.livecodescript
Licences
LICENSE
SHA-256
7026b63ea5067958e9478a8ea13cf4bb55334e0498b179e52baab5db0bf02cef
All 8 handlers
  • oxhServeFiles <pFolder>commandShare a folder, with generated directory listings.
  • oxhUnroute <pMethod>,<pPath>commandRemove a route registered with oxhRoute.
  • oxhServe <pVirtualPort>,<pLocalPort>commandPublish an onion service that answers HTTP.
  • oxhStop <pService>commandStop serving one onion.
  • oxhRoute <pMethod>,<pPath>,<pHandler>commandRegister a handler for one HTTP method and exact path.
  • oxhReply <pStream>,<pCode>,<pBodyText>,<pHeaders>commandSend a text response from a route handler.
  • oxhInit <pOwner>commandName the object whose script holds your HTTP route handlers.
  • oxhSetRoot <pFolder>commandServe static files from a folder, without directory listings.
20

oscxt

One package

OSC for OpenXTalk0.1.0native library

Builds and reads Open Sound Control (OSC 1.0) messages and bundles, the protocol that control surfaces, lighting desks, media servers and music software use to talk over a network.

  • Win 64
  • Win 32
  • macOS
  • Linux 64
  • Linux 32
  • Linux ARM
Downloadoscxt-0.1.0.lce · 291.1 KB
More about OSC for OpenXTalk

This library only turns values into OSC bytes and OSC bytes back into values. The network is the stack's own: send the bytes with a datagram socket (`open datagram socket`, then `write`), and receive them with `accept datagram connections ... with message`. The osc-helpers script (examples/osc-helpers.livecodescript) does both for you and routes each incoming message to an `scOscMessage` handler of your own.

To send, make a message with oscBuildMessage (several at once with oscBuildBundle). To receive, read the bytes with oscParse, which returns an array, and test addresses with oscMatch. Nothing here throws for bad input. A refusal returns an empty result, and oscLastError says why.

Built on tinyosc by Martin Roth.

Install first
nothing
Topics
Networking, OSC, Show control
Author
Seth Morrow Software
Extension id
org.openxtalk.library.osc
Source
oscxt/src/osc.lcb
Licences
LICENSE, THIRD-PARTY-LICENSES.md
SHA-256
6450f75fd82a8c0d081ff26f2d70c29f1cb215c317de3e54e1dc01d3c7894e59
All 8 handlers
  • oscBuildBundle(<pTimetag>,<pMessages>)handlerBuilds an OSC bundle: several messages sent as one datagram.
  • oscParse(<pData>)handlerReads an OSC message or bundle that arrived as bytes.
  • oscVersion()handlerReturns the ABI number of the native library that is loaded.
  • oscLastError()handlerSays why the last build or parse was refused.
  • oscMatch(<pPattern>,<pAddress>)handlerTells whether an OSC address matches an OSC address pattern.
  • oscBuildMessage(<pAddress>,<pArgs>)handlerBuilds one OSC message, ready to send.
  • oscLoadNativeLib(<pPath>)handlerLoads the native library from a path you choose (Linux).
  • oscLoadNativeLibError()handlerSays why oscLoadNativeLib could not load the library.
21

pdfxt

One package

PDFium for OpenXTalk0.2.1native library

Open and make PDF files: draw their pages, read their text, find words, follow their outline and links, and write new pages, fill in forms, merge files and attach files. Uses PDFium, the PDF engine of Chromium.

  • Win 64
  • Win 32
  • macOS
  • Linux 64
  • Linux 32
  • Linux ARM
  • Android ARM64
  • Android ARM32
  • Android x86-64
  • Android x86
Downloadpdfxt-0.2.1.lce · 38.2 MB
More about PDFium for OpenXTalk

Open a file with pdfOpen (or bytes with pdfOpenData) to get a document handle, ask pdfPageCount how long it is, and draw a page with pdfRenderPageBMP or pdfRenderPage. pdfPageText reads a page's text, pdfPageSearch finds words in it, and pdfOutline and pdfPageLinks give what a viewer needs to navigate. Close each document with pdfClose, and call pdfShutdown when your stack closes.

To make a PDF, start one with pdfNew, add a page with pdfPageAdd, pick a font with pdfFontStandard or pdfFontLoad, and write on the page with pdfAddText, pdfAddTextBox, pdfAddRect, pdfAddLine and pdfAddImage. pdfSave writes the file. The same calls write on a document you opened, so you can stamp or fill in an existing PDF: pdfFormFields lists its form's fields and pdfFormSet fills one in. pdfPageImport merges pages from another document, and pdfAttachmentAdd attaches a file.

Pages are numbered from 1. Sizes and positions are in points (1/72 inch) measured from the top left of the page, the way a rect is: a page drawn at one pixel per point has everything exactly where these numbers say, so multiply by your zoom. A handle of 0 means a call was refused; pdfLastError says why, and nothing here stops your script with an error.

A PDF is someone else's file. This library reads it and never runs anything in it (the PDFium it ships has no JavaScript), but treat a link's address as you would any address a stranger hands you.

PDFium is a second library file that sits beside pdfxt. If it is missing, every call returns 0 or empty and pdfLastError says where it was looked for. It needs macOS 13 or Android 6.0 at least; there is no web version.

Install first
nothing
Topics
PDF, Documents
Author
Seth Morrow Software
Extension id
org.openxtalk.library.pdfxt
Source
pdfxt/src/pdfxt.lcb
Licences
LICENSE, THIRD-PARTY-LICENSES.md
SHA-256
07288ae98864910ac940f8802acccc575c073ca9abac74a4769873432b98886b
All 60 handlers
  • pdfOpen(<pPath>,<pPassword>)handlerOpens a PDF file.
  • pdfPageLabel(<pDocument>,<pPage>)handlerReturns the label a page is known by.
  • pdfPageSearch(<pDocument>,<pPage>,<pNeedle>,<pFlags>)handlerFinds every place some text occurs on a page.
  • pdfAddText(<pDocument>,<pPage>,<pFont>,<pSize>,<pX>,<pY>,<pText>,<pColor>,<pAngle>)handlerWrites text on a page.
  • pdfPageSize(<pDocument>,<pPage>)handlerReturns the size of a page.
  • pdfAddJPEG(<pDocument>,<pPage>,<pData>,<pLeft>,<pTop>,<pRight>,<pBottom>)handlerPuts a JPEG photo on a page.
  • pdfPageRotation(<pDocument>,<pPage>)handlerReturns how far the document turns a page for display.
  • pdfPageTextRects(<pDocument>,<pPage>,<pStart>,<pCount>)handlerReturns the rectangles a run of text covers.
  • pdfClose(<pDocument>)handlerCloses a document and frees what it holds.
  • pdfOpenCount()handlerReturns how many documents are open.
  • pdfOpenData(<pData>,<pPassword>)handlerOpens a PDF held in memory.
  • pdfAttachmentData(<pDocument>,<pIndex>)handlerReturns the bytes of a file attached to a document.
  • pdfLibraryVersion()handlerReturns the versions of the native library and of the PDFium it was built for.
  • pdfFontStandard(<pDocument>,<pName>)handlerGives a document one of the 14 fonts every PDF reader has.
  • pdfPageCharCount(<pDocument>,<pPage>)handlerReturns how many characters of text a page has.
  • pdfSave(<pDocument>,<pPath>,<pFlags>)handlerSaves a document to a file.
  • pdfAddTextBox(<pDocument>,<pPage>,<pFont>,<pSize>,<pLeft>,<pTop>,<pWidth>,<pHeight>,<pText>,<pColor>,<pAlign>,<pLeading>)handlerWrites text in a box, wrapped to its width.
  • pdfFileVersion(<pDocument>)handlerReturns the PDF version a file says it is.
  • pdfSaveData(<pDocument>,<pFlags>)handlerReturns a document as the bytes of a PDF file.
  • pdfPageFlatten(<pDocument>,<pPage>)handlerMakes a page's form fields and notes part of the page.
  • pdfNew()handlerMakes a new, empty PDF document.
  • pdfCloseAll()handlerCloses every open document.
  • pdfIsLoaded()handlerSays whether the PDFium library is loaded and running.
  • pdfFontLoad(<pDocument>,<pPath>)handlerGives a document a TrueType font from a file.
  • pdfRenderPageBMP(<pDocument>,<pPage>,<pWidth>,<pHeight>,<pFlags>)handlerDraws a whole page as a BMP picture file.
  • pdfPageText(<pDocument>,<pPage>)handlerReturns all the text of a page.
  • pdfFontLoadData(<pDocument>,<pData>)handlerGives a document a TrueType font from its bytes.
  • pdfAddImage(<pDocument>,<pPage>,<pData>,<pPixelWidth>,<pPixelHeight>,<pLeft>,<pTop>,<pRight>,<pBottom>)handlerPuts a picture from an image on a page.
  • pdfABIVersion()handlerReturns the ABI number of the native library that is loaded.
  • pdfAddLine(<pDocument>,<pPage>,<pX1>,<pY1>,<pX2>,<pY2>,<pColor>,<pLineWidth>)handlerDraws a straight line on a page.
  • pdfAttachments(<pDocument>)handlerReturns the names of the files attached to a document.
  • pdfShutdown()handlerCloses every document and shuts PDFium down.
  • pdfPageCharAt(<pDocument>,<pPage>,<pX>,<pY>,<pTolerance>)handlerReturns which character is at a point of a page.
  • pdfRenderPageRegion(<pDocument>,<pPage>,<pZoomWidth>,<pZoomHeight>,<pLeft>,<pTop>,<pWidth>,<pHeight>,<pFlags>)handlerDraws part of a page, at any zoom, as the imageData of an image.
  • pdfTextWidth(<pDocument>,<pFont>,<pSize>,<pText>)handlerReturns how wide a line of text is in a font.
  • pdfMetadata(<pDocument>,<pTag>)handlerReturns one entry of a document's information.
  • pdfPageSetRotation(<pDocument>,<pPage>,<pDegrees>)handlerTurns a page.
  • pdfFormSet(<pDocument>,<pName>,<pValue>)handlerFills in a form field.
  • pdfLastError()handlerReturns why the last refused call was refused.
  • pdfPageAdd(<pDocument>,<pAt>,<pWidth>,<pHeight>)handlerAdds a blank page to a document.
  • pdfPermissions(<pDocument>)handlerReturns what a protected document allows.
  • pdfFontMetrics(<pDocument>,<pFont>,<pSize>)handlerReturns how far a font's letters reach above and below the line.
  • pdfPageCharBox(<pDocument>,<pPage>,<pIndex>)handlerReturns where one character is on its page.
  • pdfPageTextInRect(<pDocument>,<pPage>,<pLeft>,<pTop>,<pRight>,<pBottom>)handlerReturns the text inside a rectangle of a page.
  • pdfTextBoxHeight(<pDocument>,<pFont>,<pSize>,<pWidth>,<pText>,<pLeading>)handlerReturns how tall a box must be to hold some text.
  • pdfRenderPage(<pDocument>,<pPage>,<pWidth>,<pHeight>,<pFlags>)handlerDraws a whole page as the imageData of an image.
  • pdfPageDelete(<pDocument>,<pPage>)handlerDeletes a page from a document.
  • pdfFormFields(<pDocument>)handlerReturns a document's form fields.
  • pdfLoad(<pFolder>)handlerLoads the PDFium library now, and says whether it is ready.
  • pdfAddRect(<pDocument>,<pPage>,<pLeft>,<pTop>,<pRight>,<pBottom>,<pFill>,<pStroke>,<pLineWidth>)handlerDraws a rectangle on a page.
  • pdfPageHeight(<pDocument>,<pPage>)handlerReturns the height of a page.
  • pdfPageCount(<pDocument>)handlerReturns how many pages a document has.
  • pdfPageTextRange(<pDocument>,<pPage>,<pStart>,<pCount>)handlerReturns part of the text of a page.
  • pdfFormFieldOptions(<pDocument>,<pName>)handlerReturns the choices of a combo box or list box.
  • pdfAttachmentAdd(<pDocument>,<pName>,<pData>)handlerAttaches a file to a document.
  • pdfIsOpen(<pDocument>)handlerSays whether a number is the handle of an open document.
  • pdfPageImport(<pDocument>,<pSource>,<pPages>,<pAt>)handlerCopies pages from one document into another.
  • pdfOutline(<pDocument>)handlerReturns a document's outline: its bookmarks.
  • pdfPageWidth(<pDocument>,<pPage>)handlerReturns the width of a page.
22

render3dxt

One package

render3dxt: 3D Renderer for OpenXTalk0.4.0native library

A textured 3D renderer that draws into an image.

  • Win 64
  • Win 32
  • macOS
  • Linux 64
  • Linux 32
  • Linux ARM
  • Android ARM64
  • Android ARM32
  • Android x86-64
  • Android x86
Downloadrender3dxt-0.4.0.lce · 1.7 MB
More about render3dxt: 3D Renderer for OpenXTalk

A scene holds nodes, lights and a camera. A node is a mesh (a box, a sphere, a model loaded from an OBJ file) placed at a position with a rotation and a size; a material gives it a colour, a texture and a shine. r3SceneRender draws the scene and returns the picture, ready to be the imageData of an image, so a stack shows 3D with one line in a frame loop. All the drawing is done inside the library: thousands of textured triangles take a few milliseconds.

Scenes, nodes, meshes, materials, textures and lights are integer handles. 0 means a call was refused or found nothing, and a stale handle is harmless: getters return 0 or empty, actions do nothing. r3LastError says why a call was refused.

Every distance is in metres with y pointing up, a rotation is a quaternion (four numbers x, y, z, w) and a colour is three numbers from 0 to 255. A result of several numbers comes back as comma-separated text such as "1.5,0,-2", so item 1 of it is x.

The library is made to draw what box3dxt simulates. Positions, rotations and the camera are the same numbers in both: give each node the body it draws with r3NodeSetTag, and after every physics step hand box3dxt's b3MovesText() to r3SceneApplyMoves.

Install first
nothing
Works with
Box3D for OpenXTalk
Topics
Graphics, 3D
Author
Seth Morrow Software
Extension id
org.openxtalk.library.renderthreed
Source
render3dxt/src/render3dxt.lcb
Licences
LICENSE
SHA-256
11f62a00ecb8ab4e14917bb361db763a0e9c858807ccc4ffbccec82e2ee67631
All 139 handlers
  • r3LightCreateDirectional(<pScene>,<pDx>,<pDy>,<pDz>,<pR>,<pG>,<pB>,<pIntensity>)handlerAdds a light that shines from far away, like the sun.
  • r3SceneLight(<pScene>,<pIndex>)handlerReturns one of a scene's lights.
  • r3ABIVersion()handlerReturns the ABI number of the native library that is loaded.
  • r3HitText()handlerReturns where the last pick or ray cast hit.
  • r3LastError()handlerReturns why the last call was refused.
  • r3MeshCreate()handlerMakes an empty mesh to fill from script.
  • r3SceneCreate()handlerMakes a scene.
  • r3SceneRay(<pScene>,<pW>,<pH>,<pPx>,<pPy>)handlerReturns the ray from the camera through a point of the picture.
  • r3LightSetEnabled(<pLight>,<pFlag>)handlerTurns a light on or off.
  • r3MaterialSetNormalMap(<pMaterial>,<pTexture>)handlerGives a material a normal map: detail the triangles do not have.
  • r3MaterialIsFlat(<pMaterial>)handlerReports whether a material is lit in flat facets.
  • r3SceneSetSupersample(<pScene>,<pN>)handlerSets how smooth edges are drawn.
  • r3SceneRenderBegin(<pScene>,<pW>,<pH>)handlerBegins drawing a scene and returns at once.
  • r3SceneSetCameraText(<pScene>,<pText>)handlerPlaces the camera from one text.
  • r3LightKind(<pLight>)handlerReturns what kind a light is.
  • r3TextureLoad(<pPath>)handlerLoads a picture file as a texture.
  • r3SceneShadowDistance(<pScene>)handlerReturns how far from the camera shadows reach.
  • r3NodeDestroy(<pNode>)handlerRemoves a node from its scene.
  • r3SceneCamera(<pScene>)handlerReturns the camera.
  • r3NodeSetScale(<pNode>,<pSx>,<pSy>,<pSz>)handlerSets the size of a node.
  • r3NodeScale(<pNode>)handlerReturns the size of a node.
  • r3SceneSetShadowDistance(<pScene>,<pDistance>)handlerSets how far from the camera shadows reach.
  • r3SceneSetBackground(<pScene>,<pR>,<pG>,<pB>)handlerSets the colour drawn where nothing is.
  • r3SceneBackground(<pScene>)handlerReturns the background colour.
  • r3SceneStats(<pScene>)handlerReturns how much work the last picture was.
  • r3LightVector(<pLight>)handlerReturns the direction of a directional light or the position of a point light.
  • r3SceneSetFog(<pScene>,<pR>,<pG>,<pB>,<pFogNear>,<pFogFar>)handlerFades distant things into a colour.
  • r3MaterialColor(<pMaterial>)handlerReturns the colour of a material.
  • r3TextureIsSmooth(<pTexture>)handlerReports whether a texture is drawn smooth.
  • r3MeshVertexCount(<pMesh>)handlerReturns how many vertices a mesh has.
  • r3LightColor(<pLight>)handlerReturns the colour and brightness of a light.
  • r3TextureFromImageData(<pBytes>,<pWidth>,<pHeight>)handlerMakes a texture from the imageData of an image.
  • r3SceneSetSky(<pScene>,<pTexture>,<pTurn>,<pR>,<pG>,<pB>)handlerGives a scene a sky: a picture of the whole sky, seen wherever nothing is drawn.
  • r3SceneIsValid(<pScene>)handlerReports whether a scene handle is alive.
  • r3LiveCounts()handlerReturns how many objects of each kind are alive.
  • r3MeshIsValid(<pMesh>)handlerReports whether a mesh handle is alive.
  • r3MeshCapsule(<pRadius>,<pHalfHeight>,<pSlices>,<pStacks>)handlerMakes a capsule standing along the y axis.
  • r3TextureChecker(<pSize>,<pCells>,<pR1>,<pG1>,<pB1>,<pR2>,<pG2>,<pB2>)handlerMakes a checkerboard texture.
  • r3GpuIsAvailable()handlerReports whether a GPU can draw here.
  • r3MaterialIsDoubleSided(<pMaterial>)handlerReports whether both faces are drawn.
  • r3SceneRayCast(<pScene>,<pOx>,<pOy>,<pOz>,<pDx>,<pDy>,<pDz>)handlerFinds the first node a ray meets.
  • r3NodeSetMaterial(<pNode>,<pMaterial>)handlerGives a node a material of its own.
  • r3MaterialSpecular(<pMaterial>)handlerReturns how shiny a material is.
  • r3LightIsEnabled(<pLight>)handlerReports whether a light is on.
  • r3SceneNode(<pScene>,<pIndex>)handlerReturns one of a scene's nodes.
  • r3SetThreadCount(<pN>)handlerSets how many processor threads draw a picture.
  • r3SceneSetRenderer(<pScene>,<pName>)handlerChooses what draws a scene: the processor or the graphics card.
  • r3SceneClip(<pScene>)handlerReturns the nearest and farthest distances drawn.
  • r3SceneApplyMoves(<pScene>,<pText>)handlerMoves every node whose body moved, from box3dxt's move list.
  • r3TextureIsValid(<pTexture>)handlerReports whether a texture handle is alive.
  • r3TextureIsRepeat(<pTexture>)handlerReports whether a texture repeats.
  • r3TextureWidth(<pTexture>)handlerReturns the width of a texture.
  • r3NodeIsShadowCaster(<pNode>)handlerReports whether a node casts a shadow.
  • r3MeshSetSlotMaterial(<pMesh>,<pSlot>,<pMaterial>)handlerGives one slot of a mesh a material.
  • r3SceneSupersample(<pScene>)handlerReturns the supersampling of a scene.
  • r3NodeSetTransform(<pNode>,<pX>,<pY>,<pZ>,<pQx>,<pQy>,<pQz>,<pQw>)handlerMoves and turns a node at once.
  • r3SceneNodeCount(<pScene>)handlerReturns how many nodes a scene has.
  • r3ThreadCount()handlerReturns how many threads draw a picture.
  • r3LightSetPosition(<pLight>,<pX>,<pY>,<pZ>)handlerMoves a point light.
  • r3MaterialSetDoubleSided(<pMaterial>,<pFlag>)handlerDraws both faces of a material's triangles.
  • r3MaterialSetCutout(<pMaterial>,<pFlag>)handlerLeaves holes where a material's texture is transparent.
  • r3LightIsValid(<pLight>)handlerReports whether a light handle is alive.
  • r3LightSetColor(<pLight>,<pR>,<pG>,<pB>,<pIntensity>)handlerSets the colour and brightness of a light.
  • r3TextureHeight(<pTexture>)handlerReturns the height of a texture.
  • r3MeshDestroy(<pMesh>)handlerFrees a mesh.
  • r3MeshSlotMaterial(<pMesh>,<pSlot>)handlerReturns the material of one slot of a mesh.
  • r3SceneNodeByTag(<pScene>,<pTag>)handlerFinds the node with a tag.
  • r3SceneAmbient(<pScene>)handlerReturns the ambient light.
  • r3MaterialSetTexture(<pMaterial>,<pTexture>)handlerGives a material a texture.
  • r3MaterialTexture(<pMaterial>)handlerReturns the texture of a material.
  • r3SceneBloom(<pScene>)handlerReturns a scene's bloom.
  • r3NodeSetTransformText(<pNode>,<pText>)handlerMoves and turns a node from one text.
  • r3MaterialSetColor(<pMaterial>,<pR>,<pG>,<pB>)handlerSets the colour of a material.
  • r3SceneRender(<pScene>,<pW>,<pH>)handlerDraws a scene and returns the picture.
  • r3NodeCreate(<pScene>,<pMesh>)handlerPlaces a mesh in a scene.
  • r3MaterialSetFlat(<pMaterial>,<pFlag>)handlerLights each triangle as one flat facet.
  • r3MeshSlotTextureName(<pMesh>,<pSlot>)handlerReturns the picture file a model's material asked for.
  • r3TextureDestroy(<pTexture>)handlerFrees a texture.
  • r3LibraryVersion()handlerReturns the version of the native library and of the file readers built into it.
  • r3SceneLightCount(<pScene>)handlerReturns how many lights a scene has.
  • r3MaterialSetEmissive(<pMaterial>,<pR>,<pG>,<pB>)handlerSets the light a material gives off by itself.
  • r3TextureSetSmooth(<pTexture>,<pFlag>)handlerChooses smooth or blocky drawing of a texture.
  • r3NodeIsVisible(<pNode>)handlerReports whether a node is shown.
  • r3MaterialCreate(<pR>,<pG>,<pB>)handlerMakes a material of a colour.
  • r3NodeTag(<pNode>)handlerReturns the tag of a node.
  • r3SceneSetClip(<pScene>,<pNearZ>,<pFarZ>)handlerSets the nearest and farthest distances drawn.
  • r3MeshBox(<pHx>,<pHy>,<pHz>)handlerMakes a box.
  • r3NodeSetMesh(<pNode>,<pMesh>)handlerChanges the mesh a node draws.
  • r3SceneDestroy(<pScene>)handlerFrees a scene with its nodes and lights.
  • r3SceneFrame(<pScene>)handlerReturns the last picture drawn of a scene.
  • r3MeshPlane(<pHx>,<pHz>,<pURepeat>,<pVRepeat>)handlerMakes a flat rectangle facing up.
  • r3SceneSetAmbient(<pScene>,<pR>,<pG>,<pB>)handlerSets the light that reaches every surface from everywhere.
  • r3SceneFrameLength(<pScene>)handlerReturns the size of the last picture drawn of a scene.
  • r3SceneProject(<pScene>,<pW>,<pH>,<pX>,<pY>,<pZ>)handlerFinds where a point in the world lands in the picture.
  • r3LightSetDirection(<pLight>,<pDx>,<pDy>,<pDz>)handlerTurns a directional light.
  • r3NodeSetShadowCaster(<pNode>,<pFlag>)handlerSets whether a node casts a shadow.
  • r3MeshSlotName(<pMesh>,<pSlot>)handlerReturns the name a model file gave a material slot.
  • r3MeshComputeNormals(<pMesh>)handlerWorks out smooth normals for a mesh from its triangles.
  • r3LightCreatePoint(<pScene>,<pX>,<pY>,<pZ>,<pR>,<pG>,<pB>,<pIntensity>,<pRange>)handlerAdds a light that shines from a point, like a lamp.
  • r3TextureSetRepeat(<pTexture>,<pFlag>)handlerChooses whether a texture repeats beyond its edges.
  • r3MeshAddVertex(<pMesh>,<pX>,<pY>,<pZ>,<pNx>,<pNy>,<pNz>,<pU>,<pV>)handlerAdds a corner to a mesh.
  • r3MeshSlotCount(<pMesh>)handlerReturns how many material slots a mesh has.
  • r3SceneSetBloom(<pScene>,<pStrength>,<pThreshold>,<pSpread>)handlerSets the bloom: bright light spreading past the edges of what gives it off.
  • r3GpuInfo()handlerDescribes the GPU that draws.
  • r3TextureDecode(<pBytes>)handlerMakes a texture from the bytes of a picture file.
  • r3MaterialIsCutout(<pMaterial>)handlerReports whether transparent texture pixels are left out.
  • r3ScenePick(<pScene>,<pW>,<pH>,<pPx>,<pPy>)handlerFinds the node under a point of the picture.
  • r3SceneIsRenderReady(<pScene>)handlerReturns whether a picture begun with r3SceneRenderBegin is finished.
  • r3NodeSetTag(<pNode>,<pTag>)handlerGives a node a number of your choosing.
  • r3SceneRenderer(<pScene>)handlerReturns which renderer will draw a scene's next picture.
  • r3NodeSetRotation(<pNode>,<pQx>,<pQy>,<pQz>,<pQw>)handlerTurns a node.
  • r3MeshParseObj(<pObjText>,<pMtlText>)handlerMakes a model from the text of an OBJ file.
  • r3MeshTriangleCount(<pMesh>)handlerReturns how many triangles a mesh has.
  • r3MeshAddTriangle(<pMesh>,<pA>,<pB>,<pC>,<pSlot>)handlerAdds a triangle to a mesh.
  • r3NodeRotation(<pNode>)handlerReturns the rotation of a node.
  • r3NodeIsValid(<pNode>)handlerReports whether a node handle is alive.
  • r3MeshCylinder(<pRadius>,<pHalfHeight>,<pSlices>)handlerMakes a cylinder standing along the y axis.
  • r3NodeMaterial(<pNode>)handlerReturns a node's own material.
  • r3MaterialSetUnlit(<pMaterial>,<pFlag>)handlerDraws a material at its full colour, ignoring the lights.
  • r3MeshSphere(<pRadius>,<pSlices>,<pStacks>)handlerMakes a sphere.
  • r3LightDestroy(<pLight>)handlerRemoves a light from its scene.
  • r3NodeSetVisible(<pNode>,<pFlag>)handlerShows or hides a node.
  • r3NodePosition(<pNode>)handlerReturns where a node is.
  • r3NodeTransform(<pNode>)handlerReturns the position and rotation of a node.
  • r3MaterialIsValid(<pMaterial>)handlerReports whether a material handle is alive.
  • r3MeshFromTrianglesText(<pText>)handlerMakes a mesh from a list of triangles as text.
  • r3NodeMesh(<pNode>)handlerReturns the mesh a node draws.
  • r3MeshBounds(<pMesh>)handlerReturns the box that just holds a mesh.
  • r3NodeScene(<pNode>)handlerReturns the scene a node is in.
  • r3MaterialIsUnlit(<pMaterial>)handlerReports whether a material ignores the lights.
  • r3MaterialSetSpecular(<pMaterial>,<pStrength>,<pShininess>)handlerSets how shiny a material is.
  • r3NodeSetPosition(<pNode>,<pX>,<pY>,<pZ>)handlerMoves a node.
  • r3SceneSky(<pScene>)handlerReturns a scene's sky.
  • r3LightIsCastingShadows(<pLight>)handlerReports whether a light casts shadows.
  • r3LightSetCastsShadows(<pLight>,<pFlag>)handlerMakes a directional light cast shadows.
  • r3MeshLoadObj(<pPath>)handlerLoads a model from a Wavefront OBJ file.
  • r3MaterialNormalMap(<pMaterial>)handlerReturns the normal map of a material.
  • r3SceneSetCamera(<pScene>,<pEx>,<pEy>,<pEz>,<pTx>,<pTy>,<pTz>,<pFov>)handlerPlaces the camera.
  • r3MaterialDestroy(<pMaterial>)handlerFrees a material.
23

SodiumXT

One package

SodiumXT0.1.0native library

Modern, authenticated cryptography for xTalk, built on libsodium.

  • Win 64
  • Win 32
  • macOS
  • Linux 64
  • Linux 32
  • Linux ARM
  • Android ARM64
  • Android ARM32
  • Android x86-64
  • Android x86
Downloadsodiumxt-0.1.0.lce · 2.0 MB
More about SodiumXT

SodiumXT covers secure randomness, BLAKE2b hashing, hex and base64 encoding, constant-time comparison, Argon2id password hashing, key derivation, secret-key and AEAD encryption, streaming and whole-file encryption, X25519 public-key boxes, ed25519 signatures, key exchange, padding, HMAC-SHA256, SHA3-256 and the ristretto255 group.

Bytes cross as Data and text as String: pass text through textEncode(theText, "utf-8") and decode recovered plaintext with textDecode. Hex, base64 and password hash strings come back as Data holding ASCII bytes. Failures throw an error that starts with the handler name, so wrap calls that can fail in try ... catch. The one-shot encryption calls draw and prepend a random nonce for you. Compare secrets with sxMemEqual, never with is.

Install first
nothing
Topics
Cryptography
Author
OpenXTalk
Extension id
org.openxtalk.library.sodium
Source
sodiumxt/src/sodium.lcb
Licences
LICENSE, RHash-SHA3-NOTICE.txt, trezor-crypto-LICENSE
SHA-256
b79ad4307f3503def46f873419d6c3dba5b773bb56974182dfb59bf992e1d234
All 73 handlers
  • sxInit()handlerCheck the native library and initialize libsodium now.
  • sxHashFileKeyed(<pPath>,<pKey>,<pOutLen>)handlerReturn a keyed BLAKE2b digest of a whole file.
  • sxMemEqual(<pA>,<pB>)handlerCompare two byte strings in constant time.
  • sxRistrettoSub(<pP>,<pQ>)handlerSubtract one ristretto255 point from another.
  • sxRistrettoScalarMultBase(<pScalar>)handlerMultiply the ristretto255 base point by a scalar.
  • sxChaCha20IetfXor(<pKey>,<pNonce>,<pData>)handlerXOR bytes with the raw ChaCha20 keystream (no authentication).
  • sxDecryptFile(<pSrcPath>,<pDstPath>,<pKey>)handlerDecrypt a file made by sxEncryptFile.
  • sxSecretStreamInitPull(<pKey>,<pHeader>)handlerOpen a stream for decrypting chunks.
  • sxHmacSha256(<pKey>,<pMessage>)handlerReturn the HMAC-SHA256 of a message.
  • sxRistrettoScalarRandom()handlerReturn a random non-zero ristretto255 scalar.
  • sxBoxKeypair(<rPublicKey>,<rSecretKey>)handlerGenerate a random X25519 keypair for public-key boxes.
  • sxSignOpen(<pSignedMessage>,<pPublicKey>)handlerVerify a signed message and return the message.
  • sxFreeStream(<pHandle>)handlerRelease a stream handle.
  • sxHashFinal(<pHandle>,<pOutLen>)handlerFinish a multipart hash and return the digest.
  • sxKeyExchangeClient(<pClientPk>,<pClientSk>,<pServerPk>,<rRx>,<rTx>)handlerDerive the client's session keys.
  • sxBox(<pMessage>,<pRecipientPk>,<pSenderSk>)handlerEncrypt a message from one keypair holder to another.
  • sxRistrettoScalarAdd(<pX>,<pY>)handlerAdd two ristretto255 scalars modulo the group order.
  • sxKeyExchangeServer(<pServerPk>,<pServerSk>,<pClientPk>,<rRx>,<rTx>)handlerDerive the server's session keys.
  • sxUnpad(<pData>,<pBlockSize>)handlerRemove padding added by sxPad.
  • sxFreeHash(<pHandle>)handlerAbandon a multipart hash without finishing it.
  • sxSealOpen(<pSealed>,<pRecipientPk>,<pRecipientSk>)handlerOpen a sealed box made by sxSeal.
  • sxRistrettoScalarMultPoint(<pScalar>,<pPoint>)handlerMultiply a ristretto255 point by a scalar.
  • sxHashKeyed(<pData>,<pKey>,<pOutLen>)handlerReturn a keyed BLAKE2b digest (a MAC).
  • sxRistrettoPointValid(<pPoint>)handlerTell whether bytes are a valid ristretto255 point.
  • sxAeadDecrypt(<pBox>,<pAd>,<pKey>)handlerDecrypt and verify a box made by sxAeadEncrypt.
  • sxAeadEncrypt(<pMessage>,<pAd>,<pKey>)handlerEncrypt a message and authenticate extra data with it.
  • sxRistrettoAdd(<pP>,<pQ>)handlerAdd two ristretto255 points.
  • sxSecretBoxOpen(<pBox>,<pKey>)handlerDecrypt and verify a box made by sxSecretBox.
  • sxPwSaltBytes()handlerReturn the salt length Argon2id expects.
  • sxRistrettoFromHash(<pHash>)handlerMap a 64-byte hash to a ristretto255 group point.
  • sxRistrettoScalarInvert(<pScalar>)handlerReturn the inverse of a ristretto255 scalar.
  • sxHashInitKeyed(<pKey>,<pOutLen>)handlerStart a keyed BLAKE2b hash of data that arrives in pieces.
  • sxPwMemInteractive()handlerReturn the interactive Argon2id memory limit.
  • sxPwMemSensitive()handlerReturn the sensitive Argon2id memory limit.
  • sxHash(<pData>,<pOutLen>)handlerReturn the BLAKE2b digest of some bytes.
  • sxSignVerifyDetached(<pSig>,<pMessage>,<pPublicKey>)handlerCheck a detached ed25519 signature.
  • sxLastError()handlerReturn the last native error message.
  • sxVersion()handlerReturn the SodiumXT and libsodium version text.
  • sxHex2Bin(<pHex>)handlerDecode hex text back to bytes.
  • sxBin2Hex(<pData>)handlerEncode bytes as lowercase hex.
  • sxBase642Bin(<pB64>)handlerDecode URL-safe, unpadded base64 back to bytes.
  • sxIsFinalTag(<pTag>)handlerTell whether a stream tag marks the final chunk.
  • sxSignKeypair(<rPublicKey>,<rSecretKey>)handlerGenerate a random ed25519 signing keypair.
  • sxSha3_256(<pData>)handlerReturn the SHA3-256 digest of some bytes.
  • sxSecretStreamRekey(<pHandle>)handlerRekey an open stream for forward secrecy.
  • sxPwMemModerate()handlerReturn the moderate Argon2id memory limit.
  • sxHashFile(<pPath>,<pOutLen>)handlerReturn the BLAKE2b digest of a whole file.
  • sxSignDetached(<pMessage>,<pSecretKey>)handlerSign a message and return the signature alone.
  • sxSecretStreamPull(<pHandle>,<pCipherChunk>,<pAd>,<rTag>)handlerDecrypt and verify one chunk of a stream.
  • sxPwHash(<pPassphrase>,<pSalt>,<pKeyLen>,<pOpsLimit>,<pMemLimit>)handlerDerive a key from a passphrase with Argon2id.
  • sxPad(<pData>,<pBlockSize>)handlerPad bytes up to a multiple of a block size.
  • sxHashInit(<pOutLen>)handlerStart a BLAKE2b hash of data that arrives in pieces.
  • sxKeyExchangeKeypairFromSeed(<pSeed>,<rPublicKey>,<rSecretKey>)handlerDerive a key-exchange keypair from a 32-byte seed.
  • sxHashUpdate(<pHandle>,<pData>)handlerAdd bytes to a multipart hash.
  • sxBoxKeypairFromSeed(<pSeed>,<rPublicKey>,<rSecretKey>)handlerDerive an X25519 keypair from a 32-byte seed.
  • sxBin2Base64(<pData>)handlerEncode bytes as URL-safe base64 without padding.
  • sxSign(<pMessage>,<pSecretKey>)handlerSign a message and return signature and message together.
  • sxRandomUniform(<pUpperBound>)handlerReturn an unbiased random integer below an upper bound.
  • sxBoxOpen(<pBox>,<pSenderPk>,<pRecipientSk>)handlerDecrypt and verify a box made by sxBox.
  • sxSecretStreamPush(<pHandle>,<pChunk>,<pAd>,<pFinal>)handlerEncrypt one chunk of a stream.
  • sxPwHashStr(<pPassphrase>,<pOpsLimit>,<pMemLimit>)handlerHash a password into a self-describing string for storage.
  • sxPwHashStrVerify(<pHash>,<pPassphrase>)handlerCheck a password against a stored hash string.
  • sxRandomBytes(<pCount>)handlerReturn cryptographically secure random bytes.
  • sxSignKeypairFromSeed(<pSeed>,<rPublicKey>,<rSecretKey>)handlerDerive an ed25519 signing keypair from a 32-byte seed.
  • sxSecretBox(<pMessage>,<pKey>)handlerEncrypt and authenticate a message with a secret key.
  • sxKdfDerive(<pMasterKey>,<pSubkeyId>,<pContext>,<pSubkeyLen>)handlerDerive a numbered subkey from a master key.
  • sxKeyExchangeKeypair(<rPublicKey>,<rSecretKey>)handlerGenerate a random key-exchange keypair.
  • sxSignSeedToExpandedKey(<pSeed>)handlerReturn the 64-byte expanded ed25519 secret key for a seed.
  • sxRistrettoScalarMultBatch(<pScalar>,<pPoints>)handlerMultiply many ristretto255 points by one scalar in one call.
  • sxSeal(<pMessage>,<pRecipientPk>)handlerEncrypt a message anonymously to a public key.
  • sxRistrettoScalarMul(<pX>,<pY>)handlerMultiply two ristretto255 scalars modulo the group order.
  • sxSecretStreamInitPush(<pKey>,<rHeader>)handlerOpen a stream for encrypting data in chunks.
  • sxEncryptFile(<pSrcPath>,<pDstPath>,<pKey>)handlerEncrypt a whole file to another file.
24

TorrentXT

2 packages, in install order

TorrentXT0.1.0native library

Bindings to libtorrent, the BitTorrent engine, for downloading, seeding and serverless peer contact.

  • Win 64
  • Win 32
  • macOS
  • Linux 64
  • Linux 32
  • Linux ARM
  • Android ARM64
  • Android ARM32
  • Android x86-64
  • Android x86
Downloadtorrentxt-0.1.0.lce · 44.5 MB
More about TorrentXT

TorrentXT runs one libtorrent session per process. Start it with btStartSession and stop it with btStopSession before your app quits: there is no automatic unload hook. Sessions and torrents are integer handles; 0 means the call failed (see btLastError), and a stale handle is a harmless no-op. Action handlers return 0 on success or a negative code.

libtorrent works on its own threads and never calls back into script. Events wait in a queue until btPoll (and btRp1Poll for the rp1 extension) drains them. The torrentHelpers library (btStartPolling) does that on a timer and dispatches each event as a message named after it, such as metadataReceived or torrentFinished, plus a catch-all torrentEvent.

Payload never crosses into script: pieces move between the network and disk inside libtorrent. 64-bit numbers and info-hashes come back as text. Besides plain downloads it covers the DHT (BEP 5 peers and the BEP 44 key-value store), UPnP / NAT-PMP port mapping, torrent creation and rp1, a custom peer-wire extension that moves opaque bytes between peers.

Install first
nothing
Topics
Networking
Author
Seth Morrow Software
Extension id
org.openxtalk.library.torrent
Source
torrentxt/src/torrent.lcb
Licences
LICENSE, OpenSSL-LICENSE.txt, THIRD-PARTY-LICENSES.md
SHA-256
18ebd2ff00d7c947e212c57f49c097693db7b4a480d5080738c96be5b0229b6d
All 85 handlers
  • btSaveResumeData(<pTorrent>)handlerRequest resume data for a torrent.
  • btAddMagnet(<pSession>,<pURI>,<pSavePath>)handlerAdd a torrent from a magnet link.
  • btPieceBitfield(<pTorrent>)handlerReturn which pieces of a torrent you have, one bit per piece.
  • btSetPieceDeadline(<pTorrent>,<pPieceIndex>,<pDeadlineMs>)handlerAsk for a piece to arrive within a time limit, for streaming.
  • btQueuePosition(<pTorrent>)handlerReturn a torrent's place in the download queue.
  • btQueueTop(<pTorrent>)handlerMove a torrent to the top of the download queue.
  • btIpFilterClear(<pSession>)handlerRemove every IP filter rule.
  • btDhtGetPeers(<pSession>,<pId>)handlerAsk the DHT which peers announced an id.
  • btQueueDown(<pTorrent>)handlerMove a torrent one place down the download queue.
  • btCreateTorrent(<pContentPath>,<pPieceSize>,<pFlags>,<pTrackers>)handlerBuild a .torrent file for a file or folder.
  • btUnsetTorrentFlags(<pTorrent>,<pFlags>)handlerClear libtorrent flag bits on a torrent.
  • btAddInfohash(<pSession>,<pInfoHash>,<pSavePath>)handlerJoin a swarm from a bare info-hash, with no content.
  • btSetShareMode(<pTorrent>,<pOn>)handlerTurn share mode on or off for a torrent.
  • btSetSuperSeeding(<pTorrent>,<pOn>)handlerTurn super-seeding on or off for a torrent.
  • btSetEncryption(<pSession>,<pIn>,<pOut>,<pLevel>)handlerSet the protocol encryption policy for peer connections.
  • btDhtLoadState(<pSession>,<pData>)handlerRestore a saved DHT routing table.
  • btUnmapPort(<pSession>,<pMappingId>)handlerRemove a router port mapping.
  • btClearTorrentError(<pTorrent>)handlerClear a torrent's error state so it can run again.
  • btSetFilePriority(<pTorrent>,<pFileIndex>,<pPriority>)handlerSet the download priority of one file in a torrent.
  • btRemoveWebSeed(<pTorrent>,<pUrl>)handlerRemove a web seed from a torrent.
  • btPoll(<pSession>)handlerCollect every pending event from the session.
  • btAddWebSeed(<pTorrent>,<pUrl>)handlerAdd a web seed to a torrent.
  • btRp1Send(<pSession>,<pPeer>,<pData>)handlerSend one rp1 message to a peer.
  • btPieceAvailability(<pTorrent>)handlerReturn how many peers have each piece of a torrent.
  • btQueueUp(<pTorrent>)handlerMove a torrent one place up the download queue.
  • btScrapeTracker(<pTorrent>)handlerAsk the trackers for a torrent's seed and leecher counts.
  • btSessionResume(<pSession>)handlerResume a paused session.
  • btTorrentCount(<pSession>)handlerReturn how many torrents the session holds.
  • btSetTorrentLimits(<pTorrent>,<pDownBytesPerSec>,<pUpBytesPerSec>)handlerSet a torrent's download and upload rate limits.
  • btAddTorrentFile(<pSession>,<pData>,<pSavePath>)handlerAdd a torrent from the bytes of a .torrent file.
  • btPause(<pTorrent>)handlerPause one torrent.
  • btTorrentHandleAt(<pSession>,<pIndex>)handlerReturn the handle of the torrent at a position in the session.
  • btPeerList(<pTorrent>)handlerReturn a torrent's connected peers.
  • btSetTorrentFlags(<pTorrent>,<pFlags>,<pMask>)handlerSet libtorrent flag bits on a torrent.
  • btAddTracker(<pTorrent>,<pUrl>,<pTier>)handlerAdd a tracker to a torrent.
  • btSetUploadMode(<pTorrent>,<pOn>)handlerTurn upload-only mode on or off for a torrent.
  • btFindTorrent(<pSession>,<pInfoHash>)handlerFind a torrent in the session by its info-hash.
  • btSessionPause(<pSession>)handlerPause the whole session.
  • btLastError()handlerReturn the text of the most recent error.
  • btAddTorrentWithResume(<pSession>,<pResume>,<pSavePath>)handlerRe-add a torrent from saved resume data.
  • btResume(<pTorrent>)handlerResume a paused torrent.
  • btClearError()handlerClear the last error message.
  • btDhtAddBootstrap(<pSession>,<pHost>,<pPort>)handlerAdd a DHT bootstrap node.
  • btDhtGetImmutable(<pSession>,<pTarget>)handlerLook up an immutable DHT item by its target.
  • btSetInt(<pSession>,<pKey>,<pValue>)handlerSet an integer session setting.
  • btListenPort(<pSession>)handlerReturn the TCP port the session is listening on.
  • btMapPort(<pSession>,<pExternalPort>,<pLocalPort>,<pIsTcp>)handlerAsk the router to forward a port to this machine with UPnP or NAT-PMP.
  • btRp1Poll(<pSession>)handlerCollect pending rp1 events from the session.
  • btDhtState(<pSession>)handlerReturn a snapshot of DHT health.
  • btAddMagnetEx(<pSession>,<pURI>,<pSavePath>,<pFlags>,<pMask>)handlerAdd a torrent from a magnet link with add-time flags.
  • btTrackers(<pTorrent>)handlerReturn a torrent's trackers.
  • btRp1Enable(<pSession>)handlerTurn on the rp1 peer-wire extension for the session.
  • btQueueBottom(<pTorrent>)handlerMove a torrent to the bottom of the download queue.
  • btTorrentStatus(<pTorrent>)handlerReturn a snapshot of a torrent's status.
  • btGetSetting(<pSession>,<pKey>)handlerRead a session setting back as text.
  • btForceRecheck(<pTorrent>)handlerCheck a torrent's data on disk against its piece hashes again.
  • btDhtGetMutable(<pSession>,<pPublicKey>,<pSalt>)handlerLook up a mutable DHT item by public key and salt.
  • btAddTorrentFileEx(<pSession>,<pData>,<pSavePath>,<pFlags>,<pMask>)handlerAdd a torrent from .torrent bytes with add-time flags.
  • btSetPiecePriority(<pTorrent>,<pPieceIndex>,<pPriority>)handlerSet the download priority of one piece.
  • btSetString(<pSession>,<pKey>,<pValue>)handlerSet a text session setting.
  • btSetMaxUploads(<pTorrent>,<pMax>)handlerLimit how many peers a torrent uploads to at once.
  • btSetAutoManaged(<pTorrent>,<pOn>)handlerLet libtorrent queue, start and stop a torrent for you.
  • btForceReannounce(<pTorrent>)handlerAnnounce a torrent to its trackers and the DHT now.
  • btRemoveTorrent(<pSession>,<pTorrent>,<pDeleteFiles>)handlerRemove a torrent from the session.
  • btStopSession(<pSession>)handlerStop the session and release its threads.
  • btDhtPutMutable(<pSession>,<pPublicKey>,<pSecretKey>,<pSalt>,<pData>)handlerStore a signed, updatable item in the DHT.
  • btDhtAnnounce(<pSession>,<pInfoHash>,<pPort>)handlerAnnounce on the DHT that we serve peers for an info-hash.
  • btFileList(<pTorrent>)handlerReturn the files of a torrent.
  • btDhtSaveState(<pSession>)handlerReturn the DHT routing table so it can be saved.
  • btSetFilePriorities(<pTorrent>,<pPriorities>)handlerSet the download priority of every file in a torrent at once.
  • btStartSession()handlerStart the one libtorrent session and return its handle.
  • btInfoHash(<pTorrent>)handlerReturn a torrent's info-hash as hex.
  • btDhtKeypair(<pSeed>)handlerCreate or re-derive an ed25519 keypair for mutable DHT items.
  • btClearPieceDeadlines(<pTorrent>)handlerRemove all piece deadlines from a torrent.
  • btSetMaxConnections(<pTorrent>,<pMax>)handlerLimit how many peer connections a torrent may have.
  • btDhtPutImmutable(<pSession>,<pData>)handlerStore an immutable item in the DHT.
  • btSessionIsPaused(<pSession>)handlerReport whether the session is paused.
  • btSetSequentialDownload(<pTorrent>,<pOn>)handlerTurn in-order download on or off for a torrent.
  • btSetBool(<pSession>,<pKey>,<pValue>)handlerSet a true/false session setting.
  • btIpFilterAdd(<pSession>,<pStartIp>,<pEndIp>,<pBlock>)handlerAdd an IP address range rule to the session's filter.
  • btDhtBep44SignBuf(<pSalt>,<pSeq>,<pValue>)handlerBuild the exact bytes to sign for a BEP 44 mutable item.
  • btDhtPutSigned(<pSession>,<pPublicKey>,<pSalt>,<pSeq>,<pValue>,<pSignature>)handlerStore a mutable DHT item signed outside this library.
  • btWebSeeds(<pTorrent>)handlerReturn a torrent's web seeds.
  • btRp1SetToken(<pSession>,<pToken>)handlerSet the token sent to peers in the rp1 handshake.
  • btMoveStorage(<pTorrent>,<pSavePath>)handlerMove a torrent's downloaded files to another folder.

TorrentXT helpers0.1.0script library

The script-side poll loop and formatting helpers for TorrentXT. Put this stack in the message path with start using stack "torrentHelpers" (or use its script as a behavior), then call btStartPolling once the session is running.

  • Any platform
Downloadtorrentxt-helpers-0.1.0.lce · 16.1 KB
More about TorrentXT helpers

libtorrent never calls back into script. The helper drains the session's events on a timer with btPoll and btRp1Poll and dispatches each one to your target as a message named after the event, such as metadataReceived, torrentFinished or rp1Message, with the event array as its one parameter. Every event is also sent as torrentEvent, a catch-all. When a drain reports that events were lost because a queue filled, the target also gets a torrentPollWarning message.

btFormatBytes and btStateName turn raw numbers into labels for a dashboard.

Install first
TorrentXT
Author
Seth Morrow Software
Extension id
torrentHelpers
Source
torrentxt/examples/torrent-helpers.livecodescript
Licences
LICENSE, OpenSSL-LICENSE.txt, THIRD-PARTY-LICENSES.md
SHA-256
bd02133a277a96eec6d0370e366c70154728e7de0cbd223e1e5e5ba8e439ba5a
All 5 handlers
  • btStopPollingcommandStop the event polling timer.
  • btStartPolling <pSession>,<pTarget>,<pIntervalMs>commandStart draining a session's events on a timer and dispatching them as messages.
  • btFormatBytes(<pBytes>)functionFormat a byte count as text such as 1.5 MiB.
  • btTorrentPollOncecommandRun one drain pass of the polling loop.
  • btStateName(<pState>)functionTurn a torrent state number into a label.
25

webpxt

One package

WebP images for OpenXTalk0.1.0native library

Reads and writes WebP images, still and animated, with Google's libwebp.

  • Win 64
  • Win 32
  • macOS
  • Linux 64
  • Linux 32
  • Linux ARM
  • Android ARM64
  • Android ARM32
  • Android x86-64
  • Android x86
Downloadwebpxt-0.1.0.lce · 3.2 MB
More about WebP images for OpenXTalk

WebP is the image format most web pictures are in today. It has a lossy kind (like JPEG, but smaller, and with transparency) and a lossless kind (like PNG, but smaller), and either can be animated.

A WebP file is plain data: the bytes of a .webp, as url "binfile:..." reads them. A picture is an array with the keys "width", "height", "imageData" and "alphaData", the last two exactly what an image object's imageData and alphaData properties hold. wpDecode turns a file into a picture and wpEncode or wpEncodeLossless turn a picture into a file. wpInfo reads a file's size without decoding it.

An animation is read one frame at a time with wpAnimOpen and wpAnimNextFrame, and written with wpAnimEncoderCreate, wpAnimEncoderAddFrame and wpAnimEncoderFinish.

No call here throws on a bad file or a bad argument. A refused call returns empty, 0 or false, and wpLastError says why.

Install first
nothing
Topics
Images, Graphics
Author
Seth Morrow Software
Extension id
org.openxtalk.library.webpxt
Source
webpxt/src/webpxt.lcb
Licences
LICENSE
SHA-256
0f8d2a4611c33fb5421efca8de16c55f13ec1ebba8ebebc6836351d67a229681
All 26 handlers
  • wpLastError()handlerReturns why the last refused call was refused.
  • wpAnimEncoderAddFrame(<pWriter>,<pImageData>,<pAlphaData>,<pDuration>)handlerAdds one frame to an animation being written.
  • wpInfo(<pData>)handlerReads the size and kind of a WebP file without decoding it.
  • wpAnimEncoderIsValid(<pWriter>)handlerReports whether a handle is an animation being written.
  • wpAnimHeight(<pAnim>)handlerReturns the height of an open animation, in pixels.
  • wpAnimEncoderFrameCount(<pWriter>)handlerReturns how many frames an animation being written holds.
  • wpAnimEncoderOpenCount()handlerReturns how many animations are being written.
  • wpDecodeScaled(<pData>,<pWidth>,<pHeight>)handlerDecodes a still WebP file straight to a given size.
  • wpAnimLoopCount(<pAnim>)handlerReturns how many times an animation asks to be played.
  • wpAnimFrameCount(<pAnim>)handlerReturns how many frames an open animation has.
  • wpAnimNextFrame(<pAnim>)handlerDecodes the next frame of an open animation.
  • wpABIVersion()handlerReturns the ABI number of the native library that is loaded.
  • wpEncodeLossless(<pImageData>,<pAlphaData>,<pWidth>,<pHeight>)handlerWrites a picture as a lossless WebP file.
  • wpAnimEncoderCreate(<pWidth>,<pHeight>,<pLoops>,<pQuality>,<pLossless>)handlerStarts writing an animated WebP file.
  • wpAnimEncoderFinish(<pWriter>)handlerFinishes an animation and returns it as a WebP file.
  • wpAnimClose(<pAnim>)handlerCloses an animation opened with wpAnimOpen and frees its memory.
  • wpAnimWidth(<pAnim>)handlerReturns the width of an open animation, in pixels.
  • wpEncode(<pImageData>,<pAlphaData>,<pWidth>,<pHeight>,<pQuality>)handlerWrites a picture as a lossy WebP file.
  • wpAnimEncoderDiscard(<pWriter>)handlerDrops an animation being written, without writing it.
  • wpEncodeAdvanced(<pImageData>,<pAlphaData>,<pWidth>,<pHeight>,<pQuality>,<pLossless>,<pEffort>)handlerWrites a picture as a WebP file, with every setting given.
  • wpLibraryVersion()handlerReturns the versions of the native library and of libwebp inside it.
  • wpAnimRewind(<pAnim>)handlerStarts an open animation again from its first frame.
  • wpAnimOpenCount()handlerReturns how many animations are open.
  • wpDecode(<pData>)handlerDecodes a WebP file into a picture.
  • wpAnimIsValid(<pAnim>)handlerReports whether a handle is an open animation.
  • wpAnimOpen(<pData>)handlerOpens a WebP file for reading one frame at a time.
26

xlsxt

One package

Excel Spreadsheets for OpenXTalk0.1.0native library

Reads and writes Excel workbooks (.xlsx files), with no copy of Excel and no other program needed.

  • Win 64
  • Win 32
  • macOS
  • Linux 64
  • Linux 32
  • Linux ARM
  • Android ARM64
  • Android ARM32
  • Android x86-64
  • Android x86
Downloadxlsxt-0.1.0.lce · 3.2 MB
More about Excel Spreadsheets for OpenXTalk

To WRITE a file, make a workbook with xlWorkbookNew, give it sheets with xlWorkbookAddSheet, put values into cells with xlSheetWriteText, xlSheetWriteNumber, xlSheetWriteFormula and the rest (or a whole table at once with xlSheetWriteGrid), and finish with xlWorkbookClose, which is the call that writes the file. Formats from xlWorkbookAddFormat give cells their fonts, colours, borders and number formats; charts from xlWorkbookAddChart draw the numbers.

To READ a file, open it with xlReadOpen, ask what it holds with xlReadSheetCount and xlReadSheetName, read cells with xlReadCell or a whole block with xlReadGrid, and finish with xlReadClose. Files written by Excel, LibreOffice, Numbers and Google Sheets can be read.

A workbook that is being written cannot be read back or changed until it is closed, and an existing file cannot be edited in place: read it, then write a new one.

Rows and columns are numbers starting at 1, so row 1, column 1 is cell A1; xlCellName and xlColumnName turn numbers into Excel's letters. Workbooks, sheets, formats, charts and readers are integer handles. 0 means a call was refused, and a stale handle is harmless: getters return 0 or empty, actions do nothing. xlLastError says why a call was refused, and xlWorkbookErrorCount says how many calls a workbook has refused so far.

A date is a number to Excel: the days since the end of 1899, with the time as a fraction. xlDateToSerial and xlSerialToDate convert, and a cell shows as a date when its format has a date number format.

Built on libxlsxwriter by John McNamara, with zlib and Expat.

Install first
nothing
Topics
Spreadsheet, Excel, Files
Author
Seth Morrow Software
Extension id
org.openxtalk.library.xlsxt
Source
xlsxt/src/xlsxt.lcb
Licences
LICENSE, THIRD-PARTY-LICENSES.md
SHA-256
d4ba2727358f756067221e3f955d52a673579de003166e3c22b773ae4add46a8
All 121 handlers
  • xlReadCellKind(<pReader>,<pSheet>,<pRow>,<pColumn>)handlerReturns what kind of value a cell holds.
  • xlFormatSetBackgroundColor(<pFormat>,<pColor>)handlerFills the cells of a format with a colour.
  • xlSheetSetMargins(<pSheet>,<pLeft>,<pRight>,<pTop>,<pBottom>)handlerSets the margins a sheet prints with.
  • xlFormatSetShrink(<pFormat>,<pFlag>)handlerShrinks text to fit the width of the cell, or not.
  • xlWorkbookDefineName(<pBook>,<pName>,<pFormula>)handlerGives a name to a cell, a range or a formula, for use in other formulas.
  • xlChartIsValid(<pChart>)handlerReports whether a handle names a chart of an open workbook.
  • xlWorkbookClose(<pBook>)handlerWrites the workbook to its file and closes it.
  • xlLastError()handlerReturns why the last call was refused.
  • xlFormatSetFontName(<pFormat>,<pName>)handlerSets the font of a format.
  • xlChartSeriesSetName(<pChart>,<pSeries>,<pName>)handlerNames a series; the name shows in the chart's legend.
  • xlReadCellValue(<pReader>,<pSheet>,<pRow>,<pColumn>)handlerReturns what a cell holds, with a date left as its number.
  • xlChartSeriesSetColor(<pChart>,<pSeries>,<pColor>)handlerSets the colour a series is drawn in.
  • xlSheetSetPaper(<pSheet>,<pPaper>)handlerSets the paper a sheet prints on.
  • xlSheetRepeatRows(<pSheet>,<pFirstRow>,<pLastRow>)handlerPrints a run of rows again at the top of every page.
  • xlReadClose(<pReader>)handlerCloses a file opened with xlReadOpen.
  • xlSheetWriteText(<pSheet>,<pRow>,<pColumn>,<pText>,<pFormat>)handlerWrites text into a cell.
  • xlSheetHide(<pSheet>)handlerHides a sheet.
  • xlSheetSetTabColor(<pSheet>,<pColor>)handlerColours the tab of a sheet.
  • xlSheetInsertChart(<pSheet>,<pRow>,<pColumn>,<pChart>,<pXScale>,<pYScale>)handlerPuts a chart on a sheet.
  • xlChartSetAxisGridlines(<pChart>,<pAxis>,<pFlag>)handlerShows or hides the lines a chart draws across from an axis.
  • xlFormatSetLocked(<pFormat>,<pFlag>)handlerSays whether cells of a format can be edited once the sheet is protected.
  • xlReadCount()handlerReturns how many files are open for reading.
  • xlReadLoad(<pReader>,<pSheet>)handlerReads a sheet's cells into memory and reports whether that worked.
  • xlRangeFormula(<pSheetName>,<pFirstRow>,<pFirstColumn>,<pLastRow>,<pLastColumn>)handlerReturns a range written the way a chart series or a defined name wants it.
  • xlSheetFreeze(<pSheet>,<pRows>,<pColumns>)handlerKeeps the top rows and left columns in view while the rest of the sheet scrolls.
  • xlReadSheetIsHidden(<pReader>,<pSheet>)handlerReports whether a sheet of a file is hidden.
  • xlLibraryVersion()handlerReturns the versions of the native library and of the libraries inside it.
  • xlSheetWriteGrid(<pSheet>,<pRow>,<pColumn>,<pText>,<pMode>,<pFormat>)handlerWrites a whole table of cells from one text.
  • xlWorkbookAddChart(<pBook>,<pKind>)handlerMakes a chart.
  • xlSheetSetRow(<pSheet>,<pRow>,<pHeight>,<pFormat>)handlerSets the height of a row, and its format.
  • xlColumnName(<pColumn>)handlerReturns the letters of a column.
  • xlDateToSerial(<pYear>,<pMonth>,<pDay>,<pHour>,<pMinute>,<pSecond>)handlerReturns the number Excel uses for a date and time.
  • xlReadCellNumber(<pReader>,<pSheet>,<pRow>,<pColumn>)handlerReturns the number a cell holds.
  • xlChartSetStyle(<pChart>,<pStyle>)handlerGives a chart one of Excel's built-in looks.
  • xlWorkbookFirstError(<pBook>)handlerReturns why the first refused call on a workbook was refused.
  • xlSerialToDate(<pSerial>)handlerReturns the date and time that a serial number stands for.
  • xlWorkbookAddSheet(<pBook>,<pName>)handlerAdds a sheet to a workbook.
  • xlSheetPrintArea(<pSheet>,<pFirstRow>,<pFirstColumn>,<pLastRow>,<pLastColumn>)handlerLimits what prints to one range of a sheet.
  • xlChartSeriesCount(<pChart>)handlerReturns how many series a chart has.
  • xlABIVersion()handlerReturns the ABI number of the native library that is loaded.
  • xlWorkbookSheetCount(<pBook>)handlerReturns how many sheets a workbook has so far.
  • xlFormatSetBold(<pFormat>,<pFlag>)handlerMakes a format bold, or not.
  • xlChartSeriesSetMarker(<pChart>,<pSeries>,<pKind>)handlerSets the mark drawn at each point of a series.
  • xlReadUses1904(<pReader>)handlerReports whether a file counts its dates from 1904.
  • xlFormatSetBorderSide(<pFormat>,<pSide>,<pStyle>)handlerDraws a border on one side of the cells of a format.
  • xlReadGrid(<pReader>,<pSheet>,<pFirstRow>,<pFirstColumn>,<pLastRow>,<pLastColumn>)handlerReturns a block of cells as one text.
  • xlReadCellFormula(<pReader>,<pSheet>,<pRow>,<pColumn>)handlerReturns the formula of a cell.
  • xlSheetSetLandscape(<pSheet>,<pFlag>)handlerSets whether a sheet prints sideways.
  • xlFormatSetNumberFormat(<pFormat>,<pCode>)handlerSets how a format shows numbers and dates.
  • xlChartSetAxisTitle(<pChart>,<pAxis>,<pTitle>)handlerSets the title of an axis of a chart.
  • xlSheetName(<pSheet>)handlerReturns the name of a sheet.
  • xlWorkbookIsValid(<pBook>)handlerReports whether a handle names an open workbook.
  • xlCellColumn(<pName>)handlerReturns the column of a cell name.
  • xlSheetWriteBoolean(<pSheet>,<pRow>,<pColumn>,<pFlag>,<pFormat>)handlerWrites TRUE or FALSE into a cell.
  • xlSheetInsertImage(<pSheet>,<pRow>,<pColumn>,<pPath>,<pXScale>,<pYScale>)handlerPuts a picture on a sheet.
  • xlReadMerged(<pReader>,<pSheet>)handlerReturns the merged blocks of a sheet.
  • xlReadCell(<pReader>,<pSheet>,<pRow>,<pColumn>)handlerReturns what a cell shows.
  • xlFormatSetBorder(<pFormat>,<pStyle>)handlerDraws a border on all four sides of the cells of a format.
  • xlChartSetAxisRange(<pChart>,<pAxis>,<pMinimum>,<pMaximum>)handlerSets the lowest and highest values an axis shows.
  • xlReadColumnCount(<pReader>,<pSheet>)handlerReturns the number of the last column of a sheet that holds anything.
  • xlFormatSetVerticalAlign(<pFormat>,<pAlignment>)handlerSets how a format places text up and down the cell.
  • xlChartSeriesSetSmooth(<pChart>,<pSeries>,<pFlag>)handlerDraws the line of a series as a smooth curve, or not.
  • xlFormatSetFontSize(<pFormat>,<pSize>)handlerSets the font size of a format.
  • xlChartAddSeries(<pChart>,<pCategories>,<pValues>)handlerAdds a series, a set of values to plot, to a chart.
  • xlFormatSetFontColor(<pFormat>,<pColor>)handlerSets the colour of the text of a format.
  • xlReadCellFormat(<pReader>,<pSheet>,<pRow>,<pColumn>)handlerReturns the number format of a cell.
  • xlSecondsToSerial(<pSeconds>)handlerConverts a count of seconds, such as the seconds, to a date serial.
  • xlCellName(<pRow>,<pColumn>)handlerReturns the name of a cell.
  • xlFormatSetUnderline(<pFormat>,<pStyle>)handlerSets how a format underlines text.
  • xlSheetActivate(<pSheet>)handlerMakes this the sheet that shows when the file opens.
  • xlFormatSetItalic(<pFormat>,<pFlag>)handlerMakes a format italic, or not.
  • xlSheetSetFooter(<pSheet>,<pText>)handlerSets the text printed at the bottom of every page of a sheet.
  • xlSetTempFolder(<pFolder>)handlerChooses the folder that temporary files are made in while a workbook is written.
  • xlWorkbookDiscard(<pBook>)handlerCloses a workbook without writing its file.
  • xlSheetFitToPages(<pSheet>,<pWide>,<pTall>)handlerShrinks a sheet's print to fit a number of pages.
  • xlFormatSetScript(<pFormat>,<pStyle>)handlerRaises or lowers the text of a format.
  • xlFormatSetBorderColor(<pFormat>,<pColor>)handlerSets the colour of the borders of a format.
  • xlReadOpen(<pPath>)handlerOpens an .xlsx file for reading.
  • xlRangeName(<pFirstRow>,<pFirstColumn>,<pLastRow>,<pLastColumn>)handlerReturns the name of a range of cells.
  • xlReadSheetName(<pReader>,<pSheet>)handlerReturns the name of a sheet of a file.
  • xlWorkbookCount()handlerReturns how many workbooks are open for writing.
  • xlSheetProtect(<pSheet>,<pPassword>)handlerStops a sheet's cells from being edited.
  • xlWorkbookNew(<pPath>)handlerStarts a new workbook that will be saved as an .xlsx file.
  • xlSerialToSeconds(<pSerial>)handlerConverts a date serial to seconds counted from the start of 1970.
  • xlSheetWriteNumber(<pSheet>,<pRow>,<pColumn>,<pNumber>,<pFormat>)handlerWrites a number into a cell.
  • xlReadRowCount(<pReader>,<pSheet>)handlerReturns the number of the last row of a sheet that holds anything.
  • xlChartSetLegend(<pChart>,<pPosition>)handlerPlaces the legend of a chart, or removes it.
  • xlTempFolder()handlerReturns the folder chosen with xlSetTempFolder.
  • xlSheetHideRow(<pSheet>,<pRow>)handlerHides a row.
  • xlReadSheetCount(<pReader>)handlerReturns how many sheets a file has.
  • xlSheetSetColumns(<pSheet>,<pFirstColumn>,<pLastColumn>,<pWidth>,<pFormat>)handlerSets the width of one or more columns, and their format.
  • xlSheetShowGridlines(<pSheet>,<pScreenFlag>,<pPrintFlag>)handlerShows or hides the grey lines between cells.
  • xlSheetSetHeader(<pSheet>,<pText>)handlerSets the text printed at the top of every page of a sheet.
  • xlCellRow(<pName>)handlerReturns the row of a cell name.
  • xlSheetValidateList(<pSheet>,<pFirstRow>,<pFirstColumn>,<pLastRow>,<pLastColumn>,<pItems>)handlerGives every cell of a range a drop-down list of allowed values.
  • xlFormatSetStrikeout(<pFormat>,<pFlag>)handlerStrikes the text of a format through, or not.
  • xlFormatSetFormulaHidden(<pFormat>,<pFlag>)handlerHides the formulas of cells of a format once the sheet is protected.
  • xlWorkbookSetProperty(<pBook>,<pName>,<pValue>)handlerSets one of the document properties Excel shows under File, Info.
  • xlSheetAutofilter(<pSheet>,<pFirstRow>,<pFirstColumn>,<pLastRow>,<pLastColumn>)handlerPuts filter buttons on the heading row of a range.
  • xlChartSetAxisNumberFormat(<pChart>,<pAxis>,<pCode>)handlerSets how the numbers along an axis are shown.
  • xlSheetSetZoom(<pSheet>,<pPercent>)handlerSets how far a sheet is zoomed when the file opens.
  • xlSheetHideColumns(<pSheet>,<pFirstColumn>,<pLastColumn>)handlerHides one or more columns.
  • xlSheetWriteDate(<pSheet>,<pRow>,<pColumn>,<pSerial>,<pFormat>)handlerWrites a date, a time or both into a cell.
  • xlWorkbookErrorCount(<pBook>)handlerReturns how many calls on a workbook have been refused.
  • xlSheetWriteFormulaValue(<pSheet>,<pRow>,<pColumn>,<pFormula>,<pValue>,<pFormat>)handlerWrites a formula into a cell, along with the result to show before it is calculated.
  • xlWorkbookAddFormat(<pBook>)handlerMakes a cell format: a font, colours, borders, a number format.
  • xlChartSeriesSetLabels(<pChart>,<pSeries>,<pFlag>)handlerShows each point's value beside it, or not.
  • xlFormatSetRotation(<pFormat>,<pDegrees>)handlerTurns the text of a format.
  • xlSheetWriteFormula(<pSheet>,<pRow>,<pColumn>,<pFormula>,<pFormat>)handlerWrites a formula into a cell.
  • xlSheetWriteComment(<pSheet>,<pRow>,<pColumn>,<pText>)handlerAttaches a note to a cell.
  • xlChartSetTitle(<pChart>,<pTitle>)handlerSets the title of a chart.
  • xlReadSheetNumber(<pReader>,<pName>)handlerFinds a sheet of a file by its name.
  • xlReadIsValid(<pReader>)handlerReports whether a handle names a file that is open for reading.
  • xlSheetWriteBlank(<pSheet>,<pRow>,<pColumn>,<pFormat>)handlerGives an empty cell a format.
  • xlFormatSetIndent(<pFormat>,<pLevel>)handlerIndents the text of a format.
  • xlFormatIsValid(<pFormat>)handlerReports whether a handle names a format of an open workbook.
  • xlFormatSetTextWrap(<pFormat>,<pFlag>)handlerLets long text wrap onto more lines inside the cell, or not.
  • xlSheetMerge(<pSheet>,<pFirstRow>,<pFirstColumn>,<pLastRow>,<pLastColumn>,<pText>,<pFormat>)handlerMerges a block of cells into one and writes text into it.
  • xlSheetIsValid(<pSheet>)handlerReports whether a handle names a sheet of an open workbook.
  • xlFormatSetAlign(<pFormat>,<pAlignment>)handlerSets how a format places text across the cell.