2012-02-14 14:33:56 -05:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
#ifndef __SHELL_SCREENSHOT_H__
|
|
|
|
#define __SHELL_SCREENSHOT_H__
|
|
|
|
|
|
|
|
/**
|
|
|
|
* SECTION:shell-screenshot
|
|
|
|
* @short_description: Grabs screenshots of areas and/or windows
|
|
|
|
*
|
|
|
|
* The #ShellScreenshot object is used to take screenshots of screen
|
|
|
|
* areas or windows and write them out as png files.
|
|
|
|
*
|
|
|
|
*/
|
2015-09-24 14:07:44 -04:00
|
|
|
#define SHELL_TYPE_SCREENSHOT (shell_screenshot_get_type ())
|
|
|
|
G_DECLARE_FINAL_TYPE (ShellScreenshot, shell_screenshot,
|
|
|
|
SHELL, SCREENSHOT, GObject)
|
2012-02-14 14:33:56 -05:00
|
|
|
|
2012-02-14 15:57:34 -05:00
|
|
|
ShellScreenshot *shell_screenshot_new (void);
|
2012-02-14 14:33:56 -05:00
|
|
|
|
2018-07-19 09:54:33 -04:00
|
|
|
void shell_screenshot_screenshot_area (ShellScreenshot *screenshot,
|
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
int width,
|
|
|
|
int height,
|
|
|
|
const char *filename,
|
|
|
|
GAsyncReadyCallback callback,
|
|
|
|
gpointer user_data);
|
|
|
|
gboolean shell_screenshot_screenshot_area_finish (ShellScreenshot *screenshot,
|
|
|
|
GAsyncResult *result,
|
|
|
|
cairo_rectangle_int_t **area,
|
|
|
|
const char **filename_used,
|
|
|
|
GError **error);
|
2012-02-14 14:33:56 -05:00
|
|
|
|
2018-07-19 09:54:33 -04:00
|
|
|
void shell_screenshot_screenshot_window (ShellScreenshot *screenshot,
|
|
|
|
gboolean include_frame,
|
|
|
|
gboolean include_cursor,
|
|
|
|
const char *filename,
|
|
|
|
GAsyncReadyCallback callback,
|
|
|
|
gpointer user_data);
|
|
|
|
gboolean shell_screenshot_screenshot_window_finish (ShellScreenshot *screenshot,
|
|
|
|
GAsyncResult *result,
|
|
|
|
cairo_rectangle_int_t **area,
|
|
|
|
const char **filename_used,
|
|
|
|
GError **error);
|
2012-02-14 14:33:56 -05:00
|
|
|
|
2018-07-19 09:54:33 -04:00
|
|
|
void shell_screenshot_screenshot (ShellScreenshot *screenshot,
|
|
|
|
gboolean include_cursor,
|
|
|
|
const char *filename,
|
|
|
|
GAsyncReadyCallback callback,
|
|
|
|
gpointer user_data);
|
|
|
|
gboolean shell_screenshot_screenshot_finish (ShellScreenshot *screenshot,
|
|
|
|
GAsyncResult *result,
|
|
|
|
cairo_rectangle_int_t **area,
|
|
|
|
const char **filename_used,
|
|
|
|
GError **error);
|
2012-02-14 14:33:56 -05:00
|
|
|
|
|
|
|
#endif /* ___SHELL_SCREENSHOT_H__ */
|