handle string form of number passed as hwnd
[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"
6f00ec2f
TC
8#ifdef SS_WIN32
9#include "svwin32.h"
10#endif
0ddb7051
TC
11
12DEFINE_IMAGER_CALLBACKS;
13
14#define imss__x11_open imss_x11_open
15
16MODULE = Imager::Screenshot PACKAGE = Imager::Screenshot PREFIX = imss
17
18PROTOTYPES: DISABLE
19
20#ifdef SS_WIN32
21
cd684d4f 22Imager::ImgRaw
4e6ce56a 23imss_win32(hwnd, include_decor = 0, left = 0, top = 0, right = 0, bottom = 0, display = 0)
6f00ec2f 24 SSHWND hwnd
0ddb7051 25 int include_decor
87cd516f
TC
26 int left
27 int top
28 int right
29 int bottom
4e6ce56a 30 int display
0ddb7051
TC
31
32#endif
33
34#ifdef SS_X11
35
cd684d4f 36Imager::ImgRaw
87cd516f 37imss_x11(display, window_id, left = 0, top = 0, right = 0, bottom = 0)
0ddb7051
TC
38 unsigned long display
39 int window_id
87cd516f
TC
40 int left
41 int top
42 int right
43 int bottom
0ddb7051
TC
44
45unsigned long
46imss_x11_open(display_name = NULL)
47 const char *display_name
48
49void
50imss_x11_close(display)
51 unsigned long display
52
53#endif
54
bc99c241
TC
55#ifdef SS_DARWIN
56
57Imager::ImgRaw
58imss_darwin(left = 0, top = 0, right = 0, bottom = 0)
59 int left
60 int top
61 int right
62 int bottom
63
64#endif
65
0ddb7051 66BOOT:
a9735f1a 67 PERL_INITIALIZE_IMAGER_CALLBACKS;