A push button. Returns true on the frame it was clicked (or Enter or Space pressed while focused).
- text: the caption. It is copied for the frame.
- options: look, size and whether it is enabled.
- loc: the call site. It identifies the widget from one frame to the next, so leave the default.
button :: (
text: string,
options: Button_Options = .{},
loc := #caller_location
) -> clicked: bool
A push button. Returns true on the frame it was clicked (or Enter or Space pressed while focused).
Parameters
- text: string
- the caption. It is copied for the frame.
- options: Button_Options
- look, size and whether it is enabled.
- loc := #caller_location
- the call site. It identifies the widget from one frame to the next, so leave the default.
Returns
- clicked: bool