gtksource.completion
Module for [Completion] class
Types 3
Methods
CompletionGidBuilder builder() static nothrowGet builder for [gtksource.completion.Completion] Returns: New builder objectuint accelerators() @property nothrowGet `accelerators` property. Returns: Number of keyboard accelerators to show for the first proposals. For example, to activate the first proposal, the user can press <keycombo><keycap>Alt</keycap>...void accelerators(uint propval) @property nothrowSet `accelerators` property. Params: propval = Number of keyboard accelerators to show for the first proposals. For example, to activate the first proposal, the user can press <keycombo><keycap>Alt...uint autoCompleteDelay() @property nothrowGet `autoCompleteDelay` property. Returns: Determines the popup delay (in milliseconds) at which the completion will be shown for interactive completion.void autoCompleteDelay(uint propval) @property nothrowSet `autoCompleteDelay` property. Params: propval = Determines the popup delay (in milliseconds) at which the completion will be shown for interactive completion.uint proposalPageSize() @property nothrowGet `proposalPageSize` property. Returns: The scroll page size of the proposals in the completion window. In other words, when <keycap>PageDown</keycap> or <keycap>PageUp</keycap> is pressed, the s...void proposalPageSize(uint propval) @property nothrowSet `proposalPageSize` property. Params: propval = The scroll page size of the proposals in the completion window. In other words, when <keycap>PageDown</keycap> or <keycap>PageUp</keycap> is press...uint providerPageSize() @property nothrowGet `providerPageSize` property. Returns: The scroll page size of the provider pages in the completion window.void providerPageSize(uint propval) @property nothrowSet `providerPageSize` property. Params: propval = The scroll page size of the provider pages in the completion window.bool rememberInfoVisibility() @property nothrowGet `rememberInfoVisibility` property. Returns: Determines whether the visibility of the info window should be saved when the completion is hidden, and restored when the completion is shown again.void rememberInfoVisibility(bool propval) @property nothrowSet `rememberInfoVisibility` property. Params: propval = Determines whether the visibility of the info window should be saved when the completion is hidden, and restored when the completion is show...bool selectOnShow() @property nothrowGet `selectOnShow` property. Returns: Determines whether the first proposal should be selected when the completion is first shown.void selectOnShow(bool propval) @property nothrowSet `selectOnShow` property. Params: propval = Determines whether the first proposal should be selected when the completion is first shown.bool showHeaders() @property nothrowGet `showHeaders` property. Returns: Determines whether provider headers should be shown in the proposal list. It can be useful to disable when there is only one provider.void showHeaders(bool propval) @property nothrowSet `showHeaders` property. Params: propval = Determines whether provider headers should be shown in the proposal list. It can be useful to disable when there is only one provider.bool showIcons() @property nothrowGet `showIcons` property. Returns: Determines whether provider and proposal icons should be shown in the completion popup.void showIcons(bool propval) @property nothrowSet `showIcons` property. Params: propval = Determines whether provider and proposal icons should be shown in the completion popup.gtksource.view.View view() @property nothrowGet `view` property. Returns: The #GtkSourceView bound to the completion object.bool addProvider(gtksource.completion_provider.CompletionProvider provider)Add a new #GtkSourceCompletionProvider to the completion object. This will add a reference provider, so make sure to unref your own copy when you no longer need it.void blockInteractive() nothrowBlock interactive completion. This can be used to disable interactive completion when inserting or deleting text from the buffer associated with the completion. Use [gtksource.completion.Completion...gtksource.completion_context.CompletionContext createContext(gtk.text_iter.TextIter position = null) nothrowCreate a new #GtkSourceCompletionContext for completion. The position where the completion occurs can be specified by position. If position is null, the current cursor position will be used.gtksource.completion_info.CompletionInfo getInfoWindow() nothrowThe info widget is the window where the completion displays optional extra information of the proposal. Returns: The #GtkSourceCompletionInfo window associated with completion.gtksource.completion_provider.CompletionProvider[] getProviders() nothrowGet list of providers registered on completion. The returned list is owned by the completion and should not be freed. Returns: list of #GtkSourceCompletionProvider.gtksource.view.View getView() nothrowThe #GtkSourceView associated with completion, or null if the view has been destroyed. Returns: The #GtkSourceView associated with completion, or null.bool removeProvider(gtksource.completion_provider.CompletionProvider provider)Remove provider from the completion.bool start(gtksource.completion_provider.CompletionProvider[] providers, gtksource.completion_context.CompletionContext context) nothrowStarts a new completion with the specified #GtkSourceCompletionContext and a list of potential candidate providers for completion.void unblockInteractive() nothrowUnblock interactive completion. This can be used after using [gtksource.completion.Completion.blockInteractive] to enable interactive completion again.gulong connectActivateProposal(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtksource.completion.Completion)))
&& Parameters!T.length < 2) nothrowConnect to `ActivateProposal` signal.gulong connectHide(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtksource.completion.Completion)))
&& Parameters!T.length < 2) nothrowConnect to `Hide` signal.gulong connectMoveCursor(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == gtk.types.ScrollStep)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == int)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gtksource.completion.Completion)))
&& Parameters!T.length < 4) nothrowConnect to `MoveCursor` signal.gulong connectMovePage(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == gtk.types.ScrollStep)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == int)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gtksource.completion.Completion)))
&& Parameters!T.length < 4) nothrowConnect to `MovePage` signal.gulong connectPopulateContext(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtksource.completion_context.CompletionContext)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtksource.completion.Completion)))
&& Parameters!T.length < 3) nothrowConnect to `PopulateContext` signal.gulong connectShow(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtksource.completion.Completion)))
&& Parameters!T.length < 2) nothrowConnect to `Show` signal.classCompletionGidBuilderImpl(T) : gobject.object.ObjectWrapGidBuilderImpl!T, gtk.buildable.BuildableGidBuilderImpl!T
Fluent builder implementation template for gtksource.completion.Completion
Methods
T accelerators(uint propval) nothrowSet `accelerators` property. Params: propval = Number of keyboard accelerators to show for the first proposals. For example, to activate the first proposal, the user can press <keycombo><keycap>Alt...T autoCompleteDelay(uint propval) nothrowSet `autoCompleteDelay` property. Params: propval = Determines the popup delay (in milliseconds) at which the completion will be shown for interactive completion. Returns: Builder instance for flue...T proposalPageSize(uint propval) nothrowSet `proposalPageSize` property. Params: propval = The scroll page size of the proposals in the completion window. In other words, when <keycap>PageDown</keycap> or <keycap>PageUp</keycap> is press...T providerPageSize(uint propval) nothrowSet `providerPageSize` property. Params: propval = The scroll page size of the provider pages in the completion window.T rememberInfoVisibility(bool propval) nothrowSet `rememberInfoVisibility` property. Params: propval = Determines whether the visibility of the info window should be saved when the completion is hidden, and restored when the completion is show...T selectOnShow(bool propval) nothrowSet `selectOnShow` property. Params: propval = Determines whether the first proposal should be selected when the completion is first shown. Returns: Builder instance for fluent chainingT showHeaders(bool propval) nothrowSet `showHeaders` property. Params: propval = Determines whether provider headers should be shown in the proposal list. It can be useful to disable when there is only one provider. Returns: Builder...T showIcons(bool propval) nothrowSet `showIcons` property. Params: propval = Determines whether provider and proposal icons should be shown in the completion popup. Returns: Builder instance for fluent chainingT view(gtksource.view.View propval) nothrowSet `view` property. Params: propval = The #GtkSourceView bound to the completion object. Returns: Builder instance for fluent chainingFluent builder for gtksource.completion.Completion
Methods