Virtual Method
IdeIndenterformat
Declaration
gchar*
format (
IdeIndenter* self,
GtkTextView* text_view,
GtkTextIter* begin,
GtkTextIter* end,
gint* cursor_offset,
GdkEventKey* event
)
Description
This function performs an indentation for the key press activated by event.
The implementation is free to move the begin and end iters to swallow
adjacent content. The result, a string, is the contents that will replace
the content inbetween begin and end.
cursor_offset may be set to jump the cursor starting from end. Negative
values are allowed.
If self is NULL, the fallback indenter is used, which tries to mimic the
indentation style of GtkSourceView.
| Available since: | 3.32 |
Parameters
text_view |
GtkTextView |
A |
|
| The data is owned by the caller of the function. | |
begin |
GtkTextIter |
A |
|
| The data is owned by the caller of the function. | |
end |
GtkTextIter |
A |
|
| The data is owned by the caller of the function. | |
cursor_offset |
gint* |
The offset in characters from |
|
| The argument will be set by the function. | |
event |
GdkEventKey |
The |
|
| The data is owned by the caller of the function. |