InfTextRemoteDeleteOperation

InfTextRemoteDeleteOperation

Synopsis

                    InfTextRemoteDeleteOperation;
InfTextRemoteDeleteOperation * inf_text_remote_delete_operation_new
                                                        (guint position,
                                                         guint length);

Object Hierarchy

  GObject
   +----InfTextRemoteDeleteOperation

Implemented Interfaces

InfTextRemoteDeleteOperation implements InfTextDeleteOperation and InfAdoptedOperation.

Properties

  "length"                   guint                 : Read / Write / Construct Only
  "position"                 guint                 : Read / Write / Construct Only

Description

Details

InfTextRemoteDeleteOperation

typedef struct _InfTextRemoteDeleteOperation InfTextRemoteDeleteOperation;


inf_text_remote_delete_operation_new ()

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 other part can then reconstruct the deleted text using the make_reversible vfunc.

However, it is easier to just use InfTextDefaultDeleteOperation if you want the operation to be reversible.

position :

The position at which to delete text.

length :

The number of characters to delete.

Returns :

A new InfTextRemoteDeleteOperation.

Property Details

The "length" property

  "length"                   guint                 : Read / Write / Construct Only

The length of the deleted text.

Default value: 0


The "position" property

  "position"                 guint                 : Read / Write / Construct Only

Position where to start deleting characters.

Default value: 0