~ubuntu-branches/debian/jessie/gnome-shell/jessie

« back to all changes in this revision

Viewing changes to src/shell-screenshot.h

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2012-05-30 13:19:38 UTC
  • mfrom: (18.1.24 experimental)
  • Revision ID: package-import@ubuntu.com-20120530131938-i3trc1g1p3is2u6x
Tags: 3.4.1-3
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
 
2
#ifndef __SHELL_SCREENSHOT_H__
 
3
#define __SHELL_SCREENSHOT_H__
 
4
 
 
5
/**
 
6
 * SECTION:shell-screenshot
 
7
 * @short_description: Grabs screenshots of areas and/or windows
 
8
 *
 
9
 * The #ShellScreenshot object is used to take screenshots of screen
 
10
 * areas or windows and write them out as png files.
 
11
 *
 
12
 */
 
13
 
 
14
typedef struct _ShellScreenshot      ShellScreenshot;
 
15
typedef struct _ShellScreenshotClass ShellScreenshotClass;
 
16
 
 
17
#define SHELL_TYPE_SCREENSHOT              (shell_screenshot_get_type ())
 
18
#define SHELL_SCREENSHOT(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), SHELL_TYPE_SCREENSHOT, ShellScreenshot))
 
19
#define SHELL_SCREENSHOT_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), SHELL_TYPE_SCREENSHOT, ShellScreenshotClass))
 
20
#define SHELL_IS_SCREENSHOT(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), SHELL_TYPE_SCREENSHOT))
 
21
#define SHELL_IS_SCREENSHOT_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), SHELL_TYPE_SCREENSHOT))
 
22
#define SHELL_SCREENSHOT_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), SHELL_TYPE_SCREENSHOT, ShellScreenshotClass))
 
23
 
 
24
GType shell_screenshot_get_type (void) G_GNUC_CONST;
 
25
 
 
26
ShellScreenshot *shell_screenshot_new (void);
 
27
 
 
28
typedef void (*ShellScreenshotCallback)  (ShellScreenshot *screenshot,
 
29
                                           gboolean success,
 
30
                                           cairo_rectangle_int_t *screenshot_area);
 
31
 
 
32
void    shell_screenshot_screenshot_area      (ShellScreenshot *screenshot,
 
33
                                                int x,
 
34
                                                int y,
 
35
                                                int width,
 
36
                                                int height,
 
37
                                                const char *filename,
 
38
                                                ShellScreenshotCallback callback);
 
39
 
 
40
void    shell_screenshot_screenshot_window    (ShellScreenshot *screenshot,
 
41
                                                gboolean include_frame,
 
42
                                                gboolean include_cursor,
 
43
                                                const char *filename,
 
44
                                                ShellScreenshotCallback callback);
 
45
 
 
46
void    shell_screenshot_screenshot           (ShellScreenshot *screenshot,
 
47
                                                gboolean include_cursor,
 
48
                                                const char *filename,
 
49
                                                ShellScreenshotCallback callback);
 
50
 
 
51
#endif /* ___SHELL_SCREENSHOT_H__ */