Class GuiScrollIndicator
java.lang.Object
com.render.api.gui.GuiScrollIndicator
Scrollbar configuration for
ScrollContainerComponent.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEdge of the viewport where the scrollbar should be rendered. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Returns a detached copy of this scrollbar configuration.floatReturns the scrollbar corner radius in design-space pixels.cornerRadius(float cornerRadius) Sets the scrollbar corner radius in design-space pixels.edge()Returns the edge where the scrollbar is rendered.edge(GuiScrollIndicator.Edge edge) Sets the edge where the scrollbar is rendered.booleanenabled()Returns whether the scrollbar is enabled.enabled(boolean enabled) Sets whether the scrollbar is enabled.floatmargin()Returns the inset from the viewport edge in design-space pixels.margin(float margin) Sets the inset from the viewport edge in design-space pixels.floatReturns the scrollbar thickness in design-space pixels.thickness(float thickness) Sets the scrollbar thickness in design-space pixels.Returns the scrollbar thumb color in ARGB format.thumbColor(int thumbArgb) Deprecated.thumbColor(RenderColor thumbColor) Sets the scrollbar thumb color in ARGB format.Returns the scrollbar track color in ARGB format.trackColor(int trackArgb) Deprecated.trackColor(RenderColor trackColor) Sets the scrollbar track color in ARGB format.
-
Constructor Details
-
GuiScrollIndicator
public GuiScrollIndicator()
-
-
Method Details
-
enabled
public boolean enabled()Returns whether the scrollbar is enabled.- Returns:
truewhen the scrollbar should render
-
enabled
Sets whether the scrollbar is enabled.- Parameters:
enabled-trueto render the scrollbar- Returns:
- this indicator
-
trackColor
Returns the scrollbar track color in ARGB format.- Returns:
- track color
-
trackColor
Sets the scrollbar track color in ARGB format.- Parameters:
trackColor- track color- Returns:
- this indicator
-
trackColor
Deprecated. -
thumbColor
Returns the scrollbar thumb color in ARGB format.- Returns:
- thumb color
-
thumbColor
Sets the scrollbar thumb color in ARGB format.- Parameters:
thumbColor- thumb color- Returns:
- this indicator
-
thumbColor
Deprecated. -
thickness
public float thickness()Returns the scrollbar thickness in design-space pixels.- Returns:
- scrollbar thickness
-
thickness
Sets the scrollbar thickness in design-space pixels.- Parameters:
thickness- scrollbar thickness- Returns:
- this indicator
-
margin
public float margin()Returns the inset from the viewport edge in design-space pixels.- Returns:
- viewport margin
-
margin
Sets the inset from the viewport edge in design-space pixels.- Parameters:
margin- viewport margin- Returns:
- this indicator
-
cornerRadius
public float cornerRadius()Returns the scrollbar corner radius in design-space pixels.- Returns:
- corner radius
-
cornerRadius
Sets the scrollbar corner radius in design-space pixels.- Parameters:
cornerRadius- corner radius- Returns:
- this indicator
-
edge
Returns the edge where the scrollbar is rendered.- Returns:
- scrollbar edge
-
edge
Sets the edge where the scrollbar is rendered.- Parameters:
edge- scrollbar edge, ornullforGuiScrollIndicator.Edge.RIGHT- Returns:
- this indicator
-
copy
Returns a detached copy of this scrollbar configuration.- Returns:
- copied scrollbar configuration
-
thumbColor(RenderColor).