![]() |
![]() |
![]() |
libinftext-0.3 Reference Manual | ![]() |
---|---|---|---|---|
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);
typedef struct { 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); } InfTextDeleteOperationIface;
guint inf_text_delete_operation_get_position (InfTextDeleteOperation *operation);
Returns the position at which operation
starts to delete dext.
|
A InfTextDeleteOperation. |
Returns : |
The position of operation .
|
guint inf_text_delete_operation_get_length (InfTextDeleteOperation *operation);
Returns the number of characters deleted by operation
.
|
A InfTextDeleteOperation. |
Returns : |
The length of operation .
|
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).
|
A InfTextDeleteOperation. |
|
Another InfAdoptedOperation. |
Returns : |
Whether transforming op against against requires a 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).
|
A InfTextDeleteOperation. |
|
Another InfAdoptedOperation. |
Returns : |
A concurrency ID between op and against .
|
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
.
|
A InfTextDeleteOperation. |
|
A InfTextInsertOperation. |
|
The concurrency ID for the transformation. |
Returns : |
A new InfAdoptedOperation. |
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
.
|
A InfTextDeleteOperation. |
|
Another InfTextDeleteOperation. |
|
The concurrency ID for the transformation. |
Returns : |
A new InfAdoptedOperation. |