Class BuildableParser

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gtk.BuildableParser
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class BuildableParser extends ProxyInstance
A sub-parser for GtkBuildable implementations.
  • Constructor Details

    • BuildableParser

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

      public BuildableParser(Arena arena)
      Allocate a new BuildableParser.
      Parameters:
      arena - to control the memory allocation scope
    • BuildableParser

      public BuildableParser()
      Allocate a new BuildableParser. The memory is allocated with Arena.ofAuto().
  • Method Details

    • getMemoryLayout

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

      public void overrideStartElement(BuildableParser.StartElementCallback startElement, Arena _arena)
      Write a value in the field start_element.
      Parameters:
      startElement - The new value for the field start_element
      _arena - to control the memory allocation scope
    • overrideEndElement

      public void overrideEndElement(BuildableParser.EndElementCallback endElement, Arena _arena)
      Write a value in the field end_element.
      Parameters:
      endElement - The new value for the field end_element
      _arena - to control the memory allocation scope
    • overrideText

      public void overrideText(BuildableParser.TextCallback text, Arena _arena)
      Write a value in the field text.
      Parameters:
      text - The new value for the field text
      _arena - to control the memory allocation scope
    • overrideError

      public void overrideError(BuildableParser.ErrorCallback error, Arena _arena)
      Write a value in the field error.
      Parameters:
      error - The new value for the field error
      _arena - to control the memory allocation scope