Package org.javagi.gobject
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBuilderProperty(String name, Value value) Add the provided property name and value to the buildervoidconnect(String name, @Nullable String detail, FunctionPointer callback) Add the provided detailed signal to the buildervoidconnect(String name, FunctionPointer callback) Add the provided signal to the buildervoidconnectSignals(MemorySegment handle) Connect the requested signals to the newly created objectgetArena()Get the arena for allocating memory in this builderString[]getNames()Get the property namesValue[]Get the property values
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
getArena
Get the arena for allocating memory in this builder- Specified by:
getArenain interfaceBuilderInterface- Returns:
- the arena for allocating memory in this builder
-
addBuilderProperty
Add the provided property name and value to the builder- Specified by:
addBuilderPropertyin interfaceBuilderInterface- Parameters:
name- name of the propertyvalue- value of the property (aGValue)
-
connect
Add the provided signal to the builder- Specified by:
connectin interfaceBuilderInterface- Parameters:
name- the signal namecallback- the signal callback
-
connect
Add the provided detailed signal to the builder- Specified by:
connectin interfaceBuilderInterface- Parameters:
name- the signal namedetail- the signal detailcallback- the signal callback
-
connectSignals
Connect the requested signals to the newly created object- Parameters:
handle- pointer to the newly created object
-
getNames
-
getValues
-