Interface
IdeIndenter
Prerequisite
In order to implement Indenter, your type must inherit from
IdeObject.
Instance methods
ide_indenter_format
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.
Available since: 3.32
ide_indenter_is_trigger
Determines if event should trigger an indentation request. If TRUE is
returned then ide_indenter_format() will be called.
Available since: 3.32
Interface structure
struct IdeIndenterInterface {
GTypeInterface parent;
gchar* (* format) (
IdeIndenter* self,
GtkTextView* text_view,
GtkTextIter* begin,
GtkTextIter* end,
gint* cursor_offset,
GdkEventKey* event
);
gboolean (* is_trigger) (
IdeIndenter* self,
GdkEventKey* event
);
}
Interface members
parent |
|
| No description available. | |
format |
|
| No description available. | |
is_trigger |
|
| No description available. |
Virtual methods
Ide.Indenter.format
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.
Ide.Indenter.is_trigger
Determines if event should trigger an indentation request. If TRUE is
returned then ide_indenter_format() will be called.