MCPcopy Index your code
hub / github.com/g3n/engine / SetText

Method SetText

gui/tabbar.go:464–470  ·  view source on GitHub ↗

SetText sets the text of the tab header

(text string)

Source from the content-addressed store, hash-verified

462
463// SetText sets the text of the tab header
464func (tab *Tab) SetText(text string) *Tab {
465
466 tab.label.SetText(text)
467 // Needs to recalculate all Tabs because this Tab width will change
468 tab.tb.recalc()
469 return tab
470}
471
472// SetIcon sets the optional icon of the Tab header
473func (tab *Tab) SetIcon(icon string) *Tab {

Callers 1

SetIconMethod · 0.45

Calls 1

recalcMethod · 0.45

Tested by

no test coverage detected