Class Button

    • Field Detail

      • DEFAULT_SPACING_X

        public static final float DEFAULT_SPACING_X
        0.11999999731779099f
        See Also:
        Constant Field Values
      • DEFAULT_SPACING_Y

        public static final float DEFAULT_SPACING_Y
        0.41999998688697815f
        See Also:
        Constant Field Values
    • Constructor Detail

      • Button

        public Button​(int renderModes,
                      Font labelFont,
                      String labelText,
                      float width,
                      float height)
    • Method Detail

      • getFont

        public Font getFont()
      • getLaben

        public String getLaben()
      • getLabelZOffset

        public float getLabelZOffset()
      • setLabelZOffset

        public Button setLabelZOffset​(float v)
      • getSpacingX

        public final float getSpacingX()
      • getSpacingY

        public final float getSpacingY()
      • setSpacing

        public final Button setSpacing​(float spacingX,
                                       float spacingY)
        In percent of text label
        Parameters:
        spacingX - spacing in percent on X, default is DEFAULT_SPACING_X
        spacingY - spacing in percent on Y, default is DEFAULT_SPACING_Y
      • getLabelColor

        public final Vec4f getLabelColor()
      • setLabelColor

        public final Button setLabelColor​(float r,
                                          float g,
                                          float b)
      • setFont

        public final Button setFont​(Font labelFont)
      • setLabel

        public final Button setLabel​(String labelText)
      • setLabel

        public final Button setLabel​(Font labelFont,
                                     String labelText)