Class GuiStylePreset
java.lang.Object
com.render.api.gui.GuiStylePreset
Reusable, sparse style definition for managed GUI components.
A preset changes only properties explicitly configured on it, so it can be safely composed with widget defaults and component-local overrides. Mutable effect objects are detached both when stored and when applied.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionandThen(GuiStylePreset later) Returns a detached composition in whichlaterwins for overlapping values.animatedBorder(GuiAnimatedBorder border) <C extends GuiComponent<?>>
CapplyTo(C component) Applies this preset and preserves the concrete component type.backgroundColor(RenderColor color) borderColor(RenderColor color) borderWidth(float width) color(RenderColor color) cornerRadius(float radius) disabled(Consumer<GuiStylePreset> style) focused(Consumer<GuiStylePreset> style) gradient(GuiGradient gradient) hovered(Consumer<GuiStylePreset> style) letterSpacing(float pixels) lineHeight(float multiplier) opacity(float opacity) pressed(Consumer<GuiStylePreset> style) textPaint(GuiTextPaint paint) textScalePixels(float pixels) textShadow(boolean shadow) Configures the vanilla one-pixel glyph shadow.textShadow(GuiShadow shadow) Configures the custom blurred glyph shadow.
-
Constructor Details
-
GuiStylePreset
public GuiStylePreset()
-
-
Method Details
-
color
-
backgroundColor
-
borderColor
-
borderWidth
-
cornerRadius
-
opacity
-
boxShadow
-
boxGlow
-
gradient
-
animatedBorder
-
textScalePixels
-
letterSpacing
-
lineHeight
-
textShadow
Configures the vanilla one-pixel glyph shadow. -
textShadow
Configures the custom blurred glyph shadow. -
textGlow
-
textPaint
-
hovered
-
pressed
-
focused
-
disabled
-
andThen
Returns a detached composition in whichlaterwins for overlapping values. -
applyTo
Applies this preset and preserves the concrete component type.
-