c-window.h 2.7 KB
Newer Older
1
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
Søren Sandmann's avatar
Søren Sandmann committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/* 
 * Copyright (C) 2006 Red Hat, Inc.
 * 
 * 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.
 */

#include <cm/node.h>
22
#include "display.h"
23 24 25 26
#include "effects.h"

#ifndef C_WINDOW_H
#define C_WINDOW_H
Søren Sandmann's avatar
Søren Sandmann committed
27 28 29

typedef struct _MetaCompWindow MetaCompWindow;

30
typedef void (* MetaCompWindowDestroy) (MetaCompWindow *window,
31
                                        gpointer        closure);
32

Søren Sandmann's avatar
Søren Sandmann committed
33
MetaCompWindow *meta_comp_window_new (MetaScreen *screen,
34 35 36
				      WsDrawable *drawable,
				      MetaCompWindowDestroy destroy,
				      gpointer data);
Søren Sandmann's avatar
Søren Sandmann committed
37
CmNode	       *meta_comp_window_get_node (MetaCompWindow *window);
38
gboolean        meta_comp_window_free (MetaCompWindow *window);
Søren Sandmann's avatar
Søren Sandmann committed
39 40 41
void		meta_comp_window_set_size (MetaCompWindow *window,
					   WsRectangle *size);

42 43
void		meta_comp_window_hide (MetaCompWindow *comp_window);
void		meta_comp_window_show (MetaCompWindow *comp_window);
Søren Sandmann's avatar
Søren Sandmann committed
44 45 46
void		meta_comp_window_refresh_attrs (MetaCompWindow *comp_window);
void		meta_comp_window_set_updates (MetaCompWindow *comp_window,
					      gboolean updates);
47 48 49

void		meta_comp_window_explode (MetaCompWindow *comp_window,
					  MetaEffect *effect);
50 51 52 53
void		meta_comp_window_shrink (MetaCompWindow *comp_window,
					 MetaEffect *effect);
void		meta_comp_window_unshrink (MetaCompWindow *comp_window,
					   MetaEffect *effect);
Søren Sandmann's avatar
Søren Sandmann committed
54 55
void		meta_comp_window_run_focus (MetaCompWindow *comp_window,
					    MetaEffect *effect);
56 57 58 59 60
void		meta_comp_window_restack (MetaCompWindow *comp_window,
					  MetaCompWindow *above);
void		meta_comp_window_freeze_stack (MetaCompWindow *comp_window);
void		meta_comp_window_thaw_stack (MetaCompWindow *comp_window);
gboolean	meta_comp_window_stack_frozen (MetaCompWindow *comp_window);
61 62
void            meta_comp_window_run_minimize (MetaCompWindow *window,
					       MetaEffect     *effect);
Søren Sandmann's avatar
Søren Sandmann committed
63 64
void	        meta_comp_window_run_unminimize (MetaCompWindow *comp_window,
						 MetaEffect     *effect);
65

66 67 68 69 70 71 72
#if 0
void		meta_comp_window_set_explode (MetaCompWindow *comp_window,
					      double	      level);
#endif

#endif