Class Annotations
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gobject.GObject
org.gnome.gtksourceview.Annotations
- All Implemented Interfaces:
Proxy
Use this object to manage Annotations. Each View has a single annotation
manager and it is guaranteed to be the same for the lifetime of View.
Add AnnotationProviders with addProvider(AnnotationProvider) to
display all the annotations added to each AnnotationProvider.
- Since:
- 5.18
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classAnnotations.Builder<B extends Annotations.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.static interfaceFunctional interface declaration of theChangedCallbackcallback.Nested classes/interfaces inherited from class GObject
GObject.NotifyCallback, GObject.ObjectClass -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new Annotations.Annotations(MemorySegment address) Create a Annotations instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProvider(AnnotationProvider provider) Adds a new annotation provider.protected AnnotationsasParent()Return this instance as if it were its parent type.static Annotations.Builder<? extends Annotations.Builder> builder()AAnnotations.Builderobject constructs aAnnotationswith the specified properties.voidstatic MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the Annotations class.onChanged(Annotations.ChangedCallback handler) booleanremoveProvider(AnnotationProvider provider) Removes a provider.Methods 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, unref, watchClosure, weakRef, weakUnref, withPropertiesMethods inherited from class TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
Annotations
Create a Annotations instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
Annotations
public Annotations()Create a new Annotations.
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
Return this instance as if it were its parent type. Comparable to the Javasuperkeyword, but ensures the parent typeclass is also used in native code. -
addProvider
Adds a new annotation provider.- Parameters:
provider- aGtkSourceAnnotationProvider.
-
removeProvider
Removes a provider.- Parameters:
provider- aGtkSourceAnnotationProvider.- Returns:
trueif the provider was found and removed
-
onChanged
- See Also:
-
emitChanged
public void emitChanged() -
builder
AAnnotations.Builderobject constructs aAnnotationswith the specified properties. Use the variousset...()methods to set properties, and finish construction withAnnotations.Builder.build().- Returns:
- the builder object
-