Foundry.TextEdit

g Foundry.TextEdit Foundry.TextEdit GObject.Object GObject.Object GObject.Object->Foundry.TextEdit

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (file, begin_line, begin_line_offset, end_line, end_line_offset, replacement)

compare (b)

dup_file ()

dup_replacement ()

get_range (begin_line, begin_line_offset, end_line, end_line_offset)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Foundry.TextEdit(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Foundry.TextEditClass

Represents a single text edit to a document.

classmethod new(file, begin_line, begin_line_offset, end_line, end_line_offset, replacement)
Parameters:
  • file (Gio.File) –

  • begin_line (int) –

  • begin_line_offset (int) –

  • end_line (int) –

  • end_line_offset (int) –

  • replacement (str) –

Return type:

Foundry.TextEdit

compare(b)
Parameters:

b (Foundry.TextEdit) –

Return type:

int

dup_file()
Returns:

a Gio.File or None

Return type:

Gio.File or None

Gets the underlying Gio.File if any.

dup_replacement()
Returns:

a string or None

Return type:

str or None

Gets the replacement text if any.

get_range(begin_line, begin_line_offset, end_line, end_line_offset)
Parameters:
  • begin_line (int) –

  • begin_line_offset (int) –

  • end_line (int) –

  • end_line_offset (int) –