itermediate working result
[imager-screenshot.git] / Screenshot.xs
CommitLineData
0ddb7051
TC
1#include "EXTERN.h"
2#include "perl.h"
3#include "XSUB.h"
d9a01106 4#include "ppport.h"
0ddb7051
TC
5#include "imext.h"
6#include "imperl.h"
7#include "imss.h"
8
9DEFINE_IMAGER_CALLBACKS;
10
11#define imss__x11_open imss_x11_open
12
13MODULE = Imager::Screenshot PACKAGE = Imager::Screenshot PREFIX = imss
14
15PROTOTYPES: DISABLE
16
17#ifdef SS_WIN32
18
cd684d4f 19Imager::ImgRaw
4e6ce56a 20imss_win32(hwnd, include_decor = 0, left = 0, top = 0, right = 0, bottom = 0, display = 0)
0ddb7051
TC
21 unsigned hwnd
22 int include_decor
87cd516f
TC
23 int left
24 int top
25 int right
26 int bottom
4e6ce56a 27 int display
0ddb7051
TC
28
29#endif
30
31#ifdef SS_X11
32
cd684d4f 33Imager::ImgRaw
87cd516f 34imss_x11(display, window_id, left = 0, top = 0, right = 0, bottom = 0)
0ddb7051
TC
35 unsigned long display
36 int window_id
87cd516f
TC
37 int left
38 int top
39 int right
40 int bottom
0ddb7051
TC
41
42unsigned long
43imss_x11_open(display_name = NULL)
44 const char *display_name
45
46void
47imss_x11_close(display)
48 unsigned long display
49
50#endif
51
bc99c241
TC
52#ifdef SS_DARWIN
53
54Imager::ImgRaw
55imss_darwin(left = 0, top = 0, right = 0, bottom = 0)
56 int left
57 int top
58 int right
59 int bottom
60
61#endif
62
0ddb7051 63BOOT:
a9735f1a 64 PERL_INITIALIZE_IMAGER_CALLBACKS;