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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
/* Private stuff */
/* vim: set sw=2 et: */
/*
* Copyright (C) 2001 Havoc Pennington
* Copyright (C) 2006-2007 Vincent Untz
*
* 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/>.
*/
#ifndef WNCK_PRIVATE_H
#define WNCK_PRIVATE_H
#include <config.h>
#include "screen.h"
#include "window.h"
#include "workspace.h"
#include "application.h"
#include "xutils.h"
#include "util.h"
#include "wnck-handle-private.h"
G_BEGIN_DECLS
WnckHandle *_wnck_get_handle (void);
WnckClientType _wnck_get_client_type (void);
gsize _wnck_get_default_icon_size (void);
gsize _wnck_get_default_mini_icon_size (void);
void _wnck_application_process_property_notify (WnckApplication *app,
XEvent *xevent);
void _wnck_window_process_property_notify (WnckWindow *window,
XEvent *xevent);
void _wnck_screen_process_property_notify (WnckScreen *screen,
XEvent *xevent);
void _wnck_window_process_configure_notify (WnckWindow *window,
XEvent *xevent);
WnckWindow* _wnck_window_create (Window xwindow,
WnckScreen *screen,
gint sort_order);
void _wnck_window_destroy (WnckWindow *window);
void _wnck_window_load_icons (WnckWindow *window);
char* wnck_window_get_name_for_display (WnckWindow *window,
gboolean use_icon_name,
gboolean use_state_decorations);
const char* wnck_window_get_startup_id (WnckWindow *window);
time_t _wnck_window_get_needs_attention_time (WnckWindow *window);
WnckWorkspace* _wnck_workspace_create (int number,
WnckScreen *screen);
void _wnck_workspace_destroy (WnckWorkspace *space);
void _wnck_window_set_application (WnckWindow *window,
WnckApplication *app);
void _wnck_window_set_class_group (WnckWindow *window,
WnckClassGroup *class_group);
void _wnck_application_add_window (WnckApplication *app,
WnckWindow *window);
void _wnck_application_remove_window (WnckApplication *app,
WnckWindow *window);
WnckApplication* _wnck_application_create (Window xwindow,
WnckScreen *screen);
void _wnck_application_destroy (WnckApplication *app);
void _wnck_application_load_icons (WnckApplication *app);
WnckClassGroup *_wnck_class_group_create (WnckScreen *screen,
const char *res_class);
void _wnck_class_group_destroy (WnckClassGroup *class_group);
void _wnck_class_group_add_window (WnckClassGroup *class_group,
WnckWindow *window);
void _wnck_class_group_remove_window (WnckClassGroup *class_group,
WnckWindow *window);
void _wnck_workspace_update_name (WnckWorkspace *workspace,
const char *name);
void _wnck_screen_change_workspace_name (WnckScreen *screen,
int number,
const char *name);
gboolean _wnck_workspace_set_geometry (WnckWorkspace *space, int w, int h);
gboolean _wnck_workspace_set_viewport (WnckWorkspace *space, int x, int y);
void _wnck_init (void);
Display *_wnck_get_default_display (void);
#define WNCK_SCREEN_XSCREEN(screen) (_wnck_screen_get_xscreen (screen))
void _wnck_screen_construct (WnckScreen *screen,
WnckHandle *handle,
Display *display,
int number);
Window _wnck_screen_get_xroot (WnckScreen *screen);
Screen *_wnck_screen_get_xscreen (WnckScreen *screen);
GdkScreen *_wnck_screen_get_gdk_screen (WnckScreen *screen);
WnckHandle *_wnck_screen_get_handle (WnckScreen *screen);
G_END_DECLS
#endif /* WNCK_PRIVATE_H */
|