Class Builder<S extends Builder>

java.lang.Object
org.javagi.gobject.Builder<S>
Type Parameters:
S - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Direct Known Subclasses:
GObject.Builder

@NullMarked public abstract class Builder<S extends Builder> extends Object implements BuilderInterface
Base class for all inner Builder classes inside GObject proxy classes.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • getArena

      public Arena getArena()
      Get the arena for allocating memory in this builder
      Specified by:
      getArena in interface BuilderInterface
      Returns:
      the arena for allocating memory in this builder
    • addBuilderProperty

      public void addBuilderProperty(String name, Value value)
      Add the provided property name and value to the builder
      Specified by:
      addBuilderProperty in interface BuilderInterface
      Parameters:
      name - name of the property
      value - value of the property (a GValue)
    • connect

      public void connect(String name, FunctionPointer callback)
      Add the provided signal to the builder
      Specified by:
      connect in interface BuilderInterface
      Parameters:
      name - the signal name
      callback - the signal callback
    • connect

      public void connect(String name, @Nullable String detail, FunctionPointer callback)
      Add the provided detailed signal to the builder
      Specified by:
      connect in interface BuilderInterface
      Parameters:
      name - the signal name
      detail - the signal detail
      callback - the signal callback
    • connectSignals

      public void connectSignals(MemorySegment handle)
      Connect the requested signals to the newly created object
      Parameters:
      handle - pointer to the newly created object
    • getNames

      public String[] getNames()
      Get the property names
      Returns:
      a String array of property names
    • getValues

      public Value[] getValues()
      Get the property values
      Returns:
      a GValue array of property names