CommandQueueBridge

Abstraction of calls to the native command queue.

Allows for mocking in tests.

Functions

Link copied to clipboard
abstract fun cppAdvanceStateMachine(pointer: Long, stateMachineHandle: Long, deltaTimeNs: Long)
Link copied to clipboard
abstract fun cppAppendToList(pointer: Long, viewModelInstanceHandle: Long, propertyPath: String, itemHandle: Long)
Link copied to clipboard
abstract fun cppBindViewModelInstance(pointer: Long, requestID: Long, stateMachineHandle: Long, viewModelInstanceHandle: Long)
Link copied to clipboard
abstract fun cppCancelDraw(pointer: Long, drawKey: Long)
Link copied to clipboard
abstract fun cppConstructor(renderContextPointer: Long): Long
Link copied to clipboard
abstract fun cppCreateArtboardByName(pointer: Long, requestID: Long, fileHandle: Long, name: String): Long
Link copied to clipboard
abstract fun cppCreateDefaultArtboard(pointer: Long, requestID: Long, fileHandle: Long): Long
Link copied to clipboard
abstract fun cppCreateDefaultStateMachine(pointer: Long, requestID: Long, artboardHandle: Long): Long
Link copied to clipboard
abstract fun cppCreateDrawKey(pointer: Long): Long
Link copied to clipboard
abstract fun cppCreateListeners(pointer: Long, receiver: CommandQueue): Listeners
Link copied to clipboard
abstract fun cppCreateStateMachineByName(pointer: Long, requestID: Long, artboardHandle: Long, name: String): Long
Link copied to clipboard
abstract fun cppDecodeAudio(pointer: Long, requestID: Long, bytes: ByteArray)
Link copied to clipboard
abstract fun cppDecodeFont(pointer: Long, requestID: Long, bytes: ByteArray)
Link copied to clipboard
abstract fun cppDecodeImage(pointer: Long, requestID: Long, bytes: ByteArray)
Link copied to clipboard
abstract fun cppDefaultVMCreateBlankVMI(pointer: Long, requestID: Long, fileHandle: Long, artboardHandle: Long): Long
Link copied to clipboard
abstract fun cppDefaultVMCreateDefaultVMI(pointer: Long, requestID: Long, fileHandle: Long, artboardHandle: Long): Long
Link copied to clipboard
abstract fun cppDefaultVMCreateNamedVMI(pointer: Long, requestID: Long, fileHandle: Long, artboardHandle: Long, instanceName: String): Long
Link copied to clipboard
abstract fun cppDelete(pointer: Long)
Link copied to clipboard
abstract fun cppDeleteArtboard(pointer: Long, requestID: Long, artboardHandle: Long)
Link copied to clipboard
abstract fun cppDeleteAudio(pointer: Long, audioHandle: Long)
Link copied to clipboard
abstract fun cppDeleteFile(pointer: Long, requestID: Long, fileHandle: Long)
Link copied to clipboard
abstract fun cppDeleteFont(pointer: Long, fontHandle: Long)
Link copied to clipboard
abstract fun cppDeleteImage(pointer: Long, imageHandle: Long)
Link copied to clipboard
abstract fun cppDeleteStateMachine(pointer: Long, requestID: Long, stateMachineHandle: Long)
Link copied to clipboard
abstract fun cppDeleteViewModelInstance(pointer: Long, requestID: Long, viewModelInstanceHandle: Long)
Link copied to clipboard
abstract fun cppDraw(pointer: Long, renderContextPointer: Long, surfaceNativePointer: Long, drawKey: Long, artboardHandle: Long, stateMachineHandle: Long, width: Int, height: Int, fit: Byte, alignment: Byte, scaleFactor: Float, clearColor: Int)
Link copied to clipboard
abstract fun cppDrawToBuffer(pointer: Long, renderContextPointer: Long, surfaceNativePointer: Long, drawKey: Long, artboardHandle: Long, stateMachineHandle: Long, width: Int, height: Int, fit: Byte, alignment: Byte, scaleFactor: Float, clearColor: Int, buffer: ByteArray)
Link copied to clipboard
abstract fun cppFireTriggerProperty(pointer: Long, viewModelInstanceHandle: Long, propertyPath: String)
Link copied to clipboard
abstract fun cppGetArtboardNames(pointer: Long, requestID: Long, fileHandle: Long)
Link copied to clipboard
abstract fun cppGetBooleanProperty(pointer: Long, requestID: Long, viewModelInstanceHandle: Long, propertyPath: String)
Link copied to clipboard
abstract fun cppGetColorProperty(pointer: Long, requestID: Long, viewModelInstanceHandle: Long, propertyPath: String)
Link copied to clipboard
abstract fun cppGetDefaultViewModelInfo(pointer: Long, requestID: Long, fileHandle: Long, artboardHandle: Long)
Link copied to clipboard
abstract fun cppGetEnumProperty(pointer: Long, requestID: Long, viewModelInstanceHandle: Long, propertyPath: String)
Link copied to clipboard
abstract fun cppGetEnums(pointer: Long, requestID: Long, fileHandle: Long)
Link copied to clipboard
abstract fun cppGetListSize(pointer: Long, requestID: Long, viewModelInstanceHandle: Long, propertyPath: String)
Link copied to clipboard
abstract fun cppGetNumberProperty(pointer: Long, requestID: Long, viewModelInstanceHandle: Long, propertyPath: String)
Link copied to clipboard
abstract fun cppGetStateMachineNames(pointer: Long, requestID: Long, artboardHandle: Long)
Link copied to clipboard
abstract fun cppGetStringProperty(pointer: Long, requestID: Long, viewModelInstanceHandle: Long, propertyPath: String)
Link copied to clipboard
abstract fun cppGetViewModelInstanceNames(pointer: Long, requestID: Long, fileHandle: Long, viewModelName: String)
Link copied to clipboard
abstract fun cppGetViewModelNames(pointer: Long, requestID: Long, fileHandle: Long)
Link copied to clipboard
abstract fun cppGetViewModelProperties(pointer: Long, requestID: Long, fileHandle: Long, viewModelName: String)
Link copied to clipboard
abstract fun cppInsertToListAtIndex(pointer: Long, viewModelInstanceHandle: Long, propertyPath: String, index: Int, itemHandle: Long)
Link copied to clipboard
abstract fun cppLoadFile(pointer: Long, requestID: Long, bytes: ByteArray)
Link copied to clipboard
abstract fun cppNamedVMCreateBlankVMI(pointer: Long, requestID: Long, fileHandle: Long, viewModelName: String): Long
Link copied to clipboard
abstract fun cppNamedVMCreateDefaultVMI(pointer: Long, requestID: Long, fileHandle: Long, viewModelName: String): Long
Link copied to clipboard
abstract fun cppNamedVMCreateNamedVMI(pointer: Long, requestID: Long, fileHandle: Long, viewModelName: String, instanceName: String): Long
Link copied to clipboard
abstract fun cppPointerDown(pointer: Long, stateMachineHandle: Long, fit: Byte, alignment: Byte, layoutScale: Float, surfaceWidth: Float, surfaceHeight: Float, pointerID: Int, x: Float, y: Float)
Link copied to clipboard
abstract fun cppPointerExit(pointer: Long, stateMachineHandle: Long, fit: Byte, alignment: Byte, layoutScale: Float, surfaceWidth: Float, surfaceHeight: Float, pointerID: Int, x: Float, y: Float)
Link copied to clipboard
abstract fun cppPointerMove(pointer: Long, stateMachineHandle: Long, fit: Byte, alignment: Byte, layoutScale: Float, surfaceWidth: Float, surfaceHeight: Float, pointerID: Int, x: Float, y: Float)
Link copied to clipboard
abstract fun cppPointerUp(pointer: Long, stateMachineHandle: Long, fit: Byte, alignment: Byte, layoutScale: Float, surfaceWidth: Float, surfaceHeight: Float, pointerID: Int, x: Float, y: Float)
Link copied to clipboard
abstract fun cppPollMessages(pointer: Long)
Link copied to clipboard
abstract fun cppReferenceListItemVMI(pointer: Long, requestID: Long, viewModelInstanceHandle: Long, path: String, index: Int): Long
Link copied to clipboard
abstract fun cppReferenceNestedVMI(pointer: Long, requestID: Long, viewModelInstanceHandle: Long, path: String): Long
Link copied to clipboard
abstract fun cppRegisterAudio(pointer: Long, name: String, audioHandle: Long)
Link copied to clipboard
abstract fun cppRegisterFont(pointer: Long, name: String, fontHandle: Long)
Link copied to clipboard
abstract fun cppRegisterImage(pointer: Long, name: String, imageHandle: Long)
Link copied to clipboard
abstract fun cppRemoveFromList(pointer: Long, viewModelInstanceHandle: Long, propertyPath: String, itemHandle: Long)
Link copied to clipboard
abstract fun cppRemoveFromListAtIndex(pointer: Long, viewModelInstanceHandle: Long, propertyPath: String, index: Int)
Link copied to clipboard
abstract fun cppResetArtboardSize(pointer: Long, artboardHandle: Long)
Link copied to clipboard
abstract fun cppResizeArtboard(pointer: Long, artboardHandle: Long, width: Int, height: Int, scaleFactor: Float)
Link copied to clipboard
abstract fun cppRunOnCommandServer(pointer: Long, work: () -> Unit)
Link copied to clipboard
abstract fun cppSetArtboardProperty(pointer: Long, viewModelInstanceHandle: Long, propertyPath: String, artboardHandle: Long)
Link copied to clipboard
abstract fun cppSetBooleanProperty(pointer: Long, viewModelInstanceHandle: Long, propertyPath: String, value: Boolean)
Link copied to clipboard
abstract fun cppSetColorProperty(pointer: Long, viewModelInstanceHandle: Long, propertyPath: String, value: Int)
Link copied to clipboard
abstract fun cppSetEnumProperty(pointer: Long, viewModelInstanceHandle: Long, propertyPath: String, value: String)
Link copied to clipboard
abstract fun cppSetImageProperty(pointer: Long, viewModelInstanceHandle: Long, propertyPath: String, imageHandle: Long)
Link copied to clipboard
abstract fun cppSetNumberProperty(pointer: Long, viewModelInstanceHandle: Long, propertyPath: String, value: Float)
Link copied to clipboard
abstract fun cppSetStringProperty(pointer: Long, viewModelInstanceHandle: Long, propertyPath: String, value: String)
Link copied to clipboard
abstract fun cppSetTracingEnabled(pointer: Long, enabled: Boolean)
Link copied to clipboard
abstract fun cppSetViewModelInstanceProperty(pointer: Long, viewModelInstanceHandle: Long, propertyPath: String, valueHandle: Long)
Link copied to clipboard
abstract fun cppSubscribeToProperty(pointer: Long, viewModelInstanceHandle: Long, propertyPath: String, propertyType: Int)
Link copied to clipboard
abstract fun cppSwapListItems(pointer: Long, viewModelInstanceHandle: Long, propertyPath: String, indexA: Int, indexB: Int)
Link copied to clipboard
abstract fun cppUnregisterAudio(pointer: Long, name: String)
Link copied to clipboard
abstract fun cppUnregisterFont(pointer: Long, name: String)
Link copied to clipboard
abstract fun cppUnregisterImage(pointer: Long, name: String)
Link copied to clipboard
abstract fun isCurrentThreadCommandServer(pointer: Long): Boolean