Top 8.8% dependent packages on proxy.golang.org
proxy.golang.org : code.rocket9labs.com/tslocum/etk
Package etk provides an Ebitengine tool kit for creating graphical user interfaces. Custom widgets may be created entirely from scratch or may be based on official widgets. The following official widgets are available: Mouse events are passed to the topmost widget under the mouse. If a widget returns a handled value of false, the event continues to propagate down the stack of widgets under the mouse. Clicking or tapping on a widget focuses the widget. This is handled by etk automatically when a widget returns a handled value of true. Keyboard events are passed to the focused widget. When attempting to change which widget is focused, etk checks whether the widget to be focused accepts this focus. If it does, the previously focused widget is un-focused. If the widget does not accept the focus, the previously focused widget remains focused. Input events generated by desktop mice and touch screens are unified in etk. These input events are simplified into an image.Point specifying the location of the event and two parameters: clicked and pressed. Clicked is true the first frame the mouse event or touch screen event is received. When the mouse click or touch screen tap is released, the widget that was originally clicked or tapped always receives a final event where clicked and pressed are both false. Each time etk draws a widget it subsequently draws all of the widget's children in the order they are returned. There are two subpackages in etk: messeji and kibodo. These are available for use without requiring etk. Usually you will not need to reference any subpackages, as etk wraps them to provide widgets with additional features.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/code.rocket9labs.com/tslocum/etk
License: MIT
Latest release: over 1 year ago
First release: over 1 year ago
Namespace: code.rocket9labs.com/tslocum
Dependent packages: 2
Stars: 0 on code.rocket9labs.com
Forks: 0 on code.rocket9labs.com
See more repository details: repos.ecosyste.ms
Last synced: 3 months ago