Interface ColoredComponent

All Known Subinterfaces:
Text2d
All Known Implementing Classes:
IconComponent, NAspectPreservingQuadBackground, NSVGIcon, QuadBackgroundComponent, TbtQuadBackgroundComponent, TextComponent, TextEntryComponent

public interface ColoredComponent
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Returns the current alpha multiplier that is applied to the color when set to the actual visuals.
    Returns the current color of this component.
    void
    setAlpha(float f)
    Sets an alpha multiplier that will be applied to the color when set to the actual visuals.
    void
    Sets the color for this component.
  • Method Details

    • setColor

      void setColor(ColorRGBA color)
      Sets the color for this component.
    • getColor

      ColorRGBA getColor()
      Returns the current color of this component.
    • setAlpha

      void setAlpha(float f)
      Sets an alpha multiplier that will be applied to the color when set to the actual visuals.
    • getAlpha

      float getAlpha()
      Returns the current alpha multiplier that is applied to the color when set to the actual visuals.