Package dev.turboism.sdk.cubism.event
Class DeformerVisibilityEvent.Before
java.lang.Object
dev.turboism.sdk.cubism.event.DeformerVisibilityEvent.Before
- All Implemented Interfaces:
DeformerVisibilityEvent,EventBus.TurboismEvent,TurboismEvent
- Enclosing interface:
- DeformerVisibilityEvent
public static final class DeformerVisibilityEvent.Before
extends Object
implements DeformerVisibilityEvent
Synchronous state published before the host visibility write.
-
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.DeformerVisibilityEvent
DeformerVisibilityEvent.After, DeformerVisibilityEvent.Before, DeformerVisibilityEvent.On -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeformer()Returns the detached Deformer projection participating in the operation.openCallback(Deformer deformer, boolean requestedVisible, boolean visible) Opens a callback-scoped mutable candidate for the intercepted visibility edit.booleanReturns the visibility value originally requested by the write call.voidsetVisible(boolean visible) Replaces the candidate visibility value for the current callback.booleanvisible()Returns the candidate visibility value that will be applied.
-
Constructor Details
-
Before
-
-
Method Details
-
openCallback
public static DeformerVisibilityEvent.Before.Callback openCallback(Deformer deformer, boolean requestedVisible, boolean visible) Opens a callback-scoped mutable candidate for the intercepted visibility edit. -
deformer
Description copied from interface:DeformerVisibilityEventReturns the detached Deformer projection participating in the operation.- Specified by:
deformerin interfaceDeformerVisibilityEvent
-
requestedVisible
public boolean requestedVisible()Returns the visibility value originally requested by the write call. -
visible
public boolean visible()Returns the candidate visibility value that will be applied. -
setVisible
public void setVisible(boolean visible) Replaces the candidate visibility value for the current callback.
-