Class GuiComputedStyle
java.lang.Object
com.render.api.gui.style.GuiComputedStyle
Immutable resolved modern style for one component or pseudo-element.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMutable construction helper for style runtimes. -
Method Summary
Modifier and TypeMethodDescriptionstatic GuiComputedStyle.Builderbuilder(long generation) Returns an advanced builder used by custom style runtimes.longReturns the resolver generation.<T> Tget(GuiStyleProperty<T> property) Returns the computed property value.Returns every matched rule in cascade order.<T> GuiComputedValue<T> value(GuiStyleProperty<T> property) Returns the value and cascade source information.withAnimatedOverrides(Map<GuiStyleProperty<?>, ?> overrides) Returns a computed snapshot with animation-priority property overrides.
-
Method Details
-
get
Returns the computed property value.- Type Parameters:
T- property type- Parameters:
property- property- Returns:
- detached computed value
-
value
Returns the value and cascade source information.- Type Parameters:
T- property type- Parameters:
property- property- Returns:
- resolved value information
-
matchedRules
Returns every matched rule in cascade order.- Returns:
- immutable rule trace
-
generation
public long generation()Returns the resolver generation.- Returns:
- generation
-
withAnimatedOverrides
Returns a computed snapshot with animation-priority property overrides.- Parameters:
overrides- typed animation values- Returns:
- immutable animated snapshot
-
builder
Returns an advanced builder used by custom style runtimes.- Parameters:
generation- resolver generation- Returns:
- builder
-