Type ReorderList

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

Constructors

BeginReorderList#

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

Methods

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.