summaryrefslogtreecommitdiff
path: root/libwnck/wnck-handle.h
blob: b58a47f0157ba80db3c4260603f3f41bcf0254c1 (plain)
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
60
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