gala/vapi/libmutter.vapi

1860 lines
66 KiB
Vala
Raw Normal View History

2012-05-29 17:38:49 +04:00
/* libmutter.vapi generated by vapigen, do not modify. */
[CCode (cprefix = "Meta", gir_namespace = "Meta", gir_version = "3.0", lower_case_cprefix = "meta_")]
namespace Meta {
2014-12-11 13:40:36 +03:00
#if !HAS_MUTTER316
2012-05-29 17:38:49 +04:00
namespace Gradient {
[CCode (cheader_filename = "meta/gradient.h")]
public static void add_alpha (Gdk.Pixbuf pixbuf, uint8 alphas, int n_alphas, Meta.GradientType type);
[CCode (cheader_filename = "meta/gradient.h")]
public static unowned Gdk.Pixbuf create_interwoven (int width, int height, Gdk.RGBA colors1, int thickness1, Gdk.RGBA colors2, int thickness2);
[CCode (cheader_filename = "meta/gradient.h")]
public static Gdk.Pixbuf create_multi (int width, int height, [CCode (array_length_cname = "n_colors", array_length_pos = 3.5)] Gdk.RGBA[] colors, Meta.GradientType style);
[CCode (cheader_filename = "meta/gradient.h")]
public static Gdk.Pixbuf create_simple (int width, int height, Gdk.RGBA from, Gdk.RGBA to, Meta.GradientType style);
2012-05-22 18:44:37 +04:00
}
2014-12-11 13:40:36 +03:00
#endif
2012-05-29 17:38:49 +04:00
namespace Prefs {
[CCode (cheader_filename = "meta/prefs.h")]
public static void add_listener (Meta.PrefsChangedFunc func);
[CCode (cheader_filename = "meta/prefs.h")]
public static bool bell_is_audible ();
[CCode (cheader_filename = "meta/prefs.h")]
public static void change_workspace_name (int i, string name);
[CCode (cheader_filename = "meta/prefs.h")]
public static GDesktop.TitlebarAction get_action_double_click_titlebar ();
[CCode (cheader_filename = "meta/prefs.h")]
public static GDesktop.TitlebarAction get_action_middle_click_titlebar ();
[CCode (cheader_filename = "meta/prefs.h")]
public static GDesktop.TitlebarAction get_action_right_click_titlebar ();
#if !HAS_MUTTER310
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/prefs.h")]
public static bool get_application_based ();
#endif
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/prefs.h")]
public static bool get_attach_modal_dialogs ();
[CCode (cheader_filename = "meta/prefs.h")]
2013-01-10 23:17:09 +04:00
public static bool get_auto_maximize ();
[CCode (cheader_filename = "meta/prefs.h")]
2012-05-29 17:38:49 +04:00
public static bool get_auto_raise ();
[CCode (cheader_filename = "meta/prefs.h")]
public static int get_auto_raise_delay ();
[CCode (cheader_filename = "meta/prefs.h")]
2013-01-10 23:17:09 +04:00
public static Meta.ButtonLayout get_button_layout ();
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/prefs.h")]
#if HAS_MUTTER314
public static bool get_center_new_windows ();
[CCode (cheader_filename = "meta/prefs.h")]
#endif
2012-05-29 17:38:49 +04:00
public static bool get_compositing_manager ();
[CCode (cheader_filename = "meta/prefs.h")]
public static int get_cursor_size ();
[CCode (cheader_filename = "meta/prefs.h")]
public static unowned string get_cursor_theme ();
[CCode (cheader_filename = "meta/prefs.h")]
public static bool get_disable_workarounds ();
#if HAS_MUTTER314
[CCode (cheader_filename = "meta/prefs.h")]
public static int get_drag_threshold ();
#endif
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/prefs.h")]
public static int get_draggable_border_width ();
[CCode (cheader_filename = "meta/prefs.h")]
public static bool get_dynamic_workspaces ();
[CCode (cheader_filename = "meta/prefs.h")]
public static bool get_edge_tiling ();
[CCode (cheader_filename = "meta/prefs.h")]
2012-11-17 00:06:31 +04:00
public static bool get_focus_change_on_pointer_rest ();
[CCode (cheader_filename = "meta/prefs.h")]
2012-05-29 17:38:49 +04:00
public static GDesktop.FocusMode get_focus_mode ();
[CCode (cheader_filename = "meta/prefs.h")]
public static GDesktop.FocusNewWindows get_focus_new_windows ();
[CCode (cheader_filename = "meta/prefs.h")]
public static bool get_force_fullscreen ();
[CCode (cheader_filename = "meta/prefs.h")]
public static bool get_gnome_accessibility ();
[CCode (cheader_filename = "meta/prefs.h")]
public static bool get_gnome_animations ();
[CCode (cheader_filename = "meta/prefs.h")]
2012-07-01 21:58:05 +04:00
public static bool get_ignore_request_hide_titlebar ();
#if HAS_MUTTER310 && !HAS_MUTTER312
2013-07-12 01:32:05 +04:00
[CCode (cheader_filename = "meta/prefs.h")]
public static unowned string get_iso_next_group_option ();
#endif
2012-07-01 21:58:05 +04:00
[CCode (cheader_filename = "meta/prefs.h")]
2012-05-29 17:38:49 +04:00
public static Meta.KeyBindingAction get_keybinding_action (string name);
#if !HAS_MUTTER312
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/prefs.h")]
public static GLib.List<weak Meta.KeyPref> get_keybindings ();
#endif
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/prefs.h")]
2012-12-25 01:25:40 +04:00
public static int get_mouse_button_menu ();
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/prefs.h")]
public static Meta.VirtualModifier get_mouse_button_mods ();
[CCode (cheader_filename = "meta/prefs.h")]
2012-12-25 01:25:40 +04:00
public static int get_mouse_button_resize ();
#if !HAS_MUTTER312
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/prefs.h")]
public static bool get_no_tab_popup ();
#endif
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/prefs.h")]
public static int get_num_workspaces ();
#if !HAS_MUTTER312
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/prefs.h")]
public static void get_overlay_binding (Meta.KeyCombo combo);
#endif
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/prefs.h")]
public static bool get_raise_on_click ();
2014-06-03 23:24:52 +04:00
#if HAS_MUTTER314
[CCode (cheader_filename = "meta/prefs.h")]
2014-06-03 23:24:52 +04:00
public static bool get_show_fallback_app_menu ();
#endif
#if !HAS_MUTTER316
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/prefs.h")]
public static unowned string get_theme ();
#endif
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/prefs.h")]
public static unowned Pango.FontDescription get_titlebar_font ();
[CCode (cheader_filename = "meta/prefs.h")]
public static bool get_visual_bell ();
[CCode (cheader_filename = "meta/prefs.h")]
public static GDesktop.VisualBellType get_visual_bell_type ();
2014-06-03 23:24:52 +04:00
#if !HAS_MUTTER314
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/prefs.h")]
public static void get_window_binding (string name, uint keysym, Meta.VirtualModifier modifiers);
2014-06-03 23:24:52 +04:00
#endif
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/prefs.h")]
public static unowned string get_workspace_name (int i);
[CCode (cheader_filename = "meta/prefs.h")]
public static bool get_workspaces_only_on_primary ();
[CCode (cheader_filename = "meta/prefs.h")]
public static void init ();
[CCode (cheader_filename = "meta/prefs.h")]
public static void override_preference_schema (string key, string schema);
[CCode (cheader_filename = "meta/prefs.h")]
public static void remove_listener (Meta.PrefsChangedFunc func);
[CCode (cheader_filename = "meta/prefs.h")]
public static void set_force_fullscreen (bool whether);
[CCode (cheader_filename = "meta/prefs.h")]
2012-07-01 21:58:05 +04:00
public static void set_ignore_request_hide_titlebar (bool whether);
#if !HAS_MUTTER312
2012-07-01 21:58:05 +04:00
[CCode (cheader_filename = "meta/prefs.h")]
2012-05-29 17:38:49 +04:00
public static void set_no_tab_popup (bool whether);
#endif
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/prefs.h")]
public static void set_num_workspaces (int n_workspaces);
}
namespace Util {
[CCode (cheader_filename = "meta/main.h", cname = "meta_add_verbose_topic")]
public static void add_verbose_topic (Meta.DebugTopic topic);
[CCode (cheader_filename = "meta/main.h", cname = "meta_bug")]
public static void bug (string format, ...);
[CCode (cheader_filename = "meta/main.h", cname = "meta_debug_spew_real")]
public static void debug_spew_real (string format, ...);
[CCode (cheader_filename = "meta/main.h", cname = "meta_disable_unredirect_for_screen")]
public static void disable_unredirect_for_screen (Meta.Screen screen);
2013-07-12 01:32:05 +04:00
[CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_empty_stage_input_region")]
2012-05-29 17:38:49 +04:00
public static void empty_stage_input_region (Meta.Screen screen);
[CCode (cheader_filename = "meta/main.h", cname = "meta_enable_unredirect_for_screen")]
public static void enable_unredirect_for_screen (Meta.Screen screen);
[CCode (cheader_filename = "meta/main.h", cname = "meta_error_trap_pop")]
public static void error_trap_pop (Meta.Display display);
#if !HAS_MUTTER314
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/main.h", cname = "meta_error_trap_pop_with_return")]
public static int error_trap_pop_with_return (Meta.Display display);
#endif
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/main.h", cname = "meta_error_trap_push")]
public static void error_trap_push (Meta.Display display);
[CCode (cheader_filename = "meta/main.h", cname = "meta_error_trap_push_with_return")]
public static void error_trap_push_with_return (Meta.Display display);
2013-03-26 21:45:00 +04:00
[CCode (cheader_filename = "meta/main.h", cname = "meta_external_binding_name_for_action")]
public static string external_binding_name_for_action (uint keybinding_action);
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/main.h", cname = "meta_fatal")]
public static void fatal (string format, ...);
[CCode (cheader_filename = "meta/main.h", cname = "meta_free_gslist_and_elements")]
public static void free_gslist_and_elements (GLib.SList<void*> list_to_deep_free);
[CCode (cheader_filename = "meta/main.h", cname = "meta_g_utf8_strndup")]
public static string g_utf8_strndup (string src, size_t n);
#if HAS_MUTTER314
[CCode (cheader_filename = "meta/main.h", cname = "meta_get_locale_direction")]
public static Meta.LocaleDirection get_locale_direction ();
#endif
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/main.h", cname = "meta_get_overlay_window")]
public static X.Window get_overlay_window (Meta.Screen screen);
[CCode (cheader_filename = "meta/main.h", cname = "meta_gravity_to_string")]
public static unowned string gravity_to_string (int gravity);
[CCode (cheader_filename = "meta/main.h", cname = "meta_is_debugging")]
public static bool is_debugging ();
[CCode (cheader_filename = "meta/main.h", cname = "meta_is_syncing")]
public static bool is_syncing ();
[CCode (cheader_filename = "meta/main.h", cname = "meta_is_verbose")]
public static bool is_verbose ();
#if HAS_MUTTER314
[CCode (cheader_filename = "meta/main.h", cname = "meta_is_wayland_compositor")]
public static bool is_wayland_compositor ();
#endif
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/main.h", cname = "meta_later_add")]
public static uint later_add (Meta.LaterType when, owned GLib.SourceFunc func);
[CCode (cheader_filename = "meta/main.h", cname = "meta_later_remove")]
public static void later_remove (uint later_id);
[CCode (cheader_filename = "meta/main.h", cname = "meta_pop_no_msg_prefix")]
public static void pop_no_msg_prefix ();
[CCode (cheader_filename = "meta/main.h", cname = "meta_push_no_msg_prefix")]
public static void push_no_msg_prefix ();
[CCode (cheader_filename = "meta/main.h", cname = "meta_rect")]
2013-03-26 21:45:00 +04:00
public static Meta.Rectangle? rect (int x, int y, int width, int height);
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/main.h", cname = "meta_remove_verbose_topic")]
public static void remove_verbose_topic (Meta.DebugTopic topic);
#if !HAS_MUTTER312
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/main.h", cname = "meta_set_debugging")]
public static void set_debugging (bool setting);
[CCode (cheader_filename = "meta/main.h", cname = "meta_set_replace_current_wm")]
public static void set_replace_current_wm (bool setting);
#endif
2013-07-12 01:32:05 +04:00
[CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_set_stage_input_region")]
2012-05-29 17:38:49 +04:00
public static void set_stage_input_region (Meta.Screen screen, X.XserverRegion region);
#if !HAS_MUTTER312
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/main.h", cname = "meta_set_syncing")]
public static void set_syncing (bool setting);
[CCode (cheader_filename = "meta/main.h", cname = "meta_set_verbose")]
public static void set_verbose (bool setting);
#endif
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/main.h", cname = "meta_show_dialog")]
public static GLib.Pid show_dialog (string type, string message, string? timeout = null, string? display = null, string? ok_text = null, string? cancel_text = null, string? icon_name = null, int transient_for = 0, GLib.SList<string>? columns = null, GLib.SList<string>? entries = null);
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/main.h", cname = "meta_topic_real")]
public static void topic_real (Meta.DebugTopic topic, string format, ...);
[CCode (cheader_filename = "meta/main.h", cname = "meta_unsigned_long_equal")]
public static int unsigned_long_equal (void* v1, void* v2);
[CCode (cheader_filename = "meta/main.h", cname = "meta_unsigned_long_hash")]
public static uint unsigned_long_hash (void* v);
[CCode (cheader_filename = "meta/main.h", cname = "meta_verbose_real")]
public static void verbose_real (string format, ...);
[CCode (cheader_filename = "meta/main.h", cname = "meta_warning")]
public static void warning (string format, ...);
}
#if HAS_MUTTER314
[CCode (cheader_filename = "meta/main.h", type_id = "meta_backend_get_type ()")]
public abstract class Backend : GLib.Object {
[CCode (has_construct_function = false)]
protected Backend ();
[CCode (cheader_filename = "meta/meta-backend.h", cname = "meta_get_backend")]
public static unowned Meta.Backend get_backend ();
public unowned Clutter.Actor get_stage ();
public void lock_layout_group (uint idx);
public void set_keymap (string layouts, string variants, string options);
public signal void keymap_changed ();
public signal void keymap_layout_group_changed (uint object);
}
#endif
2013-03-27 00:57:28 +04:00
[CCode (cheader_filename = "meta/meta-background.h", type_id = "meta_background_get_type ()")]
#if HAS_MUTTER314
public class Background : GLib.Object {
[CCode (has_construct_function = false)]
public Background (Meta.Screen screen);
2014-12-11 13:40:36 +03:00
#if HAS_MUTTER316
public void set_blend (GLib.File file1, GLib.File file2, double blend_factor, GDesktop.BackgroundStyle style);
#else
public void set_blend (string filename1, string filename2, double blend_factor, GDesktop.BackgroundStyle style);
2014-12-11 13:40:36 +03:00
#endif
public void set_color (Clutter.Color color);
2014-12-11 13:40:36 +03:00
#if HAS_MUTTER316
public void set_file (GLib.File file, GDesktop.BackgroundStyle style);
#else
public void set_filename (string filename, GDesktop.BackgroundStyle style);
2014-12-11 13:40:36 +03:00
#endif
public void set_gradient (GDesktop.BackgroundShading shading_direction, Clutter.Color color, Clutter.Color second_color);
[NoAccessorMethod]
public Meta.Screen meta_screen { owned get; construct; }
public signal void changed ();
#else
2013-03-09 15:49:37 +04:00
public class Background : GLib.Object, Clutter.Content {
[CCode (has_construct_function = false)]
public Background (Meta.Screen screen, int monitor, Meta.BackgroundEffects effects);
public Meta.Background copy (int monitor, Meta.BackgroundEffects effects);
2013-03-26 21:45:00 +04:00
public unowned Clutter.Color? get_color ();
2013-03-09 15:49:37 +04:00
public unowned string get_filename ();
2013-03-26 21:45:00 +04:00
public unowned Clutter.Color? get_second_color ();
2013-03-09 15:49:37 +04:00
public GDesktop.BackgroundShading get_shading ();
public GDesktop.BackgroundStyle get_style ();
public void load_color (Clutter.Color color);
public async bool load_file_async (string filename, GDesktop.BackgroundStyle style, GLib.Cancellable? cancellable) throws GLib.Error;
public void load_gradient (GDesktop.BackgroundShading shading_direction, Clutter.Color color, Clutter.Color second_color);
public void load_still_frame ();
[NoAccessorMethod]
public float brightness { get; set construct; }
[NoAccessorMethod]
public Meta.BackgroundEffects effects { get; construct; }
[NoAccessorMethod]
public Meta.Screen meta_screen { owned get; set construct; }
[NoAccessorMethod]
public int monitor { get; set construct; }
[NoAccessorMethod]
public float vignette_sharpness { get; set construct; }
#endif
2013-03-09 15:49:37 +04:00
}
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/meta-background-actor.h", type_id = "meta_background_actor_get_type ()")]
public class BackgroundActor : Clutter.Actor, Atk.Implementor, Clutter.Animatable, Clutter.Container, Clutter.Scriptable {
2013-03-09 15:49:37 +04:00
[CCode (has_construct_function = false, type = "ClutterActor*")]
#if HAS_MUTTER314
public BackgroundActor (Meta.Screen screen, int monitor);
public void set_background (Meta.Background background);
public void set_vignette (bool enabled, double brightness, double sharpness);
[NoAccessorMethod]
public Meta.Background background { owned get; set; }
[NoAccessorMethod]
public double brightness { get; set; }
[NoAccessorMethod]
public Meta.Screen meta_screen { owned get; construct; }
[NoAccessorMethod]
public int monitor { get; construct; }
[NoAccessorMethod]
public bool vignette { get; set; }
[NoAccessorMethod]
public double vignette_sharpness { get; set; }
#else
2013-03-09 15:49:37 +04:00
public BackgroundActor ();
#endif
2013-03-09 15:49:37 +04:00
}
2013-03-27 20:46:25 +04:00
[CCode (cheader_filename = "meta/meta-background-group.h", type_id = "meta_background_group_get_type ()")]
public class BackgroundGroup : Clutter.Actor, Atk.Implementor, Clutter.Animatable, Clutter.Container, Clutter.Scriptable {
2013-03-09 15:49:37 +04:00
[CCode (has_construct_function = false, type = "ClutterActor*")]
public BackgroundGroup ();
}
#if HAS_MUTTER314
[CCode (cheader_filename = "meta/meta-background-image.h", type_id = "meta_background_image_get_type ()")]
public class BackgroundImage : GLib.Object {
[CCode (has_construct_function = false)]
protected BackgroundImage ();
public bool get_success ();
public unowned Cogl.Texture get_texture ();
public bool is_loaded ();
public signal void loaded ();
}
[CCode (cheader_filename = "meta/meta-background-image.h", type_id = "meta_background_image_cache_get_type ()")]
public class BackgroundImageCache : GLib.Object {
[CCode (has_construct_function = false)]
protected BackgroundImageCache ();
public static unowned Meta.BackgroundImageCache get_default ();
2014-12-11 13:40:36 +03:00
#if HAS_MUTTER316
public Meta.BackgroundImage load (GLib.File file);
public void purge (GLib.File file);
#else
public Meta.BackgroundImage load (string filename);
public void purge (string filename);
2014-12-11 13:40:36 +03:00
#endif
}
#endif
2013-03-27 00:57:28 +04:00
[CCode (cheader_filename = "meta/barrier.h", type_id = "meta_barrier_get_type ()")]
2013-03-09 15:49:37 +04:00
public class Barrier : GLib.Object {
[CCode (has_construct_function = false)]
protected Barrier ();
public void destroy ();
public bool is_active ();
public void release (Meta.BarrierEvent event);
[NoAccessorMethod]
public Meta.BarrierDirection directions { get; construct; }
[NoAccessorMethod]
public Meta.Display display { owned get; construct; }
[NoAccessorMethod]
public int x1 { get; construct; }
[NoAccessorMethod]
public int x2 { get; construct; }
[NoAccessorMethod]
public int y1 { get; construct; }
[NoAccessorMethod]
public int y2 { get; construct; }
public signal void hit (Meta.BarrierEvent event);
public signal void left (Meta.BarrierEvent event);
}
[CCode (cheader_filename = "meta/main.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "meta_barrier_event_get_type ()")]
[Compact]
public class BarrierEvent {
public int dt;
public double dx;
public double dy;
public int event_id;
public bool grabbed;
public bool released;
public uint32 time;
public double x;
public double y;
2012-05-29 17:38:49 +04:00
}
[CCode (cheader_filename = "meta/compositor.h")]
[Compact]
public class Compositor {
public void add_window (Meta.Window window);
public void destroy ();
#if HAS_MUTTER314
public bool filter_keybinding (Meta.KeyBinding binding);
#else
2012-11-30 19:34:38 +04:00
public bool filter_keybinding (Meta.Screen screen, Meta.KeyBinding binding);
#endif
2012-05-29 17:38:49 +04:00
public void flash_screen (Meta.Screen screen);
2013-05-23 17:40:25 +04:00
#if !HAS_MUTTER310
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/compositor.h", cname = "meta_get_overlay_group_for_screen")]
2013-03-26 21:45:00 +04:00
public static unowned Clutter.Actor? get_overlay_group_for_screen (Meta.Screen screen);
2013-07-12 01:32:05 +04:00
#else
[CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_focus_stage_window")]
public static void focus_stage_window (Meta.Screen screen, uint32 timestamp);
2014-12-11 13:40:36 +03:00
#endif
#if HAS_MUTTER316
[CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_get_feedback_group_for_screen")]
public static unowned Clutter.Actor get_feedback_group_for_screen (Meta.Screen screen);
2013-05-23 17:40:25 +04:00
#endif
2013-07-12 01:32:05 +04:00
[CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_get_stage_for_screen")]
2013-03-26 21:45:00 +04:00
public static unowned Clutter.Actor? get_stage_for_screen (Meta.Screen screen);
2013-07-12 01:32:05 +04:00
[CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_get_top_window_group_for_screen")]
2013-03-26 21:45:00 +04:00
public static unowned Clutter.Actor? get_top_window_group_for_screen (Meta.Screen screen);
2013-07-12 01:32:05 +04:00
[CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_get_window_actors")]
2013-03-26 21:45:00 +04:00
public static unowned GLib.List<weak Meta.WindowActor>? get_window_actors (Meta.Screen screen);
2013-07-12 01:32:05 +04:00
[CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_get_window_group_for_screen")]
2013-03-26 21:45:00 +04:00
public static unowned Clutter.Actor? get_window_group_for_screen (Meta.Screen screen);
#if HAS_MUTTER314
public void hide_tile_preview ();
#elif HAS_MUTTER312
public void hide_tile_preview (Meta.Screen screen);
#endif
2012-05-29 17:38:49 +04:00
public void hide_window (Meta.Window window, Meta.CompEffect effect);
#if HAS_MUTTER314
public void manage ();
#else
2012-05-29 17:38:49 +04:00
public void manage_screen (Meta.Screen screen);
#endif
2012-05-29 17:38:49 +04:00
public void maximize_window (Meta.Window window, Meta.Rectangle old_rect, Meta.Rectangle new_rect);
[CCode (cheader_filename = "meta/main.h")]
public static unowned Meta.Compositor @new (Meta.Display display);
2013-03-09 15:49:37 +04:00
public void queue_frame_drawn (Meta.Window window, bool no_delay_frame);
2012-05-29 17:38:49 +04:00
public void remove_window (Meta.Window window);
#if !HAS_MUTTER314
2013-03-09 15:49:37 +04:00
public void set_updates_frozen (Meta.Window window, bool updates_frozen);
#endif
#if HAS_MUTTER314
public void show_tile_preview (Meta.Window window, Meta.Rectangle tile_rect, int tile_monitor_number);
#elif HAS_MUTTER312
public void show_tile_preview (Meta.Screen screen, Meta.Window window, Meta.Rectangle tile_rect, int tile_monitor_number);
2013-03-09 15:49:37 +04:00
#endif
2012-05-29 17:38:49 +04:00
public void show_window (Meta.Window window, Meta.CompEffect effect);
2014-06-03 23:24:52 +04:00
#if HAS_MUTTER314
public void show_window_menu (Meta.Window window, Meta.WindowMenuType menu, int x, int y);
public void show_window_menu_for_rect (Meta.Window window, Meta.WindowMenuType menu, Meta.Rectangle rect);
#endif
2013-07-12 01:32:05 +04:00
#if HAS_MUTTER310
[CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_stage_is_focused")]
public static bool stage_is_focused (Meta.Screen screen);
#endif
#if HAS_MUTTER314
public void switch_workspace (Meta.Workspace from, Meta.Workspace to, Meta.MotionDirection direction);
public void sync_stack (GLib.List<Meta.WindowActor> stack);
public void sync_updates_frozen (Meta.Window window);
#else
2012-05-29 17:38:49 +04:00
public void switch_workspace (Meta.Screen screen, Meta.Workspace from, Meta.Workspace to, Meta.MotionDirection direction);
public void sync_screen_size (Meta.Screen screen, uint width, uint height);
2012-11-30 19:34:38 +04:00
public void sync_stack (Meta.Screen screen, GLib.List<Meta.WindowActor> stack);
#endif
2013-03-09 15:49:37 +04:00
public void sync_window_geometry (Meta.Window window, bool did_placement);
#if HAS_MUTTER314
public void unmanage ();
#else
2012-05-29 17:38:49 +04:00
public void unmanage_screen (Meta.Screen screen);
#endif
2012-05-29 17:38:49 +04:00
public void unmaximize_window (Meta.Window window, Meta.Rectangle old_rect, Meta.Rectangle new_rect);
#if !HAS_MUTTER312
2012-05-29 17:38:49 +04:00
public void window_mapped (Meta.Window window);
#endif
2014-01-17 16:56:36 +04:00
#if HAS_MUTTER312
public void window_opacity_changed (Meta.Window window);
#endif
2012-05-29 17:38:49 +04:00
public void window_shape_changed (Meta.Window window);
#if HAS_MUTTER314
public void window_surface_changed (Meta.Window window);
#endif
#if !HAS_MUTTER312
2012-05-29 17:38:49 +04:00
public void window_unmapped (Meta.Window window);
#endif
2012-05-29 17:38:49 +04:00
}
#if HAS_MUTTER310
[CCode (cheader_filename = "meta/meta-cursor-tracker.h", type_id = "meta_cursor_tracker_get_type ()")]
public class CursorTracker : GLib.Object {
[CCode (has_construct_function = false)]
protected CursorTracker ();
public static unowned Meta.CursorTracker get_for_screen (Meta.Screen screen);
public void get_hot (out int x, out int y);
2013-09-18 14:53:15 +04:00
public void get_pointer (int x, int y, Clutter.ModifierType mods);
public unowned Cogl.Texture get_sprite ();
2013-09-18 14:53:15 +04:00
public void set_pointer_visible (bool visible);
public signal void cursor_changed ();
}
#endif
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/display.h", type_id = "meta_display_get_type ()")]
public class Display : GLib.Object {
[CCode (has_construct_function = false)]
protected Display ();
public void add_ignored_crossing_serial (ulong serial);
2012-12-25 01:25:40 +04:00
public uint add_keybinding (string name, GLib.Settings settings, Meta.KeyBindingFlags flags, owned Meta.KeyHandlerFunc handler);
2012-05-29 17:38:49 +04:00
public bool begin_grab_op (Meta.Screen screen, Meta.Window window, Meta.GrabOp op, bool pointer_already_grabbed, bool frame_action, int button, ulong modmask, uint32 timestamp, int root_x, int root_y);
2012-06-28 11:17:33 +04:00
public void clear_mouse_mode ();
2012-05-29 17:38:49 +04:00
public void end_grab_op (uint32 timestamp);
public void focus_the_no_focus_window (Meta.Screen screen, uint32 timestamp);
2014-12-11 13:40:36 +03:00
#if HAS_MUTTER316
public void freeze_keyboard (uint32 timestamp);
#else
2013-07-12 01:32:05 +04:00
public void freeze_keyboard (X.Window window, uint32 timestamp);
2014-12-11 13:40:36 +03:00
#endif
2012-05-30 21:16:23 +04:00
public unowned Meta.Compositor get_compositor ();
#if !HAS_MUTTER314
2012-05-29 17:38:49 +04:00
public void get_compositor_version (int major, int minor);
#endif
2012-05-29 17:38:49 +04:00
public uint32 get_current_time ();
public uint32 get_current_time_roundtrip ();
public int get_damage_event_base ();
public unowned Meta.Window get_focus_window ();
public Meta.GrabOp get_grab_op ();
#if !HAS_MUTTER314
2012-05-29 17:38:49 +04:00
public uint get_ignored_modifier_mask ();
#endif
2012-12-25 01:25:40 +04:00
public uint get_keybinding_action (uint keycode, ulong mask);
2012-05-29 17:38:49 +04:00
public uint32 get_last_user_time ();
#if !HAS_MUTTER314
2012-05-29 17:38:49 +04:00
public X.Window get_leader_window ();
public unowned GLib.SList<Meta.Screen> get_screens ();
#endif
2012-05-29 17:38:49 +04:00
public int get_shape_event_base ();
#if HAS_MUTTER314
public unowned Meta.Window get_tab_current (Meta.TabList type, Meta.Workspace workspace);
2014-06-03 23:24:52 +04:00
public GLib.List<weak Meta.Window> get_tab_list (Meta.TabList type, Meta.Workspace? workspace);
public unowned Meta.Window get_tab_next (Meta.TabList type, Meta.Workspace workspace, Meta.Window? window, bool backward);
#else
2012-05-29 17:38:49 +04:00
public unowned Meta.Window get_tab_current (Meta.TabList type, Meta.Screen screen, Meta.Workspace workspace);
2012-12-25 01:25:40 +04:00
public GLib.List<weak Meta.Window> get_tab_list (Meta.TabList type, Meta.Screen screen, Meta.Workspace? workspace);
2012-05-29 17:38:49 +04:00
public unowned Meta.Window get_tab_next (Meta.TabList type, Meta.Screen screen, Meta.Workspace workspace, Meta.Window? window, bool backward);
#endif
2012-05-30 21:16:23 +04:00
public unowned X.Display get_xdisplay ();
2013-01-10 23:17:09 +04:00
public int get_xinput_opcode ();
2013-03-09 15:49:37 +04:00
public uint grab_accelerator (string accelerator);
2012-05-29 17:38:49 +04:00
public bool has_shape ();
#if HAS_MUTTER314
public bool is_pointer_emulating_sequence (Clutter.EventSequence? sequence);
#endif
2012-05-30 21:16:23 +04:00
public unowned Meta.Group lookup_group (X.Window group_leader);
2012-05-29 17:38:49 +04:00
public bool remove_keybinding (string name);
#if !HAS_MUTTER314
2013-05-23 17:40:25 +04:00
#if HAS_MUTTER310
public void request_take_focus (Meta.Window window, uint32 timestamp);
#endif
2012-05-29 17:38:49 +04:00
public unowned Meta.Screen screen_for_root (X.Window xroot);
#endif
2012-05-29 17:38:49 +04:00
public void set_input_focus_window (Meta.Window window, bool focus_frame, uint32 timestamp);
public GLib.SList<weak Meta.Window> sort_windows_by_stacking (GLib.SList<Meta.Window> windows);
2013-03-09 15:49:37 +04:00
public bool supports_extended_barriers ();
2013-07-12 01:32:05 +04:00
public void unfreeze_keyboard (uint32 timestamp);
2013-03-09 15:49:37 +04:00
public bool ungrab_accelerator (uint action_id);
2013-07-12 01:32:05 +04:00
public void ungrab_keyboard (uint32 timestamp);
2012-05-29 17:38:49 +04:00
public void unmanage_screen (Meta.Screen screen, uint32 timestamp);
public bool xserver_time_is_before (uint32 time1, uint32 time2);
public bool xwindow_is_a_no_focus_window (X.Window xwindow);
#if HAS_MUTTER310
public signal void accelerator_activated (uint object, uint p0, uint p1);
2014-03-09 21:04:43 +04:00
#else
2013-03-09 15:49:37 +04:00
public signal void accelerator_activated (uint object, uint p0);
#endif
2012-05-29 17:38:49 +04:00
public signal void grab_op_begin (Meta.Screen object, Meta.Window p0, Meta.GrabOp p1);
public signal void grab_op_end (Meta.Screen object, Meta.Window p0, Meta.GrabOp p1);
2013-07-12 01:32:05 +04:00
#if HAS_MUTTER310
public signal bool modifiers_accelerator_activated ();
#endif
2012-05-29 17:38:49 +04:00
public signal void overlay_key ();
#if HAS_MUTTER314
public signal bool restart ();
#if HAS_MUTTER316
public signal bool show_resize_popup (bool object, Meta.Rectangle p0, int p1, int p2);
#endif
public signal bool show_restart_message (string? message);
#endif
2012-05-29 17:38:49 +04:00
public signal void window_created (Meta.Window object);
public signal void window_demands_attention (Meta.Window object);
public signal void window_marked_urgent (Meta.Window object);
}
[CCode (cheader_filename = "meta/common.h")]
[Compact]
public class Frame {
}
[CCode (cheader_filename = "meta/group.h")]
[Compact]
public class Group {
public int get_size ();
public unowned string get_startup_id ();
public GLib.SList<weak Meta.Window> list_windows ();
2012-05-30 21:16:23 +04:00
public bool property_notify (X.Event event);
2012-05-29 17:38:49 +04:00
public void update_layers ();
}
2013-09-04 19:17:59 +04:00
#if HAS_MUTTER310
[CCode (cheader_filename = "meta/meta-idle-monitor.h", type_id = "meta_idle_monitor_get_type ()")]
public class IdleMonitor : GLib.Object {
[CCode (has_construct_function = false)]
protected IdleMonitor ();
public uint add_idle_watch (uint64 interval_msec, owned Meta.IdleMonitorWatchFunc? callback);
public uint add_user_active_watch (owned Meta.IdleMonitorWatchFunc? callback);
public static unowned Meta.IdleMonitor get_core ();
public static unowned Meta.IdleMonitor get_for_device (int device_id);
public int64 get_idletime ();
public void remove_watch (uint id);
[NoAccessorMethod]
public int device_id { get; construct; }
}
#endif
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/keybindings.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "meta_key_binding_get_type ()")]
2012-05-22 18:44:37 +04:00
[Compact]
public class KeyBinding {
public uint get_mask ();
2012-05-29 17:38:49 +04:00
public Meta.VirtualModifier get_modifiers ();
public unowned string get_name ();
2012-11-30 19:34:38 +04:00
public bool is_builtin ();
#if HAS_MUTTER314
public bool is_reversed ();
#endif
2012-05-30 19:02:52 +04:00
[CCode (cheader_filename = "meta/keybindings.h", cname = "meta_keybindings_set_custom_handler")]
2012-09-19 13:12:29 +04:00
public static bool set_custom_handler (string name, owned Meta.KeyHandlerFunc? handler);
2013-11-16 20:18:45 +04:00
#if !HAS_MUTTER312
2012-05-30 19:02:52 +04:00
[CCode (cheader_filename = "meta/keybindings.h", cname = "meta_keybindings_switch_window")]
2012-05-29 17:38:49 +04:00
public static void switch_window (Meta.Display display, Meta.Screen screen, Meta.Window event_window, X.Event event, Meta.KeyBinding binding);
2013-11-16 20:18:45 +04:00
#endif
2012-05-20 17:20:38 +04:00
}
#if HAS_MUTTER316
[CCode (cheader_filename = "meta/meta-monitor-manager.h", type_id = "meta_monitor_manager_get_type ()")]
public abstract class MonitorManager : GLib.DBusInterfaceSkeleton, GLib.DBusInterface {
[CCode (has_construct_function = false)]
protected MonitorManager ();
public static unowned Meta.MonitorManager @get ();
public int get_monitor_for_output (uint id);
public signal void confirm_display_change ();
}
#endif
2012-05-20 17:20:38 +04:00
[CCode (cheader_filename = "meta/meta-plugin.h", type_id = "meta_plugin_get_type ()")]
2012-05-29 17:38:49 +04:00
public abstract class Plugin : GLib.Object {
[CCode (has_construct_function = false)]
protected Plugin ();
#if HAS_MUTTER310
2013-08-29 12:09:58 +04:00
public bool begin_modal (Meta.ModalOptions options, uint32 timestamp);
public void complete_display_change (bool ok);
[NoWrapper]
public virtual void confirm_display_change ();
2013-08-29 12:09:58 +04:00
#else
public bool begin_modal (X.Window grab_window, X.Cursor cursor, Meta.ModalOptions options, uint32 timestamp);
#endif
2012-05-29 17:38:49 +04:00
[NoWrapper]
public virtual void destroy (Meta.WindowActor actor);
public void destroy_completed (Meta.WindowActor actor);
public void end_modal (uint32 timestamp);
2013-03-26 21:45:00 +04:00
public unowned Meta.PluginInfo? get_info ();
2012-05-29 17:38:49 +04:00
public unowned Meta.Screen get_screen ();
#if HAS_MUTTER312
[NoWrapper]
public virtual void hide_tile_preview ();
#endif
2012-05-29 17:38:49 +04:00
[NoWrapper]
2012-11-30 19:34:38 +04:00
public virtual bool keybinding_filter (Meta.KeyBinding binding);
[NoWrapper]
2012-05-29 17:38:49 +04:00
public virtual void kill_switch_workspace ();
[NoWrapper]
public virtual void kill_window_effects (Meta.WindowActor actor);
public static void manager_set_plugin_type (GLib.Type gtype);
2012-05-29 17:38:49 +04:00
[NoWrapper]
public virtual void map (Meta.WindowActor actor);
public void map_completed (Meta.WindowActor actor);
[NoWrapper]
public virtual void maximize (Meta.WindowActor actor, int x, int y, int width, int height);
public void maximize_completed (Meta.WindowActor actor);
[NoWrapper]
public virtual void minimize (Meta.WindowActor actor);
public void minimize_completed (Meta.WindowActor actor);
[NoWrapper]
2013-03-26 21:45:00 +04:00
public virtual unowned Meta.PluginInfo? plugin_info ();
#if !HAS_MUTTER314
2012-05-29 17:38:49 +04:00
public bool running ();
#endif
#if HAS_MUTTER312
[NoWrapper]
public virtual void show_tile_preview (Meta.Window window, Meta.Rectangle tile_rect, int tile_monitor_number);
2014-06-03 23:24:52 +04:00
#endif
#if HAS_MUTTER314
[NoWrapper]
2014-06-03 23:24:52 +04:00
public virtual void show_window_menu (Meta.Window window, Meta.WindowMenuType menu, int x, int y);
[NoWrapper]
public virtual void show_window_menu_for_rect (Meta.Window window, Meta.WindowMenuType menu, Meta.Rectangle rect);
#endif
2012-05-29 17:38:49 +04:00
[NoWrapper]
public virtual void start ();
[NoWrapper]
public virtual void switch_workspace (int from, int to, Meta.MotionDirection direction);
public void switch_workspace_completed ();
[NoWrapper]
public virtual void unmaximize (Meta.WindowActor actor, int x, int y, int width, int height);
public void unmaximize_completed (Meta.WindowActor actor);
#if HAS_MUTTER314
[NoWrapper]
public virtual void unminimize (Meta.WindowActor actor);
public void unminimize_completed (Meta.WindowActor actor);
#endif
2012-05-29 17:38:49 +04:00
[NoWrapper]
public virtual bool xevent_filter (X.Event event);
#if !HAS_MUTTER314
2012-05-29 17:38:49 +04:00
[NoAccessorMethod]
public bool debug_mode { get; }
#endif
2012-05-29 17:38:49 +04:00
}
[CCode (cheader_filename = "meta/screen.h", type_id = "meta_screen_get_type ()")]
public class Screen : GLib.Object {
[CCode (has_construct_function = false)]
protected Screen ();
public unowned Meta.Workspace? append_new_workspace (bool activate, uint32 timestamp);
2012-12-25 01:25:40 +04:00
public void focus_default_window (uint32 timestamp);
#if !HAS_MUTTER314
public static unowned Meta.Screen? for_x_screen (X.Screen xscreen);
#endif
2012-05-29 17:38:49 +04:00
public unowned Meta.Workspace get_active_workspace ();
public int get_active_workspace_index ();
2012-06-18 18:58:00 +04:00
public int get_current_monitor ();
2013-07-12 01:32:05 +04:00
#if HAS_MUTTER310
public int get_current_monitor_for_pos (int x, int y);
#endif
2012-05-29 17:38:49 +04:00
public unowned Meta.Display get_display ();
public Meta.Rectangle get_monitor_geometry (int monitor);
2013-03-26 21:45:00 +04:00
public bool get_monitor_in_fullscreen (int monitor);
2013-03-09 15:49:37 +04:00
public int get_monitor_index_for_rect (Meta.Rectangle rect);
2012-05-29 17:38:49 +04:00
public int get_n_monitors ();
public int get_n_workspaces ();
public int get_primary_monitor ();
public int get_screen_number ();
public void get_size (out int width, out int height);
public unowned Meta.Workspace? get_workspace_by_index (int index);
2012-05-30 21:16:23 +04:00
public unowned GLib.List<Meta.Workspace> get_workspaces ();
public X.Window get_xroot ();
#if !HAS_MUTTER314
2012-05-29 17:38:49 +04:00
public bool grab_all_keys (uint32 timestamp);
#endif
2012-05-29 17:38:49 +04:00
public void override_workspace_layout (Meta.ScreenCorner starting_corner, bool vertical_layout, int n_rows, int n_columns);
public void remove_workspace (Meta.Workspace workspace, uint32 timestamp);
public void set_cm_selection ();
#if !HAS_MUTTER314
2012-05-29 17:38:49 +04:00
public void set_compositor_data (void* info);
#endif
2013-09-18 14:53:15 +04:00
#if HAS_MUTTER310
public void set_cursor (Meta.Cursor cursor);
#endif
#if !HAS_MUTTER314
2012-05-29 17:38:49 +04:00
public void ungrab_all_keys (uint32 timestamp);
#endif
#if !HAS_MUTTER316
2012-05-29 17:38:49 +04:00
public void unset_cm_selection ();
#endif
#if !HAS_MUTTER314
2012-05-29 17:38:49 +04:00
[NoAccessorMethod]
public bool keyboard_grabbed { get; }
#endif
2012-05-29 17:38:49 +04:00
public int n_workspaces { get; }
2013-03-26 21:45:00 +04:00
public signal void in_fullscreen_changed ();
2012-05-29 17:38:49 +04:00
public signal void monitors_changed ();
public signal void restacked ();
public signal void startup_sequence_changed (void* object);
public signal void window_entered_monitor (int object, Meta.Window p0);
public signal void window_left_monitor (int object, Meta.Window p0);
public signal void workareas_changed ();
public signal void workspace_added (int object);
public signal void workspace_removed (int object);
public signal void workspace_switched (int object, int p0, Meta.MotionDirection p1);
}
[CCode (cheader_filename = "meta/meta-shadow-factory.h", type_id = "meta_shadow_factory_get_type ()")]
public class ShadowFactory : GLib.Object {
[CCode (has_construct_function = false)]
protected ShadowFactory ();
public static unowned Meta.ShadowFactory get_default ();
public Meta.ShadowParams get_params (string class_name, bool focused);
public void set_params (string class_name, bool focused, Meta.ShadowParams @params);
public signal void changed ();
}
[CCode (cheader_filename = "meta/meta-shaped-texture.h", type_id = "meta_shaped_texture_get_type ()")]
public class ShapedTexture : Clutter.Actor, Atk.Implementor, Clutter.Animatable, Clutter.Container, Clutter.Scriptable {
#if HAS_MUTTER312
[CCode (has_construct_function = false)]
protected ShapedTexture ();
#else
2012-05-29 17:38:49 +04:00
[CCode (has_construct_function = false, type = "ClutterActor*")]
public ShapedTexture ();
#endif
2012-05-29 17:38:49 +04:00
public Cairo.Surface get_image (Cairo.RectangleInt clip);
2013-03-09 15:49:37 +04:00
public unowned Cogl.Texture get_texture ();
2014-02-05 22:06:03 +04:00
#if !HAS_MUTTER312
2013-09-04 19:17:59 +04:00
#if HAS_MUTTER310
public void set_clip_region (Cairo.Region clip_region);
#else
2012-05-29 17:38:49 +04:00
public void set_clip_region (owned Cairo.Region clip_region);
2014-02-05 22:06:03 +04:00
#endif
2013-09-04 19:17:59 +04:00
#endif
2012-05-29 17:38:49 +04:00
public void set_create_mipmaps (bool create_mipmaps);
#if !HAS_MUTTER314 && HAS_MUTTER312
2014-01-17 16:56:36 +04:00
public void set_input_shape_region (Cairo.Region shape_region);
#endif
2013-03-09 15:49:37 +04:00
public void set_mask_texture (Cogl.Texture mask_texture);
2013-09-04 19:17:59 +04:00
#if HAS_MUTTER310
public void set_opaque_region (owned Cairo.Region opaque_region);
2013-03-09 15:49:37 +04:00
#endif
#if !HAS_MUTTER312
2012-05-29 17:38:49 +04:00
public void set_pixmap (X.Pixmap pixmap);
2013-11-16 20:18:45 +04:00
#endif
#if HAS_MUTTER312
public bool update_area (int x, int y, int width, int height);
#elif HAS_MUTTER310
public bool update_area (int x, int y, int width, int height, Cairo.Region? unobscured_region);
#else
public void update_area (int x, int y, int width, int height);
#endif
#if HAS_MUTTER314
public signal void size_changed ();
#endif
2012-05-29 17:38:49 +04:00
}
[CCode (cheader_filename = "meta/theme.h")]
[Compact]
public class Theme {
public void free ();
#if HAS_MUTTER316
[CCode (cheader_filename = "meta/main.h")]
public static unowned Meta.Theme get_default ();
[CCode (cheader_filename = "meta/main.h")]
public static unowned Meta.Theme @new ();
#else
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/main.h")]
public static unowned Meta.Theme get_current ();
[CCode (cheader_filename = "meta/main.h")]
public static unowned Meta.Theme load (string theme_name) throws GLib.Error;
[CCode (cheader_filename = "meta/main.h")]
public static unowned Meta.Theme @new ();
[CCode (cheader_filename = "meta/main.h")]
#if HAS_MUTTER310
public static void set_current (string name);
#else
2012-05-29 17:38:49 +04:00
public static void set_current (string name, bool force_reload);
#endif
2012-05-29 17:38:49 +04:00
public bool validate () throws GLib.Error;
#endif
2012-05-29 17:38:49 +04:00
}
[CCode (cheader_filename = "meta/window.h", type_id = "meta_window_get_type ()")]
#if HAS_MUTTER314
public abstract class Window : GLib.Object {
#else
2012-05-29 17:38:49 +04:00
public class Window : GLib.Object {
#endif
2012-05-29 17:38:49 +04:00
[CCode (has_construct_function = false)]
protected Window ();
public void activate (uint32 current_time);
public void activate_with_workspace (uint32 current_time, Meta.Workspace workspace);
2014-04-06 22:51:22 +04:00
#if HAS_MUTTER312
public bool allows_move ();
public bool allows_resize ();
#endif
2012-06-26 10:17:38 +04:00
public void begin_grab_op (Meta.GrabOp op, bool frame_action, uint32 timestamp);
#if HAS_MUTTER310
public bool can_close ();
2014-04-06 22:51:22 +04:00
#endif
#if HAS_MUTTER312
public bool can_maximize ();
public bool can_minimize ();
public bool can_shade ();
#endif
2012-06-28 11:17:33 +04:00
public void change_workspace (Meta.Workspace workspace);
2013-11-16 20:18:45 +04:00
#if HAS_MUTTER312
public void change_workspace_by_index (int space_index, bool append);
#else
2012-05-29 17:38:49 +04:00
public void change_workspace_by_index (int space_index, bool append, uint32 timestamp);
2013-11-16 20:18:45 +04:00
#endif
2013-01-10 23:17:09 +04:00
public void check_alive (uint32 timestamp);
2014-01-17 16:56:36 +04:00
#if HAS_MUTTER312
public Meta.Rectangle client_rect_to_frame_rect (Meta.Rectangle client_rect);
#endif
2012-05-29 17:38:49 +04:00
public void compute_group ();
#if !HAS_MUTTER314
2012-05-30 21:16:23 +04:00
public void configure_notify (X.ConfigureEvent event);
#endif
2012-05-29 17:38:49 +04:00
public void @delete (uint32 timestamp);
public unowned Meta.Window find_root_ancestor ();
2012-06-26 10:17:38 +04:00
public void focus (uint32 timestamp);
2012-05-29 17:38:49 +04:00
public void foreach_ancestor (Meta.WindowForeachFunc func);
public void foreach_transient (Meta.WindowForeachFunc func);
2014-01-17 16:56:36 +04:00
#if HAS_MUTTER312
public Meta.Rectangle frame_rect_to_client_rect (Meta.Rectangle frame_rect);
#endif
2013-03-09 15:49:37 +04:00
[CCode (array_length_pos = 0.1, array_length_type = "gsize")]
public int[] get_all_monitors ();
#if HAS_MUTTER314
public Meta.Rectangle get_buffer_rect ();
#endif
2012-05-29 17:38:49 +04:00
public unowned string get_client_machine ();
public unowned GLib.Object get_compositor_private ();
public unowned string get_description ();
public unowned Meta.Display get_display ();
2012-05-30 21:16:23 +04:00
public unowned Meta.Frame get_frame ();
public unowned Cairo.Region? get_frame_bounds ();
2014-01-17 16:56:36 +04:00
#if HAS_MUTTER312
public Meta.Rectangle get_frame_rect ();
#endif
2012-05-29 17:38:49 +04:00
public Meta.FrameType get_frame_type ();
2012-05-30 21:16:23 +04:00
public unowned Meta.Group get_group ();
2012-05-29 17:38:49 +04:00
public unowned string get_gtk_app_menu_object_path ();
public unowned string get_gtk_application_id ();
public unowned string get_gtk_application_object_path ();
public unowned string get_gtk_menubar_object_path ();
2014-06-03 23:24:52 +04:00
#if HAS_MUTTER314
public unowned string get_gtk_theme_variant ();
#endif
2012-05-29 17:38:49 +04:00
public unowned string get_gtk_unique_bus_name ();
public unowned string get_gtk_window_object_path ();
2012-08-19 17:56:07 +04:00
public bool get_icon_geometry (out Meta.Rectangle rect);
#if !HAS_MUTTER314
public Meta.Rectangle get_input_rect ();
#endif
2012-05-29 17:38:49 +04:00
public Meta.StackLayer get_layer ();
public Meta.MaximizeFlags get_maximized ();
public int get_monitor ();
public unowned string get_mutter_hints ();
2014-01-17 16:56:36 +04:00
[Deprecated (since = "3.12")]
public Meta.Rectangle get_outer_rect ();
2012-05-29 17:38:49 +04:00
public int get_pid ();
2014-06-03 23:24:52 +04:00
#if !HAS_MUTTER314
2012-06-21 00:54:35 +04:00
public unowned Meta.Rectangle? get_rect ();
2014-06-03 23:24:52 +04:00
#endif
2012-05-29 17:38:49 +04:00
public unowned string get_role ();
public unowned Meta.Screen get_screen ();
public uint get_stable_sequence ();
public unowned string get_startup_id ();
public unowned Meta.Window? get_tile_match ();
2012-05-29 17:38:49 +04:00
public unowned string get_title ();
public unowned Meta.Window get_transient_for ();
#if !HAS_MUTTER314
2012-05-29 17:38:49 +04:00
public X.Window get_transient_for_as_xid ();
#endif
2012-05-29 17:38:49 +04:00
public uint32 get_user_time ();
public Meta.WindowType get_window_type ();
#if !HAS_MUTTER314
2012-05-30 21:16:23 +04:00
public X.Atom get_window_type_atom ();
#endif
2012-05-29 17:38:49 +04:00
public unowned string get_wm_class ();
public unowned string get_wm_class_instance ();
2013-03-09 15:49:37 +04:00
public Meta.Rectangle get_work_area_all_monitors ();
public Meta.Rectangle get_work_area_current_monitor ();
public Meta.Rectangle get_work_area_for_monitor (int which_monitor);
2012-05-29 17:38:49 +04:00
public unowned Meta.Workspace get_workspace ();
2012-05-30 21:16:23 +04:00
public X.Window get_xwindow ();
2012-05-29 17:38:49 +04:00
public void group_leader_changed ();
public bool has_focus ();
2014-04-06 22:51:22 +04:00
#if HAS_MUTTER312
public bool is_above ();
public bool is_always_on_all_workspaces ();
#endif
2012-05-29 17:38:49 +04:00
public bool is_ancestor_of_transient (Meta.Window transient);
public bool is_attached_dialog ();
#if !HAS_MUTTER314
public bool is_client_decorated ();
#endif
2012-05-29 17:38:49 +04:00
public bool is_fullscreen ();
public bool is_hidden ();
#if !HAS_MUTTER312
2012-05-29 17:38:49 +04:00
public bool is_mapped ();
#endif
#if !HAS_MUTTER314
2012-05-29 17:38:49 +04:00
public bool is_modal ();
#endif
2013-03-09 15:49:37 +04:00
public bool is_monitor_sized ();
2012-05-29 17:38:49 +04:00
public bool is_on_all_workspaces ();
public bool is_on_primary_monitor ();
public bool is_override_redirect ();
public bool is_remote ();
2013-03-09 15:49:37 +04:00
public bool is_screen_sized ();
2012-05-29 17:38:49 +04:00
public bool is_shaded ();
public bool is_skip_taskbar ();
2012-06-26 10:17:38 +04:00
public void kill ();
2013-03-09 15:49:37 +04:00
public bool located_on_workspace (Meta.Workspace workspace);
2012-05-29 17:38:49 +04:00
public void lower ();
2012-06-26 10:17:38 +04:00
public void make_above ();
public void make_fullscreen ();
2012-05-29 17:38:49 +04:00
public void maximize (Meta.MaximizeFlags directions);
public void minimize ();
2014-06-03 23:24:52 +04:00
#if !HAS_MUTTER314
2012-05-29 17:38:49 +04:00
public void move (bool user_op, int root_x_nw, int root_y_nw);
2014-06-03 23:24:52 +04:00
#endif
2012-05-29 17:38:49 +04:00
public void move_frame (bool user_op, int root_x_nw, int root_y_nw);
public void move_resize_frame (bool user_op, int root_x_nw, int root_y_nw, int w, int h);
public void move_to_monitor (int monitor);
public void raise ();
2012-12-25 01:25:40 +04:00
public bool requested_bypass_compositor ();
public bool requested_dont_bypass_compositor ();
2014-06-03 23:24:52 +04:00
#if !HAS_MUTTER314
2012-05-29 17:38:49 +04:00
public void resize (bool user_op, int w, int h);
2014-06-03 23:24:52 +04:00
#endif
2012-05-29 17:38:49 +04:00
public void set_compositor_private (GLib.Object priv);
public void set_demands_attention ();
2013-03-09 15:49:37 +04:00
public void set_icon_geometry (Meta.Rectangle? rect);
2012-06-26 10:17:38 +04:00
public void shade (uint32 timestamp);
2014-04-06 22:51:22 +04:00
#if HAS_MUTTER312
public void shove_titlebar_onscreen ();
#endif
2012-05-29 17:38:49 +04:00
public bool showing_on_its_workspace ();
public void shutdown_group ();
2012-06-26 10:17:38 +04:00
public void stick ();
2014-04-06 22:51:22 +04:00
#if HAS_MUTTER312
public bool titlebar_is_onscreen ();
#endif
#if !HAS_MUTTER312
2012-05-29 17:38:49 +04:00
public bool toplevel_is_mapped ();
#endif
2012-06-26 10:17:38 +04:00
public void unmake_above ();
public void unmake_fullscreen ();
2012-05-29 17:38:49 +04:00
public void unmaximize (Meta.MaximizeFlags directions);
public void unminimize ();
public void unset_demands_attention ();
2012-06-26 10:17:38 +04:00
public void unshade (uint32 timestamp);
public void unstick ();
2012-05-29 17:38:49 +04:00
[NoAccessorMethod]
public bool above { get; }
[NoAccessorMethod]
public bool appears_focused { get; }
[NoAccessorMethod]
public bool decorated { get; }
[NoAccessorMethod]
public bool demands_attention { get; }
[NoAccessorMethod]
public bool fullscreen { get; }
public string gtk_app_menu_object_path { get; }
public string gtk_application_id { get; }
public string gtk_application_object_path { get; }
public string gtk_menubar_object_path { get; }
public string gtk_unique_bus_name { get; }
public string gtk_window_object_path { get; }
[NoAccessorMethod]
#if HAS_MUTTER316
public Cairo.Surface icon { owned get; }
#else
2012-05-29 17:38:49 +04:00
public Gdk.Pixbuf icon { owned get; }
#endif
2012-05-29 17:38:49 +04:00
[NoAccessorMethod]
public bool maximized_horizontally { get; }
[NoAccessorMethod]
public bool maximized_vertically { get; }
[NoAccessorMethod]
#if HAS_MUTTER316
public Cairo.Surface mini_icon { owned get; }
#else
2012-05-29 17:38:49 +04:00
public Gdk.Pixbuf mini_icon { owned get; }
#endif
2012-05-29 17:38:49 +04:00
[NoAccessorMethod]
public bool minimized { get; }
public string mutter_hints { get; }
#if HAS_MUTTER312
// backported from mutter 3.14 to 3.12.2-1ubuntu99~elementary0.3.3
[NoAccessorMethod]
public bool on_all_workspaces { get; }
#endif
2012-05-29 17:38:49 +04:00
[NoAccessorMethod]
public bool resizeable { get; }
2014-02-05 22:06:03 +04:00
#if HAS_MUTTER312
[NoAccessorMethod]
public bool skip_taskbar { get; }
#endif
2012-05-29 17:38:49 +04:00
public string title { get; }
[NoAccessorMethod]
public bool urgent { get; }
public uint user_time { get; }
public Meta.WindowType window_type { get; }
public string wm_class { get; }
2012-06-26 10:17:38 +04:00
[CCode (cname = "focus")]
public signal void focused ();
#if HAS_MUTTER312
public signal void position_changed ();
#endif
2012-05-29 17:38:49 +04:00
public signal void raised ();
#if HAS_MUTTER312
public signal void size_changed ();
#endif
2012-05-29 17:38:49 +04:00
public signal void unmanaged ();
#if HAS_MUTTER314
public signal void workspace_changed ();
#else
2012-05-29 17:38:49 +04:00
public signal void workspace_changed (int object);
#endif
2012-05-29 17:38:49 +04:00
}
[CCode (cheader_filename = "meta/meta-window-actor.h", type_id = "meta_window_actor_get_type ()")]
2013-03-09 15:49:37 +04:00
public class WindowActor : Clutter.Actor, Atk.Implementor, Clutter.Animatable, Clutter.Container, Clutter.Scriptable {
2012-05-29 17:38:49 +04:00
[CCode (has_construct_function = false)]
protected WindowActor ();
#if !HAS_MUTTER310
2012-05-29 17:38:49 +04:00
public unowned string get_description ();
#endif
2012-05-29 17:38:49 +04:00
public unowned Meta.Window get_meta_window ();
public unowned Clutter.Actor get_texture ();
2014-02-05 22:06:03 +04:00
#if !HAS_MUTTER312
2012-05-29 17:38:49 +04:00
public int get_workspace ();
2014-02-05 22:06:03 +04:00
#endif
2012-05-30 21:16:23 +04:00
public X.Window get_x_window ();
2012-05-29 17:38:49 +04:00
public bool is_destroyed ();
2014-02-05 22:06:03 +04:00
#if !HAS_MUTTER312
2012-05-29 17:38:49 +04:00
public bool is_override_redirect ();
public bool showing_on_its_workspace ();
2014-02-05 22:06:03 +04:00
#endif
2012-05-29 17:38:49 +04:00
[NoAccessorMethod]
public bool no_shadow { get; set; }
[NoAccessorMethod]
public string shadow_class { owned get; set; }
#if HAS_MUTTER314
public signal void first_frame ();
#endif
#if !HAS_MUTTER312
2012-05-29 17:38:49 +04:00
public signal void position_changed ();
public signal void size_changed ();
#endif
2012-05-29 17:38:49 +04:00
}
2014-06-03 23:24:52 +04:00
#if !HAS_MUTTER314
2012-05-22 18:44:37 +04:00
[CCode (cheader_filename = "meta/main.h")]
2012-05-29 17:38:49 +04:00
[Compact]
public class WindowMenu {
}
2014-06-03 23:24:52 +04:00
#endif
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/workspace.h", type_id = "meta_workspace_get_type ()")]
public class Workspace : GLib.Object {
[CCode (has_construct_function = false)]
protected Workspace ();
public void activate (uint32 timestamp);
public void activate_with_focus (Meta.Window focus_this, uint32 timestamp);
2012-06-26 10:17:38 +04:00
public unowned Meta.Workspace get_neighbor (Meta.MotionDirection direction);
2012-05-29 17:38:49 +04:00
public unowned Meta.Screen get_screen ();
public Meta.Rectangle get_work_area_all_monitors ();
2013-03-09 15:49:37 +04:00
public Meta.Rectangle get_work_area_for_monitor (int which_monitor);
2012-05-29 17:38:49 +04:00
public int index ();
public GLib.List<weak Meta.Window> list_windows ();
public void set_builtin_struts (GLib.SList<Meta.Strut> struts);
#if !HAS_MUTTER314
2012-05-29 17:38:49 +04:00
public void update_window_hints ();
#endif
2012-05-29 17:38:49 +04:00
[NoAccessorMethod]
public uint n_windows { get; }
#if HAS_MUTTER314
[NoAccessorMethod]
public uint workspace_index { get; }
#endif
2012-05-29 17:38:49 +04:00
public signal void window_added (Meta.Window object);
public signal void window_removed (Meta.Window object);
}
[CCode (cheader_filename = "meta/common.h", has_type_id = false)]
public struct ButtonLayout {
[CCode (array_length = false, array_null_terminated = true)]
public weak Meta.ButtonFunction[] left_buttons;
[CCode (array_length = false, array_null_terminated = true)]
public weak bool[] left_buttons_has_spacer;
[CCode (array_length = false, array_null_terminated = true)]
public weak Meta.ButtonFunction[] right_buttons;
[CCode (array_length = false, array_null_terminated = true)]
public weak bool[] right_buttons_has_spacer;
}
[CCode (cheader_filename = "meta/boxes.h", has_type_id = false)]
public struct Edge {
public Meta.Rectangle rect;
2012-05-29 17:38:49 +04:00
public Meta.Side side_type;
public Meta.EdgeType edge_type;
}
[CCode (cheader_filename = "meta/common.h", has_type_id = false)]
public struct FrameBorders {
public Gtk.Border visible;
public Gtk.Border invisible;
public Gtk.Border total;
public void clear ();
}
#if !HAS_MUTTER312
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/prefs.h", has_type_id = false)]
public struct KeyCombo {
public uint keysym;
public uint keycode;
public Meta.VirtualModifier modifiers;
}
[CCode (cheader_filename = "meta/prefs.h", has_type_id = false)]
public struct KeyPref {
public weak string name;
public weak GLib.Settings settings;
public Meta.KeyBindingAction action;
public weak GLib.SList<Meta.KeyCombo> bindings;
2012-05-29 17:38:49 +04:00
public bool add_shift;
public bool per_window;
public bool builtin;
}
#endif
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/meta-plugin.h", has_type_id = false)]
public struct PluginInfo {
public weak string name;
public weak string version;
public weak string author;
public weak string license;
public weak string description;
}
[CCode (cheader_filename = "meta/meta-plugin.h", has_type_id = false)]
public struct PluginVersion {
public uint version_major;
public uint version_minor;
public uint version_micro;
public uint version_api;
}
[CCode (cheader_filename = "meta/boxes.h", has_type_id = false)]
public struct Rectangle {
public int x;
public int y;
public int width;
public int height;
public int area ();
public bool contains_rect (Meta.Rectangle inner_rect);
public bool could_fit_rect (Meta.Rectangle inner_rect);
public bool equal (Meta.Rectangle src2);
public bool horiz_overlap (Meta.Rectangle rect2);
public bool intersect (Meta.Rectangle src2, out Meta.Rectangle dest);
public bool overlap (Meta.Rectangle rect2);
public Meta.Rectangle union (Meta.Rectangle rect2);
public bool vert_overlap (Meta.Rectangle rect2);
}
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/meta-shadow-factory.h", has_type_id = false)]
public struct ShadowParams {
public int radius;
public int top_fade;
public int x_offset;
public int y_offset;
public uint8 opacity;
}
[CCode (cheader_filename = "meta/boxes.h", has_type_id = false)]
public struct Strut {
public Meta.Rectangle rect;
2012-05-29 17:38:49 +04:00
public Meta.Side side;
}
#if !HAS_MUTTER314
2013-03-27 00:57:28 +04:00
[CCode (cheader_filename = "meta/meta-background.h", cprefix = "META_BACKGROUND_EFFECTS_", type_id = "meta_background_effects_get_type ()")]
2013-03-09 15:49:37 +04:00
[Flags]
public enum BackgroundEffects {
NONE,
VIGNETTE
}
#endif
2013-03-27 00:57:28 +04:00
[CCode (cheader_filename = "meta/barrier.h", cprefix = "META_BARRIER_DIRECTION_", type_id = "meta_barrier_direction_get_type ()")]
2013-03-09 15:49:37 +04:00
[Flags]
public enum BarrierDirection {
POSITIVE_X,
POSITIVE_Y,
NEGATIVE_X,
NEGATIVE_Y
}
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/common.h", cprefix = "META_BUTTON_FUNCTION_", type_id = "meta_button_function_get_type ()")]
2012-05-29 17:38:49 +04:00
public enum ButtonFunction {
MENU,
MINIMIZE,
MAXIMIZE,
CLOSE,
SHADE,
ABOVE,
STICK,
UNSHADE,
UNABOVE,
UNSTICK,
2014-06-03 23:24:52 +04:00
#if HAS_MUTTER314
APPMENU,
#endif
2012-05-29 17:38:49 +04:00
LAST
}
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/compositor.h", cprefix = "META_COMP_EFFECT_", type_id = "meta_comp_effect_get_type ()")]
2012-05-29 17:38:49 +04:00
public enum CompEffect {
CREATE,
UNMINIMIZE,
DESTROY,
MINIMIZE,
NONE
}
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/common.h", cprefix = "META_CURSOR_", type_id = "meta_cursor_get_type ()")]
2012-05-29 17:38:49 +04:00
public enum Cursor {
2014-06-03 23:24:52 +04:00
#if HAS_MUTTER314
NONE,
#endif
2012-05-29 17:38:49 +04:00
DEFAULT,
NORTH_RESIZE,
SOUTH_RESIZE,
WEST_RESIZE,
EAST_RESIZE,
SE_RESIZE,
SW_RESIZE,
NE_RESIZE,
NW_RESIZE,
MOVE_OR_RESIZE_WINDOW,
2013-09-18 14:53:15 +04:00
#if HAS_MUTTER310
BUSY,
DND_IN_DRAG,
DND_MOVE,
DND_COPY,
DND_UNSUPPORTED_TARGET,
POINTING_HAND,
CROSSHAIR,
IBEAM,
LAST
#else
2012-05-29 17:38:49 +04:00
BUSY
2013-09-18 14:53:15 +04:00
#endif
2012-05-29 17:38:49 +04:00
}
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/util.h", cprefix = "META_DEBUG_", type_id = "meta_debug_topic_get_type ()")]
2012-05-29 17:38:49 +04:00
[Flags]
public enum DebugTopic {
VERBOSE,
FOCUS,
WORKAREA,
STACK,
THEMES,
SM,
EVENTS,
WINDOW_STATE,
WINDOW_OPS,
GEOMETRY,
PLACEMENT,
PING,
XINERAMA,
KEYBINDINGS,
SYNC,
ERRORS,
STARTUP,
PREFS,
GROUPS,
RESIZING,
SHAPES,
COMPOSITOR,
#if HAS_MUTTER310
EDGE_RESISTANCE,
DBUS
#else
2012-05-29 17:38:49 +04:00
EDGE_RESISTANCE
#endif
2012-05-29 17:38:49 +04:00
}
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/common.h", cprefix = "META_DIRECTION_", type_id = "meta_direction_get_type ()")]
2012-05-29 17:38:49 +04:00
[Flags]
public enum Direction {
LEFT,
RIGHT,
TOP,
BOTTOM,
UP,
DOWN,
HORIZONTAL,
VERTICAL
}
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/boxes.h", cprefix = "META_EDGE_", type_id = "meta_edge_type_get_type ()")]
2012-05-29 17:38:49 +04:00
public enum EdgeType {
WINDOW,
MONITOR,
SCREEN
}
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/main.h", cprefix = "META_EXIT_", type_id = "meta_exit_code_get_type ()")]
2012-05-29 17:38:49 +04:00
public enum ExitCode {
SUCCESS,
ERROR
}
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/common.h", cprefix = "META_FRAME_", type_id = "meta_frame_flags_get_type ()")]
2012-05-29 17:38:49 +04:00
[Flags]
public enum FrameFlags {
ALLOWS_DELETE,
ALLOWS_MENU,
2014-06-03 23:24:52 +04:00
#if HAS_MUTTER314
ALLOWS_APPMENU,
#endif
2012-05-29 17:38:49 +04:00
ALLOWS_MINIMIZE,
ALLOWS_MAXIMIZE,
ALLOWS_VERTICAL_RESIZE,
ALLOWS_HORIZONTAL_RESIZE,
HAS_FOCUS,
SHADED,
STUCK,
MAXIMIZED,
ALLOWS_SHADE,
ALLOWS_MOVE,
FULLSCREEN,
IS_FLASHING,
ABOVE,
TILED_LEFT,
TILED_RIGHT
}
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/common.h", cprefix = "META_FRAME_TYPE_", type_id = "meta_frame_type_get_type ()")]
2012-05-29 17:38:49 +04:00
public enum FrameType {
NORMAL,
DIALOG,
MODAL_DIALOG,
UTILITY,
MENU,
BORDER,
ATTACHED,
LAST;
[CCode (cheader_filename = "meta/main.h")]
public static unowned string to_string (Meta.FrameType type);
}
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/common.h", cprefix = "META_GRAB_OP_", type_id = "meta_grab_op_get_type ()")]
2012-05-29 17:38:49 +04:00
public enum GrabOp {
NONE,
COMPOSITOR,
#if HAS_MUTTER314
WAYLAND_POPUP,
WINDOW_BASE,
#endif
#if HAS_MUTTER316
FRAME_BUTTON,
#endif
MOVING,
#if !HAS_MUTTER314
2012-05-29 17:38:49 +04:00
CLICKING_MINIMIZE,
CLICKING_MAXIMIZE,
CLICKING_UNMAXIMIZE,
CLICKING_DELETE,
CLICKING_MENU,
CLICKING_SHADE,
CLICKING_UNSHADE,
CLICKING_ABOVE,
CLICKING_UNABOVE,
CLICKING_STICK,
CLICKING_UNSTICK,
#endif
RESIZING_NW,
RESIZING_N,
RESIZING_NE,
RESIZING_E,
RESIZING_SW,
RESIZING_S,
RESIZING_SE,
RESIZING_W,
#if !HAS_MUTTER312
KEYBOARD_TABBING_NORMAL,
KEYBOARD_TABBING_DOCK,
KEYBOARD_ESCAPING_NORMAL,
KEYBOARD_ESCAPING_DOCK,
KEYBOARD_ESCAPING_GROUP,
KEYBOARD_TABBING_GROUP,
KEYBOARD_WORKSPACE_SWITCHING,
#endif
KEYBOARD_MOVING,
KEYBOARD_RESIZING_UNKNOWN,
KEYBOARD_RESIZING_NW,
KEYBOARD_RESIZING_N,
KEYBOARD_RESIZING_NE,
KEYBOARD_RESIZING_E,
KEYBOARD_RESIZING_SW,
KEYBOARD_RESIZING_S,
KEYBOARD_RESIZING_SE,
KEYBOARD_RESIZING_W
2012-05-29 17:38:49 +04:00
}
2014-12-11 13:40:36 +03:00
#if !HAS_MUTTER316
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/gradient.h", cprefix = "META_GRADIENT_", type_id = "meta_gradient_type_get_type ()")]
2012-05-29 17:38:49 +04:00
public enum GradientType {
VERTICAL,
HORIZONTAL,
DIAGONAL,
LAST
}
2014-12-11 13:40:36 +03:00
#endif
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/prefs.h", cprefix = "META_KEYBINDING_ACTION_", type_id = "meta_key_binding_action_get_type ()")]
2012-05-29 17:38:49 +04:00
public enum KeyBindingAction {
NONE,
WORKSPACE_1,
WORKSPACE_2,
WORKSPACE_3,
WORKSPACE_4,
WORKSPACE_5,
WORKSPACE_6,
WORKSPACE_7,
WORKSPACE_8,
WORKSPACE_9,
WORKSPACE_10,
WORKSPACE_11,
WORKSPACE_12,
WORKSPACE_LEFT,
WORKSPACE_RIGHT,
WORKSPACE_UP,
WORKSPACE_DOWN,
#if HAS_MUTTER314
WORKSPACE_LAST,
#endif
2012-12-25 01:25:40 +04:00
SWITCH_APPLICATIONS,
SWITCH_APPLICATIONS_BACKWARD,
2012-05-29 17:38:49 +04:00
SWITCH_GROUP,
SWITCH_GROUP_BACKWARD,
SWITCH_WINDOWS,
SWITCH_WINDOWS_BACKWARD,
SWITCH_PANELS,
SWITCH_PANELS_BACKWARD,
CYCLE_GROUP,
CYCLE_GROUP_BACKWARD,
CYCLE_WINDOWS,
CYCLE_WINDOWS_BACKWARD,
CYCLE_PANELS,
CYCLE_PANELS_BACKWARD,
#if !HAS_MUTTER312
2012-05-29 17:38:49 +04:00
TAB_POPUP_SELECT,
TAB_POPUP_CANCEL,
#endif
2012-05-29 17:38:49 +04:00
SHOW_DESKTOP,
PANEL_MAIN_MENU,
PANEL_RUN_DIALOG,
TOGGLE_RECORDING,
SET_SPEW_MARK,
ACTIVATE_WINDOW_MENU,
TOGGLE_FULLSCREEN,
TOGGLE_MAXIMIZED,
TOGGLE_TILED_LEFT,
TOGGLE_TILED_RIGHT,
TOGGLE_ABOVE,
MAXIMIZE,
UNMAXIMIZE,
TOGGLE_SHADED,
MINIMIZE,
CLOSE,
BEGIN_MOVE,
BEGIN_RESIZE,
TOGGLE_ON_ALL_WORKSPACES,
MOVE_TO_WORKSPACE_1,
MOVE_TO_WORKSPACE_2,
MOVE_TO_WORKSPACE_3,
MOVE_TO_WORKSPACE_4,
MOVE_TO_WORKSPACE_5,
MOVE_TO_WORKSPACE_6,
MOVE_TO_WORKSPACE_7,
MOVE_TO_WORKSPACE_8,
MOVE_TO_WORKSPACE_9,
MOVE_TO_WORKSPACE_10,
MOVE_TO_WORKSPACE_11,
MOVE_TO_WORKSPACE_12,
MOVE_TO_WORKSPACE_LEFT,
MOVE_TO_WORKSPACE_RIGHT,
MOVE_TO_WORKSPACE_UP,
MOVE_TO_WORKSPACE_DOWN,
#if HAS_MUTTER314
MOVE_TO_WORKSPACE_LAST,
#endif
2014-01-17 16:56:36 +04:00
#if HAS_MUTTER312
MOVE_TO_MONITOR_LEFT,
MOVE_TO_MONITOR_RIGHT,
MOVE_TO_MONITOR_UP,
MOVE_TO_MONITOR_DOWN,
#endif
2012-05-29 17:38:49 +04:00
RAISE_OR_LOWER,
RAISE,
LOWER,
MAXIMIZE_VERTICALLY,
MAXIMIZE_HORIZONTALLY,
MOVE_TO_CORNER_NW,
MOVE_TO_CORNER_NE,
MOVE_TO_CORNER_SW,
MOVE_TO_CORNER_SE,
MOVE_TO_SIDE_N,
MOVE_TO_SIDE_S,
MOVE_TO_SIDE_E,
MOVE_TO_SIDE_W,
MOVE_TO_CENTER,
2012-08-21 19:36:23 +04:00
OVERLAY_KEY,
2013-07-12 01:32:05 +04:00
#if HAS_MUTTER310
ISO_NEXT_GROUP,
2014-01-17 16:56:36 +04:00
#endif
#if HAS_MUTTER312
ALWAYS_ON_TOP,
2013-07-12 01:32:05 +04:00
#endif
2012-05-29 17:38:49 +04:00
LAST
}
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/prefs.h", cprefix = "META_KEY_BINDING_", type_id = "meta_key_binding_flags_get_type ()")]
2012-05-29 17:38:49 +04:00
[Flags]
public enum KeyBindingFlags {
NONE,
PER_WINDOW,
BUILTIN,
#if !HAS_MUTTER314
2012-05-29 17:38:49 +04:00
REVERSES,
#endif
2012-05-29 17:38:49 +04:00
IS_REVERSED
}
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/util.h", cprefix = "META_LATER_", type_id = "meta_later_type_get_type ()")]
2012-05-29 17:38:49 +04:00
public enum LaterType {
RESIZE,
2013-03-26 21:45:00 +04:00
CALC_SHOWING,
CHECK_FULLSCREEN,
SYNC_STACK,
2012-05-29 17:38:49 +04:00
BEFORE_REDRAW,
IDLE
}
#if HAS_MUTTER314
[CCode (cheader_filename = "meta/util.h", cprefix = "META_LOCALE_DIRECTION_", type_id = "meta_locale_direction_get_type ()")]
public enum LocaleDirection {
LTR,
RTL
}
#endif
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/window.h", cprefix = "META_MAXIMIZE_", type_id = "meta_maximize_flags_get_type ()")]
2012-05-29 17:38:49 +04:00
[Flags]
public enum MaximizeFlags {
HORIZONTAL,
2014-04-06 22:51:22 +04:00
#if HAS_MUTTER312
VERTICAL,
BOTH
#else
2012-05-29 17:38:49 +04:00
VERTICAL
2014-04-06 22:51:22 +04:00
#endif
2012-05-29 17:38:49 +04:00
}
2014-06-03 23:24:52 +04:00
#if !HAS_MUTTER314
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/common.h", cprefix = "META_MENU_OP_", type_id = "meta_menu_op_get_type ()")]
2012-05-29 17:38:49 +04:00
[Flags]
public enum MenuOp {
NONE,
DELETE,
MINIMIZE,
UNMAXIMIZE,
MAXIMIZE,
UNSHADE,
SHADE,
UNSTICK,
STICK,
WORKSPACES,
MOVE,
RESIZE,
ABOVE,
UNABOVE,
MOVE_LEFT,
MOVE_RIGHT,
MOVE_UP,
MOVE_DOWN,
RECOVER
}
2014-06-03 23:24:52 +04:00
#endif
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/meta-plugin.h", cprefix = "META_MODAL_", type_id = "meta_modal_options_get_type ()")]
2012-05-29 17:38:49 +04:00
[Flags]
public enum ModalOptions {
POINTER_ALREADY_GRABBED,
KEYBOARD_ALREADY_GRABBED
}
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/common.h", cprefix = "META_MOTION_", type_id = "meta_motion_direction_get_type ()")]
2012-05-29 17:38:49 +04:00
public enum MotionDirection {
UP,
DOWN,
LEFT,
RIGHT,
UP_LEFT,
UP_RIGHT,
DOWN_LEFT,
DOWN_RIGHT
}
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/prefs.h", cprefix = "META_PREF_", type_id = "meta_preference_get_type ()")]
2012-05-29 17:38:49 +04:00
public enum Preference {
MOUSE_BUTTON_MODS,
FOCUS_MODE,
FOCUS_NEW_WINDOWS,
ATTACH_MODAL_DIALOGS,
RAISE_ON_CLICK,
ACTION_DOUBLE_CLICK_TITLEBAR,
ACTION_MIDDLE_CLICK_TITLEBAR,
ACTION_RIGHT_CLICK_TITLEBAR,
AUTO_RAISE,
AUTO_RAISE_DELAY,
2012-11-17 00:06:31 +04:00
FOCUS_CHANGE_ON_POINTER_REST,
#if !HAS_MUTTER316
2012-05-29 17:38:49 +04:00
THEME,
#endif
2012-05-29 17:38:49 +04:00
TITLEBAR_FONT,
NUM_WORKSPACES,
DYNAMIC_WORKSPACES,
#if !HAS_MUTTER310
2012-05-29 17:38:49 +04:00
APPLICATION_BASED,
#endif
2012-05-29 17:38:49 +04:00
KEYBINDINGS,
DISABLE_WORKAROUNDS,
BUTTON_LAYOUT,
WORKSPACE_NAMES,
VISUAL_BELL,
AUDIBLE_BELL,
VISUAL_BELL_TYPE,
GNOME_ACCESSIBILITY,
GNOME_ANIMATIONS,
CURSOR_THEME,
CURSOR_SIZE,
RESIZE_WITH_RIGHT_BUTTON,
EDGE_TILING,
FORCE_FULLSCREEN,
WORKSPACES_ONLY_ON_PRIMARY,
#if !HAS_MUTTER312
2012-05-29 17:38:49 +04:00
NO_TAB_POPUP,
#endif
2013-01-10 23:17:09 +04:00
DRAGGABLE_BORDER_WIDTH,
#if HAS_MUTTER314
AUTO_MAXIMIZE,
CENTER_NEW_WINDOWS,
DRAG_THRESHOLD;
#else
2013-01-10 23:17:09 +04:00
AUTO_MAXIMIZE;
#endif
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/main.h")]
public static unowned string to_string (Meta.Preference pref);
}
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/screen.h", cprefix = "META_SCREEN_", type_id = "meta_screen_corner_get_type ()")]
2012-05-29 17:38:49 +04:00
public enum ScreenCorner {
TOPLEFT,
TOPRIGHT,
BOTTOMLEFT,
BOTTOMRIGHT
}
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/common.h", cprefix = "META_SIDE_", type_id = "meta_side_get_type ()")]
2012-05-29 17:38:49 +04:00
public enum Side {
LEFT,
RIGHT,
TOP,
BOTTOM
}
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/common.h", cprefix = "META_LAYER_", type_id = "meta_stack_layer_get_type ()")]
2012-05-29 17:38:49 +04:00
public enum StackLayer {
DESKTOP,
BOTTOM,
NORMAL,
TOP,
DOCK,
FULLSCREEN,
FOCUSED_WINDOW,
OVERRIDE_REDIRECT,
LAST
}
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/display.h", cprefix = "META_TAB_LIST_", type_id = "meta_tab_list_get_type ()")]
2012-05-29 17:38:49 +04:00
public enum TabList {
NORMAL,
DOCKS,
GROUP,
NORMAL_ALL
}
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/display.h", cprefix = "META_TAB_SHOW_", type_id = "meta_tab_show_type_get_type ()")]
2012-05-29 17:38:49 +04:00
public enum TabShowType {
ICON,
INSTANTLY
}
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/common.h", cprefix = "META_VIRTUAL_", type_id = "meta_virtual_modifier_get_type ()")]
2012-05-29 17:38:49 +04:00
[Flags]
public enum VirtualModifier {
SHIFT_MASK,
CONTROL_MASK,
ALT_MASK,
META_MASK,
SUPER_MASK,
HYPER_MASK,
MOD2_MASK,
MOD3_MASK,
MOD4_MASK,
MOD5_MASK
}
#if HAS_MUTTER314
[CCode (cheader_filename = "meta/window.h", cprefix = "META_WINDOW_CLIENT_TYPE_", type_id = "meta_window_client_type_get_type ()")]
public enum WindowClientType {
WAYLAND,
X11
}
[CCode (cheader_filename = "meta/common.h", cprefix = "META_WINDOW_MENU_", type_id = "meta_window_menu_type_get_type ()")]
2014-06-03 23:24:52 +04:00
public enum WindowMenuType {
WM,
APP
}
#endif
2012-08-19 17:56:07 +04:00
[CCode (cheader_filename = "meta/window.h", cprefix = "META_WINDOW_", type_id = "meta_window_type_get_type ()")]
2012-05-29 17:38:49 +04:00
public enum WindowType {
NORMAL,
DESKTOP,
DOCK,
DIALOG,
MODAL_DIALOG,
TOOLBAR,
MENU,
UTILITY,
SPLASHSCREEN,
DROPDOWN_MENU,
POPUP_MENU,
TOOLTIP,
NOTIFICATION,
COMBO,
DND,
OVERRIDE_OTHER
}
2013-09-04 19:17:59 +04:00
#if HAS_MUTTER310
[CCode (cheader_filename = "meta/meta-idle-monitor.h", instance_pos = 2.9)]
public delegate void IdleMonitorWatchFunc (Meta.IdleMonitor monitor, uint watch_id);
#endif
2012-05-30 19:02:52 +04:00
[CCode (cheader_filename = "meta/prefs.h", instance_pos = 5.9)]
#if HAS_MUTTER314
public delegate void KeyHandlerFunc (Meta.Display display, Meta.Screen screen, Meta.Window? window, Clutter.KeyEvent event, Meta.KeyBinding binding);
#else
public delegate void KeyHandlerFunc (Meta.Display display, Meta.Screen screen, Meta.Window? window, X.Event event, Meta.KeyBinding binding);
#endif
2012-11-17 00:06:31 +04:00
[CCode (cheader_filename = "meta/prefs.h", instance_pos = 1.9)]
public delegate void PrefsChangedFunc (Meta.Preference pref);
[CCode (cheader_filename = "meta/window.h", instance_pos = 1.9)]
public delegate bool WindowForeachFunc (Meta.Window window);
2014-06-03 23:24:52 +04:00
#if !HAS_MUTTER314
2012-11-17 00:28:25 +04:00
[CCode (cheader_filename = "meta/common.h", instance_pos = 6.9)]
2012-11-17 00:06:31 +04:00
public delegate void WindowMenuFunc (Meta.WindowMenu menu, X.Display xdisplay, X.Window client_xwindow, uint32 timestamp, Meta.MenuOp op, int workspace);
2014-06-03 23:24:52 +04:00
#endif
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/main.h", cname = "META_DEFAULT_ICON_NAME")]
public const string DEFAULT_ICON_NAME;
[CCode (cheader_filename = "meta/main.h", cname = "META_ICON_HEIGHT")]
public const int ICON_HEIGHT;
[CCode (cheader_filename = "meta/main.h", cname = "META_ICON_WIDTH")]
public const int ICON_WIDTH;
#if HAS_MUTTER314
[CCode (cheader_filename = "meta/main.h", cname = "META_MAJOR_VERSION")]
public const int MAJOR_VERSION;
[CCode (cheader_filename = "meta/main.h", cname = "META_MICRO_VERSION")]
public const int MICRO_VERSION;
#endif
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/main.h", cname = "META_MINI_ICON_HEIGHT")]
public const int MINI_ICON_HEIGHT;
[CCode (cheader_filename = "meta/main.h", cname = "META_MINI_ICON_WIDTH")]
public const int MINI_ICON_WIDTH;
#if HAS_MUTTER314
[CCode (cheader_filename = "meta/main.h", cname = "META_MINOR_VERSION")]
public const int MINOR_VERSION;
[CCode (cheader_filename = "meta/main.h", cname = "META_PLUGIN_API_VERSION")]
public const int PLUGIN_API_VERSION;
#endif
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/main.h", cname = "META_PRIORITY_BEFORE_REDRAW")]
public const int PRIORITY_BEFORE_REDRAW;
[CCode (cheader_filename = "meta/main.h", cname = "META_PRIORITY_PREFS_NOTIFY")]
public const int PRIORITY_PREFS_NOTIFY;
[CCode (cheader_filename = "meta/main.h", cname = "META_PRIORITY_REDRAW")]
public const int PRIORITY_REDRAW;
[CCode (cheader_filename = "meta/main.h", cname = "META_PRIORITY_RESIZE")]
public const int PRIORITY_RESIZE;
2012-12-25 01:25:40 +04:00
[CCode (cheader_filename = "meta/main.h", cname = "META_VIRTUAL_CORE_KEYBOARD_ID")]
public const int VIRTUAL_CORE_KEYBOARD_ID;
[CCode (cheader_filename = "meta/main.h", cname = "META_VIRTUAL_CORE_POINTER_ID")]
public const int VIRTUAL_CORE_POINTER_ID;
#if HAS_MUTTER314
[CCode (cheader_filename = "meta/main.h")]
public static bool activate_session ();
[CCode (cheader_filename = "meta/main.h")]
public static void clutter_init ();
#endif
2012-05-29 17:38:49 +04:00
[CCode (cheader_filename = "meta/main.h")]
public static void exit (Meta.ExitCode code);
[CCode (cheader_filename = "meta/main.h")]
public static unowned GLib.OptionContext get_option_context ();
[CCode (cheader_filename = "meta/main.h")]
public static bool get_replace_current_wm ();
2012-05-20 17:20:38 +04:00
[CCode (cheader_filename = "meta/main.h")]
public static void init ();
#if HAS_MUTTER314
[CCode (cheader_filename = "meta/main.h")]
public static bool is_restart ();
#endif
2012-05-20 17:20:38 +04:00
[CCode (cheader_filename = "meta/main.h")]
2012-05-29 17:38:49 +04:00
public static void quit (Meta.ExitCode code);
2012-05-22 18:44:37 +04:00
[CCode (cheader_filename = "meta/main.h")]
2013-03-09 15:49:37 +04:00
public static void register_with_session ();
#if HAS_MUTTER314
[CCode (cheader_filename = "meta/main.h")]
public static void restart (string message);
#endif
2013-03-09 15:49:37 +04:00
[CCode (cheader_filename = "meta/main.h")]
2012-05-29 17:38:49 +04:00
public static int run ();
2012-09-19 13:12:29 +04:00
[CCode (cheader_filename = "meta/main.h")]
public static void set_gnome_wm_keybindings (string wm_keybindings);
[CCode (cheader_filename = "meta/main.h")]
public static void set_wm_name (string wm_name);
2012-05-20 17:20:38 +04:00
}