ptwindow

package
v1.1.21 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package ptwindow impl pt context window

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PutbackPoints

func PutbackPoints(pts ...*point.Point)

Types

type PtRing

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

func NewRing

func NewRing(elem int) (*PtRing, error)

type PtWindow

type PtWindow struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewWindow

func NewWindow(before int, after int) *PtWindow

func (*PtWindow) Hit

func (w *PtWindow) Hit()

func (*PtWindow) Move

func (w *PtWindow) Move(pt *point.Point) []*point.Point

type WindowPool

type WindowPool struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewManager

func NewManager() *WindowPool

func (*WindowPool) Deprecated

func (m *WindowPool) Deprecated()

func (*WindowPool) Get

func (m *WindowPool) Get(k, v []string) (*PtWindow, bool)

func (*WindowPool) Register

func (m *WindowPool) Register(before, after int, k, v []string)

Jump to

Keyboard shortcuts

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