center

package
v0.0.0-...-aa7acec Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Center

type Center struct {
	MaxWidth  int
	MaxHeight int

	tview.Primitive
	// contains filtered or unexported fields
}

func New

func New(p tview.Primitive) *Center

func (*Center) GetRect

func (c *Center) GetRect() (int, int, int, int)

GetRect overrides the embedded Primitive's GetRect method.

func (*Center) SetRect

func (c *Center) SetRect(x, y, w, h int)

SetRect overrides the embedded Primitive's SetRect method.

Jump to

Keyboard shortcuts

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