mvm

package module
v0.0.0-...-16f148f Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2018 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CStringParameters []Parameter = []Parameter{
	&FixedParameter{"s"},
	&FixedParameter{"result"},
}
View Source
var CopyParameters []Parameter = []Parameter{
	&FixedParameter{name: "from"},
	&FixedParameter{name: "to"},
}
View Source
var ExecParameters []Parameter = []Parameter{
	&FixedParameter{name: "command"},
	&FixedParameter{name: "args"},
	&FixedParameter{name: "stdout"},
	&FixedParameter{name: "stderr"},
}
View Source
var FileName string = "mvm.img"
View Source
var FormatParameters []Parameter = []Parameter{
	&FixedParameter{name: "output"},
	&FixedParameter{name: "fmt"},
	&FixedParameter{name: "args"},
}
View Source
var GetFunctionParameters []Parameter = []Parameter{
	&FixedParameter{"name"},
	&FixedParameter{"rtype"},
	&FixedParameter{"atypes"},
	&FixedParameter{"result"},
}
View Source
var Gobs []Gob = []Gob{
	CTypesGob{},
}
View Source
var Objects []Object = []Object{
	FormatType{},
	&Text{},
	ExecType{},
	CopyType{},
	Ptr(0),
	CTypesArray,
	CString{},
	GetFunction{},
	&Function{"fn", CType{0}, nil},
}
View Source
var Pointer = ui.MakeTouch(vec2.Vec2{0, 0})

Functions

func ButtonSize

func ButtonSize(contentSize float64) float64

func CircleClicked

func CircleClicked(pos vec2.Vec2, touch vec2.Vec2) bool

func Clamp

func Clamp(min, max, val float64) float64

func Dist

func Dist(a, b Vec2) float64

func Dot

func Dot(a, b Vec2) float64

func Flatten

func Flatten(ble Gobbable) ([]byte, error)

func IsBlueprintWidget

func IsBlueprintWidget(i interface{}) bool

func Limit

func Limit(a, limit float64) float64

func LoadImage

func LoadImage() error

func ParamOffset

func ParamOffset(i int) float64

func ProcessEvent

func ProcessEvent(e Event)

func Ray

func Ray(source, dest, box Vec2) Vec2

func RegisterGobs

func RegisterGobs()

func SaveImage

func SaveImage() error

func SetupDefault

func SetupDefault()

func Start

func Start()

Types

type AddParameter

type AddParameter struct {
	*Frame
}

func (AddParameter) Activate

func (ap AddParameter) Activate(ui.TouchContext) ui.Action

func (AddParameter) Keycode

func (AddParameter) Keycode() string

func (AddParameter) Name

func (AddParameter) Name() string

type Args

type Args interface {
	Get(string) *Shell
	Set(string, *Shell)
}

func MakeArgs

func MakeArgs(f *Frame, blueprint *Shell) Args

type Background

type Background struct{ vec2.Vec2 }

func (Background) Draw

func (b Background) Draw(ctx *ui.Context2D)

type Blueprint

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

func MakeBlueprint

func MakeBlueprint(name string) *Blueprint

func (*Blueprint) AddFrame

func (bp *Blueprint) AddFrame() *Frame

func (*Blueprint) BrightColor

func (b *Blueprint) BrightColor() string

func (*Blueprint) Connect

func (blue *Blueprint) Connect(d Deserializer, gob Gob)

func (*Blueprint) DarkColor

func (b *Blueprint) DarkColor() string

func (*Blueprint) FillWithCopy

func (bp *Blueprint) FillWithCopy(frame *Frame, proto *Shell)

func (*Blueprint) Frames

func (b *Blueprint) Frames() (out []*Frame)

func (*Blueprint) Gob

func (blue *Blueprint) Gob(s Serializer) Gob

func (*Blueprint) MakeLinkTarget

func (b *Blueprint) MakeLinkTarget() *Frame

func (*Blueprint) MakeWidget

func (b *Blueprint) MakeWidget(s *Shell) ui.Widget

func (*Blueprint) Name

func (b *Blueprint) Name() string

func (*Blueprint) String

func (b *Blueprint) String(interface{}) string

type BlueprintGob

type BlueprintGob struct {
	Name      string
	Frames    []int
	Instances []int
	Transform matrix.Matrix
	Color     int
}

func (BlueprintGob) Ungob

func (gob BlueprintGob) Ungob() Gobbable

type BlueprintWidget

type BlueprintWidget struct {
	Blueprint *Blueprint
	Shell     *Shell
}

func (BlueprintWidget) Children

func (w BlueprintWidget) Children() []interface{}

func (BlueprintWidget) Draw

func (w BlueprintWidget) Draw(ctx *ui.Context2D)

func (BlueprintWidget) Options

func (w BlueprintWidget) Options(pos vec2.Vec2) []ui.Option

func (BlueprintWidget) PostDraw

func (w BlueprintWidget) PostDraw(ctx *ui.Context2D)

func (BlueprintWidget) Transform

type CString

type CString struct{}

func (CString) Name

func (CString) Name() string

func (CString) Parameters

func (CString) Parameters() []Parameter

func (CString) Run

func (CString) Run(args Args)

type CType

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

func (CType) Name

func (ctype CType) Name() string

type CTypes

type CTypes []CType
var CTypesArray CTypes = CTypes{
	CType{/* contains filtered or unexported fields */},
	CType{/* contains filtered or unexported fields */},
	CType{/* contains filtered or unexported fields */},
	CType{/* contains filtered or unexported fields */},
	CType{/* contains filtered or unexported fields */},
	CType{/* contains filtered or unexported fields */},
	CType{/* contains filtered or unexported fields */},
	CType{/* contains filtered or unexported fields */},
	CType{/* contains filtered or unexported fields */},
	CType{/* contains filtered or unexported fields */},
	CType{/* contains filtered or unexported fields */},
	CType{/* contains filtered or unexported fields */},
}

func (CTypes) Connect

func (CTypes) Connect(Deserializer, Gob)

func (CTypes) GetMember

func (self CTypes) GetMember(name string) *Shell

func (CTypes) Gob

func (CTypes) Gob(Serializer) Gob

func (CTypes) Members

func (self CTypes) Members() (m []Member)

func (CTypes) Name

func (CTypes) Name() string

type CTypesGob

type CTypesGob struct{}

func (CTypesGob) Ungob

func (CTypesGob) Ungob() Gobbable

type ClearFrame

type ClearFrame struct {
	Frame *Frame
	Shell *Shell
}

func (ClearFrame) Activate

func (cf ClearFrame) Activate(ctx ui.TouchContext) ui.Action

func (ClearFrame) Keycode

func (cf ClearFrame) Keycode() string

func (ClearFrame) Name

func (cf ClearFrame) Name() string

type Client

type Client interface {
	Call(request string) (Event, error)
}

type ClientUI

type ClientUI struct {
	Client Client

	Touches   map[int]*ui.Touch
	MenuLayer ui.MenuLayer
	// contains filtered or unexported fields
}

func MakeClientUI

func MakeClientUI(c Client) *ClientUI

func (*ClientUI) Children

func (c *ClientUI) Children() (children []interface{})

func (*ClientUI) Focus

func (c *ClientUI) Focus() *Shell

func (*ClientUI) GetMenuLayer

func (c *ClientUI) GetMenuLayer() *ui.MenuLayer

func (*ClientUI) IsEditing

func (c *ClientUI) IsEditing(i ui.Editable) bool

func (*ClientUI) MeasureText

func (c *ClientUI) MeasureText(text string) float64

func (*ClientUI) Options

func (c *ClientUI) Options(vec2.Vec2) []ui.Option

func (*ClientUI) ToggleEditing

func (c *ClientUI) ToggleEditing(i ui.Editable)

func (*ClientUI) Transform

func (c *ClientUI) Transform(ui.TextMeasurer) matrix.Matrix

type CloneFrame

type CloneFrame struct {
	Frame *Frame
	Shell *Shell
}

func (CloneFrame) Activate

func (cf CloneFrame) Activate(ctx ui.TouchContext) ui.Action

func (CloneFrame) Keycode

func (cf CloneFrame) Keycode() string

func (CloneFrame) Name

func (cf CloneFrame) Name() string

type ComplexObject

type ComplexObject interface {
	Object
	Members() []Member
	GetMember(string) *Shell
}

type CopyFrame

type CopyFrame struct {
	Frame *Frame
	Shell *Shell
}

func (CopyFrame) Activate

func (cf CopyFrame) Activate(ctx ui.TouchContext) ui.Action

func (CopyFrame) Keycode

func (cf CopyFrame) Keycode() string

func (CopyFrame) Name

func (cf CopyFrame) Name() string

type CopyType

type CopyType struct{}

func (CopyType) Name

func (CopyType) Name() string

func (CopyType) Parameters

func (CopyType) Parameters() []Parameter

func (CopyType) Run

func (CopyType) Run(args Args)

type DeleteFrame

type DeleteFrame struct {
	Frame *Frame
}

func (DeleteFrame) Activate

func (df DeleteFrame) Activate(ui.TouchContext) ui.Action

func (DeleteFrame) Keycode

func (df DeleteFrame) Keycode() string

func (DeleteFrame) Name

func (df DeleteFrame) Name() string

type DeleteParameter

type DeleteParameter struct {
	*FrameElement
}

func (DeleteParameter) Activate

func (dp DeleteParameter) Activate(ui.TouchContext) ui.Action

func (DeleteParameter) Keycode

func (DeleteParameter) Keycode() string

func (DeleteParameter) Name

func (DeleteParameter) Name() string

type Deserializer

type Deserializer interface {
	Get(int) Gobbable
}

type ElementGob

type ElementGob struct {
	Frame  int
	Name   string
	Target int
	Stiff  bool
}

func (ElementGob) Ungob

func (gob ElementGob) Ungob() Gobbable

type ElementPack

type ElementPack struct {
	FrameElement *FrameElement
	Param        Parameter
	Member       Member
}

type Enter

type Enter struct {
	Shell *Shell
}

func (Enter) Activate

func (e Enter) Activate(ctx ui.TouchContext) ui.Action

func (Enter) Keycode

func (e Enter) Keycode() string

func (Enter) Name

func (e Enter) Name() string

type Event

type Event struct {
	Type          string
	Width, Height float64
	X, Y          float64
	Code          string
	Key           string
	Changed       []EventTouch
	Shell         *Shell
	Client        Client
}

type EventTouch

type EventTouch struct {
	X, Y float64
	Id   int
}

type ExecType

type ExecType struct{}

func (ExecType) Name

func (ExecType) Name() string

func (ExecType) Parameters

func (ExecType) Parameters() []Parameter

func (ExecType) Run

func (ExecType) Run(args Args)

type FanOut

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

func MakeFanOut

func MakeFanOut() *FanOut

func (*FanOut) Close

func (fo *FanOut) Close(c chan string)

func (*FanOut) Open

func (fo *FanOut) Open() chan string

type FixedParameter

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

func (*FixedParameter) Name

func (p *FixedParameter) Name() string

type Flattener

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

func (*Flattener) Get

func (f *Flattener) Get(i int) Gobbable

func (*Flattener) Id

func (f *Flattener) Id(ble Gobbable) (id int)

type FormatType

type FormatType struct{}

func (FormatType) Name

func (FormatType) Name() string

func (FormatType) Parameters

func (FormatType) Parameters() []Parameter

func (FormatType) Run

func (FormatType) Run(args Args)

type Frame

type Frame struct {
	Hidden     bool
	ShowWindow bool
	// contains filtered or unexported fields
}

func (*Frame) Connect

func (frame *Frame) Connect(d Deserializer, gob Gob)

func (*Frame) ContentBottom

func (f *Frame) ContentBottom() float64

func (*Frame) ContentHeight

func (f *Frame) ContentHeight() float64

func (*Frame) ContentLeft

func (f *Frame) ContentLeft() float64

func (*Frame) ContentRight

func (f *Frame) ContentRight() float64

func (*Frame) ContentSize

func (f *Frame) ContentSize() ui.Box

func (*Frame) ContentTop

func (f *Frame) ContentTop() float64

func (*Frame) ContentWidth

func (f *Frame) ContentWidth() float64

func (*Frame) Delete

func (f *Frame) Delete()

func (*Frame) FindElement

func (f *Frame) FindElement(name string) *FrameElement

func (*Frame) FindParam

func (f *Frame) FindParam(blueprint *Shell, param string) *Shell

func (*Frame) Frame

func (f *Frame) Frame() *Frame

func (*Frame) Get

func (f *Frame) Get(machine *Shell) *Shell

func (*Frame) GetElement

func (f *Frame) GetElement(name string) *FrameElement

func (*Frame) Gob

func (frame *Frame) Gob(s Serializer) Gob

func (*Frame) Name

func (f *Frame) Name() string

func (*Frame) ParamCenter

func (f *Frame) ParamCenter(i int) vec2.Vec2

func (*Frame) PayloadBottom

func (f *Frame) PayloadBottom() float64

func (*Frame) PayloadHeight

func (f *Frame) PayloadHeight() float64

func (*Frame) PayloadLeft

func (f *Frame) PayloadLeft(m ui.TextMeasurer) float64

func (*Frame) PayloadRight

func (f *Frame) PayloadRight(s *Shell, m ui.TextMeasurer) float64

func (*Frame) PayloadTop

func (f *Frame) PayloadTop() float64

func (*Frame) PayloadWidth

func (f *Frame) PayloadWidth(s *Shell, m ui.TextMeasurer) float64

func (*Frame) Position

func (f *Frame) Position() vec2.Vec2

func (*Frame) PropagateStiff

func (e *Frame) PropagateStiff(cb func(*Frame))

func (*Frame) Set

func (f *Frame) Set(machine *Shell, value *Shell)

func (*Frame) Title

func (f *Frame) Title() string

func (*Frame) TitleBottom

func (f *Frame) TitleBottom() float64

func (*Frame) TitleHeight

func (f *Frame) TitleHeight() float64

func (*Frame) TitleLeft

func (f *Frame) TitleLeft() float64

func (*Frame) TitleRight

func (f *Frame) TitleRight(m ui.TextMeasurer) float64

func (*Frame) TitleTop

func (f *Frame) TitleTop() float64

func (*Frame) TitleWidth

func (f *Frame) TitleWidth(m ui.TextMeasurer) float64

func (*Frame) ZipElements

func (f *Frame) ZipElements(s *Shell) (zip []ElementPack)

type FrameArgs

type FrameArgs struct {
	Frame     *Frame
	Blueprint *Shell
}

func (FrameArgs) Get

func (args FrameArgs) Get(name string) *Shell

func (FrameArgs) Set

func (args FrameArgs) Set(name string, s *Shell)

type FrameBlueprintPayload

type FrameBlueprintPayload struct {
	FramePayload
	Blueprint *Blueprint
}

func (FrameBlueprintPayload) GetText

func (fbp FrameBlueprintPayload) GetText() string

func (FrameBlueprintPayload) SetText

func (fbp FrameBlueprintPayload) SetText(text string)

type FrameDragging

type FrameDragging struct {
	Frame *Frame
	Cell  vec2.Vec2
}

func StartFrameDragging

func StartFrameDragging(p vec2.Vec2, f *Frame) FrameDragging

func (FrameDragging) Activate

func (d FrameDragging) Activate(ui.TouchContext) ui.Action

func (FrameDragging) End

func (d FrameDragging) End(ui.TouchContext)

func (FrameDragging) Keycode

func (d FrameDragging) Keycode() string

func (FrameDragging) Move

func (d FrameDragging) Move(ctx ui.TouchContext) ui.Action

func (FrameDragging) Name

func (d FrameDragging) Name() string

type FrameElement

type FrameElement struct {
	TreeNode

	Name string
	// contains filtered or unexported fields
}

func (*FrameElement) Connect

func (e *FrameElement) Connect(d Deserializer, gob Gob)

func (*FrameElement) FindParam

func (ls *FrameElement) FindParam(blueprint *Shell) *Shell

func (*FrameElement) Frame

func (el *FrameElement) Frame() *Frame

func (*FrameElement) Get

func (el *FrameElement) Get(blueprint *Shell) *Shell

func (*FrameElement) Gob

func (e *FrameElement) Gob(s Serializer) Gob

func (*FrameElement) Index

func (el *FrameElement) Index() int

func (*FrameElement) Position

func (el *FrameElement) Position() vec2.Vec2

func (*FrameElement) PositionInFrame

func (el *FrameElement) PositionInFrame() vec2.Vec2

func (*FrameElement) Set

func (el *FrameElement) Set(blueprint *Shell, value *Shell)

type FrameElementCircle

type FrameElementCircle struct {
	FrameElementPointer
}

func (FrameElementCircle) Draw

func (p FrameElementCircle) Draw(ctx *ui.Context2D)

func (FrameElementCircle) Options

func (p FrameElementCircle) Options(pos vec2.Vec2) []ui.Option

func (FrameElementCircle) Size

type FrameElementList

type FrameElementList struct {
	Frame *Frame
	Shell *Shell
}

func (FrameElementList) Children

func (p FrameElementList) Children() (children []interface{})

func (FrameElementList) Draw

func (p FrameElementList) Draw(ctx *ui.Context2D)

func (FrameElementList) Options

func (p FrameElementList) Options(vec2.Vec2) []ui.Option

func (FrameElementList) Transform

func (p FrameElementList) Transform(m ui.TextMeasurer) matrix.Matrix

type FrameElementPointer

type FrameElementPointer struct {
	Frame   *Frame
	Index   int
	Machine *Shell
}

func (*FrameElementPointer) FrameElement

func (self *FrameElementPointer) FrameElement() *FrameElement

func (*FrameElementPointer) IsDefined

func (self *FrameElementPointer) IsDefined() bool

func (*FrameElementPointer) IsMember

func (self *FrameElementPointer) IsMember() bool

func (*FrameElementPointer) MakeFrameElement

func (self *FrameElementPointer) MakeFrameElement() *FrameElement

func (*FrameElementPointer) Member

func (self *FrameElementPointer) Member() Member

func (*FrameElementPointer) Name

func (self *FrameElementPointer) Name() string

func (*FrameElementPointer) Param

func (self *FrameElementPointer) Param() Member

func (*FrameElementPointer) PositionInFrame

func (self *FrameElementPointer) PositionInFrame() vec2.Vec2

func (*FrameElementPointer) Zip

func (self *FrameElementPointer) Zip() ElementPack

type FrameElementWidget

type FrameElementWidget struct {
	FrameElementPointer
}

func (FrameElementWidget) Children

func (p FrameElementWidget) Children() []interface{}

func (FrameElementWidget) Draw

func (p FrameElementWidget) Draw(ctx *ui.Context2D)

func (FrameElementWidget) GetText

func (p FrameElementWidget) GetText() string

func (FrameElementWidget) Options

func (p FrameElementWidget) Options(vec2.Vec2) (opts []ui.Option)

func (FrameElementWidget) SetText

func (p FrameElementWidget) SetText(newName string)

func (FrameElementWidget) Size

func (p FrameElementWidget) Size(measurer ui.TextMeasurer) ui.Box

func (FrameElementWidget) Transform

type FrameGob

type FrameGob struct {
	Blueprint  int
	Pos        Vec2
	Size       Vec2
	Name       string
	Elems      []int
	Param      bool
	Public     bool
	ShowWindow bool
}

func (FrameGob) Ungob

func (gob FrameGob) Ungob() Gobbable

type FramePart

type FramePart interface {
	MyFrame() *Frame
}

type FramePayload

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

func (FramePayload) Draw

func (fp FramePayload) Draw(ctx *ui.Context2D)

func (FramePayload) Options

func (fp FramePayload) Options(pos vec2.Vec2) []ui.Option

func (FramePayload) Size

func (fp FramePayload) Size(m ui.TextMeasurer) ui.Box

type FrameTitle

type FrameTitle struct {
	Frame          *Frame
	Shell          *Shell
	BlueprintShell *Shell
}

func (FrameTitle) Draw

func (f FrameTitle) Draw(ctx *ui.Context2D)

func (FrameTitle) GetText

func (f FrameTitle) GetText() string

func (FrameTitle) MyFrame

func (f FrameTitle) MyFrame() *Frame

func (FrameTitle) Options

func (f FrameTitle) Options(pos vec2.Vec2) []ui.Option

func (FrameTitle) SetText

func (f FrameTitle) SetText(s string)

func (FrameTitle) Size

func (f FrameTitle) Size(m ui.TextMeasurer) ui.Box

type FrameWidget

type FrameWidget struct {
	Frame          *Frame
	Shell          *Shell
	BlueprintShell *Shell
}

func (FrameWidget) Children

func (w FrameWidget) Children() []interface{}

func (FrameWidget) Draw

func (w FrameWidget) Draw(ctx *ui.Context2D)

func (FrameWidget) Options

func (w FrameWidget) Options(p vec2.Vec2) []ui.Option

func (FrameWidget) Transform

func (w FrameWidget) Transform(ui.TextMeasurer) matrix.Matrix

type FrameWindow

type FrameWindow struct {
	Frame *Frame
	Shell *Shell
}

func (FrameWindow) Children

func (ft FrameWindow) Children() []interface{}

func (FrameWindow) Draw

func (ft FrameWindow) Draw(ctx *ui.Context2D)

func (FrameWindow) MyFrame

func (ft FrameWindow) MyFrame() *Frame

func (FrameWindow) PostDraw

func (ft FrameWindow) PostDraw(ctx *ui.Context2D)

func (FrameWindow) Size

func (ft FrameWindow) Size(m ui.TextMeasurer) ui.Box

func (FrameWindow) Transform

func (ft FrameWindow) Transform(ui.TextMeasurer) matrix.Matrix

type Function

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

func (*Function) Name

func (f *Function) Name() string

func (*Function) Parameters

func (f *Function) Parameters() (params []Parameter)

func (*Function) Run

func (f *Function) Run(args Args)

type GetFunction

type GetFunction struct{}

func (GetFunction) Name

func (GetFunction) Name() string

func (GetFunction) Parameters

func (GetFunction) Parameters() []Parameter

func (GetFunction) Run

func (GetFunction) Run(args Args)

type GoUp

type GoUp struct {
	*ClientUI
}

func (GoUp) Activate

func (gu GoUp) Activate(ui.TouchContext) ui.Action

func (GoUp) Keycode

func (GoUp) Keycode() string

func (GoUp) Name

func (GoUp) Name() string

type Gob

type Gob interface {
	Ungob() Gobbable
}

type Gobbable

type Gobbable interface {
	Gob(Serializer) Gob
	Connect(Deserializer, Gob)
}

func Unflatten

func Unflatten(data []byte) (Gobbable, error)

type Gobbables

type Gobbables []Gobbable

func (Gobbables) Get

func (slice Gobbables) Get(i int) Gobbable

type GraphicObject

type GraphicObject interface {
	Object
	MakeWidget(*Shell) ui.Widget
}

type HttpClient

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

func (*HttpClient) Call

func (c *HttpClient) Call(request string) (response Event, err error)

type Lower

type Lower struct {
	Frame          *Frame
	BlueprintShell *Shell
}

func (Lower) Activate

func (l Lower) Activate(ctx ui.TouchContext) ui.Action

func (Lower) Keycode

func (Lower) Keycode() string

func (Lower) Name

func (Lower) Name() string

type Machine

type Machine struct {
	*Blueprint
	// contains filtered or unexported fields
}

func MakeMachine

func MakeMachine(blueprint *Blueprint) *Machine

func (*Machine) Connect

func (m *Machine) Connect(d Deserializer, gob Gob)

func (*Machine) Copy

func (self *Machine) Copy(shell *Shell)

func (*Machine) GetMember

func (self *Machine) GetMember(name string) *Shell

func (*Machine) Gob

func (mach *Machine) Gob(s Serializer) Gob

func (*Machine) Members

func (self *Machine) Members() (members []Member)

func (*Machine) Parameters

func (self *Machine) Parameters() (params []Parameter)

func (*Machine) Run

func (self *Machine) Run(args Args)

type MachineGob

type MachineGob struct {
	Blueprint int
	Shells    map[int]int
}

func (MachineGob) Ungob

func (gob MachineGob) Ungob() Gobbable

type MakeFrame

type MakeFrame struct {
	Blueprint *Blueprint
}

func (MakeFrame) Activate

func (mf MakeFrame) Activate(ctx ui.TouchContext) ui.Action

func (MakeFrame) Keycode

func (mf MakeFrame) Keycode() string

func (MakeFrame) Name

func (mf MakeFrame) Name() string

type Member

type Member interface {
	Name() string
}

func GetMember

func GetMember(members []Member, name string) (int, Member)
type Navigate struct {
	// contains filtered or unexported fields
}
func (d Navigate) Activate(ui.TouchContext) ui.Action
func (d Navigate) End(ui.TouchContext)
func (d Navigate) Keycode() string
func (d Navigate) Move(ctx ui.TouchContext) ui.Action
func (d Navigate) Name() string
func (d Navigate) PreMove(ctx ui.TouchContext)

type NewBlueprint

type NewBlueprint struct {
	Frame   *Frame
	Machine *Shell
}

func (NewBlueprint) Activate

func (nb NewBlueprint) Activate(ctx ui.TouchContext) ui.Action

func (NewBlueprint) Keycode

func (nb NewBlueprint) Keycode() string

func (NewBlueprint) Name

func (nb NewBlueprint) Name() string

type Object

type Object interface {
	Name() string
}

type Parameter

type Parameter interface {
	Name() string
}

func GetParam

func GetParam(params []Parameter, name string) (int, Parameter)

type ParameterDragging

type ParameterDragging struct {
	FrameElementPointer
}

func (*ParameterDragging) Activate

func (d *ParameterDragging) Activate(t ui.TouchContext) ui.Action

func (*ParameterDragging) End

func (d *ParameterDragging) End(ctx ui.TouchContext)

func (*ParameterDragging) Keycode

func (d *ParameterDragging) Keycode() string

func (*ParameterDragging) Move

func (*ParameterDragging) Name

func (d *ParameterDragging) Name() string

type Ptr

type Ptr uintptr

func (Ptr) MakeWidget

func (Ptr) MakeWidget(s *Shell) ui.Widget

func (Ptr) Name

func (Ptr) Name() string

func (Ptr) Unwrap

func (self Ptr) Unwrap() interface{}

type PtrWidget

type PtrWidget struct{ *Shell }

func (PtrWidget) Draw

func (w PtrWidget) Draw(ctx *ui.Context2D)

func (PtrWidget) Options

func (PtrWidget) Options(vec2.Vec2) []ui.Option

type Quit

type Quit struct{}

func (Quit) Activate

func (Quit) Activate(ui.TouchContext) ui.Action

func (Quit) Keycode

func (Quit) Keycode() string

func (Quit) Name

func (Quit) Name() string

type Raise

type Raise struct {
	Frame *Frame
}

func (Raise) Activate

func (r Raise) Activate(ctx ui.TouchContext) ui.Action

func (Raise) Keycode

func (Raise) Keycode() string

func (Raise) Name

func (Raise) Name() string

type RunnableObject

type RunnableObject interface {
	Object
	Parameters() []Parameter
	Run(Args)
}

type Schedule

type Schedule struct {
	Frame *Frame
	Shell *Shell
}

func (Schedule) Activate

func (s Schedule) Activate(ui.TouchContext) ui.Action

func (Schedule) Keycode

func (s Schedule) Keycode() string

func (Schedule) Name

func (s Schedule) Name() string

type Serializer

type Serializer interface {
	Id(Gobbable) int
}

type Shell

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

func Copy

func Copy(object Object, targetFrame *Frame, targetMachine *Shell) *Shell

func FindShell

func FindShell(f *Frame, machineShell *Shell) *Shell

func MakeShell

func MakeShell(frame *Frame, parent *Shell) *Shell

func (*Shell) Connect

func (shell *Shell) Connect(d Deserializer, gob Gob)

func (*Shell) Gob

func (shell *Shell) Gob(s Serializer) Gob

func (*Shell) MarkForExecution

func (s *Shell) MarkForExecution()

func (*Shell) Run

func (s *Shell) Run(events chan Event)

type ShellGob

type ShellGob struct {
	Parent  int
	Frame   int
	Execute bool
	Object  interface{}
}

func (ShellGob) Ungob

func (gob ShellGob) Ungob() Gobbable

type StatefulObject

type StatefulObject interface {
	Object
	Copy(*Shell)
}

type Target

type Target interface {
	Gobbable
	Frame() *Frame
	Position() vec2.Vec2
	Get(blueprint *Shell) *Shell
	Set(blueprint *Shell, value *Shell)
}

type Text

type Text struct {
	Bytes []byte
}

func (*Text) Copy

func (text *Text) Copy(shell *Shell)

func (*Text) MakeWidget

func (*Text) MakeWidget(shell *Shell) ui.Widget

func (*Text) Name

func (*Text) Name() string

type TextWidget

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

func (TextWidget) Draw

func (w TextWidget) Draw(ctx *ui.Context2D)

func (TextWidget) GetText

func (w TextWidget) GetText() string

func (TextWidget) Options

func (w TextWidget) Options(vec2.Vec2) []ui.Option

func (TextWidget) SetText

func (w TextWidget) SetText(s string)

func (TextWidget) Size

func (w TextWidget) Size(ui.TextMeasurer) ui.Box

type ToggleParameter

type ToggleParameter struct {
	*Frame
}

func (ToggleParameter) Activate

func (tp ToggleParameter) Activate(ui.TouchContext) ui.Action

func (ToggleParameter) Keycode

func (ToggleParameter) Keycode() string

func (ToggleParameter) Name

func (ToggleParameter) Name() string

type TogglePublic

type TogglePublic struct {
	*Frame
}

func (TogglePublic) Activate

func (tp TogglePublic) Activate(ui.TouchContext) ui.Action

func (TogglePublic) Keycode

func (TogglePublic) Keycode() string

func (TogglePublic) Name

func (TogglePublic) Name() string

type ToggleShowWindow

type ToggleShowWindow struct {
	*Frame
}

func (ToggleShowWindow) Activate

func (tsw ToggleShowWindow) Activate(ui.TouchContext) ui.Action

func (ToggleShowWindow) Keycode

func (ToggleShowWindow) Keycode() string

func (ToggleShowWindow) Name

func (ToggleShowWindow) Name() string

type TreeNode

type TreeNode struct {
	Target Target
	Stiff  bool
}

type VM

type VM struct {
	// contains filtered or unexported fields
}
var TheVM *VM = &VM{}

func (*VM) Connect

func (vm *VM) Connect(d Deserializer, gob Gob)

func (*VM) Gob

func (vm *VM) Gob(s Serializer) Gob

type VMGob

type VMGob struct {
	ActiveIndex int
}

func (VMGob) Ungob

func (gob VMGob) Ungob() Gobbable

type Wrapper

type Wrapper interface {
	Unwrap() interface{}
}

type Zoom

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

func (Zoom) Activate

func (z Zoom) Activate(ctx ui.TouchContext) ui.Action

func (Zoom) Keycode

func (z Zoom) Keycode() string

func (Zoom) Name

func (z Zoom) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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