Gnome::Gtk4::StringObject
Description
Gnome::Gtk4::StringObject is the type of items in a Gnome::Gtk4::StringList.
A Gnome::Gtk4::StringObject is a wrapper around a const char*`; it has a string property that can be used for property bindings and expressions.
Class initialization
new
:native-object
Create an object using a native object from elsewhere. See also Gnome::N::TopLevelSupportClass.
multi method new ( N-Object :$native-object! )
new-stringobject
Wraps a string in an object for use with Gnome::Gio::R-ListModel.
method new-stringobject ( Str $string --> Gnome::Gtk4::StringObject \)
$string; The string to wrap.
Methods
get-string
Returns the string contained in a Gnome::Gtk4::StringObject.
method get-string (--> Str )
Return value; the string of $self
.