From eb90a1c218e7ae90f8742f52ac3b6ed71c3afbc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberts=20Muktup=C4=81vels?= Date: Mon, 19 Aug 2019 16:12:32 +0300 Subject: handle: make it public --- libwnck/wnck-handle.h | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 libwnck/wnck-handle.h (limited to 'libwnck/wnck-handle.h') diff --git a/libwnck/wnck-handle.h b/libwnck/wnck-handle.h new file mode 100644 index 0000000..b58a47f --- /dev/null +++ b/libwnck/wnck-handle.h @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2021 Alberts Muktupāvels + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library 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 + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, see . + */ + +#if !defined (__LIBWNCK_H_INSIDE__) && !defined (WNCK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef WNCK_HANDLE_H +#define WNCK_HANDLE_H + +#include +#include +#include + +G_BEGIN_DECLS + +#define WNCK_TYPE_HANDLE (wnck_handle_get_type ()) +G_DECLARE_FINAL_TYPE (WnckHandle, wnck_handle, WNCK, HANDLE, GObject) + +WnckHandle *wnck_handle_new (WnckClientType client_type); + +WnckScreen *wnck_handle_get_default_screen (WnckHandle *self); + +WnckScreen *wnck_handle_get_screen (WnckHandle *self, + int index); + +WnckScreen *wnck_handle_get_screen_for_root (WnckHandle *self, + gulong root_window_id); + +void wnck_handle_set_default_icon_size (WnckHandle *self, + gsize icon_size); + +void wnck_handle_set_default_mini_icon_size (WnckHandle *self, + gsize icon_size); + +WnckClassGroup *wnck_handle_get_class_group (WnckHandle *self, + const char *id); + +WnckApplication *wnck_handle_get_application (WnckHandle *self, + gulong xwindow); + +WnckWindow *wnck_handle_get_window (WnckHandle *self, + gulong xwindow); + +G_END_DECLS + +#endif -- cgit v1.2.1