Foundry.TextFormatter¶
- Subclasses:
None
Methods¶
- Inherited:
Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8)
- Structs:
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
|||
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.TextFormatter(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Abstract base class for plugins to implement custom text formatting.
- can_format_range()¶
-
Determines if the formatter can do range formatting of the document.
- dup_buffer()¶
- Return type:
- dup_document()¶
- Return type:
- format()¶
- Returns:
a [class`Dex`.Future] that resolves to any value or rejects with error
- Return type:
- format_range(begin, end)¶
- Parameters:
begin (
Foundry.TextIter) – the start of the region to formatend (
Foundry.TextIter) – the end of the region to format
- Returns:
a [class`Dex`.Future] that resolves to any value or rejects with error
- Return type:
- do_can_format_range() virtual¶
-
Determines if the formatter can do range formatting of the document.
- do_format() virtual¶
- Returns:
a [class`Dex`.Future] that resolves to any value or rejects with error
- Return type:
- do_format_range(begin, end) virtual¶
- Parameters:
begin (
Foundry.TextIter) – the start of the region to formatend (
Foundry.TextIter) – the end of the region to format
- Returns:
a [class`Dex`.Future] that resolves to any value or rejects with error
- Return type:
Property Details¶
- Foundry.TextFormatter.props.buffer¶
- Name:
buffer- Type:
- Default Value:
- Flags:
- Foundry.TextFormatter.props.document¶
- Name:
document- Type:
- Default Value:
- Flags: