-
public interface CommandQueueBridgeAbstraction of calls to the native command queue.
Allows for mocking in tests.
-
-
Method Summary
Modifier and Type Method Description abstract LongcppConstructor(Long renderContextPointer)abstract UnitcppDelete(Long pointer)abstract ListenerscppCreateListeners(Long pointer, CommandQueue receiver)abstract UnitcppPollMessages(Long pointer)abstract UnitcppLoadFile(Long pointer, Long requestID, ByteArray bytes)abstract UnitcppDeleteFile(Long pointer, Long requestID, Long fileHandle)abstract UnitcppGetArtboardNames(Long pointer, Long requestID, Long fileHandle)abstract UnitcppGetStateMachineNames(Long pointer, Long requestID, Long artboardHandle)abstract UnitcppGetDefaultViewModelInfo(Long pointer, Long requestID, Long fileHandle, Long artboardHandle)abstract UnitcppGetViewModelNames(Long pointer, Long requestID, Long fileHandle)abstract UnitcppGetViewModelInstanceNames(Long pointer, Long requestID, Long fileHandle, String viewModelName)abstract UnitcppGetViewModelProperties(Long pointer, Long requestID, Long fileHandle, String viewModelName)abstract UnitcppGetEnums(Long pointer, Long requestID, Long fileHandle)abstract LongcppCreateDefaultArtboard(Long pointer, Long requestID, Long fileHandle)abstract LongcppCreateArtboardByName(Long pointer, Long requestID, Long fileHandle, String name)abstract UnitcppDeleteArtboard(Long pointer, Long requestID, Long artboardHandle)abstract LongcppCreateDefaultStateMachine(Long pointer, Long requestID, Long artboardHandle)abstract LongcppCreateStateMachineByName(Long pointer, Long requestID, Long artboardHandle, String name)abstract UnitcppDeleteStateMachine(Long pointer, Long requestID, Long stateMachineHandle)abstract UnitcppAdvanceStateMachine(Long pointer, Long stateMachineHandle, Long deltaTimeNs)abstract LongcppNamedVMCreateBlankVMI(Long pointer, Long requestID, Long fileHandle, String viewModelName)abstract LongcppDefaultVMCreateBlankVMI(Long pointer, Long requestID, Long fileHandle, Long artboardHandle)abstract LongcppNamedVMCreateDefaultVMI(Long pointer, Long requestID, Long fileHandle, String viewModelName)abstract LongcppDefaultVMCreateDefaultVMI(Long pointer, Long requestID, Long fileHandle, Long artboardHandle)abstract LongcppNamedVMCreateNamedVMI(Long pointer, Long requestID, Long fileHandle, String viewModelName, String instanceName)abstract LongcppDefaultVMCreateNamedVMI(Long pointer, Long requestID, Long fileHandle, Long artboardHandle, String instanceName)abstract LongcppReferenceNestedVMI(Long pointer, Long requestID, Long viewModelInstanceHandle, String path)abstract LongcppReferenceListItemVMI(Long pointer, Long requestID, Long viewModelInstanceHandle, String path, Integer index)abstract UnitcppDeleteViewModelInstance(Long pointer, Long requestID, Long viewModelInstanceHandle)abstract UnitcppBindViewModelInstance(Long pointer, Long requestID, Long stateMachineHandle, Long viewModelInstanceHandle)abstract UnitcppSetNumberProperty(Long pointer, Long viewModelInstanceHandle, String propertyPath, Float value)abstract UnitcppGetNumberProperty(Long pointer, Long requestID, Long viewModelInstanceHandle, String propertyPath)abstract UnitcppSetStringProperty(Long pointer, Long viewModelInstanceHandle, String propertyPath, String value)abstract UnitcppGetStringProperty(Long pointer, Long requestID, Long viewModelInstanceHandle, String propertyPath)abstract UnitcppSetBooleanProperty(Long pointer, Long viewModelInstanceHandle, String propertyPath, Boolean value)abstract UnitcppGetBooleanProperty(Long pointer, Long requestID, Long viewModelInstanceHandle, String propertyPath)abstract UnitcppSetEnumProperty(Long pointer, Long viewModelInstanceHandle, String propertyPath, String value)abstract UnitcppGetEnumProperty(Long pointer, Long requestID, Long viewModelInstanceHandle, String propertyPath)abstract UnitcppSetColorProperty(Long pointer, Long viewModelInstanceHandle, String propertyPath, Integer value)abstract UnitcppGetColorProperty(Long pointer, Long requestID, Long viewModelInstanceHandle, String propertyPath)abstract UnitcppFireTriggerProperty(Long pointer, Long viewModelInstanceHandle, String propertyPath)abstract UnitcppSubscribeToProperty(Long pointer, Long viewModelInstanceHandle, String propertyPath, Integer propertyType)abstract UnitcppSetImageProperty(Long pointer, Long viewModelInstanceHandle, String propertyPath, Long imageHandle)abstract UnitcppSetArtboardProperty(Long pointer, Long viewModelInstanceHandle, String propertyPath, Long artboardHandle)abstract UnitcppGetListSize(Long pointer, Long requestID, Long viewModelInstanceHandle, String propertyPath)abstract UnitcppInsertToListAtIndex(Long pointer, Long viewModelInstanceHandle, String propertyPath, Integer index, Long itemHandle)abstract UnitcppAppendToList(Long pointer, Long viewModelInstanceHandle, String propertyPath, Long itemHandle)abstract UnitcppRemoveFromListAtIndex(Long pointer, Long viewModelInstanceHandle, String propertyPath, Integer index)abstract UnitcppRemoveFromList(Long pointer, Long viewModelInstanceHandle, String propertyPath, Long itemHandle)abstract UnitcppSwapListItems(Long pointer, Long viewModelInstanceHandle, String propertyPath, Integer indexA, Integer indexB)abstract UnitcppDecodeImage(Long pointer, Long requestID, ByteArray bytes)abstract UnitcppDeleteImage(Long pointer, Long imageHandle)abstract UnitcppRegisterImage(Long pointer, String name, Long imageHandle)abstract UnitcppUnregisterImage(Long pointer, String name)abstract UnitcppDecodeAudio(Long pointer, Long requestID, ByteArray bytes)abstract UnitcppDeleteAudio(Long pointer, Long audioHandle)abstract UnitcppRegisterAudio(Long pointer, String name, Long audioHandle)abstract UnitcppUnregisterAudio(Long pointer, String name)abstract UnitcppDecodeFont(Long pointer, Long requestID, ByteArray bytes)abstract UnitcppDeleteFont(Long pointer, Long fontHandle)abstract UnitcppRegisterFont(Long pointer, String name, Long fontHandle)abstract UnitcppUnregisterFont(Long pointer, String name)abstract UnitcppPointerMove(Long pointer, Long stateMachineHandle, Byte fit, Byte alignment, Float layoutScale, Float surfaceWidth, Float surfaceHeight, Integer pointerID, Float x, Float y)abstract UnitcppPointerDown(Long pointer, Long stateMachineHandle, Byte fit, Byte alignment, Float layoutScale, Float surfaceWidth, Float surfaceHeight, Integer pointerID, Float x, Float y)abstract UnitcppPointerUp(Long pointer, Long stateMachineHandle, Byte fit, Byte alignment, Float layoutScale, Float surfaceWidth, Float surfaceHeight, Integer pointerID, Float x, Float y)abstract UnitcppPointerExit(Long pointer, Long stateMachineHandle, Byte fit, Byte alignment, Float layoutScale, Float surfaceWidth, Float surfaceHeight, Integer pointerID, Float x, Float y)abstract UnitcppResizeArtboard(Long pointer, Long artboardHandle, Integer width, Integer height, Float scaleFactor)abstract UnitcppResetArtboardSize(Long pointer, Long artboardHandle)abstract LongcppCreateRiveRenderTarget(Long pointer, Integer width, Integer height)abstract LongcppCreateDrawKey(Long pointer)abstract UnitcppDraw(Long pointer, Long renderContextPointer, Long surfaceNativePointer, Long drawKey, Long artboardHandle, Long stateMachineHandle, Long renderTargetPointer, Integer width, Integer height, Byte fit, Byte alignment, Float scaleFactor, Integer clearColor)abstract UnitcppDrawToBuffer(Long pointer, Long renderContextPointer, Long surfaceNativePointer, Long drawKey, Long artboardHandle, Long stateMachineHandle, Long renderTargetPointer, Integer width, Integer height, Byte fit, Byte alignment, Float scaleFactor, Integer clearColor, ByteArray buffer)abstract UnitcppRunOnCommandServer(Long pointer, Function0<Unit> work)-
-
Method Detail
-
cppConstructor
abstract Long cppConstructor(Long renderContextPointer)
-
cppCreateListeners
abstract Listeners cppCreateListeners(Long pointer, CommandQueue receiver)
-
cppPollMessages
abstract Unit cppPollMessages(Long pointer)
-
cppLoadFile
abstract Unit cppLoadFile(Long pointer, Long requestID, ByteArray bytes)
-
cppDeleteFile
abstract Unit cppDeleteFile(Long pointer, Long requestID, Long fileHandle)
-
cppGetArtboardNames
abstract Unit cppGetArtboardNames(Long pointer, Long requestID, Long fileHandle)
-
cppGetStateMachineNames
abstract Unit cppGetStateMachineNames(Long pointer, Long requestID, Long artboardHandle)
-
cppGetDefaultViewModelInfo
abstract Unit cppGetDefaultViewModelInfo(Long pointer, Long requestID, Long fileHandle, Long artboardHandle)
-
cppGetViewModelNames
abstract Unit cppGetViewModelNames(Long pointer, Long requestID, Long fileHandle)
-
cppGetViewModelInstanceNames
abstract Unit cppGetViewModelInstanceNames(Long pointer, Long requestID, Long fileHandle, String viewModelName)
-
cppGetViewModelProperties
abstract Unit cppGetViewModelProperties(Long pointer, Long requestID, Long fileHandle, String viewModelName)
-
cppGetEnums
abstract Unit cppGetEnums(Long pointer, Long requestID, Long fileHandle)
-
cppCreateDefaultArtboard
abstract Long cppCreateDefaultArtboard(Long pointer, Long requestID, Long fileHandle)
-
cppCreateArtboardByName
abstract Long cppCreateArtboardByName(Long pointer, Long requestID, Long fileHandle, String name)
-
cppDeleteArtboard
abstract Unit cppDeleteArtboard(Long pointer, Long requestID, Long artboardHandle)
-
cppCreateDefaultStateMachine
abstract Long cppCreateDefaultStateMachine(Long pointer, Long requestID, Long artboardHandle)
-
cppCreateStateMachineByName
abstract Long cppCreateStateMachineByName(Long pointer, Long requestID, Long artboardHandle, String name)
-
cppDeleteStateMachine
abstract Unit cppDeleteStateMachine(Long pointer, Long requestID, Long stateMachineHandle)
-
cppAdvanceStateMachine
abstract Unit cppAdvanceStateMachine(Long pointer, Long stateMachineHandle, Long deltaTimeNs)
-
cppNamedVMCreateBlankVMI
abstract Long cppNamedVMCreateBlankVMI(Long pointer, Long requestID, Long fileHandle, String viewModelName)
-
cppDefaultVMCreateBlankVMI
abstract Long cppDefaultVMCreateBlankVMI(Long pointer, Long requestID, Long fileHandle, Long artboardHandle)
-
cppNamedVMCreateDefaultVMI
abstract Long cppNamedVMCreateDefaultVMI(Long pointer, Long requestID, Long fileHandle, String viewModelName)
-
cppDefaultVMCreateDefaultVMI
abstract Long cppDefaultVMCreateDefaultVMI(Long pointer, Long requestID, Long fileHandle, Long artboardHandle)
-
cppNamedVMCreateNamedVMI
abstract Long cppNamedVMCreateNamedVMI(Long pointer, Long requestID, Long fileHandle, String viewModelName, String instanceName)
-
cppDefaultVMCreateNamedVMI
abstract Long cppDefaultVMCreateNamedVMI(Long pointer, Long requestID, Long fileHandle, Long artboardHandle, String instanceName)
-
cppReferenceNestedVMI
abstract Long cppReferenceNestedVMI(Long pointer, Long requestID, Long viewModelInstanceHandle, String path)
-
cppReferenceListItemVMI
abstract Long cppReferenceListItemVMI(Long pointer, Long requestID, Long viewModelInstanceHandle, String path, Integer index)
-
cppDeleteViewModelInstance
abstract Unit cppDeleteViewModelInstance(Long pointer, Long requestID, Long viewModelInstanceHandle)
-
cppBindViewModelInstance
abstract Unit cppBindViewModelInstance(Long pointer, Long requestID, Long stateMachineHandle, Long viewModelInstanceHandle)
-
cppSetNumberProperty
abstract Unit cppSetNumberProperty(Long pointer, Long viewModelInstanceHandle, String propertyPath, Float value)
-
cppGetNumberProperty
abstract Unit cppGetNumberProperty(Long pointer, Long requestID, Long viewModelInstanceHandle, String propertyPath)
-
cppSetStringProperty
abstract Unit cppSetStringProperty(Long pointer, Long viewModelInstanceHandle, String propertyPath, String value)
-
cppGetStringProperty
abstract Unit cppGetStringProperty(Long pointer, Long requestID, Long viewModelInstanceHandle, String propertyPath)
-
cppSetBooleanProperty
abstract Unit cppSetBooleanProperty(Long pointer, Long viewModelInstanceHandle, String propertyPath, Boolean value)
-
cppGetBooleanProperty
abstract Unit cppGetBooleanProperty(Long pointer, Long requestID, Long viewModelInstanceHandle, String propertyPath)
-
cppSetEnumProperty
abstract Unit cppSetEnumProperty(Long pointer, Long viewModelInstanceHandle, String propertyPath, String value)
-
cppGetEnumProperty
abstract Unit cppGetEnumProperty(Long pointer, Long requestID, Long viewModelInstanceHandle, String propertyPath)
-
cppSetColorProperty
abstract Unit cppSetColorProperty(Long pointer, Long viewModelInstanceHandle, String propertyPath, Integer value)
-
cppGetColorProperty
abstract Unit cppGetColorProperty(Long pointer, Long requestID, Long viewModelInstanceHandle, String propertyPath)
-
cppFireTriggerProperty
abstract Unit cppFireTriggerProperty(Long pointer, Long viewModelInstanceHandle, String propertyPath)
-
cppSubscribeToProperty
abstract Unit cppSubscribeToProperty(Long pointer, Long viewModelInstanceHandle, String propertyPath, Integer propertyType)
-
cppSetImageProperty
abstract Unit cppSetImageProperty(Long pointer, Long viewModelInstanceHandle, String propertyPath, Long imageHandle)
-
cppSetArtboardProperty
abstract Unit cppSetArtboardProperty(Long pointer, Long viewModelInstanceHandle, String propertyPath, Long artboardHandle)
-
cppGetListSize
abstract Unit cppGetListSize(Long pointer, Long requestID, Long viewModelInstanceHandle, String propertyPath)
-
cppInsertToListAtIndex
abstract Unit cppInsertToListAtIndex(Long pointer, Long viewModelInstanceHandle, String propertyPath, Integer index, Long itemHandle)
-
cppAppendToList
abstract Unit cppAppendToList(Long pointer, Long viewModelInstanceHandle, String propertyPath, Long itemHandle)
-
cppRemoveFromListAtIndex
abstract Unit cppRemoveFromListAtIndex(Long pointer, Long viewModelInstanceHandle, String propertyPath, Integer index)
-
cppRemoveFromList
abstract Unit cppRemoveFromList(Long pointer, Long viewModelInstanceHandle, String propertyPath, Long itemHandle)
-
cppSwapListItems
abstract Unit cppSwapListItems(Long pointer, Long viewModelInstanceHandle, String propertyPath, Integer indexA, Integer indexB)
-
cppDecodeImage
abstract Unit cppDecodeImage(Long pointer, Long requestID, ByteArray bytes)
-
cppDeleteImage
abstract Unit cppDeleteImage(Long pointer, Long imageHandle)
-
cppRegisterImage
abstract Unit cppRegisterImage(Long pointer, String name, Long imageHandle)
-
cppUnregisterImage
abstract Unit cppUnregisterImage(Long pointer, String name)
-
cppDecodeAudio
abstract Unit cppDecodeAudio(Long pointer, Long requestID, ByteArray bytes)
-
cppDeleteAudio
abstract Unit cppDeleteAudio(Long pointer, Long audioHandle)
-
cppRegisterAudio
abstract Unit cppRegisterAudio(Long pointer, String name, Long audioHandle)
-
cppUnregisterAudio
abstract Unit cppUnregisterAudio(Long pointer, String name)
-
cppDecodeFont
abstract Unit cppDecodeFont(Long pointer, Long requestID, ByteArray bytes)
-
cppDeleteFont
abstract Unit cppDeleteFont(Long pointer, Long fontHandle)
-
cppRegisterFont
abstract Unit cppRegisterFont(Long pointer, String name, Long fontHandle)
-
cppUnregisterFont
abstract Unit cppUnregisterFont(Long pointer, String name)
-
cppPointerMove
abstract Unit cppPointerMove(Long pointer, Long stateMachineHandle, Byte fit, Byte alignment, Float layoutScale, Float surfaceWidth, Float surfaceHeight, Integer pointerID, Float x, Float y)
-
cppPointerDown
abstract Unit cppPointerDown(Long pointer, Long stateMachineHandle, Byte fit, Byte alignment, Float layoutScale, Float surfaceWidth, Float surfaceHeight, Integer pointerID, Float x, Float y)
-
cppPointerUp
abstract Unit cppPointerUp(Long pointer, Long stateMachineHandle, Byte fit, Byte alignment, Float layoutScale, Float surfaceWidth, Float surfaceHeight, Integer pointerID, Float x, Float y)
-
cppPointerExit
abstract Unit cppPointerExit(Long pointer, Long stateMachineHandle, Byte fit, Byte alignment, Float layoutScale, Float surfaceWidth, Float surfaceHeight, Integer pointerID, Float x, Float y)
-
cppResizeArtboard
abstract Unit cppResizeArtboard(Long pointer, Long artboardHandle, Integer width, Integer height, Float scaleFactor)
-
cppResetArtboardSize
abstract Unit cppResetArtboardSize(Long pointer, Long artboardHandle)
-
cppCreateRiveRenderTarget
abstract Long cppCreateRiveRenderTarget(Long pointer, Integer width, Integer height)
-
cppCreateDrawKey
abstract Long cppCreateDrawKey(Long pointer)
-
cppDraw
abstract Unit cppDraw(Long pointer, Long renderContextPointer, Long surfaceNativePointer, Long drawKey, Long artboardHandle, Long stateMachineHandle, Long renderTargetPointer, Integer width, Integer height, Byte fit, Byte alignment, Float scaleFactor, Integer clearColor)
-
cppDrawToBuffer
abstract Unit cppDrawToBuffer(Long pointer, Long renderContextPointer, Long surfaceNativePointer, Long drawKey, Long artboardHandle, Long stateMachineHandle, Long renderTargetPointer, Integer width, Integer height, Byte fit, Byte alignment, Float scaleFactor, Integer clearColor, ByteArray buffer)
-
cppRunOnCommandServer
abstract Unit cppRunOnCommandServer(Long pointer, Function0<Unit> work)
-
-
-
-