2006-10-01 22:30:10 +00:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
|
Comprehensively rename to Mutter
Code:
All references in the code not related to themes, keybindings, or
GConf were changed from 'metacity' to 'mutter'. This includes, among other
things, strings, comments, the atoms used in the message protocol, and
the envvars used for debugging. The GConf schema file was reduced to
the 3 settings new to mutter.
The overall version was brought up to 2.27 to match current gnome.
Structure:
All files named '*metacity*' were renamed '*mutter*' with appropriate
changes in the automake system. Files removed are
doc/creating_themes, src/themes, doc/metacity-theme.dtd,
metacity.doap. These files will eventually end up in an external
gnome-wm-data module.
Installation location:
On the filesystem the mutter-plugindir was change from
$(libdir)/metacity/plugins/clutter to just $(libdir)/mutter/plugins.
The mutter-plugins.pc.in reflects these changes.
Note:
mutter.desktop.in and mutter-wm.desktop both continue to have
X-GNOME-WMSettingsModule=metacity set. This allows
gnome-control-center to continue using libmetacity.so for
configuration. This is fine since most the general keybindings and wm
settings are being read from /apps/metacity/* in gconf.
2009-06-10 12:29:20 +02:00
|
|
|
/* Mutter interface for talking to GTK+ UI module */
|
2001-06-17 19:53:45 +00:00
|
|
|
|
2014-05-02 09:34:02 -04:00
|
|
|
/*
|
2001-06-17 19:53:45 +00:00
|
|
|
* Copyright (C) 2001 Havoc Pennington
|
2014-05-02 09:34:02 -04:00
|
|
|
*
|
2001-06-17 19:53:45 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program 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
|
|
|
|
* General Public License for more details.
|
2014-05-02 09:34:02 -04:00
|
|
|
*
|
2001-06-17 19:53:45 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
2014-01-12 08:42:06 +07:00
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
2001-06-17 19:53:45 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef META_UI_H
|
|
|
|
#define META_UI_H
|
|
|
|
|
2001-08-06 07:58:49 +00:00
|
|
|
/* Don't include gtk.h or gdk.h here */
|
2011-03-05 19:29:12 -05:00
|
|
|
#include <meta/common.h>
|
2001-06-20 03:01:26 +00:00
|
|
|
#include <X11/Xlib.h>
|
2001-09-11 04:37:10 +00:00
|
|
|
#include <X11/Xutil.h>
|
2011-03-22 15:36:12 -04:00
|
|
|
#include <cairo.h>
|
2001-06-20 03:01:26 +00:00
|
|
|
#include <glib.h>
|
2001-08-06 07:58:49 +00:00
|
|
|
#include <gdk-pixbuf/gdk-pixbuf.h>
|
2001-06-17 19:53:45 +00:00
|
|
|
|
|
|
|
typedef struct _MetaUI MetaUI;
|
|
|
|
|
2001-06-20 03:01:26 +00:00
|
|
|
typedef gboolean (* MetaEventFunc) (XEvent *xevent, gpointer data);
|
|
|
|
|
2007-05-25 14:36:12 +00:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
META_UI_DIRECTION_LTR,
|
|
|
|
META_UI_DIRECTION_RTL
|
|
|
|
} MetaUIDirection;
|
|
|
|
|
2011-03-05 16:16:26 -05:00
|
|
|
void meta_ui_init (void);
|
2001-06-17 19:53:45 +00:00
|
|
|
|
2006-05-04 17:32:26 +00:00
|
|
|
Display* meta_ui_get_display (void);
|
2001-06-20 03:01:26 +00:00
|
|
|
|
2012-09-10 20:19:21 +02:00
|
|
|
gint meta_ui_get_screen_number (void);
|
|
|
|
|
2001-06-18 03:24:25 +00:00
|
|
|
MetaUI* meta_ui_new (Display *xdisplay,
|
|
|
|
Screen *screen);
|
2001-06-17 19:53:45 +00:00
|
|
|
void meta_ui_free (MetaUI *ui);
|
|
|
|
|
2004-01-10 17:16:07 +00:00
|
|
|
void meta_ui_theme_get_frame_borders (MetaUI *ui,
|
|
|
|
MetaFrameType type,
|
|
|
|
MetaFrameFlags flags,
|
2011-07-12 00:37:41 -04:00
|
|
|
MetaFrameBorders *borders);
|
|
|
|
void meta_ui_get_frame_borders (MetaUI *ui,
|
|
|
|
Window frame_xwindow,
|
|
|
|
MetaFrameBorders *borders);
|
2013-04-12 18:00:15 +01:00
|
|
|
|
|
|
|
void meta_ui_get_frame_mask (MetaUI *ui,
|
|
|
|
Window frame_xwindow,
|
|
|
|
guint width,
|
|
|
|
guint height,
|
|
|
|
cairo_t *cr);
|
|
|
|
|
2003-08-16 16:32:10 +00:00
|
|
|
Window meta_ui_create_frame_window (MetaUI *ui,
|
2003-11-16 04:19:18 +00:00
|
|
|
Display *xdisplay,
|
|
|
|
Visual *xvisual,
|
2003-08-16 16:32:10 +00:00
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height,
|
2009-06-13 16:45:32 -04:00
|
|
|
gint screen_no,
|
|
|
|
gulong *create_serial);
|
2003-08-16 16:32:10 +00:00
|
|
|
void meta_ui_destroy_frame_window (MetaUI *ui,
|
|
|
|
Window xwindow);
|
|
|
|
void meta_ui_move_resize_frame (MetaUI *ui,
|
|
|
|
Window frame,
|
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
int width,
|
|
|
|
int height);
|
2001-07-04 02:10:54 +00:00
|
|
|
|
2001-06-20 03:01:26 +00:00
|
|
|
/* GDK insists on tracking map/unmap */
|
|
|
|
void meta_ui_map_frame (MetaUI *ui,
|
|
|
|
Window xwindow);
|
|
|
|
void meta_ui_unmap_frame (MetaUI *ui,
|
|
|
|
Window xwindow);
|
2001-06-18 03:24:25 +00:00
|
|
|
|
2002-01-27 05:27:11 +00:00
|
|
|
void meta_ui_unflicker_frame_bg (MetaUI *ui,
|
|
|
|
Window xwindow,
|
|
|
|
int target_width,
|
|
|
|
int target_height);
|
|
|
|
void meta_ui_reset_frame_bg (MetaUI *ui,
|
|
|
|
Window xwindow);
|
2001-06-18 03:24:25 +00:00
|
|
|
|
2011-03-22 15:36:12 -04:00
|
|
|
cairo_region_t *meta_ui_get_frame_bounds (MetaUI *ui,
|
|
|
|
Window xwindow,
|
|
|
|
int window_width,
|
|
|
|
int window_height);
|
|
|
|
|
2001-06-18 03:24:25 +00:00
|
|
|
void meta_ui_queue_frame_draw (MetaUI *ui,
|
|
|
|
Window xwindow);
|
2001-06-17 19:53:45 +00:00
|
|
|
|
2001-06-20 03:01:26 +00:00
|
|
|
void meta_ui_set_frame_title (MetaUI *ui,
|
|
|
|
Window xwindow,
|
|
|
|
const char *title);
|
|
|
|
|
2011-03-20 23:10:49 +01:00
|
|
|
void meta_ui_update_frame_style (MetaUI *ui,
|
|
|
|
Window window);
|
|
|
|
|
2002-05-09 22:34:00 +00:00
|
|
|
void meta_ui_repaint_frame (MetaUI *ui,
|
|
|
|
Window xwindow);
|
|
|
|
|
2001-06-23 05:49:35 +00:00
|
|
|
|
2001-08-30 04:01:38 +00:00
|
|
|
/* FIXME these lack a display arg */
|
2010-10-02 03:40:15 +02:00
|
|
|
GdkPixbuf* meta_gdk_pixbuf_get_from_pixmap (Pixmap xpixmap,
|
2001-08-20 01:42:44 +00:00
|
|
|
int src_x,
|
|
|
|
int src_y,
|
|
|
|
int width,
|
|
|
|
int height);
|
|
|
|
|
2001-08-30 04:01:38 +00:00
|
|
|
gboolean meta_ui_window_should_not_cause_focus (Display *xdisplay,
|
|
|
|
Window xwindow);
|
2001-08-19 06:23:59 +00:00
|
|
|
|
2013-07-17 23:15:02 -04:00
|
|
|
void meta_ui_set_current_theme (const char *name);
|
2002-02-07 03:07:56 +00:00
|
|
|
gboolean meta_ui_have_a_theme (void);
|
|
|
|
|
2002-08-10 15:55:18 +00:00
|
|
|
gboolean meta_ui_window_is_widget (MetaUI *ui,
|
|
|
|
Window xwindow);
|
|
|
|
|
2003-06-12 05:55:06 +00:00
|
|
|
int meta_ui_get_drag_threshold (MetaUI *ui);
|
2003-05-30 02:53:42 +00:00
|
|
|
|
2007-05-25 14:36:12 +00:00
|
|
|
MetaUIDirection meta_ui_get_direction (void);
|
|
|
|
|
2001-06-17 19:53:45 +00:00
|
|
|
#endif
|