Foundry.CompletionRequest

g Foundry.CompletionRequest Foundry.CompletionRequest GObject.Object GObject.Object GObject.Object->Foundry.CompletionRequest

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

dup_file ()

dup_language_id ()

dup_word ()

get_activation ()

get_bounds ()

Virtual Methods

Inherited:

GObject.Object (7)

do_dup_file ()

do_dup_language_id ()

do_dup_word ()

do_get_activation ()

do_get_bounds ()

Properties

Name

Type

Flags

Short Description

word

str

r

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Foundry.CompletionRequest(**kwargs)
Bases:

GObject.Object

Abstract:

Yes

Structure:

Foundry.CompletionRequestClass

Represents a single completion request.

dup_file()
Return type:

Gio.File or None

Gets the file that is to be completed.

dup_language_id()
Returns:

the language identifier or None

Return type:

str or None

Gets the language identifier for the completion request, such as “c” or “js”.

The language identifiers are expected to match GtkSourceView language identifiers.

dup_word()
Returns:

the word to complete

Return type:

str or None

get_activation()
Return type:

Foundry.CompletionActivation

get_bounds()
Returns:

begin:

location for iter where completion started

end:

location for where completion request ended

Return type:

(begin: Foundry.TextIter or None, end: Foundry.TextIter or None)

This gets the bounds for the completion request.

Generally, begin will be right after a break character such as “.” and end will be where cursor is currently.

do_dup_file() virtual
Return type:

Gio.File or None

Gets the file that is to be completed.

do_dup_language_id() virtual
Returns:

the language identifier or None

Return type:

str or None

Gets the language identifier for the completion request, such as “c” or “js”.

The language identifiers are expected to match GtkSourceView language identifiers.

do_dup_word() virtual
Returns:

the word to complete

Return type:

str or None

do_get_activation() virtual
Return type:

Foundry.CompletionActivation

do_get_bounds() virtual
Returns:

begin:

location for iter where completion started

end:

location for where completion request ended

Return type:

(begin: Foundry.TextIter or None, end: Foundry.TextIter or None)

This gets the bounds for the completion request.

Generally, begin will be right after a break character such as “.” and end will be where cursor is currently.

Property Details

Foundry.CompletionRequest.props.word
Name:

word

Type:

str

Default Value:

None

Flags:

READABLE