Record Class SettingsLayout.Frame
java.lang.Object
java.lang.Record
dev.miyomiyo.agentbridge.client.settings.SettingsLayout.Frame
- Enclosing class:
SettingsLayout
public static record SettingsLayout.Frame(int left, int width, int top, int bottom)
extends java.lang.Record
-
Constructor Summary
ConstructorsConstructorDescriptionFrame(int left, int width, int top, int bottom) Creates an instance of aFramerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbottom()Returns the value of thebottomrecord component.final booleanequals(java.lang.Object o) Indicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intleft()Returns the value of theleftrecord component.java.util.List<SettingsLayout.Rect> row(int y, int height, int columns, int gap) Equal columns; rounding is distributed so the last column ends at the content edge.inttop()Returns the value of thetoprecord component.final java.lang.StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Frame
public Frame(int left, int width, int top, int bottom) Creates an instance of aFramerecord class.- Parameters:
left- the value for theleftrecord componentwidth- the value for thewidthrecord componenttop- the value for thetoprecord componentbottom- the value for thebottomrecord component
-
-
Method Details
-
row
Equal columns; rounding is distributed so the last column ends at the content edge. -
toString
public final java.lang.String 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.- Specified by:
toStringin classjava.lang.Record- Returns:
- a string representation of this object
-
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.- Specified by:
hashCodein classjava.lang.Record- Returns:
- a hash code value for this object
-
equals
public final boolean equals(java.lang.Object o) 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 with thecomparemethod from their corresponding wrapper classes.- Specified by:
equalsin classjava.lang.Record- Parameters:
o- the object with which to compare- Returns:
trueif this object is the same as theoargument;falseotherwise.
-
left
public int left()Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
top
public int top()Returns the value of thetoprecord component.- Returns:
- the value of the
toprecord component
-
bottom
public int bottom()Returns the value of thebottomrecord component.- Returns:
- the value of the
bottomrecord component
-