Package org.gnome.gio
Class DBusSubtreeVTable
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gio.DBusSubtreeVTable
- All Implemented Interfaces:
Proxy
Virtual table for handling subtrees registered with g_dbus_connection_register_subtree().
-
Constructor Summary
ConstructorDescriptionAllocate a new DBusSubtreeVTable.DBusSubtreeVTable
(Arena arena) Allocate a new DBusSubtreeVTable.DBusSubtreeVTable
(MemorySegment address) Create a DBusSubtreeVTable proxy instance for the provided memory address.DBusSubtreeVTable
(DBusSubtreeEnumerateFunc enumerate, DBusSubtreeIntrospectFunc introspect, DBusSubtreeDispatchFunc dispatch) Allocate a new DBusSubtreeVTable with the fields set to the provided values.DBusSubtreeVTable
(DBusSubtreeEnumerateFunc enumerate, DBusSubtreeIntrospectFunc introspect, DBusSubtreeDispatchFunc dispatch, Arena arena) Allocate a new DBusSubtreeVTable with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.Read the value of the fielddispatch
.Read the value of the fieldenumerate
.Read the value of the fieldintrospect
.void
writeDispatch
(DBusSubtreeDispatchFunc dispatch, Arena _arena) Write a value in the fielddispatch
.void
writeEnumerate
(DBusSubtreeEnumerateFunc enumerate, Arena _arena) Write a value in the fieldenumerate
.void
writeIntrospect
(DBusSubtreeIntrospectFunc introspect, Arena _arena) Write a value in the fieldintrospect
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
DBusSubtreeVTable
Create a DBusSubtreeVTable proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
DBusSubtreeVTable
Allocate a new DBusSubtreeVTable.- Parameters:
arena
- to control the memory allocation scope
-
DBusSubtreeVTable
public DBusSubtreeVTable()Allocate a new DBusSubtreeVTable. The memory is allocated withArena.ofAuto()
. -
DBusSubtreeVTable
public DBusSubtreeVTable(DBusSubtreeEnumerateFunc enumerate, DBusSubtreeIntrospectFunc introspect, DBusSubtreeDispatchFunc dispatch, Arena arena) Allocate a new DBusSubtreeVTable with the fields set to the provided values.- Parameters:
enumerate
- value for the fieldenumerate
introspect
- value for the fieldintrospect
dispatch
- value for the fielddispatch
arena
- to control the memory allocation scope
-
DBusSubtreeVTable
public DBusSubtreeVTable(DBusSubtreeEnumerateFunc enumerate, DBusSubtreeIntrospectFunc introspect, DBusSubtreeDispatchFunc dispatch) Allocate a new DBusSubtreeVTable with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
enumerate
- value for the fieldenumerate
introspect
- value for the fieldintrospect
dispatch
- value for the fielddispatch
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readEnumerate
Read the value of the fieldenumerate
.- Returns:
- The value of the field
enumerate
-
writeEnumerate
Write a value in the fieldenumerate
.- Parameters:
enumerate
- The new value for the fieldenumerate
_arena
- to control the memory allocation scope
-
readIntrospect
Read the value of the fieldintrospect
.- Returns:
- The value of the field
introspect
-
writeIntrospect
Write a value in the fieldintrospect
.- Parameters:
introspect
- The new value for the fieldintrospect
_arena
- to control the memory allocation scope
-
readDispatch
Read the value of the fielddispatch
.- Returns:
- The value of the field
dispatch
-
writeDispatch
Write a value in the fielddispatch
.- Parameters:
dispatch
- The new value for the fielddispatch
_arena
- to control the memory allocation scope
-