dom

package
v0.0.0-...-ba5fac2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VERTEX_NON   = iota // Draw the default vertex handle.
	VERTEX_HOVER        // Draw the hover vertex handle.
	VERTEX_PRESS        // Draw the mouse down vertex handle
	NUM_VERTEX_STATES
)
View Source
const (
	QUAD_ELEMENT_DX = 45.
	QUAD_ELEMENT_DY = 45.
	QUAD_ELEMENT_DH = 4.
)

Variables

This section is empty.

Functions

This section is empty.

Types

type QuadElement

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

Element is a placeholder for an element. Will want, not a tree, but a true database format for efficent queries (including spatial).

func (*QuadElement) ActivateVertex

func (qe *QuadElement) ActivateVertex(i int) graphics.Pointf

func (*QuadElement) Deactivate

func (qe *QuadElement) Deactivate()

func (*QuadElement) Draw

func (qe *QuadElement) Draw(dl *graphics.DisplayList)

TODO(vollick): split this out into an interface.

func (*QuadElement) FindVertex

func (qe *QuadElement) FindVertex(p graphics.Pointf) int

func (*QuadElement) HoverOff

func (qe *QuadElement) HoverOff()

func (*QuadElement) HoverOn

func (qe *QuadElement) HoverOn(v int)

func (*QuadElement) Init

func (qe *QuadElement) Init(pt graphics.Pointf)

func (*QuadElement) SetActiveVertex

func (qe *QuadElement) SetActiveVertex(v graphics.Pointf)

Jump to

Keyboard shortcuts

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