Help us shape the future of Go! Take the 2026 Go Developer Survey

ui

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Kind_name = map[int32]string{
		0: "KIND_PANEL",
		1: "KIND_LABEL",
		2: "KIND_IMAGE",
		3: "KIND_BUTTON",
	}
	Kind_value = map[string]int32{
		"KIND_PANEL":  0,
		"KIND_LABEL":  1,
		"KIND_IMAGE":  2,
		"KIND_BUTTON": 3,
	}
)

Enum value maps for Kind.

View Source
var (
	Flow_name = map[int32]string{
		0: "FLOW_NONE",
		1: "FLOW_DOWN",
		2: "FLOW_RIGHT",
	}
	Flow_value = map[string]int32{
		"FLOW_NONE":  0,
		"FLOW_DOWN":  1,
		"FLOW_RIGHT": 2,
	}
)

Enum value maps for Flow.

View Source
var (
	Align_name = map[int32]string{
		0: "ALIGN_START",
		1: "ALIGN_CENTER",
		2: "ALIGN_END",
	}
	Align_value = map[string]int32{
		"ALIGN_START":  0,
		"ALIGN_CENTER": 1,
		"ALIGN_END":    2,
	}
)

Enum value maps for Align.

Functions

This section is empty.

Types

type Align

type Align int32

Align places a node or text along one axis.

const (
	// ALIGN_START places it at the left or top.
	Align_ALIGN_START Align = 0
	// ALIGN_CENTER centers it.
	Align_ALIGN_CENTER Align = 1
	// ALIGN_END places it at the right or bottom.
	Align_ALIGN_END Align = 2
)

func (Align) Enum

func (x Align) Enum() *Align

func (Align) MarshalJSON

func (x Align) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Align to JSON.

func (Align) MarshalProtoJSON

func (x Align) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Align to JSON.

func (Align) MarshalProtoText

func (x Align) MarshalProtoText() string

func (Align) MarshalText

func (x Align) MarshalText() ([]byte, error)

MarshalText marshals the Align to text.

func (Align) String

func (x Align) String() string

func (*Align) UnmarshalJSON

func (x *Align) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Align from JSON.

func (*Align) UnmarshalProtoJSON

func (x *Align) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Align from JSON.

func (*Align) UnmarshalText

func (x *Align) UnmarshalText(b []byte) error

UnmarshalText unmarshals the Align from text.

type Change

type Change struct {

	// Reset clears the tree before the rest of the change applies.
	Reset_ bool `protobuf:"varint,1,opt,name=reset,proto3" json:"reset,omitempty"`
	// Set holds the new or changed nodes.
	Set []*Node `protobuf:"bytes,2,rep,name=set,proto3" json:"set,omitempty"`
	// Removed holds the ids of the nodes to drop.
	Removed []string `protobuf:"bytes,3,rep,name=removed,proto3" json:"removed,omitempty"`
	// contains filtered or unexported fields
}

Change updates one player's tree. Reset clears the tree first; then each node in set replaces the node with its id, and each id in removed drops that node.

func (*Change) CloneMessageVT

func (m *Change) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Change) CloneVT

func (m *Change) CloneVT() *Change

func (*Change) EqualMessageVT

func (this *Change) EqualMessageVT(thatMsg any) bool

func (*Change) EqualVT

func (this *Change) EqualVT(that *Change) bool

func (*Change) GetRemoved

func (x *Change) GetRemoved() []string

func (*Change) GetReset_

func (x *Change) GetReset_() bool

func (*Change) GetSet

func (x *Change) GetSet() []*Node

func (*Change) MarshalJSON

func (x *Change) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Change to JSON.

func (*Change) MarshalProtoJSON

func (x *Change) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Change message to JSON.

func (*Change) MarshalProtoText

func (x *Change) MarshalProtoText() string

func (*Change) MarshalToSizedBufferVT

func (m *Change) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Change) MarshalToVT

func (m *Change) MarshalToVT(dAtA []byte) (int, error)

func (*Change) MarshalVT

func (m *Change) MarshalVT() (dAtA []byte, err error)

func (*Change) ProtoMessage

func (*Change) ProtoMessage()

func (*Change) Reset

func (x *Change) Reset()

func (*Change) SizeVT

func (m *Change) SizeVT() (n int)

func (*Change) String

func (x *Change) String() string

func (*Change) UnmarshalJSON

func (x *Change) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Change from JSON.

func (*Change) UnmarshalProtoJSON

func (x *Change) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Change message from JSON.

func (*Change) UnmarshalVT

func (m *Change) UnmarshalVT(dAtA []byte) error

type Edges

type Edges struct {

	// Top is the distance on the top side.
	Top float32 `protobuf:"fixed32,1,opt,name=top,proto3" json:"top,omitempty"`
	// Right is the distance on the right side.
	Right float32 `protobuf:"fixed32,2,opt,name=right,proto3" json:"right,omitempty"`
	// Bottom is the distance on the bottom side.
	Bottom float32 `protobuf:"fixed32,3,opt,name=bottom,proto3" json:"bottom,omitempty"`
	// Left is the distance on the left side.
	Left float32 `protobuf:"fixed32,4,opt,name=left,proto3" json:"left,omitempty"`
	// contains filtered or unexported fields
}

Edges are pixel distances on each side.

func (*Edges) CloneMessageVT

func (m *Edges) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Edges) CloneVT

func (m *Edges) CloneVT() *Edges

func (*Edges) EqualMessageVT

func (this *Edges) EqualMessageVT(thatMsg any) bool

func (*Edges) EqualVT

func (this *Edges) EqualVT(that *Edges) bool

func (*Edges) GetBottom

func (x *Edges) GetBottom() float32

func (*Edges) GetLeft

func (x *Edges) GetLeft() float32

func (*Edges) GetRight

func (x *Edges) GetRight() float32

func (*Edges) GetTop

func (x *Edges) GetTop() float32

func (*Edges) MarshalJSON

func (x *Edges) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Edges to JSON.

func (*Edges) MarshalProtoJSON

func (x *Edges) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Edges message to JSON.

func (*Edges) MarshalProtoText

func (x *Edges) MarshalProtoText() string

func (*Edges) MarshalToSizedBufferVT

func (m *Edges) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Edges) MarshalToVT

func (m *Edges) MarshalToVT(dAtA []byte) (int, error)

func (*Edges) MarshalVT

func (m *Edges) MarshalVT() (dAtA []byte, err error)

func (*Edges) ProtoMessage

func (*Edges) ProtoMessage()

func (*Edges) Reset

func (x *Edges) Reset()

func (*Edges) SizeVT

func (m *Edges) SizeVT() (n int)

func (*Edges) String

func (x *Edges) String() string

func (*Edges) UnmarshalJSON

func (x *Edges) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Edges from JSON.

func (*Edges) UnmarshalProtoJSON

func (x *Edges) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Edges message from JSON.

func (*Edges) UnmarshalVT

func (m *Edges) UnmarshalVT(dAtA []byte) error

type Flow

type Flow int32

Flow arranges a node's children.

const (
	// FLOW_NONE stacks children on top of each other.
	Flow_FLOW_NONE Flow = 0
	// FLOW_DOWN places children in a column.
	Flow_FLOW_DOWN Flow = 1
	// FLOW_RIGHT places children in a row.
	Flow_FLOW_RIGHT Flow = 2
)

func (Flow) Enum

func (x Flow) Enum() *Flow

func (Flow) MarshalJSON

func (x Flow) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Flow to JSON.

func (Flow) MarshalProtoJSON

func (x Flow) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Flow to JSON.

func (Flow) MarshalProtoText

func (x Flow) MarshalProtoText() string

func (Flow) MarshalText

func (x Flow) MarshalText() ([]byte, error)

MarshalText marshals the Flow to text.

func (Flow) String

func (x Flow) String() string

func (*Flow) UnmarshalJSON

func (x *Flow) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Flow from JSON.

func (*Flow) UnmarshalProtoJSON

func (x *Flow) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Flow from JSON.

func (*Flow) UnmarshalText

func (x *Flow) UnmarshalText(b []byte) error

UnmarshalText unmarshals the Flow from text.

type Kind

type Kind int32

Kind selects the panel a node draws.

const (
	// KIND_PANEL groups and lays out its children.
	Kind_KIND_PANEL Kind = 0
	// KIND_LABEL shows text.
	Kind_KIND_LABEL Kind = 1
	// KIND_IMAGE shows an image.
	Kind_KIND_IMAGE Kind = 2
	// KIND_BUTTON holds its children and reports each press to the mod. A
	// button takes clicks only while the player has a cursor.
	Kind_KIND_BUTTON Kind = 3
)

func (Kind) Enum

func (x Kind) Enum() *Kind

func (Kind) MarshalJSON

func (x Kind) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Kind to JSON.

func (Kind) MarshalProtoJSON

func (x Kind) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Kind to JSON.

func (Kind) MarshalProtoText

func (x Kind) MarshalProtoText() string

func (Kind) MarshalText

func (x Kind) MarshalText() ([]byte, error)

MarshalText marshals the Kind to text.

func (Kind) String

func (x Kind) String() string

func (*Kind) UnmarshalJSON

func (x *Kind) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Kind from JSON.

func (*Kind) UnmarshalProtoJSON

func (x *Kind) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Kind from JSON.

func (*Kind) UnmarshalText

func (x *Kind) UnmarshalText(b []byte) error

UnmarshalText unmarshals the Kind from text.

type Length

type Length struct {

	// Value selects the unit.
	//
	// Types that are assignable to Value:
	//	*Length_Pixels
	//	*Length_Percent
	//	*Length_FitChildren
	//	*Length_Fill
	Value isLength_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

Length is a size along one axis.

func (*Length) CloneMessageVT

func (m *Length) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Length) CloneVT

func (m *Length) CloneVT() *Length

func (*Length) EqualMessageVT

func (this *Length) EqualMessageVT(thatMsg any) bool

func (*Length) EqualVT

func (this *Length) EqualVT(that *Length) bool

func (*Length) GetFill

func (x *Length) GetFill() float32

func (*Length) GetFitChildren

func (x *Length) GetFitChildren() bool

func (*Length) GetPercent

func (x *Length) GetPercent() float32

func (*Length) GetPixels

func (x *Length) GetPixels() float32

func (*Length) GetValue

func (m *Length) GetValue() isLength_Value

func (*Length) MarshalJSON

func (x *Length) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Length to JSON.

func (*Length) MarshalProtoJSON

func (x *Length) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Length message to JSON.

func (*Length) MarshalProtoText

func (x *Length) MarshalProtoText() string

func (*Length) MarshalToSizedBufferVT

func (m *Length) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Length) MarshalToVT

func (m *Length) MarshalToVT(dAtA []byte) (int, error)

func (*Length) MarshalVT

func (m *Length) MarshalVT() (dAtA []byte, err error)

func (*Length) ProtoMessage

func (*Length) ProtoMessage()

func (*Length) Reset

func (x *Length) Reset()

func (*Length) SizeVT

func (m *Length) SizeVT() (n int)

func (*Length) String

func (x *Length) String() string

func (*Length) UnmarshalJSON

func (x *Length) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Length from JSON.

func (*Length) UnmarshalProtoJSON

func (x *Length) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Length message from JSON.

func (*Length) UnmarshalVT

func (m *Length) UnmarshalVT(dAtA []byte) error

type Length_Fill

type Length_Fill struct {
	// Fill shares the space left in the parent's flow by this weight.
	Fill float32 `protobuf:"fixed32,4,opt,name=fill,proto3,oneof"`
}

func (*Length_Fill) CloneOneofVT

func (m *Length_Fill) CloneOneofVT() isLength_Value

func (*Length_Fill) CloneVT

func (m *Length_Fill) CloneVT() *Length_Fill

func (*Length_Fill) EqualVT

func (this *Length_Fill) EqualVT(thatIface isLength_Value) bool

func (*Length_Fill) MarshalToSizedBufferVT

func (m *Length_Fill) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Length_Fill) MarshalToVT

func (m *Length_Fill) MarshalToVT(dAtA []byte) (int, error)

func (*Length_Fill) SizeVT

func (m *Length_Fill) SizeVT() (n int)

type Length_FitChildren

type Length_FitChildren struct {
	// FitChildren sizes the node to its children.
	FitChildren bool `protobuf:"varint,3,opt,name=fit_children,json=fitChildren,proto3,oneof"`
}

func (*Length_FitChildren) CloneOneofVT

func (m *Length_FitChildren) CloneOneofVT() isLength_Value

func (*Length_FitChildren) CloneVT

func (m *Length_FitChildren) CloneVT() *Length_FitChildren

func (*Length_FitChildren) EqualVT

func (this *Length_FitChildren) EqualVT(thatIface isLength_Value) bool

func (*Length_FitChildren) MarshalToSizedBufferVT

func (m *Length_FitChildren) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Length_FitChildren) MarshalToVT

func (m *Length_FitChildren) MarshalToVT(dAtA []byte) (int, error)

func (*Length_FitChildren) SizeVT

func (m *Length_FitChildren) SizeVT() (n int)

type Length_Percent

type Length_Percent struct {
	// Percent is a share of the parent's size, from 0 to 100.
	Percent float32 `protobuf:"fixed32,2,opt,name=percent,proto3,oneof"`
}

func (*Length_Percent) CloneOneofVT

func (m *Length_Percent) CloneOneofVT() isLength_Value

func (*Length_Percent) CloneVT

func (m *Length_Percent) CloneVT() *Length_Percent

func (*Length_Percent) EqualVT

func (this *Length_Percent) EqualVT(thatIface isLength_Value) bool

func (*Length_Percent) MarshalToSizedBufferVT

func (m *Length_Percent) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Length_Percent) MarshalToVT

func (m *Length_Percent) MarshalToVT(dAtA []byte) (int, error)

func (*Length_Percent) SizeVT

func (m *Length_Percent) SizeVT() (n int)

type Length_Pixels

type Length_Pixels struct {
	// Pixels is a fixed size.
	Pixels float32 `protobuf:"fixed32,1,opt,name=pixels,proto3,oneof"`
}

func (*Length_Pixels) CloneOneofVT

func (m *Length_Pixels) CloneOneofVT() isLength_Value

func (*Length_Pixels) CloneVT

func (m *Length_Pixels) CloneVT() *Length_Pixels

func (*Length_Pixels) EqualVT

func (this *Length_Pixels) EqualVT(thatIface isLength_Value) bool

func (*Length_Pixels) MarshalToSizedBufferVT

func (m *Length_Pixels) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Length_Pixels) MarshalToVT

func (m *Length_Pixels) MarshalToVT(dAtA []byte) (int, error)

func (*Length_Pixels) SizeVT

func (m *Length_Pixels) SizeVT() (n int)

type Node

type Node struct {

	// Id names the node within its tree.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Kind selects the panel the node draws.
	Kind Kind `protobuf:"varint,2,opt,name=kind,proto3" json:"kind,omitempty"`
	// Children lists the ids of the node's children in drawing order. A node
	// that no parent lists is not drawn.
	Children []string `protobuf:"bytes,3,rep,name=children,proto3" json:"children,omitempty"`
	// Text is a label's words.
	Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"`
	// Image is an image's path in the game's content, such as
	// "file://{images}/heroes/wraith_card.psd".
	Image string `protobuf:"bytes,5,opt,name=image,proto3" json:"image,omitempty"`
	// Style lays out and paints the node.
	Style *Style `protobuf:"bytes,6,opt,name=style,proto3" json:"style,omitempty"`
	// contains filtered or unexported fields
}

Node is one panel in a tree. The root's id is empty; it is a full-screen panel that lets clicks through to the game.

func (*Node) CloneMessageVT

func (m *Node) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Node) CloneVT

func (m *Node) CloneVT() *Node

func (*Node) EqualMessageVT

func (this *Node) EqualMessageVT(thatMsg any) bool

func (*Node) EqualVT

func (this *Node) EqualVT(that *Node) bool

func (*Node) GetChildren

func (x *Node) GetChildren() []string

func (*Node) GetId

func (x *Node) GetId() string

func (*Node) GetImage

func (x *Node) GetImage() string

func (*Node) GetKind

func (x *Node) GetKind() Kind

func (*Node) GetStyle

func (x *Node) GetStyle() *Style

func (*Node) GetText

func (x *Node) GetText() string

func (*Node) MarshalJSON

func (x *Node) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Node to JSON.

func (*Node) MarshalProtoJSON

func (x *Node) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Node message to JSON.

func (*Node) MarshalProtoText

func (x *Node) MarshalProtoText() string

func (*Node) MarshalToSizedBufferVT

func (m *Node) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Node) MarshalToVT

func (m *Node) MarshalToVT(dAtA []byte) (int, error)

func (*Node) MarshalVT

func (m *Node) MarshalVT() (dAtA []byte, err error)

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (x *Node) Reset()

func (*Node) SizeVT

func (m *Node) SizeVT() (n int)

func (*Node) String

func (x *Node) String() string

func (*Node) UnmarshalJSON

func (x *Node) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Node from JSON.

func (*Node) UnmarshalProtoJSON

func (x *Node) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Node message from JSON.

func (*Node) UnmarshalVT

func (m *Node) UnmarshalVT(dAtA []byte) error

type Screen

type Screen struct {

	// Trees holds one tree per mod that shows this player anything.
	Trees []*Tree `protobuf:"bytes,1,rep,name=trees,proto3" json:"trees,omitempty"`
	// contains filtered or unexported fields
}

Screen is everything one player's renderer draws: each mod's tree.

func (*Screen) CloneMessageVT

func (m *Screen) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Screen) CloneVT

func (m *Screen) CloneVT() *Screen

func (*Screen) EqualMessageVT

func (this *Screen) EqualMessageVT(thatMsg any) bool

func (*Screen) EqualVT

func (this *Screen) EqualVT(that *Screen) bool

func (*Screen) GetTrees

func (x *Screen) GetTrees() []*Tree

func (*Screen) MarshalJSON

func (x *Screen) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Screen to JSON.

func (*Screen) MarshalProtoJSON

func (x *Screen) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Screen message to JSON.

func (*Screen) MarshalProtoText

func (x *Screen) MarshalProtoText() string

func (*Screen) MarshalToSizedBufferVT

func (m *Screen) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Screen) MarshalToVT

func (m *Screen) MarshalToVT(dAtA []byte) (int, error)

func (*Screen) MarshalVT

func (m *Screen) MarshalVT() (dAtA []byte, err error)

func (*Screen) ProtoMessage

func (*Screen) ProtoMessage()

func (*Screen) Reset

func (x *Screen) Reset()

func (*Screen) SizeVT

func (m *Screen) SizeVT() (n int)

func (*Screen) String

func (x *Screen) String() string

func (*Screen) UnmarshalJSON

func (x *Screen) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Screen from JSON.

func (*Screen) UnmarshalProtoJSON

func (x *Screen) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Screen message from JSON.

func (*Screen) UnmarshalVT

func (m *Screen) UnmarshalVT(dAtA []byte) error

type Style

type Style struct {

	// Width is the node's width.
	Width *Length `protobuf:"bytes,1,opt,name=width,proto3" json:"width,omitempty"`
	// Height is the node's height.
	Height *Length `protobuf:"bytes,2,opt,name=height,proto3" json:"height,omitempty"`
	// Flow arranges the node's children.
	Flow Flow `protobuf:"varint,3,opt,name=flow,proto3" json:"flow,omitempty"`
	// HorizontalAlign places the node within its parent's width.
	HorizontalAlign Align `protobuf:"varint,4,opt,name=horizontal_align,json=horizontalAlign,proto3" json:"horizontalAlign,omitempty"`
	// VerticalAlign places the node within its parent's height.
	VerticalAlign Align `protobuf:"varint,5,opt,name=vertical_align,json=verticalAlign,proto3" json:"verticalAlign,omitempty"`
	// Margin is the space outside the node, in pixels.
	Margin *Edges `protobuf:"bytes,6,opt,name=margin,proto3" json:"margin,omitempty"`
	// Padding is the space between the node's edge and its children, in pixels.
	Padding *Edges `protobuf:"bytes,7,opt,name=padding,proto3" json:"padding,omitempty"`
	// Background is the fill color as 0xRRGGBBAA; zero is transparent.
	Background uint32 `protobuf:"fixed32,8,opt,name=background,proto3" json:"background,omitempty"`
	// Color is the text color as 0xRRGGBBAA; zero keeps the default.
	Color uint32 `protobuf:"fixed32,9,opt,name=color,proto3" json:"color,omitempty"`
	// FontSize is the text size in pixels; zero keeps the default.
	FontSize float32 `protobuf:"fixed32,10,opt,name=font_size,json=fontSize,proto3" json:"fontSize,omitempty"`
	// Bold sets bold text.
	Bold bool `protobuf:"varint,11,opt,name=bold,proto3" json:"bold,omitempty"`
	// TextAlign places text within a label.
	TextAlign Align `protobuf:"varint,12,opt,name=text_align,json=textAlign,proto3" json:"textAlign,omitempty"`
	// BorderRadius rounds the corners, in pixels.
	BorderRadius float32 `protobuf:"fixed32,13,opt,name=border_radius,json=borderRadius,proto3" json:"borderRadius,omitempty"`
	// Opacity fades the node and its children, from 0 to 1; unset is opaque.
	Opacity *float32 `protobuf:"fixed32,14,opt,name=opacity,proto3,oneof" json:"opacity,omitempty"`
	// contains filtered or unexported fields
}

Style is the closed set of layout and paint properties a node may set. A zero value leaves the panel's default.

func (*Style) CloneMessageVT

func (m *Style) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Style) CloneVT

func (m *Style) CloneVT() *Style

func (*Style) EqualMessageVT

func (this *Style) EqualMessageVT(thatMsg any) bool

func (*Style) EqualVT

func (this *Style) EqualVT(that *Style) bool

func (*Style) GetBackground

func (x *Style) GetBackground() uint32

func (*Style) GetBold

func (x *Style) GetBold() bool

func (*Style) GetBorderRadius

func (x *Style) GetBorderRadius() float32

func (*Style) GetColor

func (x *Style) GetColor() uint32

func (*Style) GetFlow

func (x *Style) GetFlow() Flow

func (*Style) GetFontSize

func (x *Style) GetFontSize() float32

func (*Style) GetHeight

func (x *Style) GetHeight() *Length

func (*Style) GetHorizontalAlign

func (x *Style) GetHorizontalAlign() Align

func (*Style) GetMargin

func (x *Style) GetMargin() *Edges

func (*Style) GetOpacity

func (x *Style) GetOpacity() float32

func (*Style) GetPadding

func (x *Style) GetPadding() *Edges

func (*Style) GetTextAlign

func (x *Style) GetTextAlign() Align

func (*Style) GetVerticalAlign

func (x *Style) GetVerticalAlign() Align

func (*Style) GetWidth

func (x *Style) GetWidth() *Length

func (*Style) MarshalJSON

func (x *Style) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Style to JSON.

func (*Style) MarshalProtoJSON

func (x *Style) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Style message to JSON.

func (*Style) MarshalProtoText

func (x *Style) MarshalProtoText() string

func (*Style) MarshalToSizedBufferVT

func (m *Style) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Style) MarshalToVT

func (m *Style) MarshalToVT(dAtA []byte) (int, error)

func (*Style) MarshalVT

func (m *Style) MarshalVT() (dAtA []byte, err error)

func (*Style) ProtoMessage

func (*Style) ProtoMessage()

func (*Style) Reset

func (x *Style) Reset()

func (*Style) SizeVT

func (m *Style) SizeVT() (n int)

func (*Style) String

func (x *Style) String() string

func (*Style) UnmarshalJSON

func (x *Style) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Style from JSON.

func (*Style) UnmarshalProtoJSON

func (x *Style) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Style message from JSON.

func (*Style) UnmarshalVT

func (m *Style) UnmarshalVT(dAtA []byte) error

type Tree

type Tree struct {

	// Mod is the mod's name.
	Mod string `protobuf:"bytes,1,opt,name=mod,proto3" json:"mod,omitempty"`
	// Nodes holds every node, the root included.
	Nodes []*Node `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"`
	// contains filtered or unexported fields
}

Tree is one mod's whole tree for one player.

func (*Tree) CloneMessageVT

func (m *Tree) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Tree) CloneVT

func (m *Tree) CloneVT() *Tree

func (*Tree) EqualMessageVT

func (this *Tree) EqualMessageVT(thatMsg any) bool

func (*Tree) EqualVT

func (this *Tree) EqualVT(that *Tree) bool

func (*Tree) GetMod

func (x *Tree) GetMod() string

func (*Tree) GetNodes

func (x *Tree) GetNodes() []*Node

func (*Tree) MarshalJSON

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

MarshalJSON marshals the Tree to JSON.

func (*Tree) MarshalProtoJSON

func (x *Tree) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Tree message to JSON.

func (*Tree) MarshalProtoText

func (x *Tree) MarshalProtoText() string

func (*Tree) MarshalToSizedBufferVT

func (m *Tree) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Tree) MarshalToVT

func (m *Tree) MarshalToVT(dAtA []byte) (int, error)

func (*Tree) MarshalVT

func (m *Tree) MarshalVT() (dAtA []byte, err error)

func (*Tree) ProtoMessage

func (*Tree) ProtoMessage()

func (*Tree) Reset

func (x *Tree) Reset()

func (*Tree) SizeVT

func (m *Tree) SizeVT() (n int)

func (*Tree) String

func (x *Tree) String() string

func (*Tree) UnmarshalJSON

func (x *Tree) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Tree from JSON.

func (*Tree) UnmarshalProtoJSON

func (x *Tree) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Tree message from JSON.

func (*Tree) UnmarshalVT

func (m *Tree) UnmarshalVT(dAtA []byte) error

Jump to

Keyboard shortcuts

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