Class GuiComputedStyle

java.lang.Object
com.render.api.gui.style.GuiComputedStyle

public final class GuiComputedStyle extends Object
Immutable resolved modern style for one component or pseudo-element.
  • Method Details

    • get

      public <T> T get(GuiStyleProperty<T> property)
      Returns the computed property value.
      Type Parameters:
      T - property type
      Parameters:
      property - property
      Returns:
      detached computed value
    • value

      public <T> GuiComputedValue<T> value(GuiStyleProperty<T> property)
      Returns the value and cascade source information.
      Type Parameters:
      T - property type
      Parameters:
      property - property
      Returns:
      resolved value information
    • matchedRules

      public List<GuiMatchedRule> matchedRules()
      Returns every matched rule in cascade order.
      Returns:
      immutable rule trace
    • generation

      public long generation()
      Returns the resolver generation.
      Returns:
      generation
    • withAnimatedOverrides

      public GuiComputedStyle withAnimatedOverrides(Map<GuiStyleProperty<?>, ?> overrides)
      Returns a computed snapshot with animation-priority property overrides.
      Parameters:
      overrides - typed animation values
      Returns:
      immutable animated snapshot
    • builder

      public static GuiComputedStyle.Builder builder(long generation)
      Returns an advanced builder used by custom style runtimes.
      Parameters:
      generation - resolver generation
      Returns:
      builder