2008-05-18 20:00:09 -04:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2008 Iain Holmes
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* 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_PRIVATE_H
|
|
|
|
#define META_COMPOSITOR_PRIVATE_H
|
|
|
|
|
|
|
|
#include "compositor.h"
|
|
|
|
|
|
|
|
struct _MetaCompositor
|
|
|
|
{
|
|
|
|
void (* destroy) (MetaCompositor *compositor);
|
|
|
|
|
|
|
|
void (*manage_screen) (MetaCompositor *compositor,
|
|
|
|
MetaScreen *screen);
|
|
|
|
void (*unmanage_screen) (MetaCompositor *compositor,
|
|
|
|
MetaScreen *screen);
|
|
|
|
void (*add_window) (MetaCompositor *compositor,
|
2008-11-23 14:28:40 -05:00
|
|
|
MetaWindow *window);
|
2008-05-18 20:00:09 -04:00
|
|
|
void (*remove_window) (MetaCompositor *compositor,
|
2008-11-23 14:28:40 -05:00
|
|
|
MetaWindow *window);
|
2008-05-18 20:00:09 -04:00
|
|
|
void (*set_updates) (MetaCompositor *compositor,
|
|
|
|
MetaWindow *window,
|
|
|
|
gboolean update);
|
2008-11-22 13:07:32 -05:00
|
|
|
gboolean (*process_event) (MetaCompositor *compositor,
|
|
|
|
XEvent *event,
|
|
|
|
MetaWindow *window);
|
2008-05-18 20:00:09 -04:00
|
|
|
Pixmap (*get_window_pixmap) (MetaCompositor *compositor,
|
|
|
|
MetaWindow *window);
|
|
|
|
void (*set_active_window) (MetaCompositor *compositor,
|
|
|
|
MetaScreen *screen,
|
|
|
|
MetaWindow *window);
|
2008-11-23 14:28:40 -05:00
|
|
|
void (*map_window) (MetaCompositor *compositor,
|
|
|
|
MetaWindow *window);
|
|
|
|
void (*unmap_window) (MetaCompositor *compositor,
|
|
|
|
MetaWindow *window);
|
2008-08-19 06:47:30 -04:00
|
|
|
void (*minimize_window) (MetaCompositor *compositor,
|
2008-11-23 14:28:40 -05:00
|
|
|
MetaWindow *window,
|
|
|
|
MetaRectangle *window_rect,
|
|
|
|
MetaRectangle *icon_rect);
|
|
|
|
void (*unminimize_window) (MetaCompositor *compositor,
|
|
|
|
MetaWindow *window,
|
|
|
|
MetaRectangle *window_rect,
|
|
|
|
MetaRectangle *icon_rect);
|
2008-09-18 11:09:11 -04:00
|
|
|
void (*maximize_window) (MetaCompositor *compositor,
|
|
|
|
MetaWindow *window,
|
2008-11-23 14:28:40 -05:00
|
|
|
MetaRectangle *window_rect);
|
2008-09-18 11:09:11 -04:00
|
|
|
void (*unmaximize_window) (MetaCompositor *compositor,
|
|
|
|
MetaWindow *window,
|
2008-11-23 14:28:40 -05:00
|
|
|
MetaRectangle *window_rect);
|
2008-09-18 11:09:11 -04:00
|
|
|
void (*update_workspace_geometry) (MetaCompositor *compositor,
|
|
|
|
MetaWorkspace *workspace);
|
2008-10-09 12:57:12 -04:00
|
|
|
void (*switch_workspace) (MetaCompositor *compositor,
|
|
|
|
MetaScreen *screen,
|
|
|
|
MetaWorkspace *from,
|
|
|
|
MetaWorkspace *to,
|
|
|
|
MetaMotionDirection direction);
|
2008-10-30 18:09:48 -04:00
|
|
|
void (*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-11-03 09:50:22 -05:00
|
|
|
void (*set_window_hidden) (MetaCompositor *compositor,
|
|
|
|
MetaScreen *screen,
|
|
|
|
MetaWindow *window,
|
|
|
|
gboolean hidden);
|
2008-11-27 08:40:52 -05:00
|
|
|
void (*sync_window_geometry) (MetaCompositor *compositor,
|
|
|
|
MetaWindow *window);
|
|
|
|
void (*sync_screen_size) (MetaCompositor *compositor,
|
|
|
|
MetaScreen *screen,
|
|
|
|
guint width,
|
|
|
|
guint height);
|
2008-05-18 20:00:09 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|