Class ElemListView
Constructors
Name | Description |
---|---|
this
()
|
Fields
Type | Name | Description |
---|---|---|
mouseSelectBehavior
|
Controls how mouse button presses and dragging is handled for onItemClick | |
|
onItemClick
|
|
|
onSelect
|
|
bool |
selectOnHover
|
|
bool |
sumItemSizes
|
Policy for measure : when true, it considers items' total size
|
11 inherited fields
Properties
Type | Name | Description |
---|---|---|
int |
itemCount [get]
|
Returns number of widgets in list |
orientation [get, set]
|
||
int |
selectedItemIndex [get]
|
Selected item index |
inout(ScrollData) |
scrollData [get]
|
35 inherited properties
Methods
Name | Description |
---|---|
handleKeyEvent
(event)
|
List navigation using keys |
handleMouseEvent
(event)
|
Process mouse event; return true if event is processed by widget. |
handleWheelEvent
(event)
|
Process wheel event, return true if the event is processed. |
itemBox
(index)
|
Returns box for item (scrolled) |
itemBoxNoScroll
(index)
|
Returns box for item (not scrolled, first item starts at 0,0) |
itemByPosition
(offset)
|
Returns item index by 0-based offset from top/left of list content |
itemElement
(index)
|
Returns list item element by item index |
itemEnabled
(index)
|
Returns true if item with corresponding index is enabled |
makeItemVisible
(itemIndex)
|
Ensure item is visible |
makeSelectionVisible
()
|
Ensure selected item is visible (scroll if necessary) |
moveSelection
(direction, wrapAround)
|
Move selection |
selectItem
(index, disabledItemsSkipDirection)
|
|
selectItem
(index)
|
|
arrangeContent
()
|
Called from layout , after box and innerBox were set
|
computeBoundaries
()
|
... |
drawContent
(pr)
|
|
handleChildListChange
()
|
Item list has changed |
handleFocusChange
(focused, receivedFocusFromKeyboard)
|
Called to process focus changes before onFocusChange signal, override to do it
|
handleItemClick
(index)
|
Override to handle mouse up on item |
handleSelection
(index, previouslySelectedItem)
|
Override to handle change of selection |
setHoverItem
(index)
|
|
updateSelectedItemFocus
()
|
48 inherited methods