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

Method AsWidget

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

AsWidget returns the [WidgetBase] of this Widget. Most core widget functionality is implemented on [WidgetBase].

()

Source from the content-addressed store, hash-verified

36 // AsWidget returns the [WidgetBase] of this Widget. Most
37 // core widget functionality is implemented on [WidgetBase].
38 AsWidget() *WidgetBase
39
40 // Style updates the style properties of the widget based on [WidgetBase.Stylers].
41 // To specify the style properties of a widget, use [WidgetBase.Styler].

Callers 15

handlePosEventMethod · 0.95
configMethod · 0.65
InlineParentMethod · 0.65
MakeRowMethod · 0.65
RowFirstVisWidgetMethod · 0.65
RowGrabFocusMethod · 0.65
ShowContextMenuMethod · 0.65
BindFunction · 0.65
InitValueButtonFunction · 0.65
openValueDialogFunction · 0.65
TestTabsClickFunction · 0.65
InitMethod · 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 6

TestTabsClickFunction · 0.52
TestSwitchesItemsFunction · 0.52
TestSwitchesMutexFunction · 0.52
TestSwitchesChangeFunction · 0.52