ui: expand package documentation

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-08-09 20:32:39 +02:00
parent a6c262c1e1
commit a2baffdbfd
3 changed files with 87 additions and 7 deletions
+3 -3
View File
@@ -11,8 +11,8 @@ import (
"gioui.org/ui/internal/opconst"
)
// Config represents the essential configuration for
// updating and drawing a user interface.
// Config define the essential properties of
// the environment.
type Config interface {
// Now returns the current animation time.
Now() time.Time
@@ -26,7 +26,7 @@ type InvalidateOp struct {
At time.Time
}
// TransformOp applies a transform to later ops.
// TransformOp applies a transform to the current transform.
type TransformOp struct {
// TODO: general transformations.
offset f32.Point