widgets

package
v0.0.0-...-1f748fc Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HelloEditorID = "hello_editor"
)
View Source
const (
	OutputEditorID = "output_editor"
)
View Source
const (
	PrintButtonID = "print_button"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HelloEditor

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

HelloEditor input view

func NewHelloEditor

func NewHelloEditor(handler func()) *HelloEditor

func (*HelloEditor) Get

func (h *HelloEditor) Get() any

func (*HelloEditor) Handler

func (h *HelloEditor) Handler()

func (*HelloEditor) ID

func (h *HelloEditor) ID() string

func (*HelloEditor) Set

func (h *HelloEditor) Set(data any)

func (*HelloEditor) Widget

func (h *HelloEditor) Widget(th *material.Theme) layout.Widget

type HelloEditorData

type HelloEditorData struct {
	Value string
}

type OutputEditor

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

OutputEditor output readonly view

func NewOutputEditor

func NewOutputEditor() *OutputEditor

func (*OutputEditor) Get

func (l *OutputEditor) Get() any

func (*OutputEditor) Handler

func (l *OutputEditor) Handler()

func (*OutputEditor) ID

func (l *OutputEditor) ID() string

func (*OutputEditor) Set

func (l *OutputEditor) Set(data any)

func (*OutputEditor) Widget

func (l *OutputEditor) Widget(th *material.Theme) layout.Widget

type OutputEditorData

type OutputEditorData struct {
	Value string
}

type PrintButton

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

PrintButton button view

func NewPrintButton

func NewPrintButton(handler func()) *PrintButton

func (*PrintButton) Get

func (l *PrintButton) Get() any

func (*PrintButton) Handler

func (l *PrintButton) Handler()

func (*PrintButton) ID

func (l *PrintButton) ID() string

func (*PrintButton) Set

func (l *PrintButton) Set(data any)

func (*PrintButton) Widget

func (l *PrintButton) Widget(th *material.Theme) layout.Widget

Jump to

Keyboard shortcuts

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