Button
struct Button {
Rectangle area;
Vector position;
Texture tex;
Texture hover;
Texture press;
}
A disabled default is present on this object. To use it, use one of the other constructors or a factory function.
- this
this(in Rectangle area, in Vector position, in Texture tex, in Texture hover, in Texture press)
- draw
bool draw(ref scope Window window)
Draw a button and return if it is pressed
A clickable button