InfText.RemoteDeleteOperation¶
- Subclasses:
None
Methods¶
- Inherited:
GObject.Object (37), InfText.DeleteOperation (5), Infinity.AdoptedOperation (8)
- Structs:
class |
|
Virtual Methods¶
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The length of the deleted text |
||
r/w/co |
Position where to start deleting characters |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class InfText.RemoteDeleteOperation(**kwargs)¶
- Bases:
GObject.Object
,InfText.DeleteOperation
,Infinity.AdoptedOperation
- Abstract:
No
- Structure:
- classmethod new(position, length)¶
- Parameters:
- Returns:
- Return type:
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
Infinity.AdoptedOperation.apply_transformed
().However, it is easier to just use
InfText.DefaultDeleteOperation
if you want the operation to be reversible.
Property Details¶
- InfText.RemoteDeleteOperation.props.length¶
- Name:
length
- Type:
- Default Value:
0
- Flags:
The length of the deleted text
- InfText.RemoteDeleteOperation.props.position¶
- Name:
position
- Type:
- Default Value:
0
- Flags:
Position where to start deleting characters