2006-10-01 18:30:10 -04:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
|
2008-05-18 20:00:09 -04:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2008 Iain Holmes
|
|
|
|
*
|
2003-11-15 23:35:16 -05: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.
|
2008-05-18 20:00:09 -04:00
|
|
|
*
|
2003-11-15 23:35:16 -05:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
* 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef META_COMPOSITOR_H
|
|
|
|
#define META_COMPOSITOR_H
|
|
|
|
|
2008-05-18 20:00:09 -04:00
|
|
|
#include <glib.h>
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
#include "boxes.h"
|
2008-09-18 11:09:11 -04:00
|
|
|
#include "window.h"
|
|
|
|
#include "workspace.h"
|
|
|
|
|
|
|
|
typedef enum _MetaCompWindowType
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* Types shared with MetaWindow
|
|
|
|
*/
|
|
|
|
META_COMP_WINDOW_NORMAL = META_WINDOW_NORMAL,
|
|
|
|
META_COMP_WINDOW_DESKTOP = META_WINDOW_DESKTOP,
|
|
|
|
META_COMP_WINDOW_DOCK = META_WINDOW_DOCK,
|
|
|
|
META_COMP_WINDOW_MENU = META_WINDOW_MENU,
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Extended types that WM does not care about, but we do.
|
|
|
|
*/
|
|
|
|
META_COMP_WINDOW_TOOLTIP = 0xf000,
|
|
|
|
META_COMP_WINDOW_DROP_DOWN_MENU,
|
|
|
|
META_COMP_WINDOW_DND,
|
|
|
|
META_COMP_WINDOW_OVERRIDE,
|
|
|
|
} MetaCompWindowType;
|
|
|
|
|
2008-05-18 20:00:09 -04:00
|
|
|
|
2008-09-17 11:39:32 -04:00
|
|
|
#ifdef WITH_CLUTTER
|
|
|
|
extern int meta_compositor_can_use_clutter__;
|
|
|
|
#endif
|
2008-05-18 20:00:09 -04:00
|
|
|
MetaCompositor *meta_compositor_new (MetaDisplay *display);
|
|
|
|
void meta_compositor_destroy (MetaCompositor *compositor);
|
|
|
|
|
|
|
|
void meta_compositor_manage_screen (MetaCompositor *compositor,
|
|
|
|
MetaScreen *screen);
|
2003-11-20 21:32:05 -05:00
|
|
|
void meta_compositor_unmanage_screen (MetaCompositor *compositor,
|
|
|
|
MetaScreen *screen);
|
2003-11-15 23:35:16 -05:00
|
|
|
|
2008-05-18 20:00:09 -04:00
|
|
|
void meta_compositor_add_window (MetaCompositor *compositor,
|
|
|
|
MetaWindow *window,
|
|
|
|
Window xwindow,
|
|
|
|
XWindowAttributes *attrs);
|
|
|
|
void meta_compositor_remove_window (MetaCompositor *compositor,
|
|
|
|
Window xwindow);
|
|
|
|
|
Merge compositor branch.
2007-12-18 Iain Holmes <iain@gnome.org>
* configure.in, src/theme.c, src/display.c,
src/theme.h, src/display.h, src/theme-parser.c,
src/compositor.c, src/c-screen.c, src/compositor.h,
src/c-screen.h, src/ui.c, src/screen.c, src/ui.h,
src/screen.h, src/c-window.c, src/c-window.h,
src/theme-viewer.c, src/Makefile.am: Merge compositor branch.
svn path=/trunk/; revision=3483
2007-12-18 22:49:50 -05:00
|
|
|
void meta_compositor_set_updates (MetaCompositor *compositor,
|
|
|
|
MetaWindow *window,
|
|
|
|
gboolean updates);
|
2006-02-15 14:50:12 -05:00
|
|
|
|
2008-05-18 20:00:09 -04:00
|
|
|
void meta_compositor_process_event (MetaCompositor *compositor,
|
|
|
|
XEvent *event,
|
|
|
|
MetaWindow *window);
|
Merge compositor branch.
2007-12-18 Iain Holmes <iain@gnome.org>
* configure.in, src/theme.c, src/display.c,
src/theme.h, src/display.h, src/theme-parser.c,
src/compositor.c, src/c-screen.c, src/compositor.h,
src/c-screen.h, src/ui.c, src/screen.c, src/ui.h,
src/screen.h, src/c-window.c, src/c-window.h,
src/theme-viewer.c, src/Makefile.am: Merge compositor branch.
svn path=/trunk/; revision=3483
2007-12-18 22:49:50 -05:00
|
|
|
Pixmap meta_compositor_get_window_pixmap (MetaCompositor *compositor,
|
|
|
|
MetaWindow *window);
|
2008-03-18 19:42:20 -04:00
|
|
|
void meta_compositor_set_active_window (MetaCompositor *compositor,
|
2008-03-18 20:47:01 -04:00
|
|
|
MetaScreen *screen,
|
2008-03-18 19:42:20 -04:00
|
|
|
MetaWindow *window);
|
2006-02-25 11:54:39 -05:00
|
|
|
|
2008-05-18 20:00:09 -04:00
|
|
|
void meta_compositor_begin_move (MetaCompositor *compositor,
|
|
|
|
MetaWindow *window,
|
|
|
|
MetaRectangle *initial,
|
|
|
|
int grab_x, int grab_y);
|
|
|
|
void meta_compositor_update_move (MetaCompositor *compositor,
|
|
|
|
MetaWindow *window,
|
|
|
|
int x, int y);
|
|
|
|
void meta_compositor_end_move (MetaCompositor *compositor,
|
|
|
|
MetaWindow *window);
|
|
|
|
void meta_compositor_free_window (MetaCompositor *compositor,
|
|
|
|
MetaWindow *window);
|
|
|
|
|
2008-08-19 06:47:30 -04:00
|
|
|
void
|
2008-06-09 12:50:56 -04:00
|
|
|
meta_compositor_destroy_window (MetaCompositor *compositor,
|
|
|
|
MetaWindow *window);
|
|
|
|
|
2008-08-19 06:47:30 -04:00
|
|
|
void
|
|
|
|
meta_compositor_minimize_window (MetaCompositor *compositor,
|
|
|
|
MetaWindow *window);
|
|
|
|
|
2008-09-18 11:09:11 -04:00
|
|
|
void
|
|
|
|
meta_compositor_maximize_window (MetaCompositor *compositor,
|
|
|
|
MetaWindow *window,
|
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
int width,
|
|
|
|
int height);
|
|
|
|
|
|
|
|
void
|
|
|
|
meta_compositor_unmaximize_window (MetaCompositor *compositor,
|
|
|
|
MetaWindow *window,
|
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
int width,
|
|
|
|
int height);
|
|
|
|
|
|
|
|
void
|
|
|
|
meta_compositor_update_workspace_geometry (MetaCompositor *compositor,
|
|
|
|
MetaWorkspace *workspace);
|
|
|
|
|
|
|
|
void
|
2008-10-09 12:57:12 -04:00
|
|
|
meta_compositor_switch_workspace (MetaCompositor *compositor,
|
|
|
|
MetaScreen *screen,
|
|
|
|
MetaWorkspace *from,
|
|
|
|
MetaWorkspace *to,
|
|
|
|
MetaMotionDirection direction);
|
2008-10-24 05:07:24 -04:00
|
|
|
|
|
|
|
void
|
2008-10-30 18:09:48 -04:00
|
|
|
meta_compositor_sync_stack (MetaCompositor *compositor,
|
2008-11-03 09:50:22 -05:00
|
|
|
MetaScreen *screen,
|
2008-10-30 18:09:48 -04:00
|
|
|
GList *stack);
|
2008-05-18 20:00:09 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|