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

Method Style

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

Style updates the style properties of the widget based on [WidgetBase.Stylers]. To specify the style properties of a widget, use [WidgetBase.Styler]. Widgets can implement this method if necessary to add additional styling behavior, such as calling [units.Value.ToDots] on a custom [units.Value] fiel

()

Source from the content-addressed store, hash-verified

42 // Widgets can implement this method if necessary to add additional styling behavior,
43 // such as calling [units.Value.ToDots] on a custom [units.Value] field.
44 Style()
45
46 // SizeUp (bottom-up) gathers Actual sizes from our Children & Parts,
47 // based on Styles.Min / Max sizes and actual content sizing

Callers 13

MakeRowMethod · 0.65
StyleMethod · 0.65
StyleMethod · 0.65
UnselectAllMethod · 0.65
MakeRowMethod · 0.65
UpdateMethod · 0.65
UpdateRenderMethod · 0.65
StyleMethod · 0.65
StyleTreeMethod · 0.65
StyleMethod · 0.65
MakeRowMethod · 0.65
styleEditorMethod · 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

no test coverage detected