Jsfx

object Jsfx

The free functions of uapmd-format-jsfx/uapmd-format-jsfx.hpp.

Properties

Link copied to clipboard

jsfxFolderMirrorRoot().

Link copied to clipboard

False when this build does not include JSFX.

Link copied to clipboard

jsfxRegisteredFolders().

Link copied to clipboard

jsfxUserContentDirectory(): where imports are kept; empty where nothing is writable.

Link copied to clipboard

jsfxUsesOwnFontBackend(): whether setEditorFontData has any effect.

Functions

Link copied to clipboard

clearJsfxFolderMirror().

Link copied to clipboard
fun importContent(fileName: String, data: ByteArray, subdirectory: String = ""): JsfxImportResult

importJsfxContent(): copies a single file or unpacks an archive into the user content directory, optionally under subdirectory. A rescan is needed afterwards.

Link copied to clipboard

looksLikeJsfxArchive().

Link copied to clipboard
fun registerFolder(token: String, name: String): String

registerJsfxFolder(): the name actually used, or empty when it could not be registered.

Link copied to clipboard

setJsfxEditorFontData(): TrueType data for the editor; copied.

Link copied to clipboard

unregisterJsfxFolder(): forgets the folder and deletes its mirror. Give the grant back with DocumentProvider.releaseFolder as well.

Link copied to clipboard

writeJsfxFolderMirrorFile().