Method
PhoshDBusScreenshotcall_screenshot_area
Declaration [src]
void
phosh_dbus_screenshot_call_screenshot_area (
PhoshDBusScreenshot* proxy,
gint arg_x,
gint arg_y,
gint arg_width,
gint arg_height,
gboolean arg_flash,
const gchar* arg_filename,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Asynchronously invokes the ScreenshotArea() D-Bus method on proxy.
When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
You can then call phosh_dbus_screenshot_call_screenshot_area_finish() to get the result of the operation.
See phosh_dbus_screenshot_call_screenshot_area_sync() for the synchronous, blocking version of this method.
This method completes asynchronously. Use phosh_dbus_screenshot_call_screenshot_area_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
arg_x-
Type:
gintArgument to pass with the method invocation.
arg_y-
Type:
gintArgument to pass with the method invocation.
arg_width-
Type:
gintArgument to pass with the method invocation.
arg_height-
Type:
gintArgument to pass with the method invocation.
arg_flash-
Type:
gbooleanArgument to pass with the method invocation.
arg_filename-
Type:
const gchar*Argument to pass with the method invocation.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. cancellable-
Type:
GCancellableA
GCancellableorNULL.The argument can be NULL.The data is owned by the caller of the method. callback-
Type:
GAsyncReadyCallbackA
GAsyncReadyCallbackto call when the request is satisfied orNULL.The argument can be NULL. user_data-
Type:
gpointerUser data to pass to
callback.The argument can be NULL.The data is owned by the caller of the method.