Class Button

  • All Implemented Interfaces:
    kotlin.Cloneable

    
    public class Button
    extends ContainingComponent
                        

    A button, that supports two images and a text object.

    • Constructor Detail

      • Button

        Button(ButtonProperties properties, Vec2<Unit> at, Vec2<Unit> size, PolyImage left, Translator.Text text, Unit.Pixel fontSize, PolyImage right, Boolean acceptsInput, Function1<EventDSL<Button>, Unit> events)
        Parameters:
        properties - The properties of the button (inherits from Block).
        size - You can specify this if you want to have more control over the height of this component, as if it is null it is controlled by the largest item.
        left - The image to be displayed on the left side of the button
        text - The text to be displayed in the button
        fontSize - The font size of the text