Package org.gnome.glib
Class TestConfig
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.glib.TestConfig
- All Implemented Interfaces:
Proxy
-
Constructor Summary
ConstructorDescriptionAllocate a new TestConfig.TestConfig
(boolean testInitialized, boolean testQuick, boolean testPerf, boolean testVerbose, boolean testQuiet, boolean testUndefined) Allocate a new TestConfig with the fields set to the provided values.TestConfig
(boolean testInitialized, boolean testQuick, boolean testPerf, boolean testVerbose, boolean testQuiet, boolean testUndefined, Arena arena) Allocate a new TestConfig with the fields set to the provided values.TestConfig
(Arena arena) Allocate a new TestConfig.TestConfig
(MemorySegment address) Create a TestConfig proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.boolean
Read the value of the fieldtest_initialized
.boolean
Read the value of the fieldtest_perf
.boolean
Read the value of the fieldtest_quick
.boolean
Read the value of the fieldtest_quiet
.boolean
Read the value of the fieldtest_undefined
.boolean
Read the value of the fieldtest_verbose
.void
writeTestInitialized
(boolean testInitialized) Write a value in the fieldtest_initialized
.void
writeTestPerf
(boolean testPerf) Write a value in the fieldtest_perf
.void
writeTestQuick
(boolean testQuick) Write a value in the fieldtest_quick
.void
writeTestQuiet
(boolean testQuiet) Write a value in the fieldtest_quiet
.void
writeTestUndefined
(boolean testUndefined) Write a value in the fieldtest_undefined
.void
writeTestVerbose
(boolean testVerbose) Write a value in the fieldtest_verbose
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
TestConfig
Create a TestConfig proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
TestConfig
Allocate a new TestConfig.- Parameters:
arena
- to control the memory allocation scope
-
TestConfig
public TestConfig()Allocate a new TestConfig. The memory is allocated withArena.ofAuto()
. -
TestConfig
public TestConfig(boolean testInitialized, boolean testQuick, boolean testPerf, boolean testVerbose, boolean testQuiet, boolean testUndefined, Arena arena) Allocate a new TestConfig with the fields set to the provided values.- Parameters:
testInitialized
- value for the fieldtestInitialized
testQuick
- value for the fieldtestQuick
testPerf
- value for the fieldtestPerf
testVerbose
- value for the fieldtestVerbose
testQuiet
- value for the fieldtestQuiet
testUndefined
- value for the fieldtestUndefined
arena
- to control the memory allocation scope
-
TestConfig
public TestConfig(boolean testInitialized, boolean testQuick, boolean testPerf, boolean testVerbose, boolean testQuiet, boolean testUndefined) Allocate a new TestConfig with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
testInitialized
- value for the fieldtestInitialized
testQuick
- value for the fieldtestQuick
testPerf
- value for the fieldtestPerf
testVerbose
- value for the fieldtestVerbose
testQuiet
- value for the fieldtestQuiet
testUndefined
- value for the fieldtestUndefined
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readTestInitialized
public boolean readTestInitialized()Read the value of the fieldtest_initialized
.- Returns:
- The value of the field
test_initialized
-
writeTestInitialized
public void writeTestInitialized(boolean testInitialized) Write a value in the fieldtest_initialized
.- Parameters:
testInitialized
- The new value for the fieldtest_initialized
-
readTestQuick
public boolean readTestQuick()Read the value of the fieldtest_quick
.- Returns:
- The value of the field
test_quick
-
writeTestQuick
public void writeTestQuick(boolean testQuick) Write a value in the fieldtest_quick
.- Parameters:
testQuick
- The new value for the fieldtest_quick
-
readTestPerf
public boolean readTestPerf()Read the value of the fieldtest_perf
.- Returns:
- The value of the field
test_perf
-
writeTestPerf
public void writeTestPerf(boolean testPerf) Write a value in the fieldtest_perf
.- Parameters:
testPerf
- The new value for the fieldtest_perf
-
readTestVerbose
public boolean readTestVerbose()Read the value of the fieldtest_verbose
.- Returns:
- The value of the field
test_verbose
-
writeTestVerbose
public void writeTestVerbose(boolean testVerbose) Write a value in the fieldtest_verbose
.- Parameters:
testVerbose
- The new value for the fieldtest_verbose
-
readTestQuiet
public boolean readTestQuiet()Read the value of the fieldtest_quiet
.- Returns:
- The value of the field
test_quiet
-
writeTestQuiet
public void writeTestQuiet(boolean testQuiet) Write a value in the fieldtest_quiet
.- Parameters:
testQuiet
- The new value for the fieldtest_quiet
-
readTestUndefined
public boolean readTestUndefined()Read the value of the fieldtest_undefined
.- Returns:
- The value of the field
test_undefined
-
writeTestUndefined
public void writeTestUndefined(boolean testUndefined) Write a value in the fieldtest_undefined
.- Parameters:
testUndefined
- The new value for the fieldtest_undefined
-