InfText.DeleteOperation

g GObject.GInterface GObject.GInterface InfText.DeleteOperation InfText.DeleteOperation GObject.GInterface->InfText.DeleteOperation

Implementations:

InfText.DefaultDeleteOperation, InfText.RemoteDeleteOperation

Methods

get_length ()

get_position ()

need_concurrency_id (against)

transform_delete (against)

transform_insert (against)

Virtual Methods

do_get_length ()

do_get_position ()

Properties

None

Signals

None

Fields

None

Class Details

class InfText.DeleteOperation
Bases:

GObject.GInterface

Structure:

InfText.DeleteOperationInterface

InfText.DeleteOperation is an opaque data type. You should only access it via the public API functions.

get_length()
Returns:

The length of self.

Return type:

int

Returns the number of characters deleted by self.

get_position()
Returns:

The position of self.

Return type:

int

Returns the position at which self starts to delete dext.

need_concurrency_id(against)
Parameters:

against (Infinity.AdoptedOperation) – Another Infinity.AdoptedOperation.

Returns:

Whether transforming self against against requires a concurrency ID.

Return type:

bool

Returns whether transforming self against against requires a concurrency ID (see Infinity.AdoptedOperation.need_concurrency_id() for further information).

transform_delete(against)
Parameters:

against (InfText.DeleteOperation) – Another InfText.DeleteOperation.

Returns:

A new Infinity.AdoptedOperation.

Return type:

Infinity.AdoptedOperation

Returns a new operation that includes the effect of against into self.

transform_insert(against)
Parameters:

against (InfText.InsertOperation) – A InfText.InsertOperation.

Returns:

A new Infinity.AdoptedOperation.

Return type:

Infinity.AdoptedOperation

Returns a new operation that includes the effect of against into self.

do_get_length() virtual
Returns:

The length of operation.

Return type:

int

Returns the number of characters deleted by operation.

do_get_position() virtual
Returns:

The position of operation.

Return type:

int

Returns the position at which operation starts to delete dext.