box

package
v0.0.0-...-59843aa Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Box

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

包围盒

func NewBox

func NewBox(engine *g2d.Engine, x, y, width, height int, circle bool) (box Box)

新建

func (*Box) Draw

func (b *Box) Draw()

渲染

func (*Box) GetColor

func (b *Box) GetColor() string

获取颜色

func (*Box) Point

func (b *Box) Point(x, y int) bool

判断点是否在包围内

func (*Box) SetColor

func (b *Box) SetColor(color string)

设置颜色

Jump to

Keyboard shortcuts

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