Class Coverage
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gobject.GObject
org.gnome.pango.Coverage
- All Implemented Interfaces:
Proxy
A PangoCoverage structure is a map from Unicode characters
to Pango.CoverageLevel values.
It is often necessary in Pango to determine if a particular
font can represent a particular character, and also how well
it can represent that character. The PangoCoverage is a data
structure that is used to represent that information. It is an
opaque structure with no public fields.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCoverage.Builder<B extends Coverage.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Nested classes/interfaces inherited from class GObject
GObject.NotifyCallback, GObject.ObjectClass -
Constructor Summary
ConstructorsConstructorDescriptionCoverage()Create a new Coverage.Coverage(MemorySegment address) Create a Coverage instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionprotected CoverageasParent()Return this instance as if it were its parent type.static Coverage.Builder<? extends Coverage.Builder> builder()ACoverage.Builderobject constructs aCoveragewith the specified properties.copy()Copy an existingPangoCoverage.static @Nullable CoveragefromBytes(@Nullable byte @Nullable [] bytes) Deprecated.get(int index) Determine whether a particular index is covered bycoverage.static MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the Coverage class.voidDeprecated.This function does nothingvoidset(int index, CoverageLevel level) Modify a particular index within this CoveragevoidDeprecated.This returnsnullvoidunref()Deprecated.Use g_object_unref insteadMethods inherited from class GObject
addToggleRef, addWeakPointer, bindProperty, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, connect, constructed, disconnect, dispatchPropertiesChanged, dispose, dupData, dupQdata, emit, emitNotify, finalize_, forceFloating, freezeNotify, get, getData, getProperty, getProperty, getProperty, getQdata, getv, interfaceFindProperty, interfaceInstallProperty, interfaceListProperties, isFloating, newInstance, newInstance, newv, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, removeWeakPointer, replaceData, replaceQdata, runDispose, set, setData, setDataFull, setProperty, setProperty, setProperty, setQdata, setQdataFull, setv, stealData, stealQdata, takeRef, thawNotify, watchClosure, weakRef, weakUnref, withPropertiesMethods inherited from class TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
Coverage
Create a Coverage instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
Coverage
public Coverage()Create a new Coverage.
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
-
fromBytes
Deprecated.This returnsnullConvert data generated fromtoBytes(Out)back to aPangoCoverage.- Parameters:
bytes- binary data representing aPangoCoverage- Returns:
- a newly allocated
PangoCoverage
-
copy
-
get
Determine whether a particular index is covered bycoverage.- Parameters:
index- the index to check- Returns:
- the coverage level of this Coverage for character
index.
-
max
Deprecated.This function does nothingSet the coverage for each index in this Coverage to be the max (better) value of the current coverage for the index and the coverage for the corresponding index inother.- Parameters:
other- anotherPangoCoverage
-
set
Modify a particular index within this Coverage- Parameters:
index- the index to modifylevel- the new level forindex
-
toBytes
Deprecated.This returnsnullConvert aPangoCoveragestructure into a flat binary format.- Parameters:
bytes- location to store result (must be freed with g_free())
-
unref
Deprecated.Use g_object_unref insteadDecrease the reference count on the
PangoCoverageby one.If the result is zero, free the coverage and all associated memory.
-
builder
ACoverage.Builderobject constructs aCoveragewith the specified properties. Use the variousset...()methods to set properties, and finish construction withCoverage.Builder.build().- Returns:
- the builder object
-
null