Class Hover
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gobject.GObject
org.gnome.gtksourceview.Hover
- All Implemented Interfaces:
Proxy
Interactive tooltips.
GtkSourceHover allows a View to provide contextual information.
When enabled, if the user hovers over a word in the text editor, a series
of registered HoverProvider can populate a HoverDisplay
with useful information.
To enable call View.getHover() and add HoverProvider
using addProvider(HoverProvider). To disable, remove all registered
providers with removeProvider(HoverProvider).
You can change how long to wait to display the interactive tooltip by
setting the Hover:hover-delay property in milliseconds.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classHover.Builder<B extends Hover.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.static classNested classes/interfaces inherited from class GObject
GObject.NotifyCallback, GObject.ObjectClass -
Constructor Summary
ConstructorsConstructorDescriptionHover()Create a new Hover.Hover(MemorySegment address) Create a Hover instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProvider(HoverProvider provider) protected HoverasParent()Return this instance as if it were its parent type.static Hover.Builder<? extends Hover.Builder> builder()AHover.Builderobject constructs aHoverwith the specified properties.static MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the Hover class.voidremoveProvider(HoverProvider 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
-
Hover
Create a Hover instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
Hover
public Hover()Create a new Hover.
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
-
addProvider
-
removeProvider
-
builder
AHover.Builderobject constructs aHoverwith the specified properties. Use the variousset...()methods to set properties, and finish construction withHover.Builder.build().- Returns:
- the builder object
-