Versions in this module Expand all Collapse all v0 v0.0.6 May 16, 2021 Changes in this version + type Axis uint8 + const Both + const Horizontal + const Vertical + func (a Axis) String() string + type Click struct + Button pointer.Buttons + func (c *Click) Add(ops *op.Ops) + func (c *Click) Events(q event.Queue) []ClickEvent + func (c *Click) Hovered() bool + func (c *Click) Pressed() bool + type ClickEvent struct + Button pointer.Buttons + Modifiers key.Modifiers + NumClicks int + Position f32.Point + Source pointer.Source + Type ClickType + func (ClickEvent) ImplementsEvent() + type ClickState uint8 + type ClickType uint8 + const TypeCancel + const TypeClick + const TypePress + func (ct ClickType) String() string + type Drag struct + func (d *Drag) Add(ops *op.Ops) + func (d *Drag) Dragging() bool + func (d *Drag) Events(cfg unit.Metric, q event.Queue, axis Axis) []pointer.Event + type Scroll struct + func (s *Scroll) Add(ops *op.Ops, bounds image.Rectangle) + func (s *Scroll) Scroll(cfg unit.Metric, q event.Queue, t time.Time, axis Axis) int + func (s *Scroll) State() ScrollState + func (s *Scroll) Stop() + type ScrollState uint8 + const StateDragging + const StateFlinging + const StateIdle + func (s ScrollState) String() string