~ubuntu-branches/ubuntu/wily/mutter/wily

« back to all changes in this revision

Viewing changes to src/include/mutter-plugin.h

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-10-01 11:39:17 UTC
  • mfrom: (1.2.1 upstream) (10.1.20 maverick)
  • Revision ID: james.westby@ubuntu.com-20101001113917-d1c9zswwaehyn07e
Tags: 2.31.5-0ubuntu9
* debian/patches/20_unity_no_3D_detection.patch:
  - add an extra string in fallback mode to guide user in live session
    (LP: #651085)

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include <X11/extensions/Xfixes.h>
33
33
#include <gmodule.h>
34
34
 
35
 
/*
36
 
 * FIXME -- move these to a private include
37
 
 * Required by plugin manager.
38
 
 */
39
 
#define MUTTER_PLUGIN_MINIMIZE         (1<<0)
40
 
#define MUTTER_PLUGIN_MAXIMIZE         (1<<1)
41
 
#define MUTTER_PLUGIN_UNMAXIMIZE       (1<<2)
42
 
#define MUTTER_PLUGIN_MAP              (1<<3)
43
 
#define MUTTER_PLUGIN_DESTROY          (1<<4)
44
 
#define MUTTER_PLUGIN_SWITCH_WORKSPACE (1<<5)
45
 
 
46
 
#define MUTTER_PLUGIN_ALL_EFFECTS      (~0)
47
 
 
48
35
#define MUTTER_TYPE_PLUGIN            (mutter_plugin_get_type ())
49
36
#define MUTTER_PLUGIN(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), MUTTER_TYPE_PLUGIN, MutterPlugin))
50
37
#define MUTTER_PLUGIN_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass),  MUTTER_TYPE_PLUGIN, MutterPluginClass))
69
56
{
70
57
  GObjectClass parent_class;
71
58
 
 
59
  void (*start)            (MutterPlugin       *plugin);
 
60
 
72
61
  void (*minimize)         (MutterPlugin       *plugin,
73
62
                            MutterWindow       *actor);
74
63
 
93
82
                            MutterWindow       *actor);
94
83
 
95
84
  void (*switch_workspace) (MutterPlugin       *plugin,
96
 
                            const GList       **actors,
97
85
                            gint                from,
98
86
                            gint                to,
99
87
                            MetaMotionDirection direction);
100
88
 
101
89
  /*
102
 
   * Called if an effect should be killed prematurely; the plugin must
 
90
   * Called if an effects should be killed prematurely; the plugin must
103
91
   * call the completed() callback as if the effect terminated naturally.
104
 
   * The events parameter is a bitmask indicating which effects are to be
105
 
   * killed.
106
92
   */
107
 
  void (*kill_effect)      (MutterPlugin     *plugin,
108
 
                            MutterWindow     *actor,
109
 
                            gulong            events);
 
93
  void (*kill_window_effects)      (MutterPlugin     *plugin,
 
94
                                    MutterWindow     *actor);
 
95
 
 
96
  void (*kill_switch_workspace)    (MutterPlugin     *plugin);
110
97
 
111
98
  /* General XEvent filter. This is fired *before* mutter itself handles
112
99
   * an event. Return TRUE to block any further processing.
225
212
  }                                                                     \
226
213
 
227
214
void
228
 
mutter_plugin_effect_completed (MutterPlugin  *plugin,
229
 
                                MutterWindow  *actor,
230
 
                                unsigned long  event);
 
215
mutter_plugin_switch_workspace_completed (MutterPlugin *plugin);
 
216
 
 
217
void
 
218
mutter_plugin_minimize_completed (MutterPlugin *plugin,
 
219
                                  MutterWindow *actor);
 
220
 
 
221
void
 
222
mutter_plugin_maximize_completed (MutterPlugin *plugin,
 
223
                                  MutterWindow *actor);
 
224
 
 
225
void
 
226
mutter_plugin_unmaximize_completed (MutterPlugin *plugin,
 
227
                                    MutterWindow *actor);
 
228
 
 
229
void
 
230
mutter_plugin_map_completed (MutterPlugin *plugin,
 
231
                             MutterWindow *actor);
 
232
 
 
233
void
 
234
mutter_plugin_destroy_completed (MutterPlugin *plugin,
 
235
                                 MutterWindow *actor);
231
236
 
232
237
ClutterActor *
233
238
mutter_plugin_get_overlay_group (MutterPlugin *plugin);