Package org.gnome.pango
Class AttrClass
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.pango.AttrClass
- All Implemented Interfaces:
Proxy
The
PangoAttrClass
structure stores the type and operations for
a particular type of attribute.
The functions in this structure should not be called directly. Instead,
one should use the wrapper functions provided for PangoAttribute
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Functional interface declaration of theCopyCallback
callback.static interface
Functional interface declaration of theDestroyCallback
callback.static interface
Functional interface declaration of theEqualCallback
callback. -
Constructor Summary
ConstructorDescriptionAllocate a new AttrClass.Allocate a new AttrClass.AttrClass
(MemorySegment address) Create a AttrClass proxy instance for the provided memory address.AttrClass
(AttrType type, AttrClass.CopyCallback copy, AttrClass.DestroyCallback destroy, AttrClass.EqualCallback equal) Allocate a new AttrClass with the fields set to the provided values.AttrClass
(AttrType type, AttrClass.CopyCallback copy, AttrClass.DestroyCallback destroy, AttrClass.EqualCallback equal, Arena arena) Allocate a new AttrClass with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.void
overrideCopy
(AttrClass.CopyCallback copy, Arena _arena) Write a value in the fieldcopy
.void
overrideDestroy
(AttrClass.DestroyCallback destroy, Arena _arena) Write a value in the fielddestroy
.void
overrideEqual
(AttrClass.EqualCallback equal, Arena _arena) Write a value in the fieldequal
.readType()
Read the value of the fieldtype
.void
Write a value in the fieldtype
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
AttrClass
Create a AttrClass proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
AttrClass
Allocate a new AttrClass.- Parameters:
arena
- to control the memory allocation scope
-
AttrClass
public AttrClass()Allocate a new AttrClass. The memory is allocated withArena.ofAuto()
. -
AttrClass
public AttrClass(AttrType type, AttrClass.CopyCallback copy, AttrClass.DestroyCallback destroy, AttrClass.EqualCallback equal, Arena arena) Allocate a new AttrClass with the fields set to the provided values.- Parameters:
type
- value for the fieldtype
copy
- callback function for the fieldcopy
destroy
- callback function for the fielddestroy
equal
- callback function for the fieldequal
arena
- to control the memory allocation scope
-
AttrClass
public AttrClass(AttrType type, AttrClass.CopyCallback copy, AttrClass.DestroyCallback destroy, AttrClass.EqualCallback equal) Allocate a new AttrClass with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
type
- value for the fieldtype
copy
- callback function for the fieldcopy
destroy
- callback function for the fielddestroy
equal
- callback function for the fieldequal
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readType
-
writeType
Write a value in the fieldtype
.- Parameters:
type
- The new value for the fieldtype
-
overrideCopy
Write a value in the fieldcopy
.- Parameters:
copy
- The new value for the fieldcopy
_arena
- to control the memory allocation scope
-
overrideDestroy
Write a value in the fielddestroy
.- Parameters:
destroy
- The new value for the fielddestroy
_arena
- to control the memory allocation scope
-
overrideEqual
Write a value in the fieldequal
.- Parameters:
equal
- The new value for the fieldequal
_arena
- to control the memory allocation scope
-