InfText.InsertOperation

g GObject.GInterface GObject.GInterface InfText.InsertOperation InfText.InsertOperation GObject.GInterface->InfText.InsertOperation

Implementations:

InfText.DefaultInsertOperation

Methods

get_length ()

get_position ()

need_concurrency_id (against)

transform_delete (against)

transform_insert (against, op_lcs, ag_lcs, cid)

Virtual Methods

do_get_length ()

do_get_position ()

Properties

None

Signals

None

Fields

None

Class Details

class InfText.InsertOperation
Bases:

GObject.GInterface

Structure:

InfText.InsertOperationInterface

InfText.InsertOperation 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 length of the text inserted by self.

get_position()
Returns:

The position to insert text.

Return type:

int

Returns the position at which self inserts text.

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) – A 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, op_lcs, ag_lcs, cid)
Parameters:
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 length of the text inserted by operation.

do_get_position() virtual
Returns:

The position to insert text.

Return type:

int

Returns the position at which operation inserts text.