Package org.gnome.glib
Class TestConfig
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.glib.TestConfig
- All Implemented Interfaces:
Proxy
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.booleanRead the value of the fieldtest_initialized.booleanRead the value of the fieldtest_perf.booleanRead the value of the fieldtest_quick.booleanRead the value of the fieldtest_quiet.booleanRead the value of the fieldtest_undefined.booleanRead the value of the fieldtest_verbose.voidwriteTestInitialized(boolean testInitialized) Write a value in the fieldtest_initialized.voidwriteTestPerf(boolean testPerf) Write a value in the fieldtest_perf.voidwriteTestQuick(boolean testQuick) Write a value in the fieldtest_quick.voidwriteTestQuiet(boolean testQuiet) Write a value in the fieldtest_quiet.voidwriteTestUndefined(boolean testUndefined) Write a value in the fieldtest_undefined.voidwriteTestVerbose(boolean testVerbose) Write a value in the fieldtest_verbose.Methods inherited from class org.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 fieldtestInitializedtestQuick- value for the fieldtestQuicktestPerf- value for the fieldtestPerftestVerbose- value for the fieldtestVerbosetestQuiet- value for the fieldtestQuiettestUndefined- value for the fieldtestUndefinedarena- 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 fieldtestInitializedtestQuick- value for the fieldtestQuicktestPerf- value for the fieldtestPerftestVerbose- value for the fieldtestVerbosetestQuiet- value for the fieldtestQuiettestUndefined- 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
-