Skip to contents

Button control, returns true when clicked.

Usage

gui_button(bounds, text)

Arguments

bounds

A rectangle.

text

A string.

Value

An integer

Examples

if (FALSE) {
gui_button(rectangle(10, 10, 200, 100), "Hello")
}