Package io.github.jwharm.javagi.gobject
Class Builder<S extends Builder>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<S>
- Type Parameters:
S
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Direct Known Subclasses:
GObject.Builder
Base class for all inner
Builder
classes inside GObject proxy
classes.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBuilderProperty
(String name, Value value) Add the provided property name and value to the buildervoid
connect
(String name, FunctionPointer callback) Add the provided signal to the buildervoid
connect
(String name, String detail, FunctionPointer callback) Add the provided detailed signal to the buildervoid
connectSignals
(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:
getArena
in interfaceBuilderInterface
- Returns:
- the arena for allocating memory in this builder
-
addBuilderProperty
Add the provided property name and value to the builder- Specified by:
addBuilderProperty
in interfaceBuilderInterface
- Parameters:
name
- name of the propertyvalue
- value of the property (aGValue
)
-
connect
Add the provided signal to the builder- Specified by:
connect
in interfaceBuilderInterface
- Parameters:
name
- the signal namecallback
- the signal callback
-
connect
Add the provided detailed signal to the builder- Specified by:
connect
in 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
-