Noah Petherbridge
f9b305679a
* Tooltip can be added to any target widget (e.g. Button) and pop up on mouse over. * Refactor the event system. Instead of passing a render.Point to all event handlers, pass an EventData struct which can hold the Point or the render.Engine. * Add event types Computed and Present, so a widget can set a handler on whenever its Computed or Present method is called.
14 lines
118 B
Go
14 lines
118 B
Go
package ui
|
|
|
|
// Edge name
|
|
type Edge int
|
|
|
|
// Edge values.
|
|
const (
|
|
Top Edge = iota
|
|
Left
|
|
Right
|
|
Bottom
|
|
FollowCursor
|
|
)
|