inf-text-delete-operation

inf-text-delete-operation

Functions

Types and Values

Object Hierarchy


Description

Functions

inf_text_delete_operation_get_position ()

guint
inf_text_delete_operation_get_position
                               (InfTextDeleteOperation *operation);

Returns the position at which operation starts to delete dext.

Parameters

operation

A InfTextDeleteOperation.

 

Returns

The position of operation .


inf_text_delete_operation_get_length ()

guint
inf_text_delete_operation_get_length (InfTextDeleteOperation *operation);

Returns the number of characters deleted by operation .

Parameters

operation

A InfTextDeleteOperation.

 

Returns

The length of operation .


inf_text_delete_operation_need_concurrency_id ()

gboolean
inf_text_delete_operation_need_concurrency_id
                               (InfTextDeleteOperation *op,
                                InfAdoptedOperation *against);

Returns whether transforming op against against requires a concurrency ID (see inf_adopted_operation_need_concurrency_id() for further information).

Parameters

op

A InfTextDeleteOperation.

 

against

Another InfAdoptedOperation.

 

Returns

Whether transforming op against against requires a concurrency ID.


inf_text_delete_operation_get_concurrency_id ()

InfAdoptedConcurrencyId
inf_text_delete_operation_get_concurrency_id
                               (InfTextDeleteOperation *op,
                                InfAdoptedOperation *against);

Returns a concurrency ID for transformation of op against against (see inf_adopted_operation_get_concurrency_id() for further information).

Parameters

op

A InfTextDeleteOperation.

 

against

Another InfAdoptedOperation.

 

Returns

A concurrency ID between op and against .


inf_text_delete_operation_transform_insert ()

InfAdoptedOperation *
inf_text_delete_operation_transform_insert
                               (InfTextDeleteOperation *operation,
                                InfTextInsertOperation *against,
                                InfAdoptedConcurrencyId cid);

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

Parameters

operation

A InfTextDeleteOperation.

 

against

A InfTextInsertOperation.

 

cid

The concurrency ID for the transformation.

 

Returns

A new InfAdoptedOperation.


inf_text_delete_operation_transform_delete ()

InfAdoptedOperation *
inf_text_delete_operation_transform_delete
                               (InfTextDeleteOperation *operation,
                                InfTextDeleteOperation *against,
                                InfAdoptedConcurrencyId cid);

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

Parameters

operation

A InfTextDeleteOperation.

 

against

Another InfTextDeleteOperation.

 

cid

The concurrency ID for the transformation.

 

Returns

A new InfAdoptedOperation.

Types and Values

struct InfTextDeleteOperationIface

struct InfTextDeleteOperationIface {
  GTypeInterface parent;

  /* Virtual table */
  guint(*get_position)(InfTextDeleteOperation* operation);

  guint(*get_length)(InfTextDeleteOperation* operation);

  InfTextDeleteOperation*(*transform_position)(InfTextDeleteOperation* op,
                                               guint position);

  InfTextDeleteOperation*(*transform_overlap)(InfTextDeleteOperation* op,
                                              InfTextDeleteOperation* other,
                                              guint position,
                                              guint begin,
                                              guint other_begin,
                                              guint length);

  InfAdoptedSplitOperation*(*transform_split)(InfTextDeleteOperation* op,
                                              guint split_pos,
                                              guint split_length);
};