Commit Graph

4 Commits

Author SHA1 Message Date
Elias Naur d82eb8fc66 layout,f32: add convenience functions for rectangles and points
layout.FRect, layout.FPt for converting from integer to floating point,
useful for drawing operations.

f32.Pt is a shorthand that mirrors image.Pt.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2020-05-19 10:59:32 +02:00
Wagner Riffel 0bf6de6cfa f32: add package Rect shorthand function
Signed-off-by: Wagner Riffel <wgrriffel@gmail.com>
2020-05-18 11:11:03 +02:00
Wagner Riffel 390949790e f32: implement fmt.Stringer to Point and Rectangle
Signed-off-by: Wagner Riffel <wgrriffel@gmail.com>
2020-05-13 12:59:39 +02:00
Elias Naur 22cd88df9f all: rename the gioui.org/ui module to gioui.org
The "ui" is redundant and stutters.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-09-30 12:37:06 +02:00