edelib 2.1.0
Netwm.h
1/*
2 * $Id: Netwm.h 3533 2013-03-04 23:20:19Z karijes $
3 *
4 * Functions for easier communication with window manager
5 * Copyright (c) 2009 edelib authors
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with this library. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef __EDELIB_NETWM_H__
22#define __EDELIB_NETWM_H__
23
24#include "edelib-global.h"
25#include <FL/Fl_Image.H>
26#include <FL/x.H>
27
28#include "List.h"
29
30EDELIB_NS_BEGIN
31
40enum {
51};
52
58enum {
73};
74
84};
85
106
116
117
122typedef void (*NetwmCallback)(int action, Window xid, void *data);
123
133void netwm_callback_add(NetwmCallback cb, void *data = 0);
134
140
145bool netwm_workarea_get_size(int& x, int& y, int& w, int &h);
146
152
158
164
170int netwm_workspace_get_names(char**& names);
171
176void netwm_workspace_free_names(char** names);
177
184
190
195void netwm_window_set_strut(Window win, int left, int right, int top, int bottom);
196
205void netwm_window_set_strut_partial(Window win, int sizes[12]);
206
212
218
224
230
237
243
250Fl_RGB_Image *netwm_window_get_icon(Window win, unsigned int requested_width = 0);
251
257
263void netwm_window_set_active(Window win, int source = 0);
264
269void netwm_window_maximize(Window win) EDELIB_DEPRECATED;
270
276
282
289
295
301
307
313
314EDELIB_NS_END
315#endif
Window class.
Definition: Window.h:73
Linked list class.
Definition: List.h:160
Fl_RGB_Image * netwm_window_get_icon(Window win, unsigned int requested_width=0)
void netwm_window_close(Window win)
NetwmStateAction
Definition: Netwm.h:111
int netwm_workspace_get_current(void)
void netwm_window_maximize(Window win)
void netwm_workspace_free_names(char **names)
int netwm_window_get_workspace(Window win)
NetwmStateValue
Definition: Netwm.h:90
bool netwm_workarea_get_size(int &x, int &y, int &w, int &h)
WmStateValue
Definition: Netwm.h:79
void netwm_window_set_state(Window win, NetwmStateValue val, NetwmStateAction action)
void wm_window_ede_restore(Window win)
void netwm_window_set_type(Window win, int t)
int netwm_workspace_get_names(char **&names)
int netwm_window_is_manageable(Window win)
char * netwm_window_get_title(Window win)
void netwm_callback_remove(NetwmCallback cb)
void netwm_window_set_active(Window win, int source=0)
void wm_window_set_state(Window win, WmStateValue state)
void netwm_callback_add(NetwmCallback cb, void *data=0)
void(* NetwmCallback)(int action, Window xid, void *data)
Definition: Netwm.h:122
void netwm_window_set_strut_partial(Window win, int sizes[12])
int netwm_window_get_type(Window win)
WmStateValue wm_window_get_state(Window win)
Window netwm_window_get_active(void)
void netwm_workspace_change(int n)
bool netwm_window_get_all_states(Window win, list< NetwmStateValue > &ret)
int netwm_workspace_get_count(void)
void netwm_window_set_strut(Window win, int left, int right, int top, int bottom)
void netwm_window_remove_strut(Window win)
void netwm_window_remove_strut_partial(Window win)
int netwm_window_get_all_mapped(Window **windows)
bool netwm_window_have_state(Window win, NetwmStateValue val)
@ NETWM_STATE_ACTION_REMOVE
remove state
Definition: Netwm.h:112
@ NETWM_STATE_ACTION_TOGGLE
toggle state
Definition: Netwm.h:114
@ NETWM_STATE_ACTION_ADD
add state
Definition: Netwm.h:113
@ NETWM_STATE_MAXIMIZED_VERT
maximized vertically
Definition: Netwm.h:94
@ NETWM_STATE_BELOW
window should go below all windows
Definition: Netwm.h:103
@ NETWM_STATE_MODAL
modal dialog box
Definition: Netwm.h:92
@ NETWM_STATE_DEMANDS_ATTENTION
some action in or with the window happened
Definition: Netwm.h:104
@ NETWM_STATE_HIDDEN
window should be hidden (or minimized)
Definition: Netwm.h:100
@ NETWM_STATE_MAXIMIZED_HORZ
maximized horizontally
Definition: Netwm.h:95
@ NETWM_STATE_STICKY
sticky window
Definition: Netwm.h:93
@ NETWM_STATE_SHADED
shaded window
Definition: Netwm.h:97
@ NETWM_STATE_ABOVE
window should go on top of all windows
Definition: Netwm.h:102
@ NETWM_STATE_SKIP_TASKBAR
window should skip taskbar
Definition: Netwm.h:98
@ NETWM_STATE_SKIP_PAGER
window should skip pager
Definition: Netwm.h:99
@ NETWM_STATE_MAXIMIZED
fully maximized
Definition: Netwm.h:96
@ NETWM_STATE_FULLSCREEN
window should go in fullscreen mode
Definition: Netwm.h:101
@ NETWM_STATE_NONE
window state couldn't be determined
Definition: Netwm.h:91
@ WM_WINDOW_STATE_NONE
window state couldn't be determined
Definition: Netwm.h:80
@ WM_WINDOW_STATE_NORMAL
window is visible
Definition: Netwm.h:82
@ WM_WINDOW_STATE_WITHDRAW
withdraw state
Definition: Netwm.h:81
@ WM_WINDOW_STATE_ICONIC
window is hidden
Definition: Netwm.h:83
@ NETWM_CHANGED_WINDOW_NAME
window name was changed
Definition: Netwm.h:46
@ NETWM_CHANGED_WORKSPACE_NAMES
workspace names gets changed
Definition: Netwm.h:42
@ NETWM_CHANGED_ACTIVE_WINDOW
different window was selected
Definition: Netwm.h:45
@ NETWM_CHANGED_WINDOW_LIST
window list was changed (another window is created or existing was closed)
Definition: Netwm.h:50
@ NETWM_CHANGED_WINDOW_VISIBLE_NAME
window visible name was changed
Definition: Netwm.h:47
@ NETWM_CHANGED_WINDOW_ICON
window icon was changed
Definition: Netwm.h:49
@ NETWM_CHANGED_CURRENT_WORKSPACE
different workspace was activated
Definition: Netwm.h:43
@ NETWM_CHANGED_WINDOW_DESKTOP
window is moved to another workspace
Definition: Netwm.h:48
@ NETWM_CHANGED_CURRENT_WORKAREA
workarea was changed
Definition: Netwm.h:44
@ NETWM_CHANGED_WORKSPACE_COUNT
workspace count was changed
Definition: Netwm.h:41
@ NETWM_WINDOW_TYPE_DROPDOWN_MENU
dropdown menu window (part of 1.4)
Definition: Netwm.h:67
@ NETWM_WINDOW_TYPE_NOTIFICATION
notification (part of 1.4)
Definition: Netwm.h:70
@ NETWM_WINDOW_TYPE_SPLASH
splash window
Definition: Netwm.h:65
@ NETWM_WINDOW_TYPE_DND
window is being dragged (part of 1.4)
Definition: Netwm.h:72
@ NETWM_WINDOW_TYPE_COMBO
window popped up by combo boxes (part of 1.4)
Definition: Netwm.h:71
@ NETWM_WINDOW_TYPE_POPUP_MENU
popup window (part of 1.4)
Definition: Netwm.h:68
@ NETWM_WINDOW_TYPE_DESKTOP
window placed as desktop
Definition: Netwm.h:60
@ NETWM_WINDOW_TYPE_NORMAL
ordinary window
Definition: Netwm.h:59
@ NETWM_WINDOW_TYPE_TOOLBAR
window as toolbar
Definition: Netwm.h:62
@ NETWM_WINDOW_TYPE_UTILITY
window as utility window
Definition: Netwm.h:64
@ NETWM_WINDOW_TYPE_TOOLTIP
tooltip (part of 1.4)
Definition: Netwm.h:69
@ NETWM_WINDOW_TYPE_DIALOG
dialog window
Definition: Netwm.h:66
@ NETWM_WINDOW_TYPE_MENU
window as menu
Definition: Netwm.h:63
@ NETWM_WINDOW_TYPE_DOCK
docked window, like pager or panel
Definition: Netwm.h:61