Package dev.turboism.sdk.cubism.command
Record Class EditorGridSettingsRequest
java.lang.Object
java.lang.Record
dev.turboism.sdk.cubism.command.EditorGridSettingsRequest
- All Implemented Interfaces:
EditorParameterizedRequest
public record EditorGridSettingsRequest(int spacingPixels, Color color)
extends Record
implements EditorParameterizedRequest
Configures the Editor grid using the observed spacing and color fields.
-
Constructor Summary
ConstructorsConstructorDescriptionEditorGridSettingsRequest(int spacingPixels, Color color) Host-verified bounds: the native dialog slider spans [5, min(documentWidth, documentHeight)] and documents are clamped to 30000 pixels, so 30000 is the safe static upper bound. -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord component.command()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thespacingPixelsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EditorGridSettingsRequest
Host-verified bounds: the native dialog slider spans [5, min(documentWidth, documentHeight)] and documents are clamped to 30000 pixels, so 30000 is the safe static upper bound. The host grid color is written as opaque RGB (the CColor(int,int,int) constructor); alpha must be 1 so no channel is silently dropped.
-
-
Method Details
-
command
- Specified by:
commandin interfaceEditorParameterizedRequest- Returns:
- the parameterized command this request drives: the grid setting dialog
-
commandId
- Specified by:
commandIdin interfaceEditorParameterizedRequest- Returns:
- the host command identifier of
command(), for logging and dispatch
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
spacingPixels
public int spacingPixels()Returns the value of thespacingPixelsrecord component.- Returns:
- the value of the
spacingPixelsrecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-