Foundry.SymbolLocator

g Foundry.SymbolLocator Foundry.SymbolLocator GObject.Object GObject.Object GObject.Object->Foundry.SymbolLocator

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new_for_file (file)

class

new_for_file_and_line (file, line)

class

new_for_file_and_line_offset (file, line, line_offset)

class

new_for_file_and_pattern (file, pattern)

dup_file ()

get_line ()

get_line_offset ()

get_line_offset_set ()

get_line_set ()

get_pattern ()

locate (contents)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

file

Gio.File

r/w/co

line

int

r/w/co

line-offset

int

r/w/co

pattern

str

r/w/co

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Foundry.SymbolLocator(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Foundry.SymbolLocatorClass

classmethod new_for_file(file)
Parameters:

file (Gio.File) –

Return type:

Foundry.SymbolLocator

classmethod new_for_file_and_line(file, line)
Parameters:
Return type:

Foundry.SymbolLocator

classmethod new_for_file_and_line_offset(file, line, line_offset)
Parameters:
Return type:

Foundry.SymbolLocator

classmethod new_for_file_and_pattern(file, pattern)
Parameters:
Return type:

Foundry.SymbolLocator

dup_file()
Return type:

Gio.File or None

New in version 1.1.

get_line()
Return type:

int

get_line_offset()
Return type:

int

get_line_offset_set()
Return type:

bool

get_line_set()
Return type:

bool

get_pattern()
Return type:

str

locate(contents)
Parameters:

contents (GLib.Bytes) –

Return type:

Foundry.SymbolLocator or None

Attempt to resolve locator into a fixed position.

If the locator uses a pattern, this will try to locate the pattern within contents.

New in version 1.1.

Property Details

Foundry.SymbolLocator.props.file
Name:

file

Type:

Gio.File

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Foundry.SymbolLocator.props.line
Name:

line

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Foundry.SymbolLocator.props.line_offset
Name:

line-offset

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Foundry.SymbolLocator.props.pattern
Name:

pattern

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY