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.

Parameters

options

Type: IdeFormatterOptions

Options for the formatting.

The data is owned by the caller of the method.
cancellable

Type: GCancellable

A GCancellable, or NULL.

The argument can be NULL.
The data is owned by the caller of the method.
callback

Type: GAsyncReadyCallback

The callback upon completion.

The argument can be NULL.
user_data

Type: gpointer

User data for callback.

The argument can be NULL.
The data is owned by the caller of the method.