ListStore
Object Hierarchy:
GLib.ListStore
GLib.ListStore
GLib.ListStore
GLib.Object
GLib.Object
GLib.Object->GLib.ListStore
GLib.ListModel
GLib.ListModel
GLib.ListModel->GLib.ListStore
Description:
[
CCode ( type_id =
"g_list_store_get_type ()" ) ]
public sealed class ListStore :
Object ,
ListModel
`GListStore` is a simple implementation of [iface@Gio.
ListModel] that stores all items in memory.
It provides insertions, deletions, and lookups in logarithmic time with a fast path for the common case of iterating the list linearly.
Content:
Properties:
Creation methods:
Methods:
public void append (Object item)
Appends item to this .
public bool find (Object item, out uint position)
Looks up the given item in the list store by looping over
the items until the first occurrence of item.
public bool find_with_equal_func (Object ? item, EqualFunc <Object > equal_func, out uint position)
Looks up the given item in the list store by looping over
the items and comparing them with equal_func until the first occurrence of item which matches.
public bool find_with_equal_func_full (Object ? item, EqualFuncFull <Object > equal_func, out uint position)
public void insert (uint position, Object item)
Inserts item into this
at position.
public uint insert_sorted (Object item, CompareDataFunc <Object > compare_func)
Inserts item into this
at a position to be determined by the compare_func.
public void remove (uint position)
Removes the item from this that is
at position.
public void remove_all ()
Removes all items from this .
public void sort (CompareDataFunc <Object > compare_func)
Sort the items in this according to
compare_func.
public void splice (uint position, uint n_removals, Object [] additions)
Changes this by removing
n_removals items and adding additions.length items to it.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface GLib.ListModel