Documentation
¶
Index ¶
- Variables
- func Init() bool
- type BoolRow
- type BoolRowIterator
- type ButtonRow
- func (*ButtonRow) Descriptor() ([]byte, []int)deprecated
- func (x *ButtonRow) GetHeader() *Widget
- func (x *ButtonRow) GetVals() []string
- func (x *ButtonRow) GetWidgets() []*Widget
- func (*ButtonRow) ProtoMessage()
- func (x *ButtonRow) ProtoReflect() protoreflect.Message
- func (x *ButtonRow) Reset()
- func (x *ButtonRow) String() string
- type ButtonRowIterator
- type IntRow
- func (*IntRow) Descriptor() ([]byte, []int)deprecated
- func (x *IntRow) GetHeader() *Widget
- func (x *IntRow) GetVals() []int64
- func (x *IntRow) GetWidgets() []*Widget
- func (*IntRow) ProtoMessage()
- func (x *IntRow) ProtoReflect() protoreflect.Message
- func (x *IntRow) Reset()
- func (x *IntRow) String() string
- type IntRowIterator
- type Location
- type LocationIterator
- type Size
- type SizeIterator
- type StringRow
- func (*StringRow) Descriptor() ([]byte, []int)deprecated
- func (x *StringRow) GetHeader() *Widget
- func (x *StringRow) GetVals() []string
- func (x *StringRow) GetWidgets() []*Widget
- func (*StringRow) ProtoMessage()
- func (x *StringRow) ProtoReflect() protoreflect.Message
- func (x *StringRow) Reset()
- func (x *StringRow) String() string
- type StringRowIterator
- type Table
- func (pb *Table) Custom(w *Widget)
- func (*Table) Descriptor() ([]byte, []int)deprecated
- func (v *Table) FormatJSON() string
- func (v *Table) FormatTEXT() string
- func (x *Table) GetBoolRows() []*BoolRow
- func (x *Table) GetButtonRows() []*ButtonRow
- func (x *Table) GetGrid() *Widget
- func (x *Table) GetIntRows() []*IntRow
- func (x *Table) GetOrder() []string
- func (x *Table) GetParent() *Widget
- func (x *Table) GetStringRows() []*StringRow
- func (x *Table) GetTimeRows() []*TimeRow
- func (x *Table) GetTitle() string
- func (x *Table) GetUuid() string
- func (v *Table) Marshal() ([]byte, error)
- func (v *Table) MarshalJSON() ([]byte, error)
- func (*Table) ProtoMessage()
- func (x *Table) ProtoReflect() protoreflect.Message
- func (pb *Table) RegisterCustom(f func(*Widget))
- func (x *Table) Reset()
- func (x *Table) String() string
- func (v *Table) Unmarshal(data []byte) error
- func (v *Table) UnmarshalJSON(data []byte) error
- func (v *Table) UnmarshalTEXT(data []byte) error
- type TableIterator
- type Tables
- func (x *Tables) All() *TableIterator
- func (x *Tables) Append(y *Table)
- func (pb *Tables) Custom(w *Widget)
- func (x *Tables) Delete(y *Table) bool
- func (*Tables) Descriptor() ([]byte, []int)deprecated
- func (v *Tables) FormatJSON() string
- func (v *Tables) FormatTEXT() string
- func (x *Tables) GetTables() []*Table
- func (x *Tables) GetUuid() string
- func (x *Tables) GetVersion() string
- func (x *Tables) Len() int
- func (v *Tables) Marshal() ([]byte, error)
- func (v *Tables) MarshalJSON() ([]byte, error)
- func (*Tables) ProtoMessage()
- func (x *Tables) ProtoReflect() protoreflect.Message
- func (x *Tables) Reset()
- func (x *Tables) String() string
- func (v *Tables) Unmarshal(data []byte) error
- func (v *Tables) UnmarshalJSON(data []byte) error
- func (v *Tables) UnmarshalTEXT(data []byte) error
- type TablesIterator
- type TimeRow
- func (*TimeRow) Descriptor() ([]byte, []int)deprecated
- func (x *TimeRow) GetHeader() *Widget
- func (x *TimeRow) GetVals() []*timestamppb.Timestamp
- func (x *TimeRow) GetWidgets() []*Widget
- func (*TimeRow) ProtoMessage()
- func (x *TimeRow) ProtoReflect() protoreflect.Message
- func (x *TimeRow) Reset()
- func (x *TimeRow) String() string
- type TimeRowIterator
- type Tree
- func (*Tree) Descriptor() ([]byte, []int)deprecated
- func (v *Tree) FormatJSON() string
- func (v *Tree) FormatTEXT() string
- func (x *Tree) GetChildren() []*Widget
- func (x *Tree) GetParent() *Widget
- func (v *Tree) Marshal() ([]byte, error)
- func (v *Tree) MarshalJSON() ([]byte, error)
- func (*Tree) ProtoMessage()
- func (x *Tree) ProtoReflect() protoreflect.Message
- func (x *Tree) Reset()
- func (x *Tree) String() string
- func (v *Tree) Unmarshal(data []byte) error
- func (v *Tree) UnmarshalJSON(data []byte) error
- func (v *Tree) UnmarshalTEXT(data []byte) error
- type TreeIterator
- type Widget
- func (*Widget) Descriptor() ([]byte, []int)deprecated
- func (x *Widget) GetId() int64
- func (x *Widget) GetLocation() *Location
- func (x *Widget) GetName() string
- func (x *Widget) GetSize() int64
- func (x *Widget) GetTK() *anypb.Any
- func (x *Widget) GetType() WidgetType
- func (x *Widget) GetVal() *anypb.Any
- func (*Widget) ProtoMessage()
- func (x *Widget) ProtoReflect() protoreflect.Message
- func (x *Widget) Reset()
- func (x *Widget) String() string
- type WidgetIterator
- type WidgetType
- type Widgets
- func (x *Widgets) All() *WidgetIterator
- func (x *Widgets) Append(y *Widget)
- func (x *Widgets) Delete(y *Widget) bool
- func (*Widgets) Descriptor() ([]byte, []int)deprecated
- func (v *Widgets) FormatJSON() string
- func (v *Widgets) FormatTEXT() string
- func (x *Widgets) GetTree() *Tree
- func (x *Widgets) GetUuid() string
- func (x *Widgets) GetVersion() string
- func (x *Widgets) GetWidgets() []*Widget
- func (x *Widgets) Len() int
- func (v *Widgets) Marshal() ([]byte, error)
- func (v *Widgets) MarshalJSON() ([]byte, error)
- func (*Widgets) ProtoMessage()
- func (x *Widgets) ProtoReflect() protoreflect.Message
- func (x *Widgets) Reset()
- func (x *Widgets) String() string
- func (v *Widgets) Unmarshal(data []byte) error
- func (v *Widgets) UnmarshalJSON(data []byte) error
- func (v *Widgets) UnmarshalTEXT(data []byte) error
- type WidgetsIterator
Constants ¶
This section is empty.
Variables ¶
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.
var File_table_proto protoreflect.FileDescriptor
var File_widget_proto protoreflect.FileDescriptor
Functions ¶
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) GetWidgets ¶ added in v0.0.2
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
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) GetWidgets ¶ added in v0.0.9
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
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) GetWidgets ¶ added in v0.0.2
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
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) ProtoMessage ¶ added in v0.0.2
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶ added in v0.0.2
func (x *Location) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶ added in v0.0.2
func (*Size) ProtoMessage()
func (*Size) ProtoReflect ¶ added in v0.0.2
func (x *Size) ProtoReflect() protoreflect.Message
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) GetWidgets ¶ added in v0.0.3
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
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) Descriptor
deprecated
added in
v0.0.2
func (*Table) FormatTEXT ¶ added in v0.0.2
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 (*Table) GetButtonRows ¶ added in v0.0.9
func (*Table) GetIntRows ¶ added in v0.0.2
func (*Table) GetStringRows ¶ added in v0.0.2
func (*Table) GetTimeRows ¶ added in v0.0.2
func (*Table) MarshalJSON ¶ added in v0.0.2
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 (*Table) UnmarshalJSON ¶ added in v0.0.2
unmarshal json
func (*Table) UnmarshalTEXT ¶ added in v0.0.2
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 (*Tables) All ¶ added in v0.0.2
func (x *Tables) All() *TableIterator
func (*Tables) Append ¶ added in v0.0.2
just a simple Append() shortcut (but still uses the mutex lock)
func (*Tables) Descriptor
deprecated
added in
v0.0.2
func (*Tables) FormatJSON ¶ added in v0.0.2
human readable JSON
func (*Tables) FormatTEXT ¶ added in v0.0.2
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) GetVersion ¶ added in v0.0.2
func (*Tables) MarshalJSON ¶ added in v0.0.2
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) UnmarshalJSON ¶ added in v0.0.2
unmarshal json
func (*Tables) UnmarshalTEXT ¶ added in v0.0.2
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) GetVals ¶ added in v0.0.4
func (x *TimeRow) GetVals() []*timestamppb.Timestamp
func (*TimeRow) GetWidgets ¶ added in v0.0.2
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
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) FormatTEXT ¶ added in v0.0.8
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 (*Tree) MarshalJSON ¶ added in v0.0.8
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) UnmarshalJSON ¶ added in v0.0.8
unmarshal json
func (*Tree) UnmarshalTEXT ¶ added in v0.0.8
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) GetLocation ¶ added in v0.0.2
func (*Widget) GetType ¶ added in v0.0.7
func (x *Widget) GetType() WidgetType
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
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
func (WidgetType) Type() protoreflect.EnumType
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
just a simple Append() shortcut (but still uses the mutex lock)
func (*Widgets) Descriptor
deprecated
added in
v0.0.2
func (*Widgets) FormatJSON ¶ added in v0.0.7
human readable JSON
func (*Widgets) FormatTEXT ¶ added in v0.0.7
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) GetVersion ¶ added in v0.0.2
func (*Widgets) GetWidgets ¶ added in v0.0.2
func (*Widgets) MarshalJSON ¶ added in v0.0.7
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) UnmarshalJSON ¶ added in v0.0.7
unmarshal json
func (*Widgets) UnmarshalTEXT ¶ added in v0.0.7
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