@@ -36,27 +36,27 @@ type CanvasObject interface {
36
36
Refresh ()
37
37
}
38
38
39
- // Disableable describes any CanvasObject that can be disabled.
39
+ // Disableable describes any [ CanvasObject] that can be disabled.
40
40
// This is primarily used with objects that also implement the Tappable interface.
41
41
type Disableable interface {
42
42
Enable ()
43
43
Disable ()
44
44
Disabled () bool
45
45
}
46
46
47
- // DoubleTappable describes any CanvasObject that can also be double tapped.
47
+ // DoubleTappable describes any [ CanvasObject] that can also be double tapped.
48
48
type DoubleTappable interface {
49
49
DoubleTapped (* PointEvent )
50
50
}
51
51
52
- // Draggable indicates that a CanvasObject can be dragged.
52
+ // Draggable indicates that a [ CanvasObject] can be dragged.
53
53
// This is used for any item that the user has indicated should be moved across the screen.
54
54
type Draggable interface {
55
55
Dragged (* DragEvent )
56
56
DragEnd ()
57
57
}
58
58
59
- // Focusable describes any CanvasObject that can respond to being focused.
59
+ // Focusable describes any [ CanvasObject] that can respond to being focused.
60
60
// It will receive the FocusGained and FocusLost events appropriately.
61
61
// When focused it will also have TypedRune called as text is input and
62
62
// TypedKey called when other keys are pressed.
@@ -75,18 +75,18 @@ type Focusable interface {
75
75
TypedKey (* KeyEvent )
76
76
}
77
77
78
- // Scrollable describes any CanvasObject that can also be scrolled.
78
+ // Scrollable describes any [ CanvasObject] that can also be scrolled.
79
79
// This is mostly used to implement the widget.ScrollContainer.
80
80
type Scrollable interface {
81
81
Scrolled (* ScrollEvent )
82
82
}
83
83
84
- // SecondaryTappable describes a CanvasObject that can be right-clicked or long-tapped.
84
+ // SecondaryTappable describes a [ CanvasObject] that can be right-clicked or long-tapped.
85
85
type SecondaryTappable interface {
86
86
TappedSecondary (* PointEvent )
87
87
}
88
88
89
- // Shortcutable describes any CanvasObject that can respond to shortcut commands (quit, cut, copy, and paste).
89
+ // Shortcutable describes any [ CanvasObject] that can respond to shortcut commands (quit, cut, copy, and paste).
90
90
type Shortcutable interface {
91
91
TypedShortcut (Shortcut )
92
92
}
@@ -95,12 +95,12 @@ type Shortcutable interface {
95
95
//
96
96
// Since: 2.1
97
97
type Tabbable interface {
98
- // AcceptsTab() is a hook called by the key press handling logic.
98
+ // AcceptsTab is a hook called by the key press handling logic.
99
99
// If it returns true then the Tab key events will be sent using TypedKey.
100
100
AcceptsTab () bool
101
101
}
102
102
103
- // Tappable describes any CanvasObject that can also be tapped.
103
+ // Tappable describes any [ CanvasObject] that can also be tapped.
104
104
// This should be implemented by buttons etc that wish to handle pointer interactions.
105
105
type Tappable interface {
106
106
Tapped (* PointEvent )
0 commit comments