Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GuiApplication ¶
type GuiApplication struct { Context context.Context // used to broadcast application shutdown Shutdown func() // shut down all windows Theme *material.Theme // the application wide theme // contains filtered or unexported fields }
GuiApplication keeps track of all the windows and global state.
func GlobalGui ¶
func GlobalGui() *GuiApplication
func NewApplication ¶
func NewApplication(ctx context.Context) *GuiApplication
func (*GuiApplication) CloseLog ¶
func (a *GuiApplication) CloseLog()
func (*GuiApplication) Log ¶
func (a *GuiApplication) Log() *Log
Wait waits for all windows to close.
func (*GuiApplication) NewWindow ¶
func (a *GuiApplication) NewWindow(title string, view View, opts ...app.Option)
NewWindow creates a new tracked window.
func (*GuiApplication) Wait ¶
func (a *GuiApplication) Wait()
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log shows a list of strings.
type WidgetView ¶
type WidgetView func(gtx layout.Context) layout.Dimensions
WidgetView allows to use layout.Widget as a view.
func NewImageView ¶
func (WidgetView) Run ¶
func (view WidgetView) Run(w *Window) error
Run displays the widget with default handling.
Click to show internal directories.
Click to hide internal directories.