Home |All Classes |Grouped Classes |Index |Search

Class CL_ListView

List view component. More...

Derived from:

public CL_GUIComponent

Derived by:

None

Group:

Components (GUI)

#include <ClanLib/gui.h>

Class Members:

Construction:

CL_ListView


Attributes:

get_header

get_document_item

get_select_whole_row

get_icon_list

get_context_menu

get_selected_items

Returns a container class holding the selected items in a linked list structure.

get_selected_item

Returns the currently selected item in single selection mode. If multiple items are selected, the item selected first (chronological order) is returned.

get_preferred_size

Returns the preferred size of the component, as defined in its CSS file.


Operations:

create_item

on_process_message

set_item_context_menu

set_context_menu

set_select_whole_row

When true, the whole row is drawn selected, as opposed to only the first column.

set_multi_select

When true, multiple items can be selected.

set_display_mode

clear

Remove all items.

clear_selection

Unselect all selected items.

set_selected

find

Returns a CL_ListViewItem with the string 'str' in the column 'col_id' or a NULL item if none found.


Events:

func_selection_changed

Selected items are returned as children of the returned item.

func_item_edited

Invoked after the name of an item has been modified using the ListViews built-in LineEdit control.

func_key_pressed

func_key_released