guipb

package module
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: GPL-3.0 Imports: 11 Imported by: 19

README

protobuf definition files for the GO gui plugins

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WidgetType_name = map[int32]string{
		0:  "Root",
		1:  "Flag",
		2:  "Window",
		3:  "Tab",
		4:  "Box",
		5:  "Group",
		6:  "Grid",
		7:  "Button",
		8:  "Checkbox",
		9:  "Dropdown",
		10: "Combobox",
		11: "Label",
		12: "Textbox",
		13: "TablePB",
	}
	WidgetType_value = map[string]int32{
		"Root":     0,
		"Flag":     1,
		"Window":   2,
		"Tab":      3,
		"Box":      4,
		"Group":    5,
		"Grid":     6,
		"Button":   7,
		"Checkbox": 8,
		"Dropdown": 9,
		"Combobox": 10,
		"Label":    11,
		"Textbox":  12,
		"TablePB":  13,
	}
)

Enum value maps for WidgetType.

View Source
var File_table_proto protoreflect.FileDescriptor
View Source
var File_widget_proto protoreflect.FileDescriptor

Functions

func Init

func Init() bool

Types

type BoolRow added in v0.0.2

type BoolRow struct {
	sync.RWMutex // auto-added by go.wit.com/apps/autogenpb

	Header  *Widget   `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Widgets []*Widget `protobuf:"bytes,2,rep,name=widgets,proto3" json:"widgets,omitempty"`
	// contains filtered or unexported fields
}

func (*BoolRow) Descriptor deprecated added in v0.0.2

func (*BoolRow) Descriptor() ([]byte, []int)

Deprecated: Use BoolRow.ProtoReflect.Descriptor instead.

func (*BoolRow) GetHeader added in v0.0.2

func (x *BoolRow) GetHeader() *Widget

func (*BoolRow) GetWidgets added in v0.0.2

func (x *BoolRow) GetWidgets() []*Widget

func (*BoolRow) ProtoMessage added in v0.0.2

func (*BoolRow) ProtoMessage()

func (*BoolRow) ProtoReflect added in v0.0.2

func (x *BoolRow) ProtoReflect() protoreflect.Message

func (*BoolRow) Reset added in v0.0.2

func (x *BoolRow) Reset()

func (*BoolRow) String added in v0.0.2

func (x *BoolRow) String() string

type BoolRowIterator added in v0.0.2

type BoolRowIterator struct {
	sync.RWMutex // this isn't getting used properly yet?
	// contains filtered or unexported fields
}

func (*BoolRowIterator) Next added in v0.0.2

func (it *BoolRowIterator) Next() *BoolRow

Next() returns the next thing in the array

func (*BoolRowIterator) Scan added in v0.0.2

func (it *BoolRowIterator) Scan() bool

type ButtonRow added in v0.0.9

type ButtonRow struct {
	sync.RWMutex // auto-added by go.wit.com/apps/autogenpb

	Header  *Widget   `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Vals    []string  `protobuf:"bytes,2,rep,name=vals,proto3" json:"vals,omitempty"`
	Widgets []*Widget `protobuf:"bytes,3,rep,name=widgets,proto3" json:"widgets,omitempty"`
	// contains filtered or unexported fields
}

func (*ButtonRow) Descriptor deprecated added in v0.0.9

func (*ButtonRow) Descriptor() ([]byte, []int)

Deprecated: Use ButtonRow.ProtoReflect.Descriptor instead.

func (*ButtonRow) GetHeader added in v0.0.9

func (x *ButtonRow) GetHeader() *Widget

func (*ButtonRow) GetVals added in v0.0.9

func (x *ButtonRow) GetVals() []string

func (*ButtonRow) GetWidgets added in v0.0.9

func (x *ButtonRow) GetWidgets() []*Widget

func (*ButtonRow) ProtoMessage added in v0.0.9

func (*ButtonRow) ProtoMessage()

func (*ButtonRow) ProtoReflect added in v0.0.9

func (x *ButtonRow) ProtoReflect() protoreflect.Message

func (*ButtonRow) Reset added in v0.0.9

func (x *ButtonRow) Reset()

func (*ButtonRow) String added in v0.0.9

func (x *ButtonRow) String() string

type ButtonRowIterator added in v0.0.9

type ButtonRowIterator struct {
	sync.RWMutex // this isn't getting used properly yet?
	// contains filtered or unexported fields
}

func (*ButtonRowIterator) Next added in v0.0.9

func (it *ButtonRowIterator) Next() *ButtonRow

Next() returns the next thing in the array

func (*ButtonRowIterator) Scan added in v0.0.9

func (it *ButtonRowIterator) Scan() bool

type IntRow added in v0.0.2

type IntRow struct {
	sync.RWMutex // auto-added by go.wit.com/apps/autogenpb

	Header  *Widget   `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Vals    []int64   `protobuf:"varint,2,rep,packed,name=vals,proto3" json:"vals,omitempty"`
	Widgets []*Widget `protobuf:"bytes,3,rep,name=widgets,proto3" json:"widgets,omitempty"`
	// contains filtered or unexported fields
}

func (*IntRow) Descriptor deprecated added in v0.0.2

func (*IntRow) Descriptor() ([]byte, []int)

Deprecated: Use IntRow.ProtoReflect.Descriptor instead.

func (*IntRow) GetHeader added in v0.0.2

func (x *IntRow) GetHeader() *Widget

func (*IntRow) GetVals added in v0.0.3

func (x *IntRow) GetVals() []int64

func (*IntRow) GetWidgets added in v0.0.2

func (x *IntRow) GetWidgets() []*Widget

func (*IntRow) ProtoMessage added in v0.0.2

func (*IntRow) ProtoMessage()

func (*IntRow) ProtoReflect added in v0.0.2

func (x *IntRow) ProtoReflect() protoreflect.Message

func (*IntRow) Reset added in v0.0.2

func (x *IntRow) Reset()

func (*IntRow) String added in v0.0.2

func (x *IntRow) String() string

type IntRowIterator added in v0.0.2

type IntRowIterator struct {
	sync.RWMutex // this isn't getting used properly yet?
	// contains filtered or unexported fields
}

func (*IntRowIterator) Next added in v0.0.2

func (it *IntRowIterator) Next() *IntRow

Next() returns the next thing in the array

func (*IntRowIterator) Scan added in v0.0.2

func (it *IntRowIterator) Scan() bool

type Location added in v0.0.2

type Location struct {
	sync.RWMutex // auto-added by go.wit.com/apps/autogenpb

	X int64 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
	Y int64 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
	// contains filtered or unexported fields
}

used for grid layouts

func (*Location) Descriptor deprecated added in v0.0.2

func (*Location) Descriptor() ([]byte, []int)

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetX added in v0.0.2

func (x *Location) GetX() int64

func (*Location) GetY added in v0.0.2

func (x *Location) GetY() int64

func (*Location) ProtoMessage added in v0.0.2

func (*Location) ProtoMessage()

func (*Location) ProtoReflect added in v0.0.2

func (x *Location) ProtoReflect() protoreflect.Message

func (*Location) Reset added in v0.0.2

func (x *Location) Reset()

func (*Location) String added in v0.0.2

func (x *Location) String() string

type LocationIterator added in v0.0.2

type LocationIterator struct {
	sync.RWMutex // this isn't getting used properly yet?
	// contains filtered or unexported fields
}

func (*LocationIterator) Next added in v0.0.2

func (it *LocationIterator) Next() *Location

Next() returns the next thing in the array

func (*LocationIterator) Scan added in v0.0.2

func (it *LocationIterator) Scan() bool

type Size added in v0.0.2

type Size struct {
	sync.RWMutex // auto-added by go.wit.com/apps/autogenpb

	Width  int64 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"`
	Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

func (*Size) Descriptor deprecated added in v0.0.2

func (*Size) Descriptor() ([]byte, []int)

Deprecated: Use Size.ProtoReflect.Descriptor instead.

func (*Size) GetHeight added in v0.0.2

func (x *Size) GetHeight() int64

func (*Size) GetWidth added in v0.0.2

func (x *Size) GetWidth() int64

func (*Size) ProtoMessage added in v0.0.2

func (*Size) ProtoMessage()

func (*Size) ProtoReflect added in v0.0.2

func (x *Size) ProtoReflect() protoreflect.Message

func (*Size) Reset added in v0.0.2

func (x *Size) Reset()

func (*Size) String added in v0.0.2

func (x *Size) String() string

type SizeIterator added in v0.0.2

type SizeIterator struct {
	sync.RWMutex // this isn't getting used properly yet?
	// contains filtered or unexported fields
}

func (*SizeIterator) Next added in v0.0.2

func (it *SizeIterator) Next() *Size

Next() returns the next thing in the array

func (*SizeIterator) Scan added in v0.0.2

func (it *SizeIterator) Scan() bool

type StringRow added in v0.0.2

type StringRow struct {
	sync.RWMutex // auto-added by go.wit.com/apps/autogenpb

	Header  *Widget   `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Vals    []string  `protobuf:"bytes,2,rep,name=vals,proto3" json:"vals,omitempty"`
	Widgets []*Widget `protobuf:"bytes,3,rep,name=widgets,proto3" json:"widgets,omitempty"`
	// contains filtered or unexported fields
}

func (*StringRow) Descriptor deprecated added in v0.0.2

func (*StringRow) Descriptor() ([]byte, []int)

Deprecated: Use StringRow.ProtoReflect.Descriptor instead.

func (*StringRow) GetHeader added in v0.0.2

func (x *StringRow) GetHeader() *Widget

func (*StringRow) GetVals added in v0.0.2

func (x *StringRow) GetVals() []string

func (*StringRow) GetWidgets added in v0.0.3

func (x *StringRow) GetWidgets() []*Widget

func (*StringRow) ProtoMessage added in v0.0.2

func (*StringRow) ProtoMessage()

func (*StringRow) ProtoReflect added in v0.0.2

func (x *StringRow) ProtoReflect() protoreflect.Message

func (*StringRow) Reset added in v0.0.2

func (x *StringRow) Reset()

func (*StringRow) String added in v0.0.2

func (x *StringRow) String() string

type StringRowIterator added in v0.0.2

type StringRowIterator struct {
	sync.RWMutex // this isn't getting used properly yet?
	// contains filtered or unexported fields
}

func (*StringRowIterator) Next added in v0.0.2

func (it *StringRowIterator) Next() *StringRow

Next() returns the next thing in the array

func (*StringRowIterator) Scan added in v0.0.2

func (it *StringRowIterator) Scan() bool

type Table added in v0.0.2

type Table struct {
	sync.RWMutex // auto-added by go.wit.com/apps/autogenpb

	Uuid       string       `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Title      string       `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Parent     *Widget      `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"`
	Grid       *Widget      `protobuf:"bytes,4,opt,name=grid,proto3" json:"grid,omitempty"`
	Order      []string     `protobuf:"bytes,5,rep,name=order,proto3" json:"order,omitempty"`
	StringRows []*StringRow `protobuf:"bytes,6,rep,name=stringRows,proto3" json:"stringRows,omitempty"`
	IntRows    []*IntRow    `protobuf:"bytes,7,rep,name=intRows,proto3" json:"intRows,omitempty"`
	TimeRows   []*TimeRow   `protobuf:"bytes,8,rep,name=timeRows,proto3" json:"timeRows,omitempty"`
	BoolRows   []*BoolRow   `protobuf:"bytes,9,rep,name=boolRows,proto3" json:"boolRows,omitempty"`
	ButtonRows []*ButtonRow `protobuf:"bytes,10,rep,name=buttonRows,proto3" json:"buttonRows,omitempty"`
	// contains filtered or unexported fields
}

func (*Table) Custom added in v0.0.9

func (pb *Table) Custom(w *Widget)

func (*Table) Descriptor deprecated added in v0.0.2

func (*Table) Descriptor() ([]byte, []int)

Deprecated: Use Table.ProtoReflect.Descriptor instead.

func (*Table) FormatJSON added in v0.0.2

func (v *Table) FormatJSON() string

human readable JSON

func (*Table) FormatTEXT added in v0.0.2

func (v *Table) FormatTEXT() string

apparently this isn't stable, but it's awesomely better https://protobuf.dev/reference/go/faq/#unstable-text it's brilliant for config files!

func (*Table) GetBoolRows added in v0.0.2

func (x *Table) GetBoolRows() []*BoolRow

func (*Table) GetButtonRows added in v0.0.9

func (x *Table) GetButtonRows() []*ButtonRow

func (*Table) GetGrid added in v0.0.3

func (x *Table) GetGrid() *Widget

func (*Table) GetIntRows added in v0.0.2

func (x *Table) GetIntRows() []*IntRow

func (*Table) GetOrder added in v0.0.2

func (x *Table) GetOrder() []string

func (*Table) GetParent added in v0.0.5

func (x *Table) GetParent() *Widget

func (*Table) GetStringRows added in v0.0.2

func (x *Table) GetStringRows() []*StringRow

func (*Table) GetTimeRows added in v0.0.2

func (x *Table) GetTimeRows() []*TimeRow

func (*Table) GetTitle added in v0.0.3

func (x *Table) GetTitle() string

func (*Table) GetUuid added in v0.0.6

func (x *Table) GetUuid() string

func (*Table) Marshal added in v0.0.2

func (v *Table) Marshal() ([]byte, error)

marshal to wire. This is called winning.

func (*Table) MarshalJSON added in v0.0.2

func (v *Table) MarshalJSON() ([]byte, error)

marshal json

func (*Table) ProtoMessage added in v0.0.2

func (*Table) ProtoMessage()

func (*Table) ProtoReflect added in v0.0.2

func (x *Table) ProtoReflect() protoreflect.Message

func (*Table) RegisterCustom added in v0.0.9

func (pb *Table) RegisterCustom(f func(*Widget))

func (*Table) Reset added in v0.0.2

func (x *Table) Reset()

func (*Table) String added in v0.0.2

func (x *Table) String() string

func (*Table) Unmarshal added in v0.0.2

func (v *Table) Unmarshal(data []byte) error

unmarshal from wire. You have won.

func (*Table) UnmarshalJSON added in v0.0.2

func (v *Table) UnmarshalJSON(data []byte) error

unmarshal json

func (*Table) UnmarshalTEXT added in v0.0.2

func (v *Table) UnmarshalTEXT(data []byte) error

unmarshalTEXT. This reads the .text config file back in after the user edits it

type TableIterator added in v0.0.2

type TableIterator struct {
	sync.RWMutex // this isn't getting used properly yet?
	// contains filtered or unexported fields
}

func (*TableIterator) Next added in v0.0.2

func (it *TableIterator) Next() *Table

Next() returns the next thing in the array

func (*TableIterator) Scan added in v0.0.2

func (it *TableIterator) Scan() bool

type Tables added in v0.0.2

type Tables struct {
	sync.RWMutex // auto-added by go.wit.com/apps/autogenpb

	Uuid    string   `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`       // `autogenpb:uuid:c328aa62-3c4f-4d00-9244-cc44ae75ab1b`
	Version string   `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // `autogenpb:version:v1`
	Tables  []*Table `protobuf:"bytes,3,rep,name=Tables,proto3" json:"Tables,omitempty"`
	// contains filtered or unexported fields
}

func NewTables added in v0.0.2

func NewTables() *Tables

func (*Tables) All added in v0.0.2

func (x *Tables) All() *TableIterator

func (*Tables) Append added in v0.0.2

func (x *Tables) Append(y *Table)

just a simple Append() shortcut (but still uses the mutex lock)

func (*Tables) Custom added in v0.0.9

func (pb *Tables) Custom(w *Widget)

func (*Tables) Delete added in v0.0.2

func (x *Tables) Delete(y *Table) bool

func (*Tables) Descriptor deprecated added in v0.0.2

func (*Tables) Descriptor() ([]byte, []int)

Deprecated: Use Tables.ProtoReflect.Descriptor instead.

func (*Tables) FormatJSON added in v0.0.2

func (v *Tables) FormatJSON() string

human readable JSON

func (*Tables) FormatTEXT added in v0.0.2

func (v *Tables) FormatTEXT() string

apparently this isn't stable, but it's awesomely better https://protobuf.dev/reference/go/faq/#unstable-text it's brilliant for config files!

func (*Tables) GetTables added in v0.0.2

func (x *Tables) GetTables() []*Table

func (*Tables) GetUuid added in v0.0.2

func (x *Tables) GetUuid() string

func (*Tables) GetVersion added in v0.0.2

func (x *Tables) GetVersion() string

func (*Tables) Len added in v0.0.2

func (x *Tables) Len() int

func (*Tables) Marshal added in v0.0.2

func (v *Tables) Marshal() ([]byte, error)

marshal to wire. This is called winning.

func (*Tables) MarshalJSON added in v0.0.2

func (v *Tables) MarshalJSON() ([]byte, error)

marshal json

func (*Tables) ProtoMessage added in v0.0.2

func (*Tables) ProtoMessage()

func (*Tables) ProtoReflect added in v0.0.2

func (x *Tables) ProtoReflect() protoreflect.Message

func (*Tables) Reset added in v0.0.2

func (x *Tables) Reset()

func (*Tables) String added in v0.0.2

func (x *Tables) String() string

func (*Tables) Unmarshal added in v0.0.2

func (v *Tables) Unmarshal(data []byte) error

unmarshal from wire. You have won.

func (*Tables) UnmarshalJSON added in v0.0.2

func (v *Tables) UnmarshalJSON(data []byte) error

unmarshal json

func (*Tables) UnmarshalTEXT added in v0.0.2

func (v *Tables) UnmarshalTEXT(data []byte) error

unmarshalTEXT. This reads the .text config file back in after the user edits it

type TablesIterator added in v0.0.2

type TablesIterator struct {
	sync.RWMutex // this isn't getting used properly yet?
	// contains filtered or unexported fields
}

func (*TablesIterator) Next added in v0.0.2

func (it *TablesIterator) Next() *Tables

Next() returns the next thing in the array

func (*TablesIterator) Scan added in v0.0.2

func (it *TablesIterator) Scan() bool

type TimeRow added in v0.0.2

type TimeRow struct {
	sync.RWMutex // auto-added by go.wit.com/apps/autogenpb

	Header  *Widget                  `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Vals    []*timestamppb.Timestamp `protobuf:"bytes,2,rep,name=vals,proto3" json:"vals,omitempty"`
	Widgets []*Widget                `protobuf:"bytes,3,rep,name=widgets,proto3" json:"widgets,omitempty"`
	// contains filtered or unexported fields
}

func (*TimeRow) Descriptor deprecated added in v0.0.2

func (*TimeRow) Descriptor() ([]byte, []int)

Deprecated: Use TimeRow.ProtoReflect.Descriptor instead.

func (*TimeRow) GetHeader added in v0.0.2

func (x *TimeRow) GetHeader() *Widget

func (*TimeRow) GetVals added in v0.0.4

func (x *TimeRow) GetVals() []*timestamppb.Timestamp

func (*TimeRow) GetWidgets added in v0.0.2

func (x *TimeRow) GetWidgets() []*Widget

func (*TimeRow) ProtoMessage added in v0.0.2

func (*TimeRow) ProtoMessage()

func (*TimeRow) ProtoReflect added in v0.0.2

func (x *TimeRow) ProtoReflect() protoreflect.Message

func (*TimeRow) Reset added in v0.0.2

func (x *TimeRow) Reset()

func (*TimeRow) String added in v0.0.2

func (x *TimeRow) String() string

type TimeRowIterator added in v0.0.2

type TimeRowIterator struct {
	sync.RWMutex // this isn't getting used properly yet?
	// contains filtered or unexported fields
}

func (*TimeRowIterator) Next added in v0.0.2

func (it *TimeRowIterator) Next() *TimeRow

Next() returns the next thing in the array

func (*TimeRowIterator) Scan added in v0.0.2

func (it *TimeRowIterator) Scan() bool

type Tree added in v0.0.2

type Tree struct {
	sync.RWMutex // auto-added by go.wit.com/apps/autogenpb

	Parent   *Widget   `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	Children []*Widget `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"`
	// contains filtered or unexported fields
}

func (*Tree) Descriptor deprecated added in v0.0.2

func (*Tree) Descriptor() ([]byte, []int)

Deprecated: Use Tree.ProtoReflect.Descriptor instead.

func (*Tree) FormatJSON added in v0.0.8

func (v *Tree) FormatJSON() string

human readable JSON

func (*Tree) FormatTEXT added in v0.0.8

func (v *Tree) FormatTEXT() string

apparently this isn't stable, but it's awesomely better https://protobuf.dev/reference/go/faq/#unstable-text it's brilliant for config files!

func (*Tree) GetChildren added in v0.0.2

func (x *Tree) GetChildren() []*Widget

func (*Tree) GetParent added in v0.0.2

func (x *Tree) GetParent() *Widget

func (*Tree) Marshal added in v0.0.8

func (v *Tree) Marshal() ([]byte, error)

marshal to wire. This is called winning.

func (*Tree) MarshalJSON added in v0.0.8

func (v *Tree) MarshalJSON() ([]byte, error)

marshal json

func (*Tree) ProtoMessage added in v0.0.2

func (*Tree) ProtoMessage()

func (*Tree) ProtoReflect added in v0.0.2

func (x *Tree) ProtoReflect() protoreflect.Message

func (*Tree) Reset added in v0.0.2

func (x *Tree) Reset()

func (*Tree) String added in v0.0.2

func (x *Tree) String() string

func (*Tree) Unmarshal added in v0.0.8

func (v *Tree) Unmarshal(data []byte) error

unmarshal from wire. You have won.

func (*Tree) UnmarshalJSON added in v0.0.8

func (v *Tree) UnmarshalJSON(data []byte) error

unmarshal json

func (*Tree) UnmarshalTEXT added in v0.0.8

func (v *Tree) UnmarshalTEXT(data []byte) error

unmarshalTEXT. This reads the .text config file back in after the user edits it

type TreeIterator added in v0.0.2

type TreeIterator struct {
	sync.RWMutex // this isn't getting used properly yet?
	// contains filtered or unexported fields
}

func (*TreeIterator) Next added in v0.0.2

func (it *TreeIterator) Next() *Tree

Next() returns the next thing in the array

func (*TreeIterator) Scan added in v0.0.2

func (it *TreeIterator) Scan() bool

type Widget added in v0.0.2

type Widget struct {
	sync.RWMutex // auto-added by go.wit.com/apps/autogenpb

	Id       int64      `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name     string     `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Size     int64      `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	Val      *anypb.Any `protobuf:"bytes,4,opt,name=val,proto3" json:"val,omitempty"`
	TK       *anypb.Any `protobuf:"bytes,5,opt,name=TK,proto3" json:"TK,omitempty"`
	Type     WidgetType `protobuf:"varint,6,opt,name=Type,proto3,enum=gitpb.WidgetType" json:"Type,omitempty"`
	Location *Location  `protobuf:"bytes,7,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

func (*Widget) Descriptor deprecated added in v0.0.2

func (*Widget) Descriptor() ([]byte, []int)

Deprecated: Use Widget.ProtoReflect.Descriptor instead.

func (*Widget) GetId added in v0.0.2

func (x *Widget) GetId() int64

func (*Widget) GetLocation added in v0.0.2

func (x *Widget) GetLocation() *Location

func (*Widget) GetName added in v0.0.2

func (x *Widget) GetName() string

func (*Widget) GetSize added in v0.0.2

func (x *Widget) GetSize() int64

func (*Widget) GetTK added in v0.0.2

func (x *Widget) GetTK() *anypb.Any

func (*Widget) GetType added in v0.0.7

func (x *Widget) GetType() WidgetType

func (*Widget) GetVal added in v0.0.4

func (x *Widget) GetVal() *anypb.Any

func (*Widget) ProtoMessage added in v0.0.2

func (*Widget) ProtoMessage()

func (*Widget) ProtoReflect added in v0.0.2

func (x *Widget) ProtoReflect() protoreflect.Message

func (*Widget) Reset added in v0.0.2

func (x *Widget) Reset()

func (*Widget) String added in v0.0.2

func (x *Widget) String() string

type WidgetIterator added in v0.0.2

type WidgetIterator struct {
	sync.RWMutex // this isn't getting used properly yet?
	// contains filtered or unexported fields
}

func (*WidgetIterator) Next added in v0.0.2

func (it *WidgetIterator) Next() *Widget

Next() returns the next thing in the array

func (*WidgetIterator) Scan added in v0.0.2

func (it *WidgetIterator) Scan() bool

type WidgetType added in v0.0.7

type WidgetType int32

Widget names should try to match [Wikipedia Graphical widget] TODO: fix autogenpb to look for enum

const (
	WidgetType_Root     WidgetType = 0  // the master 'root' node of the binary tree
	WidgetType_Flag     WidgetType = 1  // internal use
	WidgetType_Window   WidgetType = 2  //
	WidgetType_Tab      WidgetType = 3  // a tab like in firefox
	WidgetType_Box      WidgetType = 4  // must be either Vertical or Horizontal arrangment
	WidgetType_Group    WidgetType = 5  // think 'Appetizers' on a restaurant menu
	WidgetType_Grid     WidgetType = 6  // like drawers in a chest or post office boxes
	WidgetType_Button   WidgetType = 7  // user can click on this
	WidgetType_Checkbox WidgetType = 8  // true or false
	WidgetType_Dropdown WidgetType = 9  //
	WidgetType_Combobox WidgetType = 10 // a dropdown menu that can be edited by the user
	WidgetType_Label    WidgetType = 11 // a simple label
	WidgetType_Textbox  WidgetType = 12 // enter text
	WidgetType_TablePB  WidgetType = 13 // special case to allow the arbitrary GUI display of any other protobuf
)

func (WidgetType) Descriptor added in v0.0.7

func (WidgetType) Descriptor() protoreflect.EnumDescriptor

func (WidgetType) Enum added in v0.0.7

func (x WidgetType) Enum() *WidgetType

func (WidgetType) EnumDescriptor deprecated added in v0.0.7

func (WidgetType) EnumDescriptor() ([]byte, []int)

Deprecated: Use WidgetType.Descriptor instead.

func (WidgetType) Number added in v0.0.7

func (x WidgetType) Number() protoreflect.EnumNumber

func (WidgetType) String added in v0.0.7

func (x WidgetType) String() string

func (WidgetType) Type added in v0.0.7

type Widgets added in v0.0.2

type Widgets struct {
	sync.RWMutex // auto-added by go.wit.com/apps/autogenpb

	Uuid    string    `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`       // `autogenpb:uuid:0331fcd7-3c8c-43e4-be1b-77db6a6bc58c`
	Version string    `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // `autogenpb:version:v1`
	Widgets []*Widget `protobuf:"bytes,3,rep,name=Widgets,proto3" json:"Widgets,omitempty"` // this never gets used, but it's not worth violating the autogenpb standard
	Tree    *Tree     `protobuf:"bytes,4,opt,name=tree,proto3" json:"tree,omitempty"`       // everything is sent from go.wit.com/gui here
	// contains filtered or unexported fields
}

func NewWidgets added in v0.0.2

func NewWidgets() *Widgets

func (*Widgets) All added in v0.0.2

func (x *Widgets) All() *WidgetIterator

func (*Widgets) Append added in v0.0.2

func (x *Widgets) Append(y *Widget)

just a simple Append() shortcut (but still uses the mutex lock)

func (*Widgets) Delete added in v0.0.2

func (x *Widgets) Delete(y *Widget) bool

func (*Widgets) Descriptor deprecated added in v0.0.2

func (*Widgets) Descriptor() ([]byte, []int)

Deprecated: Use Widgets.ProtoReflect.Descriptor instead.

func (*Widgets) FormatJSON added in v0.0.7

func (v *Widgets) FormatJSON() string

human readable JSON

func (*Widgets) FormatTEXT added in v0.0.7

func (v *Widgets) FormatTEXT() string

apparently this isn't stable, but it's awesomely better https://protobuf.dev/reference/go/faq/#unstable-text it's brilliant for config files!

func (*Widgets) GetTree added in v0.0.7

func (x *Widgets) GetTree() *Tree

func (*Widgets) GetUuid added in v0.0.2

func (x *Widgets) GetUuid() string

func (*Widgets) GetVersion added in v0.0.2

func (x *Widgets) GetVersion() string

func (*Widgets) GetWidgets added in v0.0.2

func (x *Widgets) GetWidgets() []*Widget

func (*Widgets) Len added in v0.0.2

func (x *Widgets) Len() int

func (*Widgets) Marshal added in v0.0.7

func (v *Widgets) Marshal() ([]byte, error)

marshal to wire. This is called winning.

func (*Widgets) MarshalJSON added in v0.0.7

func (v *Widgets) MarshalJSON() ([]byte, error)

marshal json

func (*Widgets) ProtoMessage added in v0.0.2

func (*Widgets) ProtoMessage()

func (*Widgets) ProtoReflect added in v0.0.2

func (x *Widgets) ProtoReflect() protoreflect.Message

func (*Widgets) Reset added in v0.0.2

func (x *Widgets) Reset()

func (*Widgets) String added in v0.0.2

func (x *Widgets) String() string

func (*Widgets) Unmarshal added in v0.0.7

func (v *Widgets) Unmarshal(data []byte) error

unmarshal from wire. You have won.

func (*Widgets) UnmarshalJSON added in v0.0.7

func (v *Widgets) UnmarshalJSON(data []byte) error

unmarshal json

func (*Widgets) UnmarshalTEXT added in v0.0.7

func (v *Widgets) UnmarshalTEXT(data []byte) error

unmarshalTEXT. This reads the .text config file back in after the user edits it

type WidgetsIterator added in v0.0.2

type WidgetsIterator struct {
	sync.RWMutex // this isn't getting used properly yet?
	// contains filtered or unexported fields
}

func (*WidgetsIterator) Next added in v0.0.2

func (it *WidgetsIterator) Next() *Widgets

Next() returns the next thing in the array

func (*WidgetsIterator) Scan added in v0.0.2

func (it *WidgetsIterator) Scan() bool

Jump to

Keyboard shortcuts

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