2009-10-27 15:27:45 +00:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
2008-11-21 14:02:09 +00:00
|
|
|
#ifndef __SHELL_WM_H__
|
|
|
|
#define __SHELL_WM_H__
|
|
|
|
|
|
|
|
#include <glib-object.h>
|
2011-03-05 15:49:24 +00:00
|
|
|
#include <meta/meta-plugin.h>
|
2008-11-21 14:02:09 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
typedef struct _ShellWM ShellWM;
|
|
|
|
typedef struct _ShellWMClass ShellWMClass;
|
|
|
|
|
|
|
|
#define SHELL_TYPE_WM (shell_wm_get_type ())
|
|
|
|
#define SHELL_WM(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), SHELL_TYPE_WM, ShellWM))
|
|
|
|
#define SHELL_WM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SHELL_TYPE_WM, ShellWMClass))
|
|
|
|
#define SHELL_IS_WM(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), SHELL_TYPE_WM))
|
|
|
|
#define SHELL_IS_WM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SHELL_TYPE_WM))
|
|
|
|
#define SHELL_WM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SHELL_TYPE_WM, ShellWMClass))
|
|
|
|
|
|
|
|
struct _ShellWMClass
|
|
|
|
{
|
|
|
|
GObjectClass parent_class;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
GType shell_wm_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2010-10-19 18:55:43 +00:00
|
|
|
ShellWM *shell_wm_new (MetaPlugin *plugin);
|
|
|
|
|
|
|
|
void shell_wm_completed_minimize (ShellWM *wm,
|
|
|
|
MetaWindowActor *actor);
|
|
|
|
void shell_wm_completed_maximize (ShellWM *wm,
|
|
|
|
MetaWindowActor *actor);
|
|
|
|
void shell_wm_completed_unmaximize (ShellWM *wm,
|
|
|
|
MetaWindowActor *actor);
|
|
|
|
void shell_wm_completed_map (ShellWM *wm,
|
|
|
|
MetaWindowActor *actor);
|
|
|
|
void shell_wm_completed_destroy (ShellWM *wm,
|
|
|
|
MetaWindowActor *actor);
|
|
|
|
void shell_wm_completed_switch_workspace (ShellWM *wm);
|
2008-11-21 14:02:09 +00:00
|
|
|
|
2009-09-15 15:11:32 +00:00
|
|
|
/* Keybinding stuff */
|
|
|
|
void shell_wm_takeover_keybinding (ShellWM *wm,
|
|
|
|
const char *binding_name);
|
2009-04-13 14:55:41 +00:00
|
|
|
|
2008-11-21 14:02:09 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __SHELL_WM_H__ */
|