类型 Name

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

type Name uint32

Name names one control or item within a scope: a word (Tree.Name) for a control, or the number of an item (Index) for a row of a list.

构造函数

Index#

func Index(i int) Name

Index returns the name of item number i of a list: a row, a tab, the record with a given database number. A negative number, or one of 2^31 or more, is not an item and returns the zero name, which belongs to no list.

方法

Index#

func (name Name) Index() (int, bool)

Index returns the item number of an item name, and false for a word.