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

Method StartFocus

core/widgetevents.go:551–556  ·  view source on GitHub ↗

StartFocus specifies that this widget should get focus when the [Scene] is shown.

()

Source from the content-addressed store, hash-verified

549
550// StartFocus specifies that this widget should get focus when the [Scene] is shown.
551func (wb *WidgetBase) StartFocus() {
552 em := wb.Events()
553 if em != nil {
554 em.SetStartFocus(wb.This.(Widget))
555 }
556}
557
558// ContainsFocus returns whether this widget contains the current focus widget.
559func (wb *WidgetBase) ContainsFocus() bool {

Callers 1

makeSelectedRowMethod · 0.80

Calls 2

EventsMethod · 0.95
SetStartFocusMethod · 0.80

Tested by

no test coverage detected