| Top |
guint
inf_text_insert_operation_get_position
(InfTextInsertOperation *operation);
Returns the position at which operation
inserts text.
guint
inf_text_insert_operation_get_length (InfTextInsertOperation *operation);
Returns the length of the text inserted by operation
.
gboolean inf_text_insert_operation_need_concurrency_id (InfTextInsertOperation *op,InfAdoptedOperation *against);
Returns whether transforming op
against against
requires a concurrency ID
(see inf_adopted_operation_need_concurrency_id() for further information).
InfAdoptedOperation * inf_text_insert_operation_transform_insert (InfTextInsertOperation *operation,InfTextInsertOperation *against,InfTextInsertOperation *op_lcs,InfTextInsertOperation *ag_lcs,InfAdoptedConcurrencyId cid);
Returns a new operation that includes the effect of against
into
operation
.
operation |
||
against |
Another InfTextInsertOperation. |
|
op_lcs |
The given operation in a previous state, or |
|
ag_lcs |
The |
|
cid |
The concurrency ID for the transformation. |
InfAdoptedOperation * inf_text_insert_operation_transform_delete (InfTextInsertOperation *operation,InfTextDeleteOperation *against);
Returns a new operation that includes the effect of against
into
operation
.
typedef struct _InfTextInsertOperation InfTextInsertOperation;
InfTextInsertOperation is an opaque data type. You should only access it via the public API functions.
struct InfTextInsertOperationIface {
GTypeInterface parent;
/* Virtual table */
guint(*get_position)(InfTextInsertOperation* operation);
guint(*get_length)(InfTextInsertOperation* operation);
InfTextInsertOperation*(*transform_position)(InfTextInsertOperation* op,
guint position);
};