Record Class VarRect
java.lang.Object
java.lang.Record
dev.pfaff.altargui.ffi.VarRect
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VarRect
create
(FFILayoutEngine engine) final boolean
Indicates whether some other object is "equal to" this one.getValues
(FFILaidOutContext context) final int
hashCode()
Returns a hash code value for this object.height()
Returns the value of theheight
record component.final String
toString()
Returns a string representation of this record class.width()
Returns the value of thewidth
record component.withHeight
(Variable height) x()
Returns the value of thex
record component.y()
Returns the value of they
record component.
-
Constructor Details
-
VarRect
Creates an instance of aVarRect
record class.- Parameters:
x
- the value for thex
record componenty
- the value for they
record componentwidth
- the value for thewidth
record componentheight
- the value for theheight
record component
-
-
Method Details
-
create
-
withX
-
withY
-
withWidth
-
withHeight
- Specified by:
withHeight
in interfaceIRect<Variable>
-
getValues
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
x
-
y
-
width
-
height
-