1 /* vi:set sw=2 sts=2 ts=2 et ai tw=100: */ 2 /*- 3 * Copyright (c) 2017 Viktor Odintsev <zakhams@gmail.com> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or (at 8 * your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, but 11 * WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., Inc., 51 Franklin Street, Fifth Floor, Boston, 18 * MA 02110-1301, USA. 19 */ 20 21 #ifndef __COMMON_H__ 22 #define __COMMON_H__ 23 24 #include <gtk/gtk.h> 25 26 void xfwm_widget_reparent (GtkWidget *widget, 27 GtkWidget *new_parent); 28 29 void xfwm_get_screen_dimensions (gint *width, 30 gint *height); 31 32 void xfwm_get_monitor_geometry (GdkScreen *screen, 33 gint monitor_num, 34 GdkRectangle *geometry, 35 gboolean scaled); 36 37 gboolean xfwm_get_primary_monitor_geometry (GdkScreen *screen, 38 GdkRectangle *geometry, 39 gboolean scaled); 40 41 gint xfwm_get_primary_refresh_rate (GdkScreen *screen); 42 43 gboolean xfwm_monitor_is_primary (GdkScreen *screen, 44 gint monitor_num); 45 46 gint xfwm_get_n_monitors (GdkScreen *screen); 47 48 gchar *xfwm_make_display_name (GdkScreen *screen); 49 50 #endif /* !__COMMON_H__ */ 51