2009-10-27 11:27:45 -04:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
2008-10-31 00:22:44 -04:00
|
|
|
#ifndef __SHELL_GLOBAL_H__
|
|
|
|
#define __SHELL_GLOBAL_H__
|
|
|
|
|
|
|
|
#include <clutter/clutter.h>
|
|
|
|
#include <glib-object.h>
|
2008-11-20 19:39:14 -05:00
|
|
|
#include <gdk-pixbuf/gdk-pixbuf.h>
|
2009-01-08 20:09:35 -05:00
|
|
|
#include <gtk/gtk.h>
|
2011-03-05 10:49:24 -05:00
|
|
|
#include <meta/meta-plugin.h>
|
2011-02-07 10:21:30 -05:00
|
|
|
|
2008-10-31 00:22:44 -04:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2008-10-31 00:22:44 -04:00
|
|
|
GType shell_global_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
ShellGlobal *shell_global_get (void);
|
|
|
|
|
2010-09-09 21:46:13 -04:00
|
|
|
typedef enum {
|
|
|
|
SHELL_CURSOR_DND_IN_DRAG,
|
|
|
|
SHELL_CURSOR_DND_UNSUPPORTED_TARGET,
|
|
|
|
SHELL_CURSOR_DND_MOVE,
|
2010-11-23 18:27:47 -05:00
|
|
|
SHELL_CURSOR_DND_COPY,
|
|
|
|
SHELL_CURSOR_POINTING_HAND
|
2010-09-09 21:46:13 -04:00
|
|
|
} ShellCursor;
|
|
|
|
|
|
|
|
void shell_global_set_cursor (ShellGlobal *global,
|
|
|
|
ShellCursor type);
|
|
|
|
|
|
|
|
void shell_global_unset_cursor (ShellGlobal *global);
|
|
|
|
|
2009-06-25 17:42:46 -04:00
|
|
|
MetaScreen *shell_global_get_screen (ShellGlobal *global);
|
|
|
|
|
2010-06-03 11:14:58 -04:00
|
|
|
GdkScreen *shell_global_get_gdk_screen (ShellGlobal *global);
|
|
|
|
|
2009-10-25 18:53:10 -04:00
|
|
|
gboolean shell_global_add_extension_importer (ShellGlobal *global,
|
|
|
|
const char *target_object_script,
|
|
|
|
const char *target_property,
|
|
|
|
const char *directory,
|
|
|
|
GError **error);
|
|
|
|
|
2009-04-29 14:01:09 -04:00
|
|
|
typedef enum {
|
|
|
|
SHELL_STAGE_INPUT_MODE_NONREACTIVE,
|
|
|
|
SHELL_STAGE_INPUT_MODE_NORMAL,
|
2010-07-02 13:36:13 -04:00
|
|
|
SHELL_STAGE_INPUT_MODE_FOCUSED,
|
2009-04-29 14:01:09 -04:00
|
|
|
SHELL_STAGE_INPUT_MODE_FULLSCREEN
|
|
|
|
} ShellStageInputMode;
|
|
|
|
|
|
|
|
void shell_global_set_stage_input_mode (ShellGlobal *global,
|
|
|
|
ShellStageInputMode mode);
|
|
|
|
void shell_global_set_stage_input_region (ShellGlobal *global,
|
|
|
|
GSList *rectangles);
|
2008-11-02 00:18:41 -04:00
|
|
|
|
2010-10-19 14:55:43 -04:00
|
|
|
GList *shell_global_get_window_actors (ShellGlobal *global);
|
2008-10-31 14:05:19 -04:00
|
|
|
|
2009-08-12 00:22:46 -04:00
|
|
|
gboolean shell_global_begin_modal (ShellGlobal *global,
|
|
|
|
guint32 timestamp);
|
|
|
|
void shell_global_end_modal (ShellGlobal *global,
|
|
|
|
guint32 timestamp);
|
2008-11-19 14:54:17 -05:00
|
|
|
|
2008-12-18 15:57:37 -05:00
|
|
|
void shell_global_reexec_self (ShellGlobal *global);
|
|
|
|
|
2010-01-25 16:42:11 -05:00
|
|
|
void shell_global_gc (ShellGlobal *global);
|
|
|
|
|
2010-04-03 06:48:18 -04:00
|
|
|
void shell_global_maybe_gc (ShellGlobal *global);
|
|
|
|
|
2009-08-25 15:23:53 -04:00
|
|
|
GSList *shell_global_get_monitors (ShellGlobal *global);
|
2010-07-02 13:17:02 -04:00
|
|
|
MetaRectangle *shell_global_get_primary_monitor (ShellGlobal *global);
|
2011-02-28 14:06:58 -05:00
|
|
|
int shell_global_get_primary_monitor_index (ShellGlobal *global);
|
2010-07-02 13:17:02 -04:00
|
|
|
MetaRectangle *shell_global_get_focus_monitor (ShellGlobal *global);
|
2009-08-25 15:23:53 -04:00
|
|
|
|
2011-03-18 08:27:06 -04:00
|
|
|
guint32 shell_global_create_pointer_barrier (ShellGlobal *global,
|
|
|
|
int x1, int y1, int x2, int y2,
|
|
|
|
int directions);
|
|
|
|
void shell_global_destroy_pointer_barrier (ShellGlobal *global,
|
|
|
|
guint32 barrier);
|
|
|
|
|
2011-01-19 10:29:50 -05:00
|
|
|
void shell_global_get_pointer (ShellGlobal *global,
|
|
|
|
int *x,
|
|
|
|
int *y,
|
|
|
|
ClutterModifierType *mods);
|
|
|
|
void shell_global_sync_pointer (ShellGlobal *global);
|
2009-10-06 10:53:25 -04:00
|
|
|
|
2010-05-05 17:05:42 -04:00
|
|
|
GSettings *shell_global_get_settings (ShellGlobal *global);
|
|
|
|
|
2009-12-03 15:59:52 -05:00
|
|
|
guint32 shell_global_get_current_time (ShellGlobal *global);
|
|
|
|
|
|
|
|
GAppLaunchContext *shell_global_create_app_launch_context (ShellGlobal *global);
|
2009-11-10 12:13:58 -05:00
|
|
|
|
2010-03-26 16:38:03 -04:00
|
|
|
gboolean shell_global_set_property_mutable (ShellGlobal *global,
|
|
|
|
const char *object,
|
|
|
|
const char *property,
|
|
|
|
gboolean mutable);
|
|
|
|
|
2010-05-09 00:34:15 -04:00
|
|
|
void shell_global_begin_work (ShellGlobal *global);
|
|
|
|
void shell_global_end_work (ShellGlobal *global);
|
|
|
|
|
|
|
|
typedef void (*ShellLeisureFunction) (gpointer data);
|
|
|
|
|
|
|
|
void shell_global_run_at_leisure (ShellGlobal *global,
|
|
|
|
ShellLeisureFunction func,
|
|
|
|
gpointer user_data,
|
|
|
|
GDestroyNotify notify);
|
|
|
|
|
2010-07-22 20:39:44 -04:00
|
|
|
void shell_global_play_theme_sound (ShellGlobal *global,
|
2011-02-15 13:23:36 -05:00
|
|
|
guint id,
|
2010-07-22 20:39:44 -04:00
|
|
|
const char *name);
|
2011-02-15 13:23:36 -05:00
|
|
|
void shell_global_cancel_theme_sound (ShellGlobal *global,
|
|
|
|
guint id);
|
2010-07-22 20:39:44 -04:00
|
|
|
|
2011-03-15 18:31:16 -04:00
|
|
|
|
|
|
|
void shell_global_notify_error (ShellGlobal *global,
|
|
|
|
const char *msg,
|
|
|
|
const char *details);
|
|
|
|
|
2011-01-05 09:47:27 -05:00
|
|
|
void shell_global_init_xdnd (ShellGlobal *global);
|
|
|
|
|
2011-02-25 17:42:25 -05:00
|
|
|
void shell_global_launch_calendar_server (ShellGlobal *global);
|
|
|
|
|
2008-10-31 00:22:44 -04:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __SHELL_GLOBAL_H__ */
|