类型 ReorderList

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

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

构造函数

BeginReorderList#

func BeginReorderList(canvas *ui.Canvas, theme ui.Theme, bounds ui.Rect, state *ReorderListState) ReorderList

方法

End#

func (list *ReorderList) End()

Row#

func (list *ReorderList) Row(id ui.ID, label string, disabled bool) ReorderRowLayout

Row declares one row in display order and paints it. Declare every item, in order, on every paint: ReorderMove.From and To index this declaration, so a partial or virtualized paint would move the wrong item.

RowHeight#

func (list ReorderList) RowHeight(height float32) ReorderList

Viewport#

func (list ReorderList) Viewport(bounds ui.Rect) ReorderList

Viewport bounds valid drops and clips the insertion indicator when the caller has translated Bounds to scroll its content. Scrolling remains caller-owned.