vgui

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2019 License: Unlicense Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

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

func NewButton

func NewButton(label string) *Button

func (*Button) Draw

func (btn *Button) Draw()

func (*Button) Resize

func (btn *Button) Resize(parentWidth, parentHeight float64)

type Element

type Element interface {
	Draw()
	Resize(parentWidth, parentHeight float64)
}

type MasterPanel

type MasterPanel struct {
	Panel
}

func (*MasterPanel) Resize

func (panel *MasterPanel) Resize(width, height float64)

type Panel

type Panel struct {
	X      float64
	Y      float64
	Width  float64
	Height float64
	// contains filtered or unexported fields
}

Panel

func (*Panel) AddChild

func (panel *Panel) AddChild(child *Panel)

AddChild adds a new child to this panel

func (*Panel) AddElement

func (panel *Panel) AddElement(element Element)

func (*Panel) Children

func (panel *Panel) Children() []*Panel

Children returns all panels that are a child of this panel

func (*Panel) Draw

func (panel *Panel) Draw()

Draw

func (*Panel) Enabled

func (panel *Panel) Enabled() bool

Enabled

func (*Panel) NewChildPanel

func (panel *Panel) NewChildPanel(X, Y, Width, Height float64, Enabled bool) *Panel

NewChildPanel

func (*Panel) Proportional

func (panel *Panel) Proportional() bool

Proportional

func (*Panel) Resize

func (panel *Panel) Resize(parentWidth, parentHeight float64)

Resize

func (*Panel) SetEnabled

func (panel *Panel) SetEnabled(enabled bool)

SetEnabled

func (*Panel) SetProportional

func (panel *Panel) SetProportional(proportional bool)

SetProportional

Jump to

Keyboard shortcuts

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