Infinity.AdoptedOperationInterface

Fields

Name

Type

Access

Description

apply

object

r

Virtual function that applies the operation to the buffer. by is the user that applies the operation.

apply_transformed

object

r

Virtual function that applies a transformed version of the operation to the buffer. It attempts to use information from the buffer to make the original operation reversible, if it is not already. The implementation of this function is optional, and only needs to be implemented if the operation is not reversible but can be made reversible with additional information from the buffer or the transformed operation.

copy

object

r

Virtual function that returns a copy of the operation.

get_flags

object

r

Virtual function that returns the flags of the operation, see Infinity.AdoptedOperationFlags.

need_concurrency_id

object

r

Virtual function to determine whether a concurrency ID is required to transform operation against against.

parent

GObject.TypeInterface

r

revert

object

r

Virtual function that creates a new operation that undoes the effect of the operation. If get_flags does never return the Infinity.AdoptedOperationFlags.REVERSIBLE flag set, then this is allowed to be None.

transform

object

r

Virtual function that transform operation against against and returns a new Infinity.AdoptedOperation as the result of the transformation. concurrency_id is either 1 or -1 and can be used to make a decision in case there is no other criteria to decide how to do the transformation, for example when both operation and against are inserting text at the same position in the buffer.

Methods

None

Details

class Infinity.AdoptedOperationInterface

The virtual methods that need to be implemented by an operation to be used with Infinity.AdoptedAlgorithm.