3 * Copyright (C) 2013 Sergio Costas
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.
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.
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
20 * Sergio Costas <raster@rastersoft.com>
25 [Version (deprecated_since = "vala-0.26", replacement = "bindings distributed with vala-extra-vapis")]
28 [CCode (lower_case_cprefix = "xcb_icccm_", cheader_filename = "xcb/xcb_icccm.h")]
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
36 public static Icccm new(Xcb.Connection conn) {
37 unowned Xcb.Icccm.Icccm retval = (Xcb.Icccm.Icccm)conn;
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);
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;
55 public void get_wm_class_from_reply(out GetWmClassFromReply reply, GetPropertyReply input);