Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ZeroPoint = NewPoint(0, 0)
)
Functions ¶
This section is empty.
Types ¶
type Padding ¶
func NewPaddingFixed ¶
func NewPaddingNone ¶
func NewPaddingNone() Padding
func NewPaddingRatio ¶
type Point ¶
type Point interface { X() int Y() int Add(x, y int) Point AddPoint(q Point) Point Sub(x, y int) Point SubPoint(q Point) Point Equals(q Point) bool Fixed26() fixed.Point26_6 Fixed52() fixed.Point52_12 ImagePoint() image.Point }
func NewPointFixed26 ¶
func NewPointFixed52 ¶
func NewPointFixed52(q fixed.Point52_12) Point
func NewPointImage ¶
type Position ¶
type Position int
func ParsePosition ¶
func ParsePosition(p string) (Position, eoutcome.ParseOutcome)
type Rectangle ¶
type Rectangle interface { X() int Y() int Width() int Height() int Equals(q Rectangle) bool TopLeft() Point TopCenter() Point TopRight() Point CenterLeft() Point Center() Point CenterRight() Point BottomLeft() Point BottomCenter() Point BottomRight() Point Fixed26() fixed.Rectangle26_6 Fixed52() fixed.Rectangle52_12 ImageRect() image.Rectangle }
func NewRectangle ¶
func NewRectangleFixed26 ¶
func NewRectangleFixed26(q fixed.Rectangle26_6) Rectangle
func NewRectangleFixed52 ¶
func NewRectangleFixed52(q fixed.Rectangle52_12) Rectangle
func NewRectangleImage ¶
Click to show internal directories.
Click to hide internal directories.