{"modulePath":"github.com/guigui-gui/guigui","version":"v0.1.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\n## Types\n\n```go\ntype Model struct {\n\t// contains filtered or unexported fields\n}\n```\nModel holds the application state: the source code being edited. The highlighting styles are not part of the state; the view derives them from the code on each build.\n\n```go\nfunc (m *Model) Code() string\n```\nCode returns the source code being edited.\n\n```go\nfunc (m *Model) SetCode(code string)\n```\nSetCode sets the source code being edited.\n\n```go\ntype Root struct {\n\tguigui.DefaultWidget\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r *Root) Build(context *guigui.Context, adder *guigui.ChildAdder) error\n```\n\n```go\nfunc (r *Root) HandleButtonInput(context *guigui.Context, widgetBounds *guigui.WidgetBounds) guigui.HandleInputResult\n```\nHandleButtonInput handles the application-wide shortcuts. They live on the root rather than on the editor so that they keep working while the focus is on another widget, such as the find dialog's query input.\n\n```go\nfunc (r *Root) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, layouter *guigui.ChildLayouter)\n```\n\n```go\nfunc (r *Root) Tick(context *guigui.Context, widgetBounds *guigui.WidgetBounds) error\n```\n\n```go\nfunc (r *Root) WriteStateKey(context *guigui.Context, w *guigui.StateKeyWriter)\n```\n\n","path":"github.com/guigui-gui/guigui/example/codeeditor","name":"main","synopsis":"","isRedistributable":true}
