Gtk2::List(3) User Contributed Perl Documentation Gtk2::List(3)

Gtk2::List - wrapper for GtkList

Gtk2::List is deprecated; use Gtk2::TreeView and a Gtk2::ListStore instead.

Gtk2::List is included in Gtk2-Perl only because Gtk2::Combo still makes use of it, and Gtk2::Combo's replacement, Gtk2::ComboBox, didn't appear in gtk+ until 2.4.0.

Glib::Object
+----Glib::InitiallyUnowned
     +----Gtk2::Object
          +----Gtk2::Widget
               +----Gtk2::Container
                    +----Gtk2::List

Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable

$list->append_items (...)

... (list) of Gtk2::ListItem's to be appended

$child (Gtk2::Widget)

$list->clear_items ($start, $end)

  • $start (integer)
  • $end (integer)

$list->extend_selection ($scroll_type, $position, $auto_start_selection)

  • $scroll_type (Gtk2::ScrollType)
  • $position (double)
  • $auto_start_selection (boolean)

$list->insert_items ($position, ...)

  • $position (integer)
  • ... (list) of Gtk2::ListItem's to be inserted

$list->prepend_items (..., $list_item)

  • ... (list) of Gtk2::ListItem's to be prepended
  • $list_item (Gtk2::ListItem)

$list->remove_items (..., $list_item)

  • ... (list) of Gtk2::ListItem's to be removed
  • $list_item (Gtk2::ListItem)

$list->scroll_horizontal ($scroll_type, $position)

  • $scroll_type (Gtk2::ScrollType)
  • $position (double)

$list->scroll_vertical ($scroll_type, $position)

  • $scroll_type (Gtk2::ScrollType)
  • $position (double)

$list->select_child ($child)

$child (Gtk2::Widget)

$list->select_item ($item)

$item (integer)

$list->set_selection_mode ($mode)

$mode (Gtk2::SelectionMode)

$list->toggle_row ($item)

$item (Gtk2::Widget)

$list->unselect_child ($child)

$child (Gtk2::Widget)

$list->unselect_item ($item)

$item (integer)

'selection-mode' (Gtk2::SelectionMode : default "none" : readable / writable / private)

  • 'none' / 'GTK_SCROLL_NONE'
  • 'jump' / 'GTK_SCROLL_JUMP'
  • 'step-backward' / 'GTK_SCROLL_STEP_BACKWARD'
  • 'step-forward' / 'GTK_SCROLL_STEP_FORWARD'
  • 'page-backward' / 'GTK_SCROLL_PAGE_BACKWARD'
  • 'page-forward' / 'GTK_SCROLL_PAGE_FORWARD'
  • 'step-up' / 'GTK_SCROLL_STEP_UP'
  • 'step-down' / 'GTK_SCROLL_STEP_DOWN'
  • 'page-up' / 'GTK_SCROLL_PAGE_UP'
  • 'page-down' / 'GTK_SCROLL_PAGE_DOWN'
  • 'step-left' / 'GTK_SCROLL_STEP_LEFT'
  • 'step-right' / 'GTK_SCROLL_STEP_RIGHT'
  • 'page-left' / 'GTK_SCROLL_PAGE_LEFT'
  • 'page-right' / 'GTK_SCROLL_PAGE_RIGHT'
  • 'start' / 'GTK_SCROLL_START'
  • 'end' / 'GTK_SCROLL_END'

  • 'none' / 'GTK_SELECTION_NONE'
  • 'single' / 'GTK_SELECTION_SINGLE'
  • 'browse' / 'GTK_SELECTION_BROWSE'
  • 'multiple' / 'GTK_SELECTION_MULTIPLE'
  • 'extended' / 'GTK_SELECTION_EXTENDED'

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.

2023-07-25 perl v5.38.0