Class CompletionWords
- Namespace
- GtkSource
- Assembly
- GtkSource-5.dll
public class CompletionWords : Object, CompletionProvider, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
CompletionWords
- Implements
- Inherited Members
Constructors
CompletionWords(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public CompletionWords(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
CompletionWords(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected CompletionWords(CreationData data)
Parameters
dataCreationData
CompletionWords(CompletionWordsHandle)
protected CompletionWords(CompletionWordsHandle handle)
Parameters
handleCompletionWordsHandle
Fields
MinimumWordSizePropertyDefinition
public static readonly Property<uint, CompletionWords> MinimumWordSizePropertyDefinition
Field Value
PriorityPropertyDefinition
public static readonly Property<int, CompletionWords> PriorityPropertyDefinition
Field Value
ProposalsBatchSizePropertyDefinition
public static readonly Property<uint, CompletionWords> ProposalsBatchSizePropertyDefinition
Field Value
ScanBatchSizePropertyDefinition
public static readonly Property<uint, CompletionWords> ScanBatchSizePropertyDefinition
Field Value
TitlePropertyDefinition
public static readonly Property<string?, CompletionWords> TitlePropertyDefinition
Field Value
Properties
MinimumWordSize
public uint MinimumWordSize { get; set; }
Property Value
Priority
public int Priority { get; set; }
Property Value
ProposalsBatchSize
public uint ProposalsBatchSize { get; set; }
Property Value
ScanBatchSize
public uint ScanBatchSize { get; set; }
Property Value
Title
public string? Title { get; set; }
Property Value
Methods
Activate(CompletionContext, CompletionProposal)
public void Activate(CompletionContext context, CompletionProposal proposal)
Parameters
contextCompletionContextproposalCompletionProposal
Display(CompletionContext, CompletionProposal, CompletionCell)
public void Display(CompletionContext context, CompletionProposal proposal, CompletionCell cell)
Parameters
contextCompletionContextproposalCompletionProposalcellCompletionCell
GetGType()
public static Type GetGType()
Returns
GetPriority(CompletionContext)
public int GetPriority(CompletionContext context)
Parameters
contextCompletionContext
Returns
GetTitle()
public string? GetTitle()
Returns
IsTrigger(TextIter, uint)
public bool IsTrigger(TextIter iter, uint ch)
Parameters
Returns
KeyActivates(CompletionContext, CompletionProposal, uint, ModifierType)
public bool KeyActivates(CompletionContext context, CompletionProposal proposal, uint keyval, ModifierType state)
Parameters
contextCompletionContextproposalCompletionProposalkeyvaluintstateModifierType
Returns
ListAlternates(CompletionContext, CompletionProposal)
public PtrArray? ListAlternates(CompletionContext context, CompletionProposal proposal)
Parameters
contextCompletionContextproposalCompletionProposal
Returns
New(string?)
public static CompletionWords New(string? title)
Parameters
titlestring
Returns
NewFromPointer(nint, bool)
Creates a new managed CompletionWords instance for a given pointer.
public static CompletionWords NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new CompletionWords and sets the properties specified by the construct arguments.
public static CompletionWords NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
PopulateFinish(AsyncResult)
public ListModel PopulateFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
Refilter(CompletionContext, ListModel)
public void Refilter(CompletionContext context, ListModel model)
Parameters
contextCompletionContextmodelListModel
Register(TextBuffer)
public void Register(TextBuffer buffer)
Parameters
bufferTextBuffer
Unregister(TextBuffer)
public void Unregister(TextBuffer buffer)
Parameters
bufferTextBuffer