gio

package
v0.0.0-...-1981424 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2024 License: GPL-3.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(opts ...Option)

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) NewWindow

func (a *Application) NewWindow(title string, pages *page.Pages, opts ...app.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 OptOnEnd

func OptOnEnd(value OnEnd) Option

func OptOnStart

func OptOnStart(value OnStart) Option

func OptOnWindowInit

func OptOnWindowInit(value OnWindowInit) Option

func OptTitle

func OptTitle(value string) Option

type Options

type Options struct {
	Title        string
	OnStart      OnStart
	OnEnd        OnEnd
	OnWindowInit OnWindowInit
}

type Window

type Window struct {
	App    *Application
	Window *app.Window

	Title string

	Pages *page.Pages
	// contains filtered or unexported fields
}

func NewWindow

func NewWindow(a *Application, title string, pages *page.Pages, opts ...app.Option) *Window

func (*Window) Init

func (w *Window) Init(title string, pages *page.Pages, opts ...app.Option)

func (*Window) Run

func (w *Window) Run(opts ...app.Option) error

Directories

Path Synopsis
architecture

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL