1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
//
// Copyright (C) 2013 Rico Tzschichholz
//
// This file is part of Plank.
//
// Plank is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Plank is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
namespace Plank
{
#if HAVE_HIDPI
[CCode (cheader_filename = "cairo.h", cname = "cairo_surface_get_device_scale")]
public void cairo_surface_get_device_scale (Cairo.Surface surface, out double x_scale, out double y_scale);
[CCode (cheader_filename = "cairo.h", cname = "cairo_surface_set_device_scale")]
public void cairo_surface_set_device_scale (Cairo.Surface surface, double x_scale, double y_scale);
#endif
#if VALA_0_26
[CCode (array_length_type = "guint", cheader_filename = "glib-object.h", cname = "g_object_class_list_properties")]
public (unowned GLib.ParamSpec)[] g_object_class_list_properties (GLib.ObjectClass oclass);
#endif
[CCode (cheader_filename = "gdk/gdk.h", cname = "gdk_window_add_filter", instance_pos = 1.9)]
public void gdk_window_add_filter (Gdk.Window? window, Gdk.FilterFunc function);
[CCode (cheader_filename = "gdk/gdk.h", cname = "gdk_window_add_filter", instance_pos = 1.9)]
public void gdk_window_remove_filter (Gdk.Window? window, Gdk.FilterFunc function);
#if HAVE_SYS_PRCTL_H
[CCode (cheader_filename = "sys/prctl.h", cname = "prctl", sentinel = "")]
public int prctl (int option, ...);
#else
[CCode (cheader_filename = "unistd.h", cname = "setproctitle", sentinel = "")]
public void setproctitle (string fmt, ...);
#endif
[CCode (cheader_filename = "unistd.h", cname = "getpid")]
public int getpid ();
}
[CCode (cheader_filename = "X11/Xlib.h")]
namespace X
{
[CCode (cname = "XGetEventData")]
public static bool get_event_data (X.Display display, X.GenericEventCookie* event_cookie);
[CCode (cname = "XFreeEventData")]
public static bool free_event_data (X.Display display, X.GenericEventCookie* event_cookie);
}
|