- add support for getting a subimage of the window
[imager-screenshot.git] / Screenshot.xs
CommitLineData
0ddb7051
TC
1#include "EXTERN.h"
2#include "perl.h"
3#include "XSUB.h"
4#include "imext.h"
5#include "imperl.h"
6#include "imss.h"
7
8DEFINE_IMAGER_CALLBACKS;
9
10#define imss__x11_open imss_x11_open
11
12MODULE = Imager::Screenshot PACKAGE = Imager::Screenshot PREFIX = imss
13
14PROTOTYPES: DISABLE
15
16#ifdef SS_WIN32
17
18Imager
87cd516f 19imss_win32(hwnd, include_decor = 0, left = 0, top = 0, right = 0, bottom = 0)
0ddb7051
TC
20 unsigned hwnd
21 int include_decor
87cd516f
TC
22 int left
23 int top
24 int right
25 int bottom
0ddb7051
TC
26
27#endif
28
29#ifdef SS_X11
30
31Imager
87cd516f 32imss_x11(display, window_id, left = 0, top = 0, right = 0, bottom = 0)
0ddb7051
TC
33 unsigned long display
34 int window_id
87cd516f
TC
35 int left
36 int top
37 int right
38 int bottom
0ddb7051
TC
39
40unsigned long
41imss_x11_open(display_name = NULL)
42 const char *display_name
43
44void
45imss_x11_close(display)
46 unsigned long display
47
48#endif
49
50BOOT:
a9735f1a 51 PERL_INITIALIZE_IMAGER_CALLBACKS;