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

Function main

pages/examples/basic/basic.go:17–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15var content embed.FS
16
17func main() {
18 b := core.NewBody("Pages Example")
19 pg := pages.NewPage(b).SetContent(content)
20 b.AddAppBar(pg.MakeToolbar)
21 b.RunMainWindow()
22}

Callers

nothing calls this directly

Calls 5

AddAppBarMethod · 0.95
RunMainWindowMethod · 0.95
NewBodyFunction · 0.92
NewPageFunction · 0.92
SetContentMethod · 0.80

Tested by

no test coverage detected