Class Index | Cross Index | Namespace Index |
Widget for packing a list of selectable items.
Contained in: Gtk
Derived from:
Gtk::Container
Derived by:
none
#include <gtk--/list.h>
public function member index: |
||
List | (); | |
void | append_items | (GList* items); |
gint | child_position | (Gtk::Widget& child); |
void | clear_items | (gint start, gint end); |
GtkList* | gtkobj | (); |
const GtkList* | gtkobj | () const; |
void | insert_items | (GList* items, gint position); |
static bool | isA | (Object* object); |
ItemList& | items | (); |
const ItemList& | items | () const; |
void | prepend_items | (GList* items); |
void | remove_items | (GList* items); |
void | remove_items_no_unref | (GList* items); |
emitable signal void | select_child | (Gtk::Widget&); |
void | select_item | (gint item); |
SelectionList& | selection | (); |
const SelectionList& | selection | () const; |
signal void | selection_changed | (); |
void | set_selection_mode | (GtkSelectionMode mode); |
emitable signal void | unselect_child | (Gtk::Widget&); |
void | unselect_item | (gint item); |
virtual | ~List | (); |
protected function member index: |
||
virtual void | select_child_impl | (Gtk::Widget& p0); |
virtual void | selection_changed_impl | (); |
virtual void | unselect_child_impl | (Gtk::Widget& p0); |
items: The items.
child: The child to look for.Returns: The index of the child, -1 if not found.
If end is negative, or greater than the number of children of list, it's assumed to be exactly the number of elements. If start is greater than or equal to end, nothing is done.start: The index of the first item to remove.
end: The index of the lest item to remove plus one.
items: The items. position: The position to insert items, starting at 0.
items: The items.
items: The items to remove.
items: The items.
Nothing happens if item is out of bounds. The signal {Gtk::List::select-child} will be emitted.item: The index of the child to select.
The selection mode can be any value in Gtk::SelectionMode:GTK_SELECTION_SINGLE: Zero or one element may be selected.
GTK_SELECTION_BROWSE: Exactly one element is always selected (this can be false after you have changed the selection mode).
GTK_SELECTION_MULTIPLE: Any number of elements may be selected. Clicks toggle the state of an item.
GTK_SELECTION_EXTENDED: Any number of elements may be selected. Click-drag selects a range of elements; the Ctrl key may be used to enlarge the selection, and Shift key to select between the focus and the child pointed to.
mode: The new selection mode.
Nothing happens if item is out of bounds. The signal {Gtk::List::unselect-child} will be emitted.item: The index of the child to unselect.