Package org.gnome.pango
Class Coverage
java.lang.Object
io.github.jwharm.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
Modifier and TypeClassDescriptionstatic class
Coverage.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
-
Constructor Summary
ConstructorDescriptionCoverage()
Create a newPangoCoverage
Coverage
(MemorySegment address) Create a Coverage proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionprotected Coverage
asParent()
Returns this instance as if it were its parent type.static Coverage.Builder
<? extends Coverage.Builder> builder()
ACoverage.Builder
object constructs aCoverage
with the specified properties.copy()
Copy an existingPangoCoverage
.static Coverage
fromBytes
(byte[] bytes) Deprecated.get
(int index) Determine whether a particular index is covered by this Coverage.static Type
getType()
Get the GType of the Coverage classvoid
Deprecated.This function does nothingvoid
set
(int index, CoverageLevel level) Modify a particular index within this Coveragevoid
Deprecated.This returnsnull
void
unref()
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, 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, withProperties
Methods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, getPrivate, readGClass, writeGClass
Methods inherited from class io.github.jwharm.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()Create a newPangoCoverage
-
-
Method Details
-
getType
-
asParent
Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuper
keyword, 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 returnsnull
Convert data generated fromtoBytes(io.github.jwharm.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 returnsnull
Convert aPangoCoverage
structure 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 thePangoCoverage
by one.If the result is zero, free the coverage and all associated memory.
-
builder
ACoverage.Builder
object constructs aCoverage
with the specified properties. Use the variousset...()
methods to set properties, and finish construction withCoverage.Builder.build()
.
-
null