Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
type Application struct { Context context.Context Shutdown func() Pref pref.Preferences Opts Options Logger zerolog.Logger // contains filtered or unexported fields }
func NewApplication ¶
func NewApplication(ctx context.Context, opts ...Option) *Application
func (*Application) Init ¶
func (a *Application) Init(opts ...Option)
func (*Application) Run ¶
func (a *Application) Run()
func (*Application) Wait ¶
func (a *Application) Wait()
type OnEnd ¶
type OnEnd func(app *Application)
type OnStart ¶
type OnStart func(app *Application)
type OnWindowInit ¶
type OnWindowInit func(win *Window)
type Option ¶
type Option func(o *Options)
func OptOnStart ¶
func OptOnWindowInit ¶
func OptOnWindowInit(value OnWindowInit) Option
type Options ¶
type Options struct { Title string OnStart OnStart OnEnd OnEnd OnWindowInit OnWindowInit }
Click to show internal directories.
Click to hide internal directories.