ui/widget: add package documentation

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-08-11 19:41:28 +02:00
parent 2bcac7dfbe
commit 6deb8f007d
+2
View File
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: Unlicense OR MIT
// Package widget implements common widgets.
package widget
import (
@@ -11,6 +12,7 @@ import (
"gioui.org/ui/paint"
)
// Image is a widget that displays an image.
type Image struct {
// Src is the image to display.
Src image.Image