mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 23:55:39 +00:00
ui/widget: add package documentation
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user