gi-gtksource-5.0.0: GtkSource bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.GtkSource.Interfaces.HoverProvider

Description

Interface to populate interactive tooltips.

GtkSourceHoverProvider is an interface that should be implemented to extend the contents of a [classhoverDisplay]. This is typical in editors that interact external tooling such as those utilizing Language Server Protocol.

If you can populate the [classhoverDisplay] synchronously, use [vfunchoverProvider.populate]. Otherwise, interface implementations that may take additional time should use [vfunchoverProvider.populate_async] to avoid blocking the main loop.

Synopsis

Exported types

newtype HoverProvider Source #

Memory-managed wrapper type.

Constructors

HoverProvider (ManagedPtr HoverProvider) 

Instances

Instances details
Eq HoverProvider Source # 
Instance details

Defined in GI.GtkSource.Interfaces.HoverProvider

GObject HoverProvider Source # 
Instance details

Defined in GI.GtkSource.Interfaces.HoverProvider

ManagedPtrNewtype HoverProvider Source # 
Instance details

Defined in GI.GtkSource.Interfaces.HoverProvider

Methods

toManagedPtr :: HoverProvider -> ManagedPtr HoverProvider

TypedObject HoverProvider Source # 
Instance details

Defined in GI.GtkSource.Interfaces.HoverProvider

Methods

glibType :: IO GType

HasParentTypes HoverProvider Source # 
Instance details

Defined in GI.GtkSource.Interfaces.HoverProvider

IsGValue (Maybe HoverProvider) Source #

Convert HoverProvider to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.GtkSource.Interfaces.HoverProvider

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe HoverProvider -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe HoverProvider)

type ParentTypes HoverProvider Source # 
Instance details

Defined in GI.GtkSource.Interfaces.HoverProvider

type ParentTypes HoverProvider = '[Object]

class (GObject o, IsDescendantOf HoverProvider o) => IsHoverProvider o Source #

Type class for types which can be safely cast to HoverProvider, for instance with toHoverProvider.

Instances

Instances details
(GObject o, IsDescendantOf HoverProvider o) => IsHoverProvider o Source # 
Instance details

Defined in GI.GtkSource.Interfaces.HoverProvider

toHoverProvider :: (MonadIO m, IsHoverProvider o) => o -> m HoverProvider Source #

Cast to HoverProvider, for types for which this is known to be safe. For general casts, use castTo.

Methods

populateAsync

hoverProviderPopulateAsync :: (HasCallStack, MonadIO m, IsHoverProvider a, IsHoverContext b, IsHoverDisplay c, IsCancellable d) => a -> b -> c -> Maybe d -> Maybe AsyncReadyCallback -> m () Source #

No description available in the introspection data.

populateFinish

hoverProviderPopulateFinish Source #

Arguments

:: (HasCallStack, MonadIO m, IsHoverProvider a, IsAsyncResult b) 
=> a 
-> b 
-> m ()

(Can throw GError)

No description available in the introspection data.