P5-gtk2-ex-simple-list

Jul 20, 2023

Simple interface to complex MVC list widget

Gtk2 has a powerful, but complex MVC Model, View, Controller system used to implement list and tree widgets. Gtk2ExSimpleList automates the complex setup work and allows you to treat the list model as a more natural list of lists structure.

After creating a new Gtk2ExSimpleList object with the desired columns you may set the list data with a simple Perl array assignment. Rows may be added or deleted with all of the normal array operations. You can treat the data member of the SimpleList object as an array reference, and manipulate the list data with perl’s normal array operators.

A mechanism has also been put into place allowing columns to be Perl scalars. The scalar is converted to text through Perl’s normal mechanisms and then displayed in the list. This same mechanism can be expanded by defining arbitrary new column types before calling the new function.



Checkout these related ports:
  • Ztoolkit - GUI toolkit heavily inspired by GTK
  • Xwallpaper - Xwallpaper utility allows you to set image files as your X wallpaper
  • Xview - X Window-System-based Visual/Integrated Environment for Workstations
  • Xview-clients - OpenLook applications and man pages
  • Xmhtml - Motif widget set for displaying HTML 3.2 documents
  • Xforms - Graphical user interface toolkit for X Window System
  • Xbae - Motif-based widget which displays a grid of cells as a spreadsheet
  • Wxgtk32 - GUI toolkit (wxWidgets) with ${FLAVORS/k/&+/tu} bindings
  • Wxgtk30 - The wxWidgets GUI toolkit with GTK+ bindings
  • Wmapp - DockApp Graphics Library
  • Wlroots015 - Modular Wayland compositor library (deprecated 0.15.* series)
  • Wlroots - Modular Wayland compositor library
  • Wlroots-devel - Modular Wayland compositor library (development snapshot)
  • Vte3 - Terminal widget with improved accessibility and I18N support
  • Vte -