position

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: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MutablePosition

type MutablePosition interface {
	Position

	SetLeft(int)
	SetTop(int)
	SetBoth(int, int)
}

func New

func New(left, top int) MutablePosition

func NewBounded

func NewBounded(left, top, maxLeft, maxTop int, overflowMode OverflowMode) MutablePosition

type OverflowMode

type OverflowMode int
const (
	OverflowHide OverflowMode = iota
	OverflowLimit
	OverflowWrap
)

type Position

type Position interface {
	Left() int
	Top() int
	Both() (int, int)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳