gioui.org/ui@v0.0.0-20190926171558-ce74bc0cbaea/input.go (about) 1 // SPDX-License-Identifier: Unlicense OR MIT 2 3 package ui 4 5 // Queue maps an event handler key to the events 6 // available to the handler. 7 type Queue interface { 8 // Events returns the available events for a 9 // Key. 10 Events(k Key) []Event 11 } 12 13 // Key is the stable identifier for an event handler. 14 // For a handler h, the key is typically &h. 15 type Key interface{} 16 17 // Event is the marker interface for events. 18 type Event interface { 19 ImplementsEvent() 20 }