Documentation ¶
Index ¶
- func SetText(target ui.Widget, text string)
- type Event
- func (e *Event) Avoid() geom.Rect
- func (e *Event) Cascade() bool
- func (e *Event) Finish()
- func (e *Event) Finished() bool
- func (e *Event) SetAvoid(avoid geom.Rect)
- func (e *Event) SetToolTip(tooltip ui.Widget)
- func (e *Event) String() string
- func (e *Event) Target() event.Target
- func (e *Event) ToolTip() ui.Widget
- func (e *Event) Type() event.Type
- func (e *Event) Where() geom.Point
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
Event is generated when a tooltip is being requested for the widget.
func NewEvent ¶
NewEvent creates a new ToolTip event. 'target' is the widget the mouse is over. 'where' is the location in the window where the mouse is. 'avoid' is the area to avoid placing the tooltip within, using window coordinates. Typically, 'avoid' is set to the boundaries of the widget within the window.
func (*Event) Cascade ¶
Cascade returns true if this event should be passed to its target's parent if not marked done.
func (*Event) Finish ¶
func (e *Event) Finish()
Finish marks this event as handled and no longer eligible for processing.
func (*Event) Finished ¶
Finished returns true if this event has been handled and should no longer be processed.
func (*Event) SetToolTip ¶
SetToolTip sets the widget to be used for the tooltip.