diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2019-08-19 16:12:32 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2022-08-15 09:57:26 +0000 |
commit | eb90a1c218e7ae90f8742f52ac3b6ed71c3afbc3 (patch) | |
tree | 522fbf1e5ab823d41b6d6e3b97958ee7988a739a /libwnck/wnck-handle.h | |
parent | 7e0e51399b9f290f12458ad5fe8962a1985390f6 (diff) | |
download | libwnck-eb90a1c218e7ae90f8742f52ac3b6ed71c3afbc3.tar.gz |
handle: make it public
Diffstat (limited to 'libwnck/wnck-handle.h')
-rw-r--r-- | libwnck/wnck-handle.h | 61 |
1 files changed, 61 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. + */ + +#if !defined (__LIBWNCK_H_INSIDE__) && !defined (WNCK_COMPILATION) +#error "Only <libwnck/libwnck.h> can be included directly." +#endif + +#ifndef WNCK_HANDLE_H +#define WNCK_HANDLE_H + +#include <glib-object.h> +#include <libwnck/screen.h> +#include <libwnck/util.h> + +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 |