ListItem
Object Hierarchy:
Description:
[
CCode ( type_id =
"gtk_list_item_get_type ()" ) ]
public class ListItem :
Object
ListItem is the object that list-handling containers such as
ListView use to represent items in a ListModel.
They are managed by the container and cannot be created by application code.
ListItems need to be populated by application code. This is done by calling
set_child.
ListItems exist in 2 stages:
- The unbound stage where the listitem is not currently connected to an item in the list. In that case, the
item property is set to null.
- The bound stage where the listitem references an item from the list. The item
property is not null.
Content:
Properties:
- public bool activatable { get; set; }
If the item can be activated by the user
- public Widget child { get; set; }
Widget used for display
- public Object item { get; }
Displayed item
- public uint position { get; }
Position of the item
- public bool selectable { get; set; }
If the item can be selected by the user
- public bool selected { get; }
If the item is currently selected
Creation methods:
Methods:
Inherited Members:
All known members inherited from class GLib.Object