StringList


Object Hierarchy:

Gtk.StringList Gtk.StringList Gtk.StringList GLib.Object GLib.Object GLib.Object->Gtk.StringList GLib.ListModel GLib.ListModel GLib.ListModel->Gtk.StringList Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.StringList

Description:

[ CCode ( type_id = "gtk_string_list_get_type ()" ) ]
public class StringList : Object, ListModel, Buildable

`GtkStringList` is a list model that wraps an array of strings.

The objects in the model have a "string" property.

`GtkStringList` is well-suited for any place where you would typically use a `char*[]`, but need a list model.

GtkStringList as GtkBuildable

The `GtkStringList` implementation of the `GtkBuildable` interface supports adding items directly using the <items> element and specifying <item> elements for each item. Each <item> element supports the regular translation attributes “translatable”, “context” and “comments”.

Here is a UI definition fragment specifying a `GtkStringList`

```xml <object class="GtkStringList"> <items> <item translatable="yes">Factory</item> <item translatable="yes">Home</item> <item translatable="yes">Subway</item> </items> </object> ```


Namespace: Gtk
Package: gtk4

Content:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class GLib.Object
All known members inherited from interface GLib.ListModel



2022 vala-language.org