InfText.DefaultDeleteOperation

g GObject.GInterface GObject.GInterface InfText.DeleteOperation InfText.DeleteOperation GObject.GInterface->InfText.DeleteOperation Infinity.AdoptedOperation Infinity.AdoptedOperation GObject.GInterface->Infinity.AdoptedOperation GObject.Object GObject.Object InfText.DefaultDeleteOperation InfText.DefaultDeleteOperation GObject.Object->InfText.DefaultDeleteOperation InfText.DeleteOperation->InfText.DefaultDeleteOperation Infinity.AdoptedOperation->InfText.DefaultDeleteOperation

Subclasses:

None

Methods

Inherited:

GObject.Object (37), InfText.DeleteOperation (5), Infinity.AdoptedOperation (8)

Structs:

GObject.ObjectClass (5)

class

new (position, chunk)

get_chunk ()

Virtual Methods

Inherited:

GObject.Object (7), InfText.DeleteOperation (2), Infinity.AdoptedOperation (7)

Properties

Name

Type

Flags

Short Description

chunk

InfText.Chunk

r/w/co

The deleted text

position

int

r/w/co

Position where to start deleting characters

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class InfText.DefaultDeleteOperation(**kwargs)
Bases:

GObject.Object, InfText.DeleteOperation, Infinity.AdoptedOperation

Abstract:

No

Structure:

InfText.DefaultDeleteOperationClass

classmethod new(position, chunk)
Parameters:
  • position (int) – The position at which to delete text.

  • chunk (InfText.Chunk) – The text to delete.

Returns:

A new InfText.DefaultDeleteOperation.

Return type:

InfText.DefaultDeleteOperation

Creates a new delete operation that, when applied, deletes the text chunk that starts at character offset position in the buffer. The operation cannot be applied, if there is some other text at that position in the buffer.

get_chunk()
Returns:

A InfText.Chunk, owned by the operation.

Return type:

InfText.Chunk

Returns the text deleted by self.

Property Details

InfText.DefaultDeleteOperation.props.chunk
Name:

chunk

Type:

InfText.Chunk

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The deleted text

InfText.DefaultDeleteOperation.props.position
Name:

position

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Position where to start deleting characters