rect

package
v0.0.0-...-d88343e Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rect

type Rect interface {
	Position() position.Position
	Size() size.Size

	Top() int
	Bottom() int

	Left() int
	Right() int

	Width() int
	Height() int

	HorizontalMiddle() int
	VerticalMiddle() int
}

func New

func New(pos position.Position, size size.Size) Rect

func NewFromCoordinates

func NewFromCoordinates(left, top, width, height int) Rect

func NewFromScreen

func NewFromScreen(screen tcell.Screen) Rect

Jump to

Keyboard shortcuts

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