Class StringObject

All Implemented Interfaces:
PointerInterface

public class StringObject extends Object
`GtkStringObject` is the type of items in a `GtkStringList`.

A `GtkStringObject` is a wrapper around a `const char*`; it has
a [property@Gtk.StringObject:string] property.

https://docs.gtk.org/gtk4/class.StringObject.html

  • Constructor Details

    • StringObject

      public StringObject(PointerContainer pointer)
    • StringObject

      public StringObject(@Nonnull Str string)
      Wraps a string in an object for use with `GListModel`.
      Parameters:
      string - The string to wrap
    • StringObject

      public StringObject(String string)
      Wraps a string in an object for use with `GListModel`.
      Parameters:
      string - The string to wrap
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getString

      public Str getString()
      Returns the string contained in a `GtkStringObject`.
      Returns:
      the string of @self
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()