| libinftext-0.6 Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
InfTextRemoteDeleteOperation; struct InfTextRemoteDeleteOperationClass; InfTextRemoteDeleteOperation * inf_text_remote_delete_operation_new (guint position,guint length);
InfTextRemoteDeleteOperation implements InfAdoptedOperation and InfTextDeleteOperation.
"length" guint : Read / Write / Construct Only "position" guint : Read / Write / Construct Only
typedef struct _InfTextRemoteDeleteOperation InfTextRemoteDeleteOperation;
struct InfTextRemoteDeleteOperationClass {
GObjectClass parent_class;
};
InfTextRemoteDeleteOperation * inf_text_remote_delete_operation_new (guint position,guint length);
Creates a new delete operation that, when applied, deletes length
characters starting from position position. Note that this operation is
not reversible because it does not know the text to delete and is therefore
only used to transmit a delete operation through the network to reduce
bandwidth usage. The remote part can then reconstruct the deleted text
using inf_adopted_operation_apply_transformed().
However, it is easier to just use InfTextDefaultDeleteOperation if you want the operation to be reversible.
|
The position at which to delete text. |
|
The number of characters to delete. |
Returns : |
A new InfTextRemoteDeleteOperation. |