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

Method FinalStyler

core/style.go:40–42  ·  view source on GitHub ↗

FinalStyler adds the given function for setting the style properties of the widget to [WidgetBase.Stylers.Final]. It is one of the main ways to specify the styles of a widget, in addition to FirstStyler and Styler, which add stylers that are called before the stylers added by this function.

(s func(s *styles.Style))

Source from the content-addressed store, hash-verified

38// a widget, in addition to FirstStyler and Styler, which add stylers that are called
39// before the stylers added by this function.
40func (wb *WidgetBase) FinalStyler(s func(s *styles.Style)) {
41 wb.Stylers.Final = append(wb.Stylers.Final, s)
42}
43
44// Style updates the style properties of the widget based on [WidgetBase.Stylers].
45// To specify the style properties of a widget, use [WidgetBase.Styler].

Callers 15

InitMethod · 0.95
handleElementFunction · 0.80
InitMethod · 0.80
InitMethod · 0.80
InitMethod · 0.80
InitMethod · 0.80
InitMethod · 0.80
InitMethod · 0.80
InitMethod · 0.80
InitMethod · 0.80
addDialogPartsMethod · 0.80
InitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected