Package org.gnome.gio
Class FileAttributeInfo
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gio.FileAttributeInfo
-
Constructor Summary
ConstructorDescriptionAllocate a new FileAttributeInfo.FileAttributeInfo
(Arena arena) Allocate a new FileAttributeInfo.FileAttributeInfo
(MemorySegment address) Create a FileAttributeInfo proxy instance for the provided memory address.FileAttributeInfo
(String name, FileAttributeType type, Set<FileAttributeInfoFlags> flags) Allocate a new FileAttributeInfo with the fields set to the provided values.FileAttributeInfo
(String name, FileAttributeType type, Set<FileAttributeInfoFlags> flags, Arena arena) Allocate a new FileAttributeInfo 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 fieldflags
.readName()
Read the value of the fieldname
.readType()
Read the value of the fieldtype
.void
writeFlags
(Set<FileAttributeInfoFlags> flags) Write a value in the fieldflags
.void
Write a value in the fieldname
.void
writeType
(FileAttributeType type) Write a value in the fieldtype
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
FileAttributeInfo
Create a FileAttributeInfo proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
FileAttributeInfo
Allocate a new FileAttributeInfo.- Parameters:
arena
- to control the memory allocation scope
-
FileAttributeInfo
public FileAttributeInfo()Allocate a new FileAttributeInfo. The memory is allocated withArena.ofAuto()
. -
FileAttributeInfo
public FileAttributeInfo(String name, FileAttributeType type, Set<FileAttributeInfoFlags> flags, Arena arena) Allocate a new FileAttributeInfo with the fields set to the provided values.- Parameters:
name
- value for the fieldname
type
- value for the fieldtype
flags
- value for the fieldflags
arena
- to control the memory allocation scope
-
FileAttributeInfo
Allocate a new FileAttributeInfo with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
name
- value for the fieldname
type
- value for the fieldtype
flags
- value for the fieldflags
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readName
-
writeName
-
readType
Read the value of the fieldtype
.- Returns:
- The value of the field
type
-
writeType
Write a value in the fieldtype
.- Parameters:
type
- The new value for the fieldtype
-
readFlags
Read the value of the fieldflags
.- Returns:
- The value of the field
flags
-
writeFlags
Write a value in the fieldflags
.- Parameters:
flags
- The new value for the fieldflags
-