Virtualvfunc_This function should be implemented to alter the indentation of text within the view.
view is provided so that the indenter may retrieve settings such as indentation and tab widths.
iter is the location where the indentation was requested. This typically
is after having just inserted a newline (\n) character but can be other
situations such as a manually requested indentation or reformatting.
See GtkSource.Indenter.is_trigger for how to trigger indentation on various characters inserted into the buffer.
The implementor of this function is expected to keep iter valid across
calls to the function and should contain the location of the insert mark
after calling this function.
The default implementation for this virtual function will copy the indentation of the previous line.
Virtualvfunc_This function is used to determine if a key pressed should cause the indenter to automatically indent.
The default implementation of this virtual method will check to see
if keyval is Gdk.KEY_Return or Gdk.KEY_KP_Enter and state does
not have Gdk.ModifierType.SHIFT_MASK set. This is to allow the user to avoid
indentation when Shift+Return is pressed. Other indenters may want
to copy this behavior to provide a consistent experience to users.
the location where ch is to be inserted
modifier state for the insertion
the keyval pressed such as Gdk.KEY_Return
Interface for implementing Indenter. Contains only the virtual methods that need to be implemented.