gi-gtksource-3.0.15: GtkSource bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GtkSource.Objects.CompletionContext

Contents

Description

 

Synopsis

Exported types

Methods

addProposals

completionContextAddProposals Source #

Arguments

:: (HasCallStack, MonadIO m, IsCompletionContext a, IsCompletionProvider b, IsCompletionProposal c) 
=> a

context: a CompletionContext.

-> b

provider: a CompletionProvider.

-> [c]

proposals: The list of proposals to add.

-> Bool

finished: Whether the provider is finished adding proposals.

-> m () 

Providers can use this function to add proposals to the completion. They can do so asynchronously by means of the finished argument. Providers must ensure that they always call this function with finished set to True once each population (even if no proposals need to be added). Population occurs when the completionProviderPopulate function is called.

getActivation

completionContextGetActivation Source #

Arguments

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

context: a CompletionContext.

-> m [CompletionActivation]

Returns: The context activation.

Get the context activation.

getIter

completionContextGetIter Source #

Arguments

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

context: a CompletionContext.

-> m (Bool, TextIter)

Returns: True if iter is correctly set, False otherwise.

Get the iter at which the completion was invoked. Providers can use this to determine how and if to match proposals.

Properties

activation

completion

iter

Signals

cancelled