Package org.freedesktop.harfbuzz
Class SegmentProperties
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.harfbuzz.SegmentProperties
- All Implemented Interfaces:
Proxy
The structure that holds various text properties of an
hb_buffer_t
. Can be
set and retrieved using hb_buffer_set_segment_properties() and
hb_buffer_get_segment_properties(), respectively.-
Constructor Summary
ConstructorDescriptionAllocate a new SegmentProperties.SegmentProperties
(Arena arena) Allocate a new SegmentProperties.SegmentProperties
(MemorySegment address) Create a SegmentProperties proxy instance for the provided memory address.SegmentProperties
(Direction direction, Script script) Allocate a new SegmentProperties with the fields set to the provided values.SegmentProperties
(Direction direction, Script script, Arena arena) Allocate a new SegmentProperties with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.static Type
getType()
Get the GType of the SegmentProperties classRead the value of the fielddirection
.Read the value of the fieldscript
.void
writeDirection
(Direction direction) Write a value in the fielddirection
.void
writeScript
(Script script) Write a value in the fieldscript
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
SegmentProperties
Create a SegmentProperties proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
SegmentProperties
Allocate a new SegmentProperties.- Parameters:
arena
- to control the memory allocation scope
-
SegmentProperties
public SegmentProperties()Allocate a new SegmentProperties. The memory is allocated withArena.ofAuto()
. -
SegmentProperties
-
SegmentProperties
Allocate a new SegmentProperties with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
direction
- value for the fielddirection
script
- value for the fieldscript
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readDirection
Read the value of the fielddirection
.- Returns:
- The value of the field
direction
-
writeDirection
Write a value in the fielddirection
.- Parameters:
direction
- The new value for the fielddirection
-
readScript
Read the value of the fieldscript
.- Returns:
- The value of the field
script
-
writeScript
Write a value in the fieldscript
.- Parameters:
script
- The new value for the fieldscript
-