Package org.gnome.gtksourceview
Interface HoverProvider
- All Superinterfaces:
Proxy
- All Known Implementing Classes:
HoverProvider.HoverProviderImpl
Interface to populate interactive tooltips.
GtkSourceHoverProvider
is an interface that should be implemented to extend
the contents of a HoverDisplay
. This is typical in editors that
interact external tooling such as those utilizing Language Server Protocol.
If you can populate the HoverDisplay
synchronously, use
HoverProvider#populate
. Otherwise, interface implementations that
may take additional time should use populateAsync(org.gnome.gtksourceview.HoverContext, org.gnome.gtksourceview.HoverDisplay, org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback)
to avoid blocking the main loop.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
The HoverProviderImpl type represents a native instance of the HoverProvider interface.static class
-
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the HoverProvider classdefault void
populateAsync
(HoverContext context, HoverDisplay display, @Nullable Cancellable cancellable, @Nullable AsyncReadyCallback callback) default boolean
populateFinish
(AsyncResult result)
-
Method Details
-
getType
-
populateAsync
default void populateAsync(HoverContext context, HoverDisplay display, @Nullable @Nullable Cancellable cancellable, @Nullable @Nullable AsyncReadyCallback callback) -
populateFinish
- Throws:
GErrorException
-