Package org.gnome.gtksourceview
Interface HoverProvider
- All Superinterfaces:
Proxy
- All Known Implementing Classes:
HoverProvider.HoverProvider$Impl
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
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe HoverProvider$Impl type represents a native instance of the HoverProvider interface.static class -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable TypegetType()Get the GType of the HoverProvider classdefault voidpopulateAsync(HoverContext context, HoverDisplay display, @Nullable Cancellable cancellable, @Nullable AsyncReadyCallback callback) default booleanpopulateFinish(AsyncResult result)
-
Method Details
-
getType
-
populateAsync
default void populateAsync(HoverContext context, HoverDisplay display, @Nullable Cancellable cancellable, @Nullable AsyncReadyCallback callback) -
populateFinish
- Throws:
GErrorException
-