Package: gtk
Class gtk:list-view
Superclassesgtk:list-base, gtk:widget, gobject:initially-unowned, gtk:accessible, gtk:buildable, gtk:constraint-target, gtk:orientable, gtk:scrollable, gobject:object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct SlotsDetails The gtk:list-view widget is a widget to present a view into a large
dynamic list of items. The gtk:list-view widget uses its factory to generate one row widget
for each visible item and shows them in a linear display, either vertically or horizontally. The show-separators property offers a
simple way to display separators between the rows. The gtk:list-view widget allows the user to select items according to the selection characteristics of the model. For models that allow multiple selected items, it is possible to turn on rubberband selection, using the enable-rubberband property. If you need multiple columns with headers, see the gtk:column-view widget. To learn more about the list widget framework, see the List Widget Overview section. Examples(defun activate-cb (listview position) (let* ((model (gtk:list-view-model listview)) (appinfo (g:list-model-item model position)) (display (gtk:widget-display listview)) (context (gdk:display-app-launch-context display))) (unless (g:app-info-launch appinfo nil context) (let* ((message (format nil "Could not launch ~a" (g:app-info-display-name appinfo))) (dialog (make-instance 'gtk:alert-dialog :message message))) (gtk:alert-dialog-show dialog (gtk:widget-root listview)))))) CSS nodeslistview[.separators][.rich-list][.navigation-sidebar][.data-table] ├── row[.activatable] │ ├── row[.activatable] │ ┊ ╰── [rubberband]The gtk:list-view implementation uses a single CSS node named listview. It may carry the .separators style class, when the show-separators property is set. Each child widget uses a single CSS node named row. For rubberband selection, a node with name rubberband is used. The main listview node may also carry style classes to select the style of list presentation: .rich-list, .navigation-sidebar or .data-table. AccessibilitySignal DetailsThe "activate" signallambda (listview position) :run-last
| Returned bySlot Access Functions
Inherited Slot Access FunctionsSee also |
2023-11-25