macos

package
v0.0.0-...-91adec5 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: MIT Imports: 8 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(bridge IBridge) *Application

func (*Application) ExecuteGo

func (a *Application) ExecuteGo(s string) error

func (*Application) NewWindow

func (a *Application) NewWindow() *ContainerWindow

type Container

type Container[T IElement] struct {
	*Element[T]
	Children []IElement
}

func (*Container[T]) Body

func (e *Container[T]) Body(children ...IElement) T

func (*Container[T]) Marshal

func (e *Container[T]) Marshal() string

func (*Container[T]) MarshalIndent

func (e *Container[T]) MarshalIndent(prefix string) string

type ContainerCol

type ContainerCol struct {
	*Container[*ContainerCol]
}

func Col

func Col(children ...IElement) *ContainerCol

type ContainerRow

type ContainerRow struct {
	*Container[*ContainerRow]
}

func Row

func Row(children ...IElement) *ContainerRow

type ContainerText

type ContainerText struct {
	*Container[*ContainerText]
}

func Text

func Text(s string) *ContainerText

type ContainerWindow

type ContainerWindow struct {
	*Container[*ContainerWindow]
	// contains filtered or unexported fields
}

func Window

func Window(app *Application, children ...IElement) *ContainerWindow

func (*ContainerWindow) Show

func (w *ContainerWindow) Show() *ContainerWindow

type Element

type Element[T IElement] struct {
	TagName string
	// contains filtered or unexported fields
}

func (*Element[T]) GetAttribute

func (e *Element[T]) GetAttribute(key string) string

func (*Element[T]) ID

func (e *Element[T]) ID(id string) T

func (*Element[T]) Marshal

func (e *Element[T]) Marshal() string

func (*Element[T]) MarshalIndent

func (e *Element[T]) MarshalIndent(prefix string) string

func (*Element[T]) OnClick

func (e *Element[T]) OnClick(a *Application, fn func()) T

func (*Element[T]) SetAttribute

func (e *Element[T]) SetAttribute(key string, value string) T

type ElementButton

type ElementButton struct {
	*Element[*ElementButton]
}

type IBridge

type IBridge interface {
	ExecuteSwift(s string)
}

type IElement

type IElement interface {
	Marshal() string
	MarshalIndent(prefix string) string
}

Jump to

Keyboard shortcuts

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