widget

package module
v0.0.0-...-8e47990 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewButton

func NewButton(parent ki.Ki, name ...string) *gi.Button

func NewSeparatorWithLabel

func NewSeparatorWithLabel(title string, parent ki.Ki)

func NewVSplits

func NewVSplits(parent ki.Ki) *gi.Splits

func NewWindowRunAndWait

func NewWindowRunAndWait(b *gi.Body, DropCallback func(names []string))

func TableSelectedIndex

func TableSelectedIndex(t *giv.TableView) int

func TableSelectedValue

func TableSelectedValue(t *giv.TableView) any

Types

type Editor

type Editor[T safeType.Type] struct {
	*texteditor.Editor
	*texteditor.Buf
	// contains filtered or unexported fields
}

Editor https://swapoff.org/chroma/playground/

func NewEditor

func NewEditor[T safeType.Type](parent ki.Ki, data T, tooltip string, name ...string) *Editor[T]

func (*Editor[T]) SetBashLanguage

func (e *Editor[T]) SetBashLanguage()

func (*Editor[T]) SetCLanguage

func (e *Editor[T]) SetCLanguage()

func (*Editor[T]) SetCSharpLanguage

func (e *Editor[T]) SetCSharpLanguage()

func (*Editor[T]) SetData

func (e *Editor[T]) SetData(data T)

func (*Editor[T]) SetGoLanguage

func (e *Editor[T]) SetGoLanguage()

func (*Editor[T]) SetJavaLanguage

func (e *Editor[T]) SetJavaLanguage()

func (*Editor[T]) SetLanguage

func (e *Editor[T]) SetLanguage(lang string)

func (*Editor[T]) SetLogBody

func (e *Editor[T]) SetLogBody()

func (*Editor[T]) SetNasmLanguage

func (e *Editor[T]) SetNasmLanguage()

func (*Editor[T]) SetPythonLanguage

func (e *Editor[T]) SetPythonLanguage()

func (*Editor[T]) SetRustLanguage

func (e *Editor[T]) SetRustLanguage()

Jump to

Keyboard shortcuts

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