Package org.gnome.pango
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 org.gnome.gobject.GObject
GObject.NotifyCallback, GObject.ObjectClass -
Field Summary
Fields inherited from class org.javagi.base.ProxyInstance
address -
Constructor Summary
ConstructorsConstructorDescriptionCoverage()Creates a new Coverage.Coverage(MemorySegment address) Create a Coverage proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionprotected CoverageasParent()Returns 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 CoveragefromBytes(byte[] bytes) Deprecated.get(int index) Determine whether a particular index is covered by this Coverage.static TypegetType()Get the GType of the Coverage classvoidDeprecated.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 org.gnome.gobject.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, getMemoryLayout, 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 org.gnome.gobject.TypeInstance
callParent, callParent, getPrivate, readGClass, writeGClassMethods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
Coverage
Create a Coverage proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
Coverage
public Coverage()Creates a new Coverage.
-
-
Method Details
-
getType
-
asParent
Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuperkeyword, but will set the native typeclass function pointers to the parent type. When overriding a native virtual method in Java, "chaining up" withsuper.methodName()doesn't work, because it invokes the overridden function pointer again. To chain up, callasParent().methodName(). This will call the native function pointer of this virtual method in the typeclass of the parent type. -
fromBytes
Deprecated.This returnsnullConvert data generated fromtoBytes(org.javagi.base.Out<byte[]>)back to aPangoCoverage.- Parameters:
bytes- binary data representing aPangoCoverage- Returns:
- a newly allocated
PangoCoverage
-
copy
-
get
Determine whether a particular index is covered by this Coverage.- 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 thePangoCoverageby 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().
-
null