About my projects, examples and tutorials
Gnome::Gtk4::StringObject

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 Str; it has a string property that can be used for property bindings and expressions.

Uml Diagram§

UNKNOWN image§

=for image :class<inline> :src<asset_files/images/plantuml/StringObject.png> :width<70\%>

Class initialization§

new§

:native-object§

Create an object using a native object from an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.

multi method new ( N-Object() :$native-object! )
Code

new-stringobject§

Wraps a string in an object for use with Gnome::Gio::R-ListModel.

method new-stringobject ( Str $string --> Gnome::Gtk4::StringObject )
Code
  • $string; The string to wrap.

Methods§

get-string§

Returns the string contained in a Gnome::Gtk4::StringObject.

method get-string ( --> Str )
Code

Return value; the string of object