类型 TabsResult

API 文档由 Go 源码生成,内容为英文。

type TabsResult struct {
	// contains filtered or unexported fields
}

TabsResult is what painting a tab list reports back.

方法

Bounds#

func (result TabsResult) Bounds() ui.Rect

Bounds is the rectangle the list occupied: bounds as given, or, with Fit, the width the labels asked for. It is empty when nothing was painted.

Clicked#

func (result TabsResult) Clicked() (int, bool)

Clicked returns the number of the tab clicked in this paint's event pass, for a list made with BeginTabList.