Method
IdeBufferformat_selection_async
Declaration
void
ide_buffer_format_selection_async (
IdeBuffer* self,
IdeFormatterOptions* options,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description
Formats the selection using an available IdeFormatter for the buffer.
This method completes asynchronously. Use ide_buffer_format_selection_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
options-
Type:
IdeFormatterOptionsOptions for the formatting.
The data is owned by the caller of the method. cancellable-
Type:
GCancellableA
GCancellable, orNULL.The argument can be NULL.The data is owned by the caller of the method. callback-
Type:
GAsyncReadyCallbackThe callback upon completion.
The argument can be NULL. user_data-
Type:
gpointerUser data for
callback.The argument can be NULL.The data is owned by the caller of the method.