align

package
v0.0.0-...-2c3a8a6 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Point

func Point(to Alignment, pt *geom.Point, rX, rY, rW, rH float64)

func PointInSdlRect

func PointInSdlRect(to Alignment, pt *geom.Point, r sdl.Rect)

func Values

func Values(to Alignment, x, y *float64, rX, rY, rW, rH float64)

func XYInSdlRect

func XYInSdlRect(to Alignment, xy geom.XYSetter, r sdl.Rect)

Types

type Alignment

type Alignment uint
const (
	ToCenter Alignment = iota + 1
	ToTop
	ToTopCenter
	ToBottom
	ToBottomCenter
	ToLeft
	ToLeftMiddle
	ToRight
	ToRightMiddle
	ToTopLeft
	ToTopRight
	ToBottomLeft
	ToBottomRight
)

Jump to

Keyboard shortcuts

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