vkext

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteBuilder

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

func (*ByteBuilder) Buf

func (b *ByteBuilder) Buf() []byte

func (*ByteBuilder) FinishSize

func (b *ByteBuilder) FinishSize(firstUsedByte int, lastUsedByte int, optimizeEmpty bool)

func (*ByteBuilder) Len

func (b *ByteBuilder) Len() int

func (*ByteBuilder) Print

func (b *ByteBuilder) Print() string

func (*ByteBuilder) PrintLegend

func (b *ByteBuilder) PrintLegend() string

func (*ByteBuilder) ReserveSpaceForSize

func (b *ByteBuilder) ReserveSpaceForSize() int

func (*ByteBuilder) SetCursorFinish

func (b *ByteBuilder) SetCursorFinish()

func (*ByteBuilder) SetCursorStart

func (b *ByteBuilder) SetCursorStart()

func (*ByteBuilder) WriteElementCount

func (b *ByteBuilder) WriteElementCount(v int)

func (*ByteBuilder) WriteFieldmask

func (b *ByteBuilder) WriteFieldmask()

func (*ByteBuilder) WriteString

func (b *ByteBuilder) WriteString(v string)

func (*ByteBuilder) WriteVariantIndex

func (b *ByteBuilder) WriteVariantIndex(v int)

type ByteColor

type ByteColor byte
const ByteColorElementCount ByteColor = 2
const ByteColorFieldMask ByteColor = 4
const ByteColorNormal ByteColor = 0
const ByteColorObjectSize ByteColor = 1
const ByteColorStringData ByteColor = 7
const ByteColorStringSize ByteColor = 6
const ByteColorVariantIndex ByteColor = 3

type KernelValue

type KernelValue interface {
	Clone() KernelValue

	Reset()
	Random(rg *rand.Rand)
	WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
	ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)
	WriteJSON(w []byte, ctx *TL2Context) []byte

	UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)
	UIFixPath(side int, level int, model *UIModel) int // always called onPath
	UIStartEdit(level int, model *UIModel, createMode int)
	UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)

	CompareForMapKey(other KernelValue) int
}

func CreateValue

func CreateValue(ins pure.TypeInstance) KernelValue

type KernelValueArray

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

func (*KernelValueArray) Clone

func (v *KernelValueArray) Clone() KernelValue

func (*KernelValueArray) CompareForMapKey

func (v *KernelValueArray) CompareForMapKey(other KernelValue) int

func (*KernelValueArray) Random

func (v *KernelValueArray) Random(rg *rand.Rand)

func (*KernelValueArray) ReadTL2

func (v *KernelValueArray) ReadTL2(r []byte, ctx *TL2Context) (_ []byte, err error)

func (*KernelValueArray) Reset

func (v *KernelValueArray) Reset()

func (*KernelValueArray) UIFixPath

func (v *KernelValueArray) UIFixPath(side int, level int, model *UIModel) int

func (*KernelValueArray) UIKey

func (v *KernelValueArray) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)

func (*KernelValueArray) UIStartEdit

func (v *KernelValueArray) UIStartEdit(level int, model *UIModel, createMode int)

func (*KernelValueArray) UIWrite

func (v *KernelValueArray) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)

func (*KernelValueArray) WriteJSON

func (v *KernelValueArray) WriteJSON(w []byte, ctx *TL2Context) []byte

func (*KernelValueArray) WriteTL2

func (v *KernelValueArray) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)

type KernelValueArrayBit

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

func (*KernelValueArrayBit) Clone

func (v *KernelValueArrayBit) Clone() KernelValue

func (*KernelValueArrayBit) CompareForMapKey

func (v *KernelValueArrayBit) CompareForMapKey(other KernelValue) int

func (*KernelValueArrayBit) Random

func (v *KernelValueArrayBit) Random(rg *rand.Rand)

func (*KernelValueArrayBit) ReadTL2

func (v *KernelValueArrayBit) ReadTL2(r []byte, ctx *TL2Context) (_ []byte, err error)

func (*KernelValueArrayBit) Reset

func (v *KernelValueArrayBit) Reset()

func (*KernelValueArrayBit) UIFixPath

func (v *KernelValueArrayBit) UIFixPath(side int, level int, model *UIModel) int

func (*KernelValueArrayBit) UIKey

func (v *KernelValueArrayBit) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)

func (*KernelValueArrayBit) UIStartEdit

func (v *KernelValueArrayBit) UIStartEdit(level int, model *UIModel, createMode int)

func (*KernelValueArrayBit) UIWrite

func (v *KernelValueArrayBit) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)

func (*KernelValueArrayBit) WriteJSON

func (v *KernelValueArrayBit) WriteJSON(w []byte, ctx *TL2Context) []byte

func (*KernelValueArrayBit) WriteTL2

func (v *KernelValueArrayBit) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)

type KernelValueBit

type KernelValueBit struct {
}

func (*KernelValueBit) Clone

func (v *KernelValueBit) Clone() KernelValue

func (*KernelValueBit) CompareForMapKey

func (v *KernelValueBit) CompareForMapKey(other KernelValue) int

func (*KernelValueBit) Random

func (v *KernelValueBit) Random(rg *rand.Rand)

func (*KernelValueBit) ReadTL2

func (v *KernelValueBit) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)

func (*KernelValueBit) Reset

func (v *KernelValueBit) Reset()

func (*KernelValueBit) UIFixPath

func (v *KernelValueBit) UIFixPath(side int, level int, model *UIModel) int

func (*KernelValueBit) UIKey

func (v *KernelValueBit) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)

func (*KernelValueBit) UIStartEdit

func (v *KernelValueBit) UIStartEdit(level int, model *UIModel, createMode int)

func (*KernelValueBit) UIWrite

func (v *KernelValueBit) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)

func (*KernelValueBit) WriteJSON

func (v *KernelValueBit) WriteJSON(w []byte, ctx *TL2Context) []byte

func (*KernelValueBit) WriteTL2

func (v *KernelValueBit) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)

type KernelValueBool

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

func (*KernelValueBool) Clone

func (v *KernelValueBool) Clone() KernelValue

func (*KernelValueBool) CompareForMapKey

func (v *KernelValueBool) CompareForMapKey(other KernelValue) int

func (*KernelValueBool) Random

func (v *KernelValueBool) Random(rg *rand.Rand)

func (*KernelValueBool) ReadTL2

func (v *KernelValueBool) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)

func (*KernelValueBool) Reset

func (v *KernelValueBool) Reset()

func (*KernelValueBool) UIFixPath

func (v *KernelValueBool) UIFixPath(side int, level int, model *UIModel) int

func (*KernelValueBool) UIKey

func (v *KernelValueBool) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)

func (*KernelValueBool) UIStartEdit

func (v *KernelValueBool) UIStartEdit(level int, model *UIModel, createMode int)

func (*KernelValueBool) UIWrite

func (v *KernelValueBool) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)

func (*KernelValueBool) WriteJSON

func (v *KernelValueBool) WriteJSON(w []byte, ctx *TL2Context) []byte

func (*KernelValueBool) WriteTL2

func (v *KernelValueBool) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)

type KernelValueByte

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

func (*KernelValueByte) Clone

func (v *KernelValueByte) Clone() KernelValue

func (*KernelValueByte) CompareForMapKey

func (v *KernelValueByte) CompareForMapKey(other KernelValue) int

func (*KernelValueByte) Random

func (v *KernelValueByte) Random(rg *rand.Rand)

func (*KernelValueByte) ReadTL2

func (v *KernelValueByte) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)

func (*KernelValueByte) Reset

func (v *KernelValueByte) Reset()

func (*KernelValueByte) SetFromEditor

func (v *KernelValueByte) SetFromEditor(str string) error

func (*KernelValueByte) UIFixPath

func (v *KernelValueByte) UIFixPath(side int, level int, model *UIModel) int

func (*KernelValueByte) UIKey

func (v *KernelValueByte) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)

func (*KernelValueByte) UIStartEdit

func (v *KernelValueByte) UIStartEdit(level int, model *UIModel, createMode int)

func (*KernelValueByte) UIWrite

func (v *KernelValueByte) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)

func (*KernelValueByte) WriteJSON

func (v *KernelValueByte) WriteJSON(w []byte, ctx *TL2Context) []byte

func (*KernelValueByte) WriteTL2

func (v *KernelValueByte) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)

type KernelValueDict

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

func (*KernelValueDict) Clone

func (v *KernelValueDict) Clone() KernelValue

func (*KernelValueDict) CompareForMapKey

func (v *KernelValueDict) CompareForMapKey(other KernelValue) int

func (*KernelValueDict) Random

func (v *KernelValueDict) Random(rg *rand.Rand)

func (*KernelValueDict) ReadTL2

func (v *KernelValueDict) ReadTL2(r []byte, ctx *TL2Context) (_ []byte, err error)

func (*KernelValueDict) Reset

func (v *KernelValueDict) Reset()

func (*KernelValueDict) UIFixPath

func (v *KernelValueDict) UIFixPath(side int, level int, model *UIModel) int

func (*KernelValueDict) UIKey

func (v *KernelValueDict) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)

func (*KernelValueDict) UIStartEdit

func (v *KernelValueDict) UIStartEdit(level int, model *UIModel, createMode int)

func (*KernelValueDict) UIWrite

func (v *KernelValueDict) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)

func (*KernelValueDict) WriteJSON

func (v *KernelValueDict) WriteJSON(w []byte, ctx *TL2Context) []byte

func (*KernelValueDict) WriteTL2

func (v *KernelValueDict) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)

type KernelValueInt32

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

func (*KernelValueInt32) Clone

func (v *KernelValueInt32) Clone() KernelValue

func (*KernelValueInt32) CompareForMapKey

func (v *KernelValueInt32) CompareForMapKey(other KernelValue) int

func (*KernelValueInt32) Random

func (v *KernelValueInt32) Random(rg *rand.Rand)

func (*KernelValueInt32) ReadTL2

func (v *KernelValueInt32) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)

func (*KernelValueInt32) Reset

func (v *KernelValueInt32) Reset()

func (*KernelValueInt32) SetFromEditor

func (v *KernelValueInt32) SetFromEditor(str string) error

func (*KernelValueInt32) UIFixPath

func (v *KernelValueInt32) UIFixPath(side int, level int, model *UIModel) int

func (*KernelValueInt32) UIKey

func (v *KernelValueInt32) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)

func (*KernelValueInt32) UIStartEdit

func (v *KernelValueInt32) UIStartEdit(level int, model *UIModel, createMode int)

func (*KernelValueInt32) UIWrite

func (v *KernelValueInt32) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)

func (*KernelValueInt32) WriteJSON

func (v *KernelValueInt32) WriteJSON(w []byte, ctx *TL2Context) []byte

func (*KernelValueInt32) WriteTL2

func (v *KernelValueInt32) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)

type KernelValueInt64

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

func (*KernelValueInt64) Clone

func (v *KernelValueInt64) Clone() KernelValue

func (*KernelValueInt64) CompareForMapKey

func (v *KernelValueInt64) CompareForMapKey(other KernelValue) int

func (*KernelValueInt64) Random

func (v *KernelValueInt64) Random(rg *rand.Rand)

func (*KernelValueInt64) ReadTL2

func (v *KernelValueInt64) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)

func (*KernelValueInt64) Reset

func (v *KernelValueInt64) Reset()

func (*KernelValueInt64) SetFromEditor

func (v *KernelValueInt64) SetFromEditor(str string) error

func (*KernelValueInt64) UIFixPath

func (v *KernelValueInt64) UIFixPath(side int, level int, model *UIModel) int

func (*KernelValueInt64) UIKey

func (v *KernelValueInt64) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)

func (*KernelValueInt64) UIStartEdit

func (v *KernelValueInt64) UIStartEdit(level int, model *UIModel, createMode int)

func (*KernelValueInt64) UIWrite

func (v *KernelValueInt64) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)

func (*KernelValueInt64) WriteJSON

func (v *KernelValueInt64) WriteJSON(w []byte, ctx *TL2Context) []byte

func (*KernelValueInt64) WriteTL2

func (v *KernelValueInt64) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)

type KernelValuePrimitive

type KernelValuePrimitive interface {
	KernelValue

	SetFromEditor(str string) error
}

type KernelValueString

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

func (*KernelValueString) Clone

func (v *KernelValueString) Clone() KernelValue

func (*KernelValueString) CompareForMapKey

func (v *KernelValueString) CompareForMapKey(other KernelValue) int

func (*KernelValueString) Random

func (v *KernelValueString) Random(rg *rand.Rand)

func (*KernelValueString) ReadTL2

func (v *KernelValueString) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)

func (*KernelValueString) Reset

func (v *KernelValueString) Reset()

func (*KernelValueString) UIFixPath

func (v *KernelValueString) UIFixPath(side int, level int, model *UIModel) int

func (*KernelValueString) UIKey

func (v *KernelValueString) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)

func (*KernelValueString) UIStartEdit

func (v *KernelValueString) UIStartEdit(level int, model *UIModel, createMode int)

func (*KernelValueString) UIWrite

func (v *KernelValueString) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)

func (*KernelValueString) WriteJSON

func (v *KernelValueString) WriteJSON(w []byte, ctx *TL2Context) []byte

func (*KernelValueString) WriteTL2

func (v *KernelValueString) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)

type KernelValueStruct

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

func CreateValueStruct

func CreateValueStruct(ins *pure.TypeInstanceStruct) KernelValueStruct

func (*KernelValueStruct) Clone

func (v *KernelValueStruct) Clone() KernelValue

func (*KernelValueStruct) CloneObject

func (v *KernelValueStruct) CloneObject() KernelValueStruct

func (*KernelValueStruct) CompareForMapKey

func (v *KernelValueStruct) CompareForMapKey(other KernelValue) int

func (*KernelValueStruct) Random

func (v *KernelValueStruct) Random(rg *rand.Rand)

func (*KernelValueStruct) ReadFieldsTL2

func (v *KernelValueStruct) ReadFieldsTL2(block byte, currentR []byte, ctx *TL2Context) (err error)

func (*KernelValueStruct) ReadTL2

func (v *KernelValueStruct) ReadTL2(r []byte, ctx *TL2Context) (_ []byte, err error)

func (*KernelValueStruct) Reset

func (v *KernelValueStruct) Reset()

func (*KernelValueStruct) UIFixPath

func (v *KernelValueStruct) UIFixPath(side int, level int, model *UIModel) int

func (*KernelValueStruct) UIKey

func (v *KernelValueStruct) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)

func (*KernelValueStruct) UIStartEdit

func (v *KernelValueStruct) UIStartEdit(level int, model *UIModel, createMode int)

func (*KernelValueStruct) UIWrite

func (v *KernelValueStruct) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)

func (*KernelValueStruct) WriteJSON

func (v *KernelValueStruct) WriteJSON(w []byte, ctx *TL2Context) []byte

func (*KernelValueStruct) WriteTL2

func (v *KernelValueStruct) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)

type KernelValueUint32

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

func (*KernelValueUint32) Clone

func (v *KernelValueUint32) Clone() KernelValue

func (*KernelValueUint32) CompareForMapKey

func (v *KernelValueUint32) CompareForMapKey(other KernelValue) int

func (*KernelValueUint32) Random

func (v *KernelValueUint32) Random(rg *rand.Rand)

func (*KernelValueUint32) ReadTL2

func (v *KernelValueUint32) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)

func (*KernelValueUint32) Reset

func (v *KernelValueUint32) Reset()

func (*KernelValueUint32) SetFromEditor

func (v *KernelValueUint32) SetFromEditor(str string) error

func (*KernelValueUint32) UIFixPath

func (v *KernelValueUint32) UIFixPath(side int, level int, model *UIModel) int

func (*KernelValueUint32) UIKey

func (v *KernelValueUint32) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)

func (*KernelValueUint32) UIStartEdit

func (v *KernelValueUint32) UIStartEdit(level int, model *UIModel, createMode int)

func (*KernelValueUint32) UIWrite

func (v *KernelValueUint32) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)

func (*KernelValueUint32) WriteJSON

func (v *KernelValueUint32) WriteJSON(w []byte, ctx *TL2Context) []byte

func (*KernelValueUint32) WriteTL2

func (v *KernelValueUint32) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)

type KernelValueUint64

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

func (*KernelValueUint64) Clone

func (v *KernelValueUint64) Clone() KernelValue

func (*KernelValueUint64) CompareForMapKey

func (v *KernelValueUint64) CompareForMapKey(other KernelValue) int

func (*KernelValueUint64) Random

func (v *KernelValueUint64) Random(rg *rand.Rand)

func (*KernelValueUint64) ReadTL2

func (v *KernelValueUint64) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)

func (*KernelValueUint64) Reset

func (v *KernelValueUint64) Reset()

func (*KernelValueUint64) SetFromEditor

func (v *KernelValueUint64) SetFromEditor(str string) error

func (*KernelValueUint64) UIFixPath

func (v *KernelValueUint64) UIFixPath(side int, level int, model *UIModel) int

func (*KernelValueUint64) UIKey

func (v *KernelValueUint64) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)

func (*KernelValueUint64) UIStartEdit

func (v *KernelValueUint64) UIStartEdit(level int, model *UIModel, createMode int)

func (*KernelValueUint64) UIWrite

func (v *KernelValueUint64) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)

func (*KernelValueUint64) WriteJSON

func (v *KernelValueUint64) WriteJSON(w []byte, ctx *TL2Context) []byte

func (*KernelValueUint64) WriteTL2

func (v *KernelValueUint64) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)

type KernelValueUnion

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

func (*KernelValueUnion) Clone

func (v *KernelValueUnion) Clone() KernelValue

func (*KernelValueUnion) CompareForMapKey

func (v *KernelValueUnion) CompareForMapKey(other KernelValue) int

func (*KernelValueUnion) Random

func (v *KernelValueUnion) Random(rg *rand.Rand)

func (*KernelValueUnion) ReadTL2

func (v *KernelValueUnion) ReadTL2(r []byte, ctx *TL2Context) (_ []byte, err error)

func (*KernelValueUnion) Reset

func (v *KernelValueUnion) Reset()

func (*KernelValueUnion) UIFixPath

func (v *KernelValueUnion) UIFixPath(side int, level int, model *UIModel) int

func (*KernelValueUnion) UIKey

func (v *KernelValueUnion) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)

func (*KernelValueUnion) UIStartEdit

func (v *KernelValueUnion) UIStartEdit(level int, model *UIModel, createMode int)

func (*KernelValueUnion) UIWrite

func (v *KernelValueUnion) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)

func (*KernelValueUnion) WriteJSON

func (v *KernelValueUnion) WriteJSON(w []byte, ctx *TL2Context) []byte

func (*KernelValueUnion) WriteTL2

func (v *KernelValueUnion) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)

type TL2Context

type TL2Context struct {
}

common for read/write/json/etc... for simplicity

type UIBlinkMsg

type UIBlinkMsg struct {
	On bool
}

type UIEditor

type UIEditor interface {
	Value() KernelValue

	UIWrite(sb *strings.Builder, model *UIModel)

	OnRune(msg string, model *UIModel)
	OnBackspace(model *UIModel)
	OnEnter(model *UIModel)
	OnTab(model *UIModel, side int) // -1 Shift-Tab
	OnEscape(model *UIModel)
}

type UIEditorPrimitive

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

func (*UIEditorPrimitive) OnBackspace

func (e *UIEditorPrimitive) OnBackspace(model *UIModel)

func (*UIEditorPrimitive) OnEnter

func (e *UIEditorPrimitive) OnEnter(model *UIModel)

func (*UIEditorPrimitive) OnEscape

func (e *UIEditorPrimitive) OnEscape(model *UIModel)

func (*UIEditorPrimitive) OnRune

func (e *UIEditorPrimitive) OnRune(msg string, model *UIModel)

func (*UIEditorPrimitive) OnTab

func (e *UIEditorPrimitive) OnTab(model *UIModel, side int)

func (*UIEditorPrimitive) SetValue

func (e *UIEditorPrimitive) SetValue(v KernelValuePrimitive)

func (*UIEditorPrimitive) UIWrite

func (e *UIEditorPrimitive) UIWrite(sb *strings.Builder, model *UIModel)

func (*UIEditorPrimitive) Value

func (e *UIEditorPrimitive) Value() KernelValue

type UIEditorString

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

func (*UIEditorString) FinishOK

func (e *UIEditorString) FinishOK()

func (*UIEditorString) OnBackspace

func (e *UIEditorString) OnBackspace(model *UIModel)

func (*UIEditorString) OnEnter

func (e *UIEditorString) OnEnter(model *UIModel)

func (*UIEditorString) OnEscape

func (e *UIEditorString) OnEscape(model *UIModel)

func (*UIEditorString) OnRune

func (e *UIEditorString) OnRune(msg string, model *UIModel)

func (*UIEditorString) OnTab

func (e *UIEditorString) OnTab(model *UIModel, side int)

func (*UIEditorString) SetValue

func (e *UIEditorString) SetValue(v *KernelValueString)

func (*UIEditorString) UIWrite

func (e *UIEditorString) UIWrite(sb *strings.Builder, model *UIModel)

func (*UIEditorString) Value

func (e *UIEditorString) Value() KernelValue

type UIEditorUnion

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

func (*UIEditorUnion) FinishOK

func (e *UIEditorUnion) FinishOK()

func (*UIEditorUnion) OnBackspace

func (e *UIEditorUnion) OnBackspace(model *UIModel)

func (*UIEditorUnion) OnEnter

func (e *UIEditorUnion) OnEnter(model *UIModel)

func (*UIEditorUnion) OnEscape

func (e *UIEditorUnion) OnEscape(model *UIModel)

func (*UIEditorUnion) OnRune

func (e *UIEditorUnion) OnRune(msg string, model *UIModel)

func (*UIEditorUnion) OnTab

func (e *UIEditorUnion) OnTab(model *UIModel, side int)

func (*UIEditorUnion) SetValue

func (e *UIEditorUnion) SetValue(v *KernelValueUnion)

func (*UIEditorUnion) UIWrite

func (e *UIEditorUnion) UIWrite(sb *strings.Builder, model *UIModel)

func (*UIEditorUnion) Value

func (e *UIEditorUnion) Value() KernelValue

type UIModel

type UIModel struct {
	Fun KernelValueStruct

	Path []int // selected field on every hierarchy level, 0 means union constructor

	Blink UIBlinkMsg

	CurrentEditor UIEditor

	LastError error

	ShowLegend bool

	EditorUnion     UIEditorUnion
	EditorString    UIEditorString
	EditorPrimitive UIEditorPrimitive

	Width  int
	Height int
}

func (*UIModel) Move

func (m *UIModel) Move(side int)

func (*UIModel) Right

func (m *UIModel) Right()

func (*UIModel) SetCurrentEditor

func (m *UIModel) SetCurrentEditor(e UIEditor)

func (*UIModel) StartEdit

func (m *UIModel) StartEdit(createMode int)

func (*UIModel) View

func (m *UIModel) View() string

func (*UIModel) WriteCursor

func (m *UIModel) WriteCursor(sb *strings.Builder, text string)

Jump to

Keyboard shortcuts

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