inf-text-delete-operation

inf-text-delete-operation

Synopsis

struct              InfTextDeleteOperationIface;
guint               inf_text_delete_operation_get_position
                                                        (InfTextDeleteOperation *operation);
guint               inf_text_delete_operation_get_length
                                                        (InfTextDeleteOperation *operation);
gboolean            inf_text_delete_operation_need_concurrency_id
                                                        (InfTextDeleteOperation *op,
                                                         InfAdoptedOperation *against);
InfAdoptedConcurrencyId inf_text_delete_operation_get_concurrency_id
                                                        (InfTextDeleteOperation *op,
                                                         InfAdoptedOperation *against);
InfAdoptedOperation * inf_text_delete_operation_transform_insert
                                                        (InfTextDeleteOperation *operation,
                                                         InfTextInsertOperation *against,
                                                         InfAdoptedConcurrencyId cid);
InfAdoptedOperation * inf_text_delete_operation_transform_delete
                                                        (InfTextDeleteOperation *operation,
                                                         InfTextDeleteOperation *against,
                                                         InfAdoptedConcurrencyId cid);

Description

Details

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);
};


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.

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.

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).

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).

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.

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.

operation :

A InfTextDeleteOperation.

against :

Another InfTextDeleteOperation.

cid :

The concurrency ID for the transformation.

Returns :

A new InfAdoptedOperation.