Documentation ¶
Index ¶
- func WatchGestureEvent(n node.Node, handlers ...Handler) func()
- type EventsAccessor
- type FocusedChecker
- type Gesture
- type Handler
- func OnBlur(action func()) Handler
- func OnDoubleTap(action func()) Handler
- func OnFocus(action func()) Handler
- func OnHover(action func()) Handler
- func OnLongPress(action func()) Handler
- func OnMouseEnter(action func()) Handler
- func OnMouseLeave(action func()) Handler
- func OnPress(action func()) Handler
- func OnPressWithEvent(action func(event *PointerData)) Handler
- func OnRelease(action func()) Handler
- func OnReleaseWithEvent(action func(p *PointerData)) Handler
- func OnTap(action func()) Handler
- func OnTapWithEvent(action func(event *PointerData)) Handler
- type PointerData
- type PointerEventDetector
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WatchGestureEvent ¶
Types ¶
type EventsAccessor ¶
type FocusedChecker ¶
type FocusedChecker interface {
Focused() bool
}
type Handler ¶
func OnDoubleTap ¶
func OnDoubleTap(action func()) Handler
func OnLongPress ¶
func OnLongPress(action func()) Handler
func OnMouseEnter ¶
func OnMouseEnter(action func()) Handler
func OnMouseLeave ¶
func OnMouseLeave(action func()) Handler
func OnPressWithEvent ¶
func OnPressWithEvent(action func(event *PointerData)) Handler
func OnReleaseWithEvent ¶
func OnReleaseWithEvent(action func(p *PointerData)) Handler
func OnTapWithEvent ¶
func OnTapWithEvent(action func(event *PointerData)) Handler
type PointerData ¶
type PointerEventDetector ¶
func (*PointerEventDetector) BindFocusedChecker ¶
func (d *PointerEventDetector) BindFocusedChecker(fc FocusedChecker)
func (*PointerEventDetector) GestureEvents ¶
func (d *PointerEventDetector) GestureEvents() *event.Events[Gesture]
func (*PointerEventDetector) LayoutChild ¶
func (d *PointerEventDetector) LayoutChild(gtx giolayout.Context, n node.Node, child giolayout.Widget) (dims layout.Dimensions)
Click to show internal directories.
Click to hide internal directories.