1 Star 0 Fork 21

interesting-goods/Fyne

forked from Gitee 极速下载/Fyne 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
widget.go 675 Bytes
一键复制 编辑 原始数据 按行查看 历史
package fyne
import "image/color"
// Widget defines the standard behaviours of any widget. This extends the
// CanvasObject - a widget behaves in the same basic way but will encapsulate
// many child objects to create the rendered widget.
type Widget interface {
CanvasObject
CreateRenderer() WidgetRenderer
}
// WidgetRenderer defines the behaviour of a widget's implementation.
// This is returned from a widget's declarative object through the Render()
// function and should be exactly one instance per widget in memory.
type WidgetRenderer interface {
Layout(Size)
MinSize() Size
Refresh()
BackgroundColor() color.Color
Objects() []CanvasObject
Destroy()
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/interesting-goods/Fyne.git
[email protected]:interesting-goods/Fyne.git
interesting-goods
Fyne
Fyne
master

搜索帮助