public protocol ListViewDelegate
Method invoked to render one item on the ListView.
This method should take into account both the
selectedstate, which will be true, if this is being called to render a line that currently has the cursor selection, or false if it is just another row.
In addition, this method needs to probe listView.hasFocus to determine if the listview is focused, if so, it should use the proper color from the ColorScheme to draw attention to the ListView and its selected element.
The source list view being drawn
painter object that can be used to draw
whether the line should be rendered as selected
the index of the item to render
The column where the rendering will take place
The line where the rendering will take place
The total number of columns to render
This method is invoked when the currently selected item has changed
func selectionChanged(listView: ListView)
Invoked when the return key has been pressed while on the ListView
func activate(listView: ListView, item: Int) -> Bool
the listview that is raising the event
The item that was postiioned
should return true if handled, otherwise false