Package org.gnome.gtk
Class BuildableParser
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gtk.BuildableParser
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Functional interface declaration of theEndElementCallback
callback.static interface
Functional interface declaration of theErrorCallback
callback.static interface
Functional interface declaration of theStartElementCallback
callback.static interface
Functional interface declaration of theTextCallback
callback. -
Constructor Summary
ConstructorDescriptionAllocate a new BuildableParser.BuildableParser
(Arena arena) Allocate a new BuildableParser.BuildableParser
(MemorySegment address) Create a BuildableParser proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.void
overrideEndElement
(BuildableParser.EndElementCallback endElement, Arena _arena) Write a value in the fieldend_element
.void
overrideError
(BuildableParser.ErrorCallback error, Arena _arena) Write a value in the fielderror
.void
overrideStartElement
(BuildableParser.StartElementCallback startElement, Arena _arena) Write a value in the fieldstart_element
.void
overrideText
(BuildableParser.TextCallback text, Arena _arena) Write a value in the fieldtext
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
BuildableParser
Create a BuildableParser proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
BuildableParser
Allocate a new BuildableParser.- Parameters:
arena
- to control the memory allocation scope
-
BuildableParser
public BuildableParser()Allocate a new BuildableParser. The memory is allocated withArena.ofAuto()
.
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
overrideStartElement
Write a value in the fieldstart_element
.- Parameters:
startElement
- The new value for the fieldstart_element
_arena
- to control the memory allocation scope
-
overrideEndElement
Write a value in the fieldend_element
.- Parameters:
endElement
- The new value for the fieldend_element
_arena
- to control the memory allocation scope
-
overrideText
Write a value in the fieldtext
.- Parameters:
text
- The new value for the fieldtext
_arena
- to control the memory allocation scope
-
overrideError
Write a value in the fielderror
.- Parameters:
error
- The new value for the fielderror
_arena
- to control the memory allocation scope
-