Package org.gnome.gobject
Class TypeFundamentalInfo
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gobject.TypeFundamentalInfo
- All Implemented Interfaces:
Proxy
A structure that provides information to the type system which is
used specifically for managing fundamental types.
-
Constructor Summary
ConstructorDescriptionAllocate a new TypeFundamentalInfo.TypeFundamentalInfo
(Arena arena) Allocate a new TypeFundamentalInfo.TypeFundamentalInfo
(MemorySegment address) Create a TypeFundamentalInfo proxy instance for the provided memory address.TypeFundamentalInfo
(Set<TypeFundamentalFlags> typeFlags) Allocate a new TypeFundamentalInfo with the fields set to the provided values.TypeFundamentalInfo
(Set<TypeFundamentalFlags> typeFlags, Arena arena) Allocate a new TypeFundamentalInfo 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 fieldtype_flags
.void
writeTypeFlags
(Set<TypeFundamentalFlags> typeFlags) Write a value in the fieldtype_flags
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
TypeFundamentalInfo
Create a TypeFundamentalInfo proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
TypeFundamentalInfo
Allocate a new TypeFundamentalInfo.- Parameters:
arena
- to control the memory allocation scope
-
TypeFundamentalInfo
public TypeFundamentalInfo()Allocate a new TypeFundamentalInfo. The memory is allocated withArena.ofAuto()
. -
TypeFundamentalInfo
Allocate a new TypeFundamentalInfo with the fields set to the provided values.- Parameters:
typeFlags
- value for the fieldtypeFlags
arena
- to control the memory allocation scope
-
TypeFundamentalInfo
Allocate a new TypeFundamentalInfo with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
typeFlags
- value for the fieldtypeFlags
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readTypeFlags
Read the value of the fieldtype_flags
.- Returns:
- The value of the field
type_flags
-
writeTypeFlags
Write a value in the fieldtype_flags
.- Parameters:
typeFlags
- The new value for the fieldtype_flags
-