Package org.gnome.glib
Class DebugKey
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.glib.DebugKey
- All Implemented Interfaces:
Proxy
Associates a string with a bit flag.
Used in g_parse_debug_string().
-
Constructor Summary
ConstructorDescriptionDebugKey()
Allocate a new DebugKey.Allocate a new DebugKey.DebugKey
(MemorySegment address) Create a DebugKey proxy instance for the provided memory address.Allocate a new DebugKey with the fields set to the provided values.Allocate a new DebugKey with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.readKey()
Read the value of the fieldkey
.int
Read the value of the fieldvalue
.void
Write a value in the fieldkey
.void
writeValue
(int value) Write a value in the fieldvalue
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
DebugKey
Create a DebugKey proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
DebugKey
Allocate a new DebugKey.- Parameters:
arena
- to control the memory allocation scope
-
DebugKey
public DebugKey()Allocate a new DebugKey. The memory is allocated withArena.ofAuto()
. -
DebugKey
-
DebugKey
Allocate a new DebugKey with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
key
- value for the fieldkey
value
- value for the fieldvalue
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readKey
-
writeKey
-
readValue
public int readValue()Read the value of the fieldvalue
.- Returns:
- The value of the field
value
-
writeValue
public void writeValue(int value) Write a value in the fieldvalue
.- Parameters:
value
- The new value for the fieldvalue
-