MCPcopy Create free account
hub / github.com/cogentcore/core / WidgetTooltip

Method WidgetTooltip

core/widget.go:109–109  ·  view source on GitHub ↗

WidgetTooltip returns the tooltip text that should be used for this widget, and the window-relative position to use for the upper-left corner of the tooltip. The current mouse position in scene-local coordinates is passed to the function; if it is {-1, -1}, that indicates that WidgetTooltip is being

(pos image.Point)

Source from the content-addressed store, hash-verified

107 // it to do different things. For example, buttons add their
108 // shortcut to the tooltip here.
109 WidgetTooltip(pos image.Point) (string, image.Point)
110
111 // ContextMenuPos returns the default position for popup menus;
112 // by default in the middle its Bounding Box, but can be adapted as

Callers 13

TestMeterValueFunction · 0.65
TestMeterBoundsFunction · 0.65
TestSliderValueFunction · 0.65
TestSliderBoundsFunction · 0.65
InitMethod · 0.65
TestSpinnerValueFunction · 0.65
TestSpinnerBoundsFunction · 0.65
WidgetTooltipMethod · 0.65
TestChooserItemsFunction · 0.65
TestButtonShortcutFunction · 0.65

Implementers 6

WidgetBasecore/widget.go
_cogentcore_org_core_core_Layouteryaegicore/symbols/cogentcore_org-core-
_cogentcore_org_core_core_Treeryaegicore/symbols/cogentcore_org-core-
_cogentcore_org_core_core_Valueyaegicore/symbols/cogentcore_org-core-
_cogentcore_org_core_core_Widgetyaegicore/symbols/cogentcore_org-core-
_cogentcore_org_core_filetree_Fileryaegicore/symbols/cogentcore_org-core-

Calls

no outgoing calls

Tested by 10

TestMeterValueFunction · 0.52
TestMeterBoundsFunction · 0.52
TestSliderValueFunction · 0.52
TestSliderBoundsFunction · 0.52
TestSpinnerValueFunction · 0.52
TestSpinnerBoundsFunction · 0.52
TestChooserItemsFunction · 0.52
TestButtonShortcutFunction · 0.52
TestButtonShortcutKeyFunction · 0.52