gui

package
v0.0.0-...-6d0822f Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	// contains filtered or unexported fields
}

func NewApplication

func NewApplication() *Application

func (*Application) AddImportPath

func (a *Application) AddImportPath(path vpath.Path)

func (*Application) AddWindow

func (a *Application) AddWindow(w *Window)

func (*Application) NewWindow

func (a *Application) NewWindow(path vpath.Path) (*Window, error)

func (*Application) RemoveWindow

func (a *Application) RemoveWindow(w *Window)

func (*Application) Run

func (a *Application) Run() error

func (*Application) SetLogger

func (a *Application) SetLogger(log *log.Logger)

type GUILib

type GUILib struct{}

func (GUILib) ComponentNames

func (l GUILib) ComponentNames() []string

func (GUILib) NewComponent

func (l GUILib) NewComponent(name string, id string, globalCtx *vit.GlobalContext) (vit.Component, bool)

func (GUILib) StaticAttribute

func (l GUILib) StaticAttribute(componentName string, attributeName string) (interface{}, bool)

type KeyCode

type KeyCode string

type Window

type Window struct {
	// contains filtered or unexported fields
}

func NewWindow

func NewWindow(source vpath.Path, log *log.Logger) (*Window, error)

func (*Window) AddImportPath

func (w *Window) AddImportPath(filePath vpath.Path) error

func (*Window) SetVariable

func (w *Window) SetVariable(name string, value interface{}) error

type WindowComponent

type WindowComponent struct {
	*std.Item
	// contains filtered or unexported fields
}

func NewWindowComponent

func NewWindowComponent(id string, context *vit.FileContext) *WindowComponent

func (*WindowComponent) AddChild

func (w *WindowComponent) AddChild(child vit.Component)

func (*WindowComponent) AddChildAfter

func (w *WindowComponent) AddChildAfter(afterThis vit.Component, addThis vit.Component)

func (*WindowComponent) As

func (w *WindowComponent) As(target *vit.Component) bool

func (*WindowComponent) Event

func (w *WindowComponent) Event(name string) (vit.Listenable, bool)

func (*WindowComponent) Finish

func (w *WindowComponent) Finish() error

func (*WindowComponent) ID

func (w *WindowComponent) ID() string

func (*WindowComponent) MustProperty

func (w *WindowComponent) MustProperty(key string) vit.Value

func (*WindowComponent) Property

func (w *WindowComponent) Property(key string) (vit.Value, bool)

func (*WindowComponent) ResolveVariable

func (w *WindowComponent) ResolveVariable(key string) (interface{}, bool)

func (*WindowComponent) SetProperty

func (w *WindowComponent) SetProperty(key string, value interface{}) error

func (*WindowComponent) SetPropertyCode

func (w *WindowComponent) SetPropertyCode(key string, code vit.Code) error

func (*WindowComponent) String

func (w *WindowComponent) String() string

func (*WindowComponent) UpdateExpressions

func (w *WindowComponent) UpdateExpressions(context vit.Component) (int, vit.ErrorGroup)

Jump to

Keyboard shortcuts

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