tgui

package
v0.0.0-...-70ddbae Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activity

type Activity struct {
	pb.NewActivityResponse
	// contains filtered or unexported fields
}

func NewActivity

func NewActivity(c Connection) *Activity

func (*Activity) GenCreate

func (a *Activity) GenCreate(parent View, visibility Visibility) *pb.Create

func (Activity) NewButton

func (a Activity) NewButton(parent View, allcaps bool, text string) *Button

type Button

type Button struct {
	Text string
	// contains filtered or unexported fields
}

func (Button) GetId

func (v Button) GetId() int32

func (Button) SetVisibility

func (v Button) SetVisibility(vis Visibility)

type Connection

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

func NewConnection

func NewConnection() Connection

func (Connection) RecvEvent

func (c Connection) RecvEvent() pb.Event

func (Connection) RecvMsg

func (c Connection) RecvMsg(msg proto.Message)

func (Connection) SRMethod

func (c Connection) SRMethod(m *pb.Method, ret proto.Message)

func (Connection) SendMethod

func (c Connection) SendMethod(m *pb.Method)

type View

type View interface {
	GetId() int32
	SetVisibility(vis Visibility)
}

type Visibility

type Visibility int
const (
	VISIBILITY_VISIBLE Visibility = 0
	VISIBILITY_HIDDEN  Visibility = 1
	VISIBILITY_GONE    Visibility = 2
)

Jump to

Keyboard shortcuts

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