Module: reefvision.widgets.button
Source: ./reefvision/widgets/button.reef
Overview
reefvision.widgets.button — focusable command button (design §10.5)
object Button extends view.View. Enter / Space / left-click → event_command.
Objects
Button
Extends: view.View
Fields:
| Name | Type |
|---|---|
text |
string |
command |
int |
proc init(bounds: cell.Rect, text: string, command: int)
Methods:
override shared fn wants_focus(): bool
override exclusive proc draw(buf: cell.CellBuffer, abs: cell.Rect, clip: cell.Rect, focused: bool, th: theme.Theme)
override exclusive fn handle_event(e: event.Event): view.EventResult
Functions
fn is_activate_key(e: event.Event): bool
fn is_left_click(e: event.Event): bool
Generated by reefc doc