Record Class GuiPaintWorkletContext
java.lang.Object
java.lang.Record
com.render.api.gui.paint.GuiPaintWorkletContext
- Record Components:
width- paint width in design pixelsheight- paint height in design pixelsdeviceScale- physical pixels per design pixelstates- component-defined immutable state flagsproperties- declared immutable input valuestimeSeconds- retained animation time
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of thedeviceScalerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatheight()Returns the value of theheightrecord component.Returns the value of thepropertiesrecord component.states()Returns the value of thestatesrecord component.doubleReturns the value of thetimeSecondsrecord component.final StringtoString()Returns a string representation of this record class.floatwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
GuiPaintWorkletContext
public GuiPaintWorkletContext(float width, float height, float deviceScale, Map<String, Boolean> states, Map<String, Object> properties, double timeSeconds) Creates an instance of aGuiPaintWorkletContextrecord class.- Parameters:
width- the value for thewidthrecord componentheight- the value for theheightrecord componentdeviceScale- the value for thedeviceScalerecord componentstates- the value for thestatesrecord componentproperties- the value for thepropertiesrecord componenttimeSeconds- the value for thetimeSecondsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
width
-
height
-
deviceScale
public float deviceScale()Returns the value of thedeviceScalerecord component.- Returns:
- the value of the
deviceScalerecord component
-
states
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
timeSeconds
public double timeSeconds()Returns the value of thetimeSecondsrecord component.- Returns:
- the value of the
timeSecondsrecord component
-