Class InitiallyUnowned

All Implemented Interfaces:
Proxy
Direct Known Subclasses:
Adjustment, BackForwardListItem, CellArea, CellRenderer, ContextMenuItem, ContextMenuItem, GstObject, SnippetChunk, TreeViewColumn, UserMessage, UserMessage, Widget

@Generated("org.javagi.JavaGI") public class InitiallyUnowned extends GObject

A type for objects that have an initially floating reference.

All the fields in the GInitiallyUnowned structure are private to the implementation and should never be accessed directly.

  • Constructor Details

    • InitiallyUnowned

      public InitiallyUnowned(MemorySegment address)
      Create a InitiallyUnowned instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • InitiallyUnowned

      public InitiallyUnowned()
      Create a new InitiallyUnowned.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the InitiallyUnowned class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected InitiallyUnowned asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class GObject
      Returns:
      the instance as if it were its parent type
    • builder

      public static InitiallyUnowned.Builder<? extends InitiallyUnowned.Builder> builder()
      A InitiallyUnowned.Builder object constructs a InitiallyUnowned with the specified properties. Use the various set...() methods to set properties, and finish construction with InitiallyUnowned.Builder.build().
      Returns:
      the builder object