swalk

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package swalk is a simple usage of walk.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Text    string
	Handler any
}

Action represents a menu action.

type App

type App struct {
	*di.Injector
	// contains filtered or unexported fields
}

App represents the application.

func NewApp

func NewApp(name string, title string) *App

NewApp creates a new app.

func (*App) ClearLogView

func (a *App) ClearLogView()

ClearLogView clear the log view.

func (*App) Echo

func (a *App) Echo(format string, xs ...any)

Echo formats according to a format specifier and prints them.

func (*App) MainWindow

func (a *App) MainWindow() *walk.MainWindow

MainWindow returns main window of the app.

func (*App) Menu

func (a *App) Menu(text string, actions []Action) *App

Menu adds a menu to the app.

func (*App) Run

func (a *App) Run()

Run runs the app.

Jump to

Keyboard shortcuts

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