Record Class PagedContainerComponent.PageSurface
java.lang.Object
java.lang.Record
com.render.api.gui.PagedContainerComponent.PageSurface
- Record Components:
pageIndex- zero-based page indexbounds- outer page boundscontentBounds- page content boxtemplateName- resolved template namevisible- whether inside the virtualization window
- Enclosing class:
PagedContainerComponent
-
Constructor Summary
ConstructorsConstructorDescriptionPageSurface(int pageIndex, GuiRect bounds, GuiRect contentBounds, String templateName, boolean visible) Creates an instance of aPageSurfacerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbounds()Returns the value of theboundsrecord component.Returns the value of thecontentBoundsrecord component.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 thepageIndexrecord component.Returns the value of thetemplateNamerecord component.final StringtoString()Returns a string representation of this record class.booleanvisible()Returns the value of thevisiblerecord component.
-
Constructor Details
-
PageSurface
public PageSurface(int pageIndex, GuiRect bounds, GuiRect contentBounds, String templateName, boolean visible) Creates an instance of aPageSurfacerecord class.- Parameters:
pageIndex- the value for thepageIndexrecord componentbounds- the value for theboundsrecord componentcontentBounds- the value for thecontentBoundsrecord componenttemplateName- the value for thetemplateNamerecord componentvisible- the value for thevisiblerecord 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. -
pageIndex
-
bounds
-
contentBounds
Returns the value of thecontentBoundsrecord component.- Returns:
- the value of the
contentBoundsrecord component
-
templateName
Returns the value of thetemplateNamerecord component.- Returns:
- the value of the
templateNamerecord component
-
visible
-