button :: (
r: Rect,
text: string,
theme: *Button_Theme = null,
identifier: s64 = 0,
loc := #caller_location,
texture: *Texture = null,
disable_over := false,
disable_press := false
) -> (was_just_pressed: bool, state: *Button_State, was_just_released: bool)
Parameters
- r: Rect
- text: string
- theme: *Button_Theme
- identifier: s64
- loc := #caller_location
- texture: *Texture
- disable_over := false
- disable_press := false
Returns
- was_just_pressed: bool
- state: *Button_State
- was_just_released: bool