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.CompletionProposal

Description

Interface for completion proposals.

This interface is used to denote that an object is capable of being a completion proposal for [classcompletion].

Currently, no method or functions are required but additional methods may be added in the future. Proposals created by CompletionProvider can use GObject.IMPLEMENT_INTERFACE to implement this with Nothing for the interface init function.

Synopsis

Exported types

newtype CompletionProposal Source #

Memory-managed wrapper type.

Constructors

CompletionProposal (ManagedPtr CompletionProposal) 

Instances

Instances details
Eq CompletionProposal Source # 
Instance details

Defined in GI.GtkSource.Interfaces.CompletionProposal

GObject CompletionProposal Source # 
Instance details

Defined in GI.GtkSource.Interfaces.CompletionProposal

ManagedPtrNewtype CompletionProposal Source # 
Instance details

Defined in GI.GtkSource.Interfaces.CompletionProposal

TypedObject CompletionProposal Source # 
Instance details

Defined in GI.GtkSource.Interfaces.CompletionProposal

Methods

glibType :: IO GType

HasParentTypes CompletionProposal Source # 
Instance details

Defined in GI.GtkSource.Interfaces.CompletionProposal

IsGValue (Maybe CompletionProposal) Source #

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

Instance details

Defined in GI.GtkSource.Interfaces.CompletionProposal

type ParentTypes CompletionProposal Source # 
Instance details

Defined in GI.GtkSource.Interfaces.CompletionProposal

type ParentTypes CompletionProposal = '[Object]

class (GObject o, IsDescendantOf CompletionProposal o) => IsCompletionProposal o Source #

Type class for types which can be safely cast to CompletionProposal, for instance with toCompletionProposal.

Instances

Instances details
(GObject o, IsDescendantOf CompletionProposal o) => IsCompletionProposal o Source # 
Instance details

Defined in GI.GtkSource.Interfaces.CompletionProposal

toCompletionProposal :: (MonadIO m, IsCompletionProposal o) => o -> m CompletionProposal Source #

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

Methods

getTypedText

completionProposalGetTypedText Source #

Arguments

:: (HasCallStack, MonadIO m, IsCompletionProposal a) 
=> a

proposal: a CompletionProposal

-> m (Maybe Text)

Returns: a newly allocated string, or Nothing

Gets the typed-text for the proposal, if supported by the implementation.

Implementing this virtual-function is optional, but can be useful to allow external tooling to compare results.

Since: 5.6