2008-10-31 00:22:44 -04:00
|
|
|
#ifndef __SHELL_GLOBAL_H__
|
|
|
|
#define __SHELL_GLOBAL_H__
|
|
|
|
|
2008-10-31 11:20:54 -04:00
|
|
|
#include "mutter-plugin.h"
|
2008-10-31 00:22:44 -04:00
|
|
|
#include <clutter/clutter.h>
|
|
|
|
#include <glib-object.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
typedef struct _ShellGlobal ShellGlobal;
|
|
|
|
typedef struct _ShellGlobalClass ShellGlobalClass;
|
|
|
|
|
|
|
|
#define SHELL_TYPE_GLOBAL (shell_global_get_type ())
|
|
|
|
#define SHELL_GLOBAL(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), SHELL_TYPE_GLOBAL, ShellGlobal))
|
|
|
|
#define SHELL_GLOBAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SHELL_TYPE_GLOBAL, ShellGlobalClass))
|
|
|
|
#define SHELL_IS_GLOBAL(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), SHELL_TYPE_GLOBAL))
|
|
|
|
#define SHELL_IS_GLOBAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SHELL_TYPE_GLOBAL))
|
|
|
|
#define SHELL_GLOBAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SHELL_TYPE_GLOBAL, ShellGlobalClass))
|
|
|
|
|
2008-11-07 13:42:23 -05:00
|
|
|
struct _ShellGlobalClass
|
|
|
|
{
|
|
|
|
GObjectClass parent_class;
|
|
|
|
|
|
|
|
void (*panel_run_dialog) (ShellGlobal *global,
|
|
|
|
int timestamp);
|
|
|
|
void (*panel_main_menu) (ShellGlobal *global,
|
|
|
|
int timestamp);
|
|
|
|
};
|
|
|
|
|
2008-10-31 00:22:44 -04:00
|
|
|
GType shell_global_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
ShellGlobal *shell_global_get (void);
|
|
|
|
|
2008-11-02 00:18:41 -04:00
|
|
|
void shell_global_set_stage_input_area (ShellGlobal *global,
|
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
int width,
|
|
|
|
int height);
|
|
|
|
|
|
|
|
GList *shell_global_get_windows (ShellGlobal *global);
|
2008-10-31 14:05:19 -04:00
|
|
|
|
2008-10-31 11:20:54 -04:00
|
|
|
void _shell_global_set_plugin (ShellGlobal *global,
|
|
|
|
MutterPlugin *plugin);
|
2008-10-31 00:22:44 -04:00
|
|
|
|
2008-11-19 14:54:17 -05:00
|
|
|
MetaScreen * shell_global_get_screen (ShellGlobal *global);
|
|
|
|
|
|
|
|
void shell_global_focus_stage (ShellGlobal *global);
|
|
|
|
|
2008-10-31 00:22:44 -04:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __SHELL_GLOBAL_H__ */
|