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

GI.GtkSource.Objects.CompletionContext

Description

No description available in the introspection data.

Synopsis

Exported types

newtype CompletionContext Source #

Memory-managed wrapper type.

Constructors

CompletionContext (ManagedPtr CompletionContext) 

Instances

Instances details
Eq CompletionContext Source # 
Instance details

Defined in GI.GtkSource.Objects.CompletionContext

GObject CompletionContext Source # 
Instance details

Defined in GI.GtkSource.Objects.CompletionContext

ManagedPtrNewtype CompletionContext Source # 
Instance details

Defined in GI.GtkSource.Objects.CompletionContext

TypedObject CompletionContext Source # 
Instance details

Defined in GI.GtkSource.Objects.CompletionContext

Methods

glibType :: IO GType

HasParentTypes CompletionContext Source # 
Instance details

Defined in GI.GtkSource.Objects.CompletionContext

IsGValue (Maybe CompletionContext) Source #

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

Instance details

Defined in GI.GtkSource.Objects.CompletionContext

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes CompletionContext Source # 
Instance details

Defined in GI.GtkSource.Objects.CompletionContext

type ParentTypes CompletionContext = '[Object]

class (GObject o, IsDescendantOf CompletionContext o) => IsCompletionContext o Source #

Type class for types which can be safely cast to CompletionContext, for instance with toCompletionContext.

Instances

Instances details
(GObject o, IsDescendantOf CompletionContext o) => IsCompletionContext o Source # 
Instance details

Defined in GI.GtkSource.Objects.CompletionContext

toCompletionContext :: (MonadIO m, IsCompletionContext o) => o -> m CompletionContext Source #

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

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

The completion activation

constructCompletionContextActivation :: (IsCompletionContext o, MonadIO m) => [CompletionActivation] -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “activation” property. This is rarely needed directly, but it is used by new.

getCompletionContextActivation :: (MonadIO m, IsCompletionContext o) => o -> m [CompletionActivation] Source #

Get the value of the “activation” property. When overloading is enabled, this is equivalent to

get completionContext #activation

setCompletionContextActivation :: (MonadIO m, IsCompletionContext o) => o -> [CompletionActivation] -> m () Source #

Set the value of the “activation” property. When overloading is enabled, this is equivalent to

set completionContext [ #activation := value ]

completion

The Completion associated with the context.

constructCompletionContextCompletion :: (IsCompletionContext o, MonadIO m, IsCompletion a) => a -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “completion” property. This is rarely needed directly, but it is used by new.

getCompletionContextCompletion :: (MonadIO m, IsCompletionContext o) => o -> m (Maybe Completion) Source #

Get the value of the “completion” property. When overloading is enabled, this is equivalent to

get completionContext #completion

iter

The TextIter at which the completion is invoked.

clearCompletionContextIter :: (MonadIO m, IsCompletionContext o) => o -> m () Source #

Set the value of the “iter” property to Nothing. When overloading is enabled, this is equivalent to

clear #iter

constructCompletionContextIter :: (IsCompletionContext o, MonadIO m) => TextIter -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “iter” property. This is rarely needed directly, but it is used by new.

getCompletionContextIter :: (MonadIO m, IsCompletionContext o) => o -> m (Maybe TextIter) Source #

Get the value of the “iter” property. When overloading is enabled, this is equivalent to

get completionContext #iter

setCompletionContextIter :: (MonadIO m, IsCompletionContext o) => o -> TextIter -> m () Source #

Set the value of the “iter” property. When overloading is enabled, this is equivalent to

set completionContext [ #iter := value ]

Signals

cancelled

type CompletionContextCancelledCallback = IO () Source #

Emitted when the current population of proposals has been cancelled. Providers adding proposals asynchronously should connect to this signal to know when to cancel running proposal queries.

afterCompletionContextCancelled :: (IsCompletionContext a, MonadIO m) => a -> ((?self :: a) => CompletionContextCancelledCallback) -> m SignalHandlerId Source #

Connect a signal handler for the cancelled signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after completionContext #cancelled callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onCompletionContextCancelled :: (IsCompletionContext a, MonadIO m) => a -> ((?self :: a) => CompletionContextCancelledCallback) -> m SignalHandlerId Source #

Connect a signal handler for the cancelled signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on completionContext #cancelled callback