Package dev.turboism.sdk.cubism.event
Class DrawableGeometryEvent.Before
java.lang.Object
dev.turboism.sdk.cubism.event.DrawableGeometryEvent.Before
- All Implemented Interfaces:
DrawableGeometryEvent,EventBus.TurboismEvent,TurboismEvent
- Enclosing interface:
- DrawableGeometryEvent
public static final class DrawableGeometryEvent.Before
extends Object
implements DrawableGeometryEvent
Synchronous state published before the host geometry replacement.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOne Runtime-owned mutable callback scope.Nested classes/interfaces inherited from interface dev.turboism.sdk.cubism.event.DrawableGeometryEvent
DrawableGeometryEvent.After, DrawableGeometryEvent.Before, DrawableGeometryEvent.On -
Constructor Summary
ConstructorsConstructorDescriptionBefore(Drawable drawable, ArtMeshGeometry requestedGeometry, ArtMeshGeometry geometry) -
Method Summary
Modifier and TypeMethodDescriptiondrawable()Returns the detached ArtMesh projection participating in the operation.geometry()Returns the candidate geometry value that will be applied.openCallback(Drawable drawable, ArtMeshGeometry requestedGeometry, ArtMeshGeometry geometry) Opens a callback-scoped mutable candidate for the intercepted geometry edit.Returns the geometry value originally requested by the write call.voidsetGeometry(ArtMeshGeometry geometry) Replaces the candidate geometry value for the current callback.
-
Constructor Details
-
Before
-
-
Method Details
-
openCallback
public static DrawableGeometryEvent.Before.Callback openCallback(Drawable drawable, ArtMeshGeometry requestedGeometry, ArtMeshGeometry geometry) Opens a callback-scoped mutable candidate for the intercepted geometry edit. -
drawable
Description copied from interface:DrawableGeometryEventReturns the detached ArtMesh projection participating in the operation.- Specified by:
drawablein interfaceDrawableGeometryEvent
-
requestedGeometry
Returns the geometry value originally requested by the write call. -
geometry
Returns the candidate geometry value that will be applied. -
setGeometry
Replaces the candidate geometry value for the current callback.
-