Release 0.36.14
[vala-gnome.git] / vapi / xcb-icccm.vapi
blobfd4cb79942e1e71c2d7d3e8d46d9f6be94fbe5eb
1 /* xcb-icccm.vapi
2  *
3  * Copyright (C) 2013  Sergio Costas
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
18  *
19  * Author:
20  *  Sergio Costas <raster@rastersoft.com>
21  */
23 using Xcb;
25 [Version (deprecated_since = "vala-0.26", replacement = "bindings distributed with vala-extra-vapis")]
26 namespace Xcb {
28         [CCode (lower_case_cprefix = "xcb_icccm_", cheader_filename = "xcb/xcb_icccm.h")]
29         namespace Icccm {
31                 /**
32                  * A factory method that creates an Icccm object. It allows to call the Xcb Icccm methods
33                  * @param conn The current Xcb connection
34                  * @return the new Icccm object
35                  */
36                 public static Icccm new(Xcb.Connection conn) {
37                         unowned Xcb.Icccm.Icccm retval = (Xcb.Icccm.Icccm)conn;
38                         return retval;
39                 }
41                 // The Icccm class is, in fact, a Xcb.Connection class in disguise
42                 [Compact, CCode (cname = "xcb_connection_t", cprefix = "xcb_icccm_")]
43                 public class Icccm : Xcb.Connection {
44                         public GetPropertyCookie get_wm_class(Window window);
45                         public GetPropertyCookie get_wm_class_unchecked(Window window);
46                 }
48                 [SimpleType]
49                 [CCode (cname = "xcb_icccm_get_wm_class_reply_t", has_type_id = false)]
50                 public struct GetWmClassFromReply {
51                         unowned string instance_name;
52                         unowned string class_name;
53                 }
55                 public void get_wm_class_from_reply(out GetWmClassFromReply reply, GetPropertyReply input);
56         }