Button.this

Defines a button

  1. this()
  2. this(Rectangle area, Vector position, Texture tex, Texture hover, Texture press)
    struct Button
    @nogc nothrow
    this

Parameters

area Rectangle

The clickable region of the button

position Vector

The spot to draw the button

tex Texture

The default texture of the button

hover Texture

The texture when the button is hovered over

press Texture

The texture when the button is pressed down

Meta