Package org.gnome.pango
Class AttrClass
java.lang.Object
org.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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceFunctional interface declaration of theCopyCallbackcallback.static interfaceFunctional interface declaration of theDestroyCallbackcallback.static interfaceFunctional interface declaration of theEqualCallbackcallback. -
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.voidoverrideCopy(AttrClass.CopyCallback copy, Arena _arena) Write a value in the fieldcopy.voidoverrideDestroy(AttrClass.DestroyCallback destroy, Arena _arena) Write a value in the fielddestroy.voidoverrideEqual(AttrClass.EqualCallback equal, Arena _arena) Write a value in the fieldequal.readType()Read the value of the fieldtype.voidWrite a value in the fieldtype.Methods inherited from class org.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 fieldtypecopy- callback function for the fieldcopydestroy- callback function for the fielddestroyequal- callback function for the fieldequalarena- 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 fieldtypecopy- callback function for the fieldcopydestroy- callback function for the fielddestroyequal- 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
-