InfText.DefaultDeleteOperation¶
- 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 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.DefaultDeleteOperation(**kwargs)¶
- Bases:
GObject.Object
,InfText.DeleteOperation
,Infinity.AdoptedOperation
- Abstract:
No
- Structure:
- classmethod new(position, chunk)¶
- Parameters:
position (
int
) – The position at which to delete text.chunk (
InfText.Chunk
) – The text to delete.
- Returns:
- Return type:
Creates a new delete operation that, when applied, deletes the text chunk that starts at character offset position in the buffer. The operation cannot be applied, if there is some other text at that position in the buffer.
- get_chunk()¶
- Returns:
A
InfText.Chunk
, owned by the operation.- Return type:
Returns the text deleted by self.
Property Details¶
- InfText.DefaultDeleteOperation.props.chunk¶
- Name:
chunk
- Type:
- Default Value:
- Flags:
The deleted text
- InfText.DefaultDeleteOperation.props.position¶
- Name:
position
- Type:
- Default Value:
0
- Flags:
Position where to start deleting characters