Advertisement
Guest User

Untitled

a guest
Nov 24th, 2015
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 122.89 KB | None | 0 0
  1. diff -Naur gala/configure.ac gala-deepin/configure.ac
  2. --- gala/configure.ac 2015-11-24 08:06:36.842420000 +0100
  3. +++ gala-deepin/configure.ac 2015-11-24 08:16:22.391994851 +0100
  4. @@ -108,7 +108,7 @@
  5. clutter-1.0 >= $CLUTTER_MIN_VERSION \
  6. clutter-gtk-1.0 \
  7. granite \
  8. - libmutter >= $MUTTER_MIN_VERSION \
  9. + libdeepin-mutter >= $MUTTER_MIN_VERSION \
  10. gee-0.8 \
  11. gnome-desktop-3.0 \
  12. plank >= $PLANK_MIN_VERSION"
  13. @@ -118,7 +118,7 @@
  14. --pkg gtk+-3.0 \
  15. --pkg gdk-x11-3.0 \
  16. --pkg libbamf3 \
  17. - --pkg libmutter \
  18. + --pkg libdeepin-mutter \
  19. --pkg clutter-1.0 \
  20. --pkg clutter-gtk-1.0 \
  21. --pkg granite \
  22. @@ -142,25 +142,25 @@
  23. # -----------------------------------------------------------
  24.  
  25. # 3.16
  26. -PKG_CHECK_MODULES(MUTTER316, [libmutter >= 3.15], [have_mutter316=yes], [have_mutter316=no])
  27. +PKG_CHECK_MODULES(MUTTER316, [libdeepin-mutter >= 3.15], [have_mutter316=yes], [have_mutter316=no])
  28. if test "x$have_mutter316" = "xyes" ; then
  29. - PKG_CHECK_MODULES(MUTTER316, [libmutter >= 3.16.2])
  30. + PKG_CHECK_MODULES(MUTTER316, [libdeepin-mutter >= 3.16.2])
  31. VALAFLAGS="$VALAFLAGS --define HAS_MUTTER316"
  32. MUTTER_API="3.16"
  33. fi
  34.  
  35. # 3.18
  36. -PKG_CHECK_MODULES(MUTTER318, [libmutter >= 3.17], [have_mutter318=yes], [have_mutter318=no])
  37. +PKG_CHECK_MODULES(MUTTER318, [libdeepin-mutter >= 3.17], [have_mutter318=yes], [have_mutter318=no])
  38. if test "x$have_mutter318" = "xyes" ; then
  39. - PKG_CHECK_MODULES(MUTTER318, [libmutter >= 3.18.1])
  40. + PKG_CHECK_MODULES(MUTTER318, [libdeepin-mutter >= 3.18.1])
  41. VALAFLAGS="$VALAFLAGS --define HAS_MUTTER318"
  42. MUTTER_API="3.18"
  43. fi
  44.  
  45. # 3.20
  46. -PKG_CHECK_MODULES(MUTTER320, [libmutter >= 3.19], [have_mutter320=yes], [have_mutter320=no])
  47. +PKG_CHECK_MODULES(MUTTER320, [libdeepin-mutter >= 3.19], [have_mutter320=yes], [have_mutter320=no])
  48. if test "x$have_mutter320" = "xyes" ; then
  49. - PKG_CHECK_MODULES(MUTTER320, [libmutter >= 3.19.1])
  50. + PKG_CHECK_MODULES(MUTTER320, [libdeepin-mutter >= 3.19.1])
  51. VALAFLAGS="$VALAFLAGS --define HAS_MUTTER320"
  52. MUTTER_API="3.20"
  53. fi
  54. diff -Naur gala/lib/gala.deps gala-deepin/lib/gala.deps
  55. --- gala/lib/gala.deps 2015-11-24 08:06:36.842420000 +0100
  56. +++ gala-deepin/lib/gala.deps 2015-11-24 08:03:03.872979305 +0100
  57. @@ -2,4 +2,4 @@
  58. gdk-pixbuf-2.0
  59. glib-2.0
  60. gobject-2.0
  61. -libmutter
  62. +libdeepin-mutter
  63. diff -Naur gala/lib/gala.pc.in gala-deepin/lib/gala.pc.in
  64. --- gala/lib/gala.pc.in 2015-11-24 08:06:36.842420000 +0100
  65. +++ gala-deepin/lib/gala.pc.in 2015-11-24 08:02:51.009447041 +0100
  66. @@ -7,6 +7,6 @@
  67. Name: Gala
  68. Description: Library to develop plugins for Gala
  69. Version: @PACKAGE_VERSION@
  70. -Requires: clutter-gtk-1.0 gdk-pixbuf-2.0 glib-2.0 gobject-2.0 libmutter
  71. +Requires: clutter-gtk-1.0 gdk-pixbuf-2.0 glib-2.0 gobject-2.0 libdeepin-mutter
  72. Libs: -L${libdir} -lgala
  73. Cflags: -I${includedir}/gala
  74. diff -Naur gala/vapi/libdeepin-mutter.deps gala-deepin/vapi/libdeepin-mutter.deps
  75. --- gala/vapi/libdeepin-mutter.deps 1970-01-01 01:00:00.000000000 +0100
  76. +++ gala-deepin/vapi/libdeepin-mutter.deps 2015-11-24 07:49:39.874516000 +0100
  77. @@ -0,0 +1,9 @@
  78. +cairo
  79. +clutter-1.0
  80. +cogl-1.0
  81. +gdesktopenums-3.0
  82. +gdk-3.0
  83. +gdk-pixbuf-2.0
  84. +gtk+-3.0
  85. +x11
  86. +xfixes-4.0
  87. diff -Naur gala/vapi/libdeepin-mutter.vapi gala-deepin/vapi/libdeepin-mutter.vapi
  88. --- gala/vapi/libdeepin-mutter.vapi 1970-01-01 01:00:00.000000000 +0100
  89. +++ gala-deepin/vapi/libdeepin-mutter.vapi 2015-11-24 07:49:39.874516000 +0100
  90. @@ -0,0 +1,1451 @@
  91. +/* libmutter.vapi generated by vapigen, do not modify. */
  92. +
  93. +[CCode (cprefix = "Meta", gir_namespace = "Meta", gir_version = "3.0", lower_case_cprefix = "meta_")]
  94. +namespace Meta {
  95. +#if !HAS_MUTTER316
  96. + namespace Gradient {
  97. + [CCode (cheader_filename = "meta/gradient.h")]
  98. + public static void add_alpha (Gdk.Pixbuf pixbuf, uint8 alphas, int n_alphas, Meta.GradientType type);
  99. + [CCode (cheader_filename = "meta/gradient.h")]
  100. + public static unowned Gdk.Pixbuf create_interwoven (int width, int height, Gdk.RGBA colors1, int thickness1, Gdk.RGBA colors2, int thickness2);
  101. + [CCode (cheader_filename = "meta/gradient.h")]
  102. + 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);
  103. + [CCode (cheader_filename = "meta/gradient.h")]
  104. + public static Gdk.Pixbuf create_simple (int width, int height, Gdk.RGBA from, Gdk.RGBA to, Meta.GradientType style);
  105. + }
  106. +#endif
  107. + namespace Prefs {
  108. + [CCode (cheader_filename = "meta/prefs.h")]
  109. + public static void add_listener (Meta.PrefsChangedFunc func);
  110. + [CCode (cheader_filename = "meta/prefs.h")]
  111. + public static bool bell_is_audible ();
  112. + [CCode (cheader_filename = "meta/prefs.h")]
  113. + public static void change_workspace_name (int i, string name);
  114. + [CCode (cheader_filename = "meta/prefs.h")]
  115. + public static GDesktop.TitlebarAction get_action_double_click_titlebar ();
  116. + [CCode (cheader_filename = "meta/prefs.h")]
  117. + public static GDesktop.TitlebarAction get_action_middle_click_titlebar ();
  118. + [CCode (cheader_filename = "meta/prefs.h")]
  119. + public static GDesktop.TitlebarAction get_action_right_click_titlebar ();
  120. + [CCode (cheader_filename = "meta/prefs.h")]
  121. + public static bool get_attach_modal_dialogs ();
  122. + [CCode (cheader_filename = "meta/prefs.h")]
  123. + public static bool get_auto_maximize ();
  124. + [CCode (cheader_filename = "meta/prefs.h")]
  125. + public static bool get_auto_raise ();
  126. + [CCode (cheader_filename = "meta/prefs.h")]
  127. + public static int get_auto_raise_delay ();
  128. + [CCode (cheader_filename = "meta/prefs.h")]
  129. + public static Meta.ButtonLayout get_button_layout ();
  130. + [CCode (cheader_filename = "meta/prefs.h")]
  131. + public static bool get_center_new_windows ();
  132. + [CCode (cheader_filename = "meta/prefs.h")]
  133. + public static bool get_compositing_manager ();
  134. + [CCode (cheader_filename = "meta/prefs.h")]
  135. + public static int get_cursor_size ();
  136. + [CCode (cheader_filename = "meta/prefs.h")]
  137. + public static unowned string get_cursor_theme ();
  138. + [CCode (cheader_filename = "meta/prefs.h")]
  139. + public static bool get_disable_workarounds ();
  140. + [CCode (cheader_filename = "meta/prefs.h")]
  141. + public static int get_drag_threshold ();
  142. + [CCode (cheader_filename = "meta/prefs.h")]
  143. + public static int get_draggable_border_width ();
  144. + [CCode (cheader_filename = "meta/prefs.h")]
  145. + public static bool get_dynamic_workspaces ();
  146. + [CCode (cheader_filename = "meta/prefs.h")]
  147. + public static bool get_edge_tiling ();
  148. + [CCode (cheader_filename = "meta/prefs.h")]
  149. + public static bool get_focus_change_on_pointer_rest ();
  150. + [CCode (cheader_filename = "meta/prefs.h")]
  151. + public static GDesktop.FocusMode get_focus_mode ();
  152. + [CCode (cheader_filename = "meta/prefs.h")]
  153. + public static GDesktop.FocusNewWindows get_focus_new_windows ();
  154. + [CCode (cheader_filename = "meta/prefs.h")]
  155. + public static bool get_force_fullscreen ();
  156. + [CCode (cheader_filename = "meta/prefs.h")]
  157. + public static bool get_gnome_accessibility ();
  158. + [CCode (cheader_filename = "meta/prefs.h")]
  159. + public static bool get_gnome_animations ();
  160. + [CCode (cheader_filename = "meta/prefs.h")]
  161. + public static bool get_ignore_request_hide_titlebar ();
  162. + [CCode (cheader_filename = "meta/prefs.h")]
  163. + public static Meta.KeyBindingAction get_keybinding_action (string name);
  164. + [CCode (cheader_filename = "meta/prefs.h")]
  165. + public static int get_mouse_button_menu ();
  166. + [CCode (cheader_filename = "meta/prefs.h")]
  167. + public static Meta.VirtualModifier get_mouse_button_mods ();
  168. + [CCode (cheader_filename = "meta/prefs.h")]
  169. + public static int get_mouse_button_resize ();
  170. + [CCode (cheader_filename = "meta/prefs.h")]
  171. + public static int get_num_workspaces ();
  172. + [CCode (cheader_filename = "meta/prefs.h")]
  173. + public static bool get_raise_on_click ();
  174. + [CCode (cheader_filename = "meta/prefs.h")]
  175. + public static bool get_show_fallback_app_menu ();
  176. +#if !HAS_MUTTER316
  177. + [CCode (cheader_filename = "meta/prefs.h")]
  178. + public static unowned string get_theme ();
  179. +#endif
  180. + [CCode (cheader_filename = "meta/prefs.h")]
  181. + public static unowned Pango.FontDescription get_titlebar_font ();
  182. + [CCode (cheader_filename = "meta/prefs.h")]
  183. + public static bool get_visual_bell ();
  184. + [CCode (cheader_filename = "meta/prefs.h")]
  185. + public static GDesktop.VisualBellType get_visual_bell_type ();
  186. + [CCode (cheader_filename = "meta/prefs.h")]
  187. + public static unowned string get_workspace_name (int i);
  188. + [CCode (cheader_filename = "meta/prefs.h")]
  189. + public static bool get_workspaces_only_on_primary ();
  190. + [CCode (cheader_filename = "meta/prefs.h")]
  191. + public static void init ();
  192. + [CCode (cheader_filename = "meta/prefs.h")]
  193. + public static void override_preference_schema (string key, string schema);
  194. + [CCode (cheader_filename = "meta/prefs.h")]
  195. + public static void remove_listener (Meta.PrefsChangedFunc func);
  196. + [CCode (cheader_filename = "meta/prefs.h")]
  197. + public static void set_force_fullscreen (bool whether);
  198. + [CCode (cheader_filename = "meta/prefs.h")]
  199. + public static void set_ignore_request_hide_titlebar (bool whether);
  200. + [CCode (cheader_filename = "meta/prefs.h")]
  201. + public static void set_num_workspaces (int n_workspaces);
  202. + }
  203. + namespace Util {
  204. + [CCode (cheader_filename = "meta/main.h", cname = "meta_add_verbose_topic")]
  205. + public static void add_verbose_topic (Meta.DebugTopic topic);
  206. + [CCode (cheader_filename = "meta/main.h", cname = "meta_bug")]
  207. + public static void bug (string format, ...);
  208. + [CCode (cheader_filename = "meta/main.h", cname = "meta_debug_spew_real")]
  209. + public static void debug_spew_real (string format, ...);
  210. + [CCode (cheader_filename = "meta/main.h", cname = "meta_disable_unredirect_for_screen")]
  211. + public static void disable_unredirect_for_screen (Meta.Screen screen);
  212. + [CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_empty_stage_input_region")]
  213. + public static void empty_stage_input_region (Meta.Screen screen);
  214. + [CCode (cheader_filename = "meta/main.h", cname = "meta_enable_unredirect_for_screen")]
  215. + public static void enable_unredirect_for_screen (Meta.Screen screen);
  216. + [CCode (cheader_filename = "meta/main.h", cname = "meta_error_trap_pop")]
  217. + public static void error_trap_pop (Meta.Display display);
  218. + [CCode (cheader_filename = "meta/main.h", cname = "meta_error_trap_push")]
  219. + public static void error_trap_push (Meta.Display display);
  220. + [CCode (cheader_filename = "meta/main.h", cname = "meta_error_trap_push_with_return")]
  221. + public static void error_trap_push_with_return (Meta.Display display);
  222. + [CCode (cheader_filename = "meta/main.h", cname = "meta_external_binding_name_for_action")]
  223. + public static string external_binding_name_for_action (uint keybinding_action);
  224. + [CCode (cheader_filename = "meta/main.h", cname = "meta_fatal")]
  225. + public static void fatal (string format, ...);
  226. + [CCode (cheader_filename = "meta/main.h", cname = "meta_free_gslist_and_elements")]
  227. + public static void free_gslist_and_elements (GLib.SList<void*> list_to_deep_free);
  228. + [CCode (cheader_filename = "meta/main.h", cname = "meta_g_utf8_strndup")]
  229. + public static string g_utf8_strndup (string src, size_t n);
  230. + [CCode (cheader_filename = "meta/main.h", cname = "meta_get_locale_direction")]
  231. + public static Meta.LocaleDirection get_locale_direction ();
  232. + [CCode (cheader_filename = "meta/main.h", cname = "meta_get_overlay_window")]
  233. + public static X.Window get_overlay_window (Meta.Screen screen);
  234. + [CCode (cheader_filename = "meta/main.h", cname = "meta_gravity_to_string")]
  235. + public static unowned string gravity_to_string (int gravity);
  236. + [CCode (cheader_filename = "meta/main.h", cname = "meta_is_debugging")]
  237. + public static bool is_debugging ();
  238. + [CCode (cheader_filename = "meta/main.h", cname = "meta_is_syncing")]
  239. + public static bool is_syncing ();
  240. + [CCode (cheader_filename = "meta/main.h", cname = "meta_is_verbose")]
  241. + public static bool is_verbose ();
  242. + [CCode (cheader_filename = "meta/main.h", cname = "meta_is_wayland_compositor")]
  243. + public static bool is_wayland_compositor ();
  244. + [CCode (cheader_filename = "meta/main.h", cname = "meta_later_add")]
  245. + public static uint later_add (Meta.LaterType when, owned GLib.SourceFunc func);
  246. + [CCode (cheader_filename = "meta/main.h", cname = "meta_later_remove")]
  247. + public static void later_remove (uint later_id);
  248. + [CCode (cheader_filename = "meta/main.h", cname = "meta_pop_no_msg_prefix")]
  249. + public static void pop_no_msg_prefix ();
  250. + [CCode (cheader_filename = "meta/main.h", cname = "meta_push_no_msg_prefix")]
  251. + public static void push_no_msg_prefix ();
  252. + [CCode (cheader_filename = "meta/main.h", cname = "meta_rect")]
  253. + public static Meta.Rectangle? rect (int x, int y, int width, int height);
  254. + [CCode (cheader_filename = "meta/main.h", cname = "meta_remove_verbose_topic")]
  255. + public static void remove_verbose_topic (Meta.DebugTopic topic);
  256. + [CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_set_stage_input_region")]
  257. + public static void set_stage_input_region (Meta.Screen screen, X.XserverRegion region);
  258. + [CCode (cheader_filename = "meta/main.h", cname = "meta_show_dialog")]
  259. + 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);
  260. + [CCode (cheader_filename = "meta/main.h", cname = "meta_topic_real")]
  261. + public static void topic_real (Meta.DebugTopic topic, string format, ...);
  262. + [CCode (cheader_filename = "meta/main.h", cname = "meta_unsigned_long_equal")]
  263. + public static int unsigned_long_equal (void* v1, void* v2);
  264. + [CCode (cheader_filename = "meta/main.h", cname = "meta_unsigned_long_hash")]
  265. + public static uint unsigned_long_hash (void* v);
  266. + [CCode (cheader_filename = "meta/main.h", cname = "meta_verbose_real")]
  267. + public static void verbose_real (string format, ...);
  268. + [CCode (cheader_filename = "meta/main.h", cname = "meta_warning")]
  269. + public static void warning (string format, ...);
  270. + }
  271. + [CCode (cheader_filename = "meta/main.h", type_id = "meta_backend_get_type ()")]
  272. + public abstract class Backend : GLib.Object {
  273. + [CCode (has_construct_function = false)]
  274. + protected Backend ();
  275. + [CCode (cheader_filename = "meta/meta-backend.h", cname = "meta_get_backend")]
  276. + public static unowned Meta.Backend get_backend ();
  277. + public unowned Clutter.Actor get_stage ();
  278. + public void lock_layout_group (uint idx);
  279. + public void set_keymap (string layouts, string variants, string options);
  280. + public signal void keymap_changed ();
  281. + public signal void keymap_layout_group_changed (uint object);
  282. +#if HAS_MUTTER316
  283. + public signal void last_device_changed (int object);
  284. +#endif
  285. + }
  286. + [CCode (cheader_filename = "meta/meta-background.h", type_id = "meta_background_get_type ()")]
  287. + public class Background : GLib.Object {
  288. + [CCode (has_construct_function = false)]
  289. + public Background (Meta.Screen screen);
  290. + public static void refresh_all ();
  291. +#if HAS_MUTTER316
  292. + public void set_blend (GLib.File file1, GLib.File file2, double blend_factor, GDesktop.BackgroundStyle style);
  293. +#else
  294. + public void set_blend (string filename1, string filename2, double blend_factor, GDesktop.BackgroundStyle style);
  295. +#endif
  296. + public void set_color (Clutter.Color color);
  297. +#if HAS_MUTTER316
  298. + public void set_file (GLib.File file, GDesktop.BackgroundStyle style);
  299. +#else
  300. + public void set_filename (string filename, GDesktop.BackgroundStyle style);
  301. +#endif
  302. + public void set_gradient (GDesktop.BackgroundShading shading_direction, Clutter.Color color, Clutter.Color second_color);
  303. + [NoAccessorMethod]
  304. + public Meta.Screen meta_screen { owned get; construct; }
  305. + public signal void changed ();
  306. + }
  307. + [CCode (cheader_filename = "meta/meta-background-actor.h", type_id = "meta_background_actor_get_type ()")]
  308. + public class BackgroundActor : Clutter.Actor, Atk.Implementor, Clutter.Animatable, Clutter.Container, Clutter.Scriptable {
  309. + [CCode (has_construct_function = false, type = "ClutterActor*")]
  310. + public BackgroundActor (Meta.Screen screen, int monitor);
  311. + public void set_background (Meta.Background background);
  312. + public void set_vignette (bool enabled, double brightness, double sharpness);
  313. + [NoAccessorMethod]
  314. + public Meta.Background background { owned get; set; }
  315. + [NoAccessorMethod]
  316. + public double brightness { get; set; }
  317. + [NoAccessorMethod]
  318. + public Meta.Screen meta_screen { owned get; construct; }
  319. + [NoAccessorMethod]
  320. + public int monitor { get; construct; }
  321. + [NoAccessorMethod]
  322. + public bool vignette { get; set; }
  323. + [NoAccessorMethod]
  324. + public double vignette_sharpness { get; set; }
  325. + }
  326. + [CCode (cheader_filename = "meta/meta-background-group.h", type_id = "meta_background_group_get_type ()")]
  327. + public class BackgroundGroup : Clutter.Actor, Atk.Implementor, Clutter.Animatable, Clutter.Container, Clutter.Scriptable {
  328. + [CCode (has_construct_function = false, type = "ClutterActor*")]
  329. + public BackgroundGroup ();
  330. + }
  331. + [CCode (cheader_filename = "meta/meta-background-image.h", type_id = "meta_background_image_get_type ()")]
  332. + public class BackgroundImage : GLib.Object {
  333. + [CCode (has_construct_function = false)]
  334. + protected BackgroundImage ();
  335. + public bool get_success ();
  336. + public unowned Cogl.Texture get_texture ();
  337. + public bool is_loaded ();
  338. + public signal void loaded ();
  339. + }
  340. + [CCode (cheader_filename = "meta/meta-background-image.h", type_id = "meta_background_image_cache_get_type ()")]
  341. + public class BackgroundImageCache : GLib.Object {
  342. + [CCode (has_construct_function = false)]
  343. + protected BackgroundImageCache ();
  344. + public static unowned Meta.BackgroundImageCache get_default ();
  345. +#if HAS_MUTTER316
  346. + public Meta.BackgroundImage load (GLib.File file);
  347. + public void purge (GLib.File file);
  348. +#else
  349. + public Meta.BackgroundImage load (string filename);
  350. + public void purge (string filename);
  351. +#endif
  352. + }
  353. + [CCode (cheader_filename = "meta/barrier.h", type_id = "meta_barrier_get_type ()")]
  354. + public class Barrier : GLib.Object {
  355. + [CCode (has_construct_function = false)]
  356. + protected Barrier ();
  357. + public void destroy ();
  358. + public bool is_active ();
  359. + public void release (Meta.BarrierEvent event);
  360. + [NoAccessorMethod]
  361. + public Meta.BarrierDirection directions { get; construct; }
  362. + [NoAccessorMethod]
  363. + public Meta.Display display { owned get; construct; }
  364. + [NoAccessorMethod]
  365. + public int x1 { get; construct; }
  366. + [NoAccessorMethod]
  367. + public int x2 { get; construct; }
  368. + [NoAccessorMethod]
  369. + public int y1 { get; construct; }
  370. + [NoAccessorMethod]
  371. + public int y2 { get; construct; }
  372. + public signal void hit (Meta.BarrierEvent event);
  373. + public signal void left (Meta.BarrierEvent event);
  374. + }
  375. + [CCode (cheader_filename = "meta/main.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "meta_barrier_event_get_type ()")]
  376. + [Compact]
  377. + public class BarrierEvent {
  378. + public int dt;
  379. + public double dx;
  380. + public double dy;
  381. + public int event_id;
  382. + public bool grabbed;
  383. + public bool released;
  384. + public uint32 time;
  385. + public double x;
  386. + public double y;
  387. + }
  388. + [CCode (cheader_filename = "meta/compositor.h")]
  389. + [Compact]
  390. + public class Compositor {
  391. + public void add_window (Meta.Window window);
  392. + public void destroy ();
  393. + public bool filter_keybinding (Meta.KeyBinding binding);
  394. + public void flash_screen (Meta.Screen screen);
  395. + [CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_focus_stage_window")]
  396. + public static void focus_stage_window (Meta.Screen screen, uint32 timestamp);
  397. +#if HAS_MUTTER316
  398. + [CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_get_feedback_group_for_screen")]
  399. + public static unowned Clutter.Actor get_feedback_group_for_screen (Meta.Screen screen);
  400. +#endif
  401. + [CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_get_stage_for_screen")]
  402. + public static unowned Clutter.Actor? get_stage_for_screen (Meta.Screen screen);
  403. + [CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_get_top_window_group_for_screen")]
  404. + public static unowned Clutter.Actor? get_top_window_group_for_screen (Meta.Screen screen);
  405. + [CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_get_window_actors")]
  406. + public static unowned GLib.List<weak Meta.WindowActor>? get_window_actors (Meta.Screen screen);
  407. + [CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_get_window_group_for_screen")]
  408. + public static unowned Clutter.Actor? get_window_group_for_screen (Meta.Screen screen);
  409. + public void hide_tile_preview ();
  410. + public void hide_window (Meta.Window window, Meta.CompEffect effect);
  411. + public void manage ();
  412. +#if !HAS_MUTTER318
  413. + public void maximize_window (Meta.Window window, Meta.Rectangle old_rect, Meta.Rectangle new_rect);
  414. +#endif
  415. + [CCode (cheader_filename = "meta/main.h")]
  416. + public static unowned Meta.Compositor @new (Meta.Display display);
  417. + public void queue_frame_drawn (Meta.Window window, bool no_delay_frame);
  418. + public void remove_window (Meta.Window window);
  419. + public void show_tile_preview (Meta.Window window, Meta.Rectangle tile_rect, int tile_monitor_number);
  420. + public void show_window (Meta.Window window, Meta.CompEffect effect);
  421. + public void show_window_menu (Meta.Window window, Meta.WindowMenuType menu, int x, int y);
  422. + public void show_window_menu_for_rect (Meta.Window window, Meta.WindowMenuType menu, Meta.Rectangle rect);
  423. +#if HAS_MUTTER318
  424. + public void size_change_window (Meta.Window window, Meta.SizeChange which_change, Meta.Rectangle old_frame_rect, Meta.Rectangle old_buffer_rect);
  425. +#endif
  426. + [CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_stage_is_focused")]
  427. + public static bool stage_is_focused (Meta.Screen screen);
  428. + public void switch_workspace (Meta.Workspace from, Meta.Workspace to, Meta.MotionDirection direction);
  429. + public void sync_stack (GLib.List<Meta.WindowActor> stack);
  430. + public void sync_updates_frozen (Meta.Window window);
  431. + public void sync_window_geometry (Meta.Window window, bool did_placement);
  432. + public void unmanage ();
  433. +#if !HAS_MUTTER318
  434. + public void unmaximize_window (Meta.Window window, Meta.Rectangle old_rect, Meta.Rectangle new_rect);
  435. +#endif
  436. + public void window_opacity_changed (Meta.Window window);
  437. + public void window_shape_changed (Meta.Window window);
  438. + public void window_surface_changed (Meta.Window window);
  439. + }
  440. + [CCode (cheader_filename = "meta/meta-cursor-tracker.h", type_id = "meta_cursor_tracker_get_type ()")]
  441. + public class CursorTracker : GLib.Object {
  442. + [CCode (has_construct_function = false)]
  443. + protected CursorTracker ();
  444. + public static unowned Meta.CursorTracker get_for_screen (Meta.Screen screen);
  445. + public void get_hot (out int x, out int y);
  446. + public void get_pointer (int x, int y, Clutter.ModifierType mods);
  447. + public unowned Cogl.Texture get_sprite ();
  448. + public void set_pointer_visible (bool visible);
  449. + public signal void cursor_changed ();
  450. + }
  451. + [CCode (cheader_filename = "meta/display.h", type_id = "meta_display_get_type ()")]
  452. + public class Display : GLib.Object {
  453. + [CCode (has_construct_function = false)]
  454. + protected Display ();
  455. + public void add_ignored_crossing_serial (ulong serial);
  456. + public uint add_keybinding (string name, GLib.Settings settings, Meta.KeyBindingFlags flags, owned Meta.KeyHandlerFunc handler);
  457. + 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);
  458. + public void clear_mouse_mode ();
  459. + public void end_grab_op (uint32 timestamp);
  460. + public void focus_the_no_focus_window (Meta.Screen screen, uint32 timestamp);
  461. +#if HAS_MUTTER316
  462. + public void freeze_keyboard (uint32 timestamp);
  463. +#else
  464. + public void freeze_keyboard (X.Window window, uint32 timestamp);
  465. +#endif
  466. + public unowned Meta.Compositor get_compositor ();
  467. + public uint32 get_current_time ();
  468. + public uint32 get_current_time_roundtrip ();
  469. + public int get_damage_event_base ();
  470. + public unowned Meta.Window get_focus_window ();
  471. + public Meta.GrabOp get_grab_op ();
  472. + public uint get_keybinding_action (uint keycode, ulong mask);
  473. + public uint32 get_last_user_time ();
  474. + public int get_shape_event_base ();
  475. + public unowned Meta.Window get_tab_current (Meta.TabList type, Meta.Workspace workspace);
  476. + public GLib.List<weak Meta.Window> get_tab_list (Meta.TabList type, Meta.Workspace? workspace);
  477. + public unowned Meta.Window get_tab_next (Meta.TabList type, Meta.Workspace workspace, Meta.Window? window, bool backward);
  478. + public unowned X.Display get_xdisplay ();
  479. + public int get_xinput_opcode ();
  480. + public uint grab_accelerator (string accelerator);
  481. + public bool has_shape ();
  482. + public bool is_pointer_emulating_sequence (Clutter.EventSequence? sequence);
  483. + public unowned Meta.Group lookup_group (X.Window group_leader);
  484. + public bool remove_keybinding (string name);
  485. + public void set_input_focus_window (Meta.Window window, bool focus_frame, uint32 timestamp);
  486. + public GLib.SList<weak Meta.Window> sort_windows_by_stacking (GLib.SList<Meta.Window> windows);
  487. + public bool supports_extended_barriers ();
  488. + public void unfreeze_keyboard (uint32 timestamp);
  489. + public bool ungrab_accelerator (uint action_id);
  490. + public void ungrab_keyboard (uint32 timestamp);
  491. + public void unmanage_screen (Meta.Screen screen, uint32 timestamp);
  492. + public bool xserver_time_is_before (uint32 time1, uint32 time2);
  493. + public bool xwindow_is_a_no_focus_window (X.Window xwindow);
  494. + public signal void accelerator_activated (uint object, uint p0, uint p1);
  495. + public signal void grab_op_begin (Meta.Screen object, Meta.Window p0, Meta.GrabOp p1);
  496. + public signal void grab_op_end (Meta.Screen object, Meta.Window p0, Meta.GrabOp p1);
  497. + public signal bool modifiers_accelerator_activated ();
  498. + public signal void overlay_key ();
  499. + public signal bool restart ();
  500. +#if HAS_MUTTER316
  501. + public signal bool show_resize_popup (bool object, Meta.Rectangle p0, int p1, int p2);
  502. +#endif
  503. + public signal bool show_restart_message (string? message);
  504. + public signal void window_created (Meta.Window object);
  505. + public signal void window_demands_attention (Meta.Window object);
  506. + public signal void window_marked_urgent (Meta.Window object);
  507. + }
  508. + [CCode (cheader_filename = "meta/common.h")]
  509. + [Compact]
  510. + public class Frame {
  511. + }
  512. + [CCode (cheader_filename = "meta/group.h")]
  513. + [Compact]
  514. + public class Group {
  515. + public int get_size ();
  516. + public unowned string get_startup_id ();
  517. + public GLib.SList<weak Meta.Window> list_windows ();
  518. + public bool property_notify (X.Event event);
  519. + public void update_layers ();
  520. + }
  521. + [CCode (cheader_filename = "meta/meta-idle-monitor.h", type_id = "meta_idle_monitor_get_type ()")]
  522. + public class IdleMonitor : GLib.Object {
  523. + [CCode (has_construct_function = false)]
  524. + protected IdleMonitor ();
  525. + public uint add_idle_watch (uint64 interval_msec, owned Meta.IdleMonitorWatchFunc? callback);
  526. + public uint add_user_active_watch (owned Meta.IdleMonitorWatchFunc? callback);
  527. + public static unowned Meta.IdleMonitor get_core ();
  528. + public static unowned Meta.IdleMonitor get_for_device (int device_id);
  529. + public int64 get_idletime ();
  530. + public void remove_watch (uint id);
  531. + [NoAccessorMethod]
  532. + public int device_id { get; construct; }
  533. + }
  534. + [CCode (cheader_filename = "meta/keybindings.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "meta_key_binding_get_type ()")]
  535. + [Compact]
  536. + public class KeyBinding {
  537. + public uint get_mask ();
  538. + public Meta.VirtualModifier get_modifiers ();
  539. + public unowned string get_name ();
  540. + public bool is_builtin ();
  541. + public bool is_reversed ();
  542. + [CCode (cheader_filename = "meta/keybindings.h", cname = "meta_keybindings_set_custom_handler")]
  543. + public static bool set_custom_handler (string name, owned Meta.KeyHandlerFunc? handler);
  544. + }
  545. +#if HAS_MUTTER316
  546. + [CCode (cheader_filename = "meta/meta-monitor-manager.h", type_id = "meta_monitor_manager_get_type ()")]
  547. + public abstract class MonitorManager : GLib.DBusInterfaceSkeleton, GLib.DBusInterface {
  548. + [CCode (has_construct_function = false)]
  549. + protected MonitorManager ();
  550. + public static unowned Meta.MonitorManager @get ();
  551. + public int get_monitor_for_output (uint id);
  552. + public signal void confirm_display_change ();
  553. + }
  554. +#endif
  555. + [CCode (cheader_filename = "meta/meta-plugin.h", type_id = "meta_plugin_get_type ()")]
  556. + public abstract class Plugin : GLib.Object {
  557. + [CCode (has_construct_function = false)]
  558. + protected Plugin ();
  559. + public bool begin_modal (Meta.ModalOptions options, uint32 timestamp);
  560. + public void complete_display_change (bool ok);
  561. + [NoWrapper]
  562. + public virtual void confirm_display_change ();
  563. + [NoWrapper]
  564. + public virtual void destroy (Meta.WindowActor actor);
  565. + public void destroy_completed (Meta.WindowActor actor);
  566. + public void end_modal (uint32 timestamp);
  567. + public unowned Meta.PluginInfo? get_info ();
  568. + public unowned Meta.Screen get_screen ();
  569. + [NoWrapper]
  570. + public virtual void hide_tile_preview ();
  571. + [NoWrapper]
  572. + public virtual bool keybinding_filter (Meta.KeyBinding binding);
  573. + [NoWrapper]
  574. + public virtual void kill_switch_workspace ();
  575. + [NoWrapper]
  576. + public virtual void kill_window_effects (Meta.WindowActor actor);
  577. + public static void manager_set_plugin_type (GLib.Type gtype);
  578. + [NoWrapper]
  579. + public virtual void map (Meta.WindowActor actor);
  580. + public void map_completed (Meta.WindowActor actor);
  581. +#if !HAS_MUTTER318
  582. + [NoWrapper]
  583. + public virtual void maximize (Meta.WindowActor actor, int x, int y, int width, int height);
  584. + public void maximize_completed (Meta.WindowActor actor);
  585. +#endif
  586. + [NoWrapper]
  587. + public virtual void minimize (Meta.WindowActor actor);
  588. + public void minimize_completed (Meta.WindowActor actor);
  589. + [NoWrapper]
  590. + public virtual unowned Meta.PluginInfo? plugin_info ();
  591. + [NoWrapper]
  592. + public virtual void show_tile_preview (Meta.Window window, Meta.Rectangle tile_rect, int tile_monitor_number);
  593. + [NoWrapper]
  594. + public virtual void show_window_menu (Meta.Window window, Meta.WindowMenuType menu, int x, int y);
  595. + [NoWrapper]
  596. + public virtual void show_window_menu_for_rect (Meta.Window window, Meta.WindowMenuType menu, Meta.Rectangle rect);
  597. +#if HAS_MUTTER318
  598. + [NoWrapper]
  599. + public virtual void size_change (Meta.WindowActor actor, Meta.SizeChange which_change, Meta.Rectangle old_frame_rect, Meta.Rectangle old_buffer_rect);
  600. + public void size_change_completed (Meta.WindowActor actor);
  601. +#endif
  602. + [NoWrapper]
  603. + public virtual void start ();
  604. + [NoWrapper]
  605. + public virtual void switch_workspace (int from, int to, Meta.MotionDirection direction);
  606. + public void switch_workspace_completed ();
  607. +#if !HAS_MUTTER318
  608. + [NoWrapper]
  609. + public virtual void unmaximize (Meta.WindowActor actor, int x, int y, int width, int height);
  610. + public void unmaximize_completed (Meta.WindowActor actor);
  611. +#endif
  612. + [NoWrapper]
  613. + public virtual void unminimize (Meta.WindowActor actor);
  614. + public void unminimize_completed (Meta.WindowActor actor);
  615. + [NoWrapper]
  616. + public virtual bool xevent_filter (X.Event event);
  617. + }
  618. + [CCode (cheader_filename = "meta/screen.h", type_id = "meta_screen_get_type ()")]
  619. + public class Screen : GLib.Object {
  620. + [CCode (has_construct_function = false)]
  621. + protected Screen ();
  622. + public unowned Meta.Workspace? append_new_workspace (bool activate, uint32 timestamp);
  623. + public void focus_default_window (uint32 timestamp);
  624. + public unowned Meta.Workspace get_active_workspace ();
  625. + public int get_active_workspace_index ();
  626. + public int get_current_monitor ();
  627. + public int get_current_monitor_for_pos (int x, int y);
  628. + public unowned Meta.Display get_display ();
  629. + public Meta.Rectangle get_monitor_geometry (int monitor);
  630. + public bool get_monitor_in_fullscreen (int monitor);
  631. + public int get_monitor_index_for_rect (Meta.Rectangle rect);
  632. +#if HAS_MUTTER318
  633. + public int get_monitor_neighbor_index (int which_monitor, Meta.ScreenDirection dir);
  634. +#endif
  635. + public int get_n_monitors ();
  636. + public int get_n_workspaces ();
  637. + public int get_primary_monitor ();
  638. + public int get_screen_number ();
  639. + public void get_size (out int width, out int height);
  640. + public unowned Meta.Workspace? get_workspace_by_index (int index);
  641. + public unowned GLib.List<Meta.Workspace> get_workspaces ();
  642. + public X.Window get_xroot ();
  643. + public void override_workspace_layout (Meta.ScreenCorner starting_corner, bool vertical_layout, int n_rows, int n_columns);
  644. + public void remove_workspace (Meta.Workspace workspace, uint32 timestamp);
  645. + public void set_cm_selection ();
  646. + public void set_cursor (Meta.Cursor cursor);
  647. +#if !HAS_MUTTER316
  648. + public void unset_cm_selection ();
  649. +#endif
  650. + public int n_workspaces { get; }
  651. + public signal void in_fullscreen_changed ();
  652. + public signal void monitors_changed ();
  653. + public signal void restacked ();
  654. + public signal void startup_sequence_changed (void* object);
  655. + public signal void window_entered_monitor (int object, Meta.Window p0);
  656. + public signal void window_left_monitor (int object, Meta.Window p0);
  657. + public signal void workareas_changed ();
  658. + public signal void workspace_added (int object);
  659. + public signal void workspace_removed (int object);
  660. + public signal void workspace_switched (int object, int p0, Meta.MotionDirection p1);
  661. + }
  662. +#if HAS_MUTTER318
  663. + [CCode (cheader_filename = "meta/meta-shadow-factory.h", ref_function = "meta_shadow_ref", type_id = "meta_shadow_get_type ()", unref_function = "meta_shadow_unref")]
  664. + [Compact]
  665. + public class Shadow {
  666. + public void get_bounds (int window_x, int window_y, int window_width, int window_height, Cairo.RectangleInt bounds);
  667. + public void paint (int window_x, int window_y, int window_width, int window_height, uint8 opacity, Cairo.Region? clip, bool clip_strictly);
  668. + public Meta.Shadow @ref ();
  669. + public void unref ();
  670. + }
  671. +#endif
  672. + [CCode (cheader_filename = "meta/meta-shadow-factory.h", type_id = "meta_shadow_factory_get_type ()")]
  673. + public class ShadowFactory : GLib.Object {
  674. + [CCode (has_construct_function = false)]
  675. +#if HAS_MUTTER318
  676. + public ShadowFactory ();
  677. +#else
  678. + protected ShadowFactory ();
  679. +#endif
  680. + public static unowned Meta.ShadowFactory get_default ();
  681. + public Meta.ShadowParams get_params (string class_name, bool focused);
  682. +#if HAS_MUTTER318
  683. + public Meta.Shadow get_shadow (Meta.WindowShape shape, int width, int height, string class_name, bool focused);
  684. +#endif
  685. + public void set_params (string class_name, bool focused, Meta.ShadowParams @params);
  686. + public signal void changed ();
  687. + }
  688. + [CCode (cheader_filename = "meta/meta-shaped-texture.h", type_id = "meta_shaped_texture_get_type ()")]
  689. + public class ShapedTexture : Clutter.Actor, Atk.Implementor, Clutter.Animatable, Clutter.Container, Clutter.Scriptable {
  690. + [CCode (has_construct_function = false)]
  691. + protected ShapedTexture ();
  692. + public Cairo.Surface get_image (Cairo.RectangleInt clip);
  693. + public unowned Cogl.Texture get_texture ();
  694. + public void set_create_mipmaps (bool create_mipmaps);
  695. + public void set_mask_texture (Cogl.Texture mask_texture);
  696. + public void set_opaque_region (owned Cairo.Region opaque_region);
  697. + public bool update_area (int x, int y, int width, int height);
  698. + public signal void size_changed ();
  699. + }
  700. + [CCode (cheader_filename = "meta/theme.h")]
  701. + [Compact]
  702. + public class Theme {
  703. + public void free ();
  704. +#if HAS_MUTTER316
  705. + [CCode (cheader_filename = "meta/main.h")]
  706. + public static unowned Meta.Theme get_default ();
  707. + [CCode (cheader_filename = "meta/main.h")]
  708. + public static unowned Meta.Theme @new ();
  709. +#else
  710. + [CCode (cheader_filename = "meta/main.h")]
  711. + public static unowned Meta.Theme get_current ();
  712. + [CCode (cheader_filename = "meta/main.h")]
  713. + public static unowned Meta.Theme load (string theme_name) throws GLib.Error;
  714. + [CCode (cheader_filename = "meta/main.h")]
  715. + public static unowned Meta.Theme @new ();
  716. + [CCode (cheader_filename = "meta/main.h")]
  717. + public static void set_current (string name);
  718. + public bool validate () throws GLib.Error;
  719. +#endif
  720. + }
  721. + [CCode (cheader_filename = "meta/window.h", type_id = "meta_window_get_type ()")]
  722. + public abstract class Window : GLib.Object {
  723. + [CCode (has_construct_function = false)]
  724. + protected Window ();
  725. + public void activate (uint32 current_time);
  726. + public void activate_with_workspace (uint32 current_time, Meta.Workspace workspace);
  727. + public bool allows_move ();
  728. + public bool allows_resize ();
  729. + public void begin_grab_op (Meta.GrabOp op, bool frame_action, uint32 timestamp);
  730. + public bool can_close ();
  731. + public bool can_maximize ();
  732. + public bool can_minimize ();
  733. + public bool can_shade ();
  734. + public void change_workspace (Meta.Workspace workspace);
  735. + public void change_workspace_by_index (int space_index, bool append);
  736. + public void check_alive (uint32 timestamp);
  737. + public Meta.Rectangle client_rect_to_frame_rect (Meta.Rectangle client_rect);
  738. + public void compute_group ();
  739. + public void @delete (uint32 timestamp);
  740. + public unowned Meta.Window find_root_ancestor ();
  741. + public void focus (uint32 timestamp);
  742. + public void foreach_ancestor (Meta.WindowForeachFunc func);
  743. + public void foreach_transient (Meta.WindowForeachFunc func);
  744. + public Meta.Rectangle frame_rect_to_client_rect (Meta.Rectangle frame_rect);
  745. + [CCode (array_length_pos = 0.1, array_length_type = "gsize")]
  746. + public int[] get_all_monitors ();
  747. + public Meta.Rectangle get_buffer_rect ();
  748. + public unowned string get_client_machine ();
  749. + public unowned GLib.Object get_compositor_private ();
  750. + public unowned string get_description ();
  751. + public unowned Meta.Display get_display ();
  752. + public unowned Meta.Frame get_frame ();
  753. + public unowned Cairo.Region? get_frame_bounds ();
  754. + public Meta.Rectangle get_frame_rect ();
  755. + public Meta.FrameType get_frame_type ();
  756. + public unowned Meta.Group get_group ();
  757. + public unowned string get_gtk_app_menu_object_path ();
  758. + public unowned string get_gtk_application_id ();
  759. + public unowned string get_gtk_application_object_path ();
  760. + public unowned string get_gtk_menubar_object_path ();
  761. + public unowned string get_gtk_theme_variant ();
  762. + public unowned string get_gtk_unique_bus_name ();
  763. + public unowned string get_gtk_window_object_path ();
  764. + public bool get_icon_geometry (out Meta.Rectangle rect);
  765. + public Meta.StackLayer get_layer ();
  766. + public Meta.MaximizeFlags get_maximized ();
  767. + public int get_monitor ();
  768. + public unowned string get_mutter_hints ();
  769. +#if !HAS_MUTTER316
  770. + [Deprecated (since = "3.12")]
  771. + public Meta.Rectangle get_outer_rect ();
  772. +#endif
  773. + public int get_pid ();
  774. + public unowned string get_role ();
  775. + public unowned Meta.Screen get_screen ();
  776. + public uint get_stable_sequence ();
  777. + public unowned string get_startup_id ();
  778. + public unowned Meta.Window? get_tile_match ();
  779. + public unowned string get_title ();
  780. + public unowned Meta.Window get_transient_for ();
  781. + public uint32 get_user_time ();
  782. + public Meta.WindowType get_window_type ();
  783. + public unowned string get_wm_class ();
  784. + public unowned string get_wm_class_instance ();
  785. + public Meta.Rectangle get_work_area_all_monitors ();
  786. + public Meta.Rectangle get_work_area_current_monitor ();
  787. + public Meta.Rectangle get_work_area_for_monitor (int which_monitor);
  788. + public unowned Meta.Workspace get_workspace ();
  789. + public X.Window get_xwindow ();
  790. + public void group_leader_changed ();
  791. + public bool has_focus ();
  792. + public bool is_above ();
  793. + public bool is_always_on_all_workspaces ();
  794. + public bool is_ancestor_of_transient (Meta.Window transient);
  795. + public bool is_attached_dialog ();
  796. + public bool is_fullscreen ();
  797. + public bool is_hidden ();
  798. + public bool is_monitor_sized ();
  799. + public bool is_on_all_workspaces ();
  800. + public bool is_on_primary_monitor ();
  801. + public bool is_override_redirect ();
  802. + public bool is_remote ();
  803. + public bool is_screen_sized ();
  804. + public bool is_shaded ();
  805. + public bool is_skip_taskbar ();
  806. + public void kill ();
  807. + public bool located_on_workspace (Meta.Workspace workspace);
  808. + public void lower ();
  809. + public void make_above ();
  810. + public void make_fullscreen ();
  811. + public void maximize (Meta.MaximizeFlags directions);
  812. + public void minimize ();
  813. + public void move_frame (bool user_op, int root_x_nw, int root_y_nw);
  814. + public void move_resize_frame (bool user_op, int root_x_nw, int root_y_nw, int w, int h);
  815. + public void move_to_monitor (int monitor);
  816. + public void raise ();
  817. + public bool requested_bypass_compositor ();
  818. + public bool requested_dont_bypass_compositor ();
  819. + public void set_compositor_private (GLib.Object priv);
  820. + public void set_demands_attention ();
  821. + public void set_icon_geometry (Meta.Rectangle? rect);
  822. + public void shade (uint32 timestamp);
  823. + public void shove_titlebar_onscreen ();
  824. + public bool showing_on_its_workspace ();
  825. + public void shutdown_group ();
  826. + public void stick ();
  827. + public bool titlebar_is_onscreen ();
  828. + public void unmake_above ();
  829. + public void unmake_fullscreen ();
  830. + public void unmaximize (Meta.MaximizeFlags directions);
  831. + public void unminimize ();
  832. + public void unset_demands_attention ();
  833. + public void unshade (uint32 timestamp);
  834. + public void unstick ();
  835. + [NoAccessorMethod]
  836. + public bool above { get; }
  837. + [NoAccessorMethod]
  838. + public bool appears_focused { get; }
  839. + [NoAccessorMethod]
  840. + public bool decorated { get; }
  841. + [NoAccessorMethod]
  842. + public bool demands_attention { get; }
  843. + [NoAccessorMethod]
  844. + public bool fullscreen { get; }
  845. + public string gtk_app_menu_object_path { get; }
  846. + public string gtk_application_id { get; }
  847. + public string gtk_application_object_path { get; }
  848. + public string gtk_menubar_object_path { get; }
  849. + public string gtk_unique_bus_name { get; }
  850. + public string gtk_window_object_path { get; }
  851. + [NoAccessorMethod]
  852. +#if HAS_MUTTER316
  853. + public Cairo.Surface icon { owned get; }
  854. +#else
  855. + public Gdk.Pixbuf icon { owned get; }
  856. +#endif
  857. + [NoAccessorMethod]
  858. + public bool maximized_horizontally { get; }
  859. + [NoAccessorMethod]
  860. + public bool maximized_vertically { get; }
  861. + [NoAccessorMethod]
  862. +#if HAS_MUTTER316
  863. + public Cairo.Surface mini_icon { owned get; }
  864. +#else
  865. + public Gdk.Pixbuf mini_icon { owned get; }
  866. +#endif
  867. + [NoAccessorMethod]
  868. + public bool minimized { get; }
  869. + public string mutter_hints { get; }
  870. + [NoAccessorMethod]
  871. + public bool on_all_workspaces { get; }
  872. + [NoAccessorMethod]
  873. + public bool resizeable { get; }
  874. + [NoAccessorMethod]
  875. + public bool skip_taskbar { get; }
  876. + public string title { get; }
  877. + [NoAccessorMethod]
  878. + public bool urgent { get; }
  879. + public uint user_time { get; }
  880. + public Meta.WindowType window_type { get; }
  881. + public string wm_class { get; }
  882. + [CCode (cname = "focus")]
  883. + public signal void focused ();
  884. + public signal void position_changed ();
  885. + public signal void raised ();
  886. + public signal void size_changed ();
  887. + public signal void unmanaged ();
  888. + public signal void workspace_changed ();
  889. + }
  890. + [CCode (cheader_filename = "meta/meta-window-actor.h", type_id = "meta_window_actor_get_type ()")]
  891. + public class WindowActor : Clutter.Actor, Atk.Implementor, Clutter.Animatable, Clutter.Container, Clutter.Scriptable {
  892. + [CCode (has_construct_function = false)]
  893. + protected WindowActor ();
  894. + public unowned Meta.Window get_meta_window ();
  895. + public unowned Clutter.Actor get_texture ();
  896. + public X.Window get_x_window ();
  897. + public bool is_destroyed ();
  898. +#if !HAS_MUTTER318
  899. + [NoAccessorMethod]
  900. + public bool no_shadow { get; set; }
  901. +#endif
  902. + [NoAccessorMethod]
  903. + public string shadow_class { owned get; set; }
  904. +#if HAS_MUTTER318
  905. + [NoAccessorMethod]
  906. + public Meta.ShadowMode shadow_mode { get; set; }
  907. +#endif
  908. + public signal void first_frame ();
  909. + }
  910. +#if HAS_MUTTER318
  911. + [CCode (cheader_filename = "meta/meta_window_shape.h", ref_function = "meta_window_shape_ref", type_id = "meta_window_shape_get_type ()", unref_function = "meta_window_shape_unref")]
  912. + [Compact]
  913. + public class WindowShape {
  914. + [CCode (has_construct_function = false)]
  915. + public WindowShape (Cairo.Region region);
  916. + public bool equal (Meta.WindowShape shape_b);
  917. + public void get_borders (int border_top, int border_right, int border_bottom, int border_left);
  918. + public uint hash ();
  919. + public Meta.WindowShape @ref ();
  920. + public Cairo.Region to_region (int center_width, int center_height);
  921. + public void unref ();
  922. + }
  923. +#endif
  924. + [CCode (cheader_filename = "meta/workspace.h", type_id = "meta_workspace_get_type ()")]
  925. + public class Workspace : GLib.Object {
  926. + [CCode (has_construct_function = false)]
  927. + protected Workspace ();
  928. + public void activate (uint32 timestamp);
  929. + public void activate_with_focus (Meta.Window focus_this, uint32 timestamp);
  930. + public unowned Meta.Workspace get_neighbor (Meta.MotionDirection direction);
  931. + public unowned Meta.Screen get_screen ();
  932. + public Meta.Rectangle get_work_area_all_monitors ();
  933. + public Meta.Rectangle get_work_area_for_monitor (int which_monitor);
  934. + public int index ();
  935. + public GLib.List<weak Meta.Window> list_windows ();
  936. + public void set_builtin_struts (GLib.SList<Meta.Strut> struts);
  937. + [NoAccessorMethod]
  938. + public uint n_windows { get; }
  939. + [NoAccessorMethod]
  940. + public uint workspace_index { get; }
  941. + public signal void window_added (Meta.Window object);
  942. + public signal void window_removed (Meta.Window object);
  943. + }
  944. + [CCode (cheader_filename = "meta/common.h", has_type_id = false)]
  945. + public struct ButtonLayout {
  946. + [CCode (array_length = false, array_null_terminated = true)]
  947. + public weak Meta.ButtonFunction[] left_buttons;
  948. + [CCode (array_length = false, array_null_terminated = true)]
  949. + public weak bool[] left_buttons_has_spacer;
  950. + [CCode (array_length = false, array_null_terminated = true)]
  951. + public weak Meta.ButtonFunction[] right_buttons;
  952. + [CCode (array_length = false, array_null_terminated = true)]
  953. + public weak bool[] right_buttons_has_spacer;
  954. + }
  955. + [CCode (cheader_filename = "meta/boxes.h", has_type_id = false)]
  956. + public struct Edge {
  957. + public Meta.Rectangle rect;
  958. + public Meta.Side side_type;
  959. + public Meta.EdgeType edge_type;
  960. + }
  961. + [CCode (cheader_filename = "meta/common.h", has_type_id = false)]
  962. + public struct FrameBorders {
  963. + public Gtk.Border visible;
  964. + public Gtk.Border invisible;
  965. + public Gtk.Border total;
  966. + public void clear ();
  967. + }
  968. + [CCode (cheader_filename = "meta/meta-plugin.h", has_type_id = false)]
  969. + public struct PluginInfo {
  970. + public weak string name;
  971. + public weak string version;
  972. + public weak string author;
  973. + public weak string license;
  974. + public weak string description;
  975. + }
  976. + [CCode (cheader_filename = "meta/meta-plugin.h", has_type_id = false)]
  977. + public struct PluginVersion {
  978. + public uint version_major;
  979. + public uint version_minor;
  980. + public uint version_micro;
  981. + public uint version_api;
  982. + }
  983. + [CCode (cheader_filename = "meta/boxes.h", has_type_id = false)]
  984. + public struct Rectangle {
  985. + public int x;
  986. + public int y;
  987. + public int width;
  988. + public int height;
  989. + public int area ();
  990. + public bool contains_rect (Meta.Rectangle inner_rect);
  991. + public bool could_fit_rect (Meta.Rectangle inner_rect);
  992. + public bool equal (Meta.Rectangle src2);
  993. + public bool horiz_overlap (Meta.Rectangle rect2);
  994. + public bool intersect (Meta.Rectangle src2, out Meta.Rectangle dest);
  995. + public bool overlap (Meta.Rectangle rect2);
  996. + public Meta.Rectangle union (Meta.Rectangle rect2);
  997. + public bool vert_overlap (Meta.Rectangle rect2);
  998. + }
  999. + [CCode (cheader_filename = "meta/meta-shadow-factory.h", has_type_id = false)]
  1000. + public struct ShadowParams {
  1001. + public int radius;
  1002. + public int top_fade;
  1003. + public int x_offset;
  1004. + public int y_offset;
  1005. + public uint8 opacity;
  1006. + }
  1007. + [CCode (cheader_filename = "meta/boxes.h", has_type_id = false)]
  1008. + public struct Strut {
  1009. + public Meta.Rectangle rect;
  1010. + public Meta.Side side;
  1011. + }
  1012. + [CCode (cheader_filename = "meta/barrier.h", cprefix = "META_BARRIER_DIRECTION_", type_id = "meta_barrier_direction_get_type ()")]
  1013. + [Flags]
  1014. + public enum BarrierDirection {
  1015. + POSITIVE_X,
  1016. + POSITIVE_Y,
  1017. + NEGATIVE_X,
  1018. + NEGATIVE_Y
  1019. + }
  1020. + [CCode (cheader_filename = "meta/common.h", cprefix = "META_BUTTON_FUNCTION_", type_id = "meta_button_function_get_type ()")]
  1021. + public enum ButtonFunction {
  1022. + MENU,
  1023. + MINIMIZE,
  1024. + MAXIMIZE,
  1025. + CLOSE,
  1026. +#if !HAS_MUTTER320
  1027. + SHADE,
  1028. + ABOVE,
  1029. + STICK,
  1030. + UNSHADE,
  1031. + UNABOVE,
  1032. + UNSTICK,
  1033. +#endif
  1034. + APPMENU,
  1035. + LAST
  1036. + }
  1037. + [CCode (cheader_filename = "meta/compositor.h", cprefix = "META_COMP_EFFECT_", type_id = "meta_comp_effect_get_type ()")]
  1038. + public enum CompEffect {
  1039. + CREATE,
  1040. + UNMINIMIZE,
  1041. + DESTROY,
  1042. + MINIMIZE,
  1043. + NONE
  1044. + }
  1045. + [CCode (cheader_filename = "meta/common.h", cprefix = "META_CURSOR_", type_id = "meta_cursor_get_type ()")]
  1046. + public enum Cursor {
  1047. + NONE,
  1048. + DEFAULT,
  1049. + NORTH_RESIZE,
  1050. + SOUTH_RESIZE,
  1051. + WEST_RESIZE,
  1052. + EAST_RESIZE,
  1053. + SE_RESIZE,
  1054. + SW_RESIZE,
  1055. + NE_RESIZE,
  1056. + NW_RESIZE,
  1057. + MOVE_OR_RESIZE_WINDOW,
  1058. + BUSY,
  1059. + DND_IN_DRAG,
  1060. + DND_MOVE,
  1061. + DND_COPY,
  1062. + DND_UNSUPPORTED_TARGET,
  1063. + POINTING_HAND,
  1064. + CROSSHAIR,
  1065. + IBEAM,
  1066. + LAST
  1067. + }
  1068. + [CCode (cheader_filename = "meta/util.h", cprefix = "META_DEBUG_", type_id = "meta_debug_topic_get_type ()")]
  1069. + [Flags]
  1070. + public enum DebugTopic {
  1071. + VERBOSE,
  1072. + FOCUS,
  1073. + WORKAREA,
  1074. + STACK,
  1075. + THEMES,
  1076. + SM,
  1077. + EVENTS,
  1078. + WINDOW_STATE,
  1079. + WINDOW_OPS,
  1080. + GEOMETRY,
  1081. + PLACEMENT,
  1082. + PING,
  1083. + XINERAMA,
  1084. + KEYBINDINGS,
  1085. + SYNC,
  1086. + ERRORS,
  1087. + STARTUP,
  1088. + PREFS,
  1089. + GROUPS,
  1090. + RESIZING,
  1091. + SHAPES,
  1092. + COMPOSITOR,
  1093. + EDGE_RESISTANCE,
  1094. + DBUS
  1095. + }
  1096. + [CCode (cheader_filename = "meta/common.h", cprefix = "META_DIRECTION_", type_id = "meta_direction_get_type ()")]
  1097. + [Flags]
  1098. + public enum Direction {
  1099. + LEFT,
  1100. + RIGHT,
  1101. + TOP,
  1102. + BOTTOM,
  1103. + UP,
  1104. + DOWN,
  1105. + HORIZONTAL,
  1106. + VERTICAL
  1107. + }
  1108. + [CCode (cheader_filename = "meta/boxes.h", cprefix = "META_EDGE_", type_id = "meta_edge_type_get_type ()")]
  1109. + public enum EdgeType {
  1110. + WINDOW,
  1111. + MONITOR,
  1112. + SCREEN
  1113. + }
  1114. + [CCode (cheader_filename = "meta/main.h", cprefix = "META_EXIT_", type_id = "meta_exit_code_get_type ()")]
  1115. + public enum ExitCode {
  1116. + SUCCESS,
  1117. + ERROR
  1118. + }
  1119. + [CCode (cheader_filename = "meta/common.h", cprefix = "META_FRAME_", type_id = "meta_frame_flags_get_type ()")]
  1120. + [Flags]
  1121. + public enum FrameFlags {
  1122. + ALLOWS_DELETE,
  1123. + ALLOWS_MENU,
  1124. + ALLOWS_APPMENU,
  1125. + ALLOWS_MINIMIZE,
  1126. + ALLOWS_MAXIMIZE,
  1127. + ALLOWS_VERTICAL_RESIZE,
  1128. + ALLOWS_HORIZONTAL_RESIZE,
  1129. + HAS_FOCUS,
  1130. + SHADED,
  1131. + STUCK,
  1132. + MAXIMIZED,
  1133. + ALLOWS_SHADE,
  1134. + ALLOWS_MOVE,
  1135. + FULLSCREEN,
  1136. + IS_FLASHING,
  1137. + ABOVE,
  1138. + TILED_LEFT,
  1139. + TILED_RIGHT
  1140. + }
  1141. + [CCode (cheader_filename = "meta/common.h", cprefix = "META_FRAME_TYPE_", type_id = "meta_frame_type_get_type ()")]
  1142. + public enum FrameType {
  1143. + NORMAL,
  1144. + DIALOG,
  1145. + MODAL_DIALOG,
  1146. + UTILITY,
  1147. + MENU,
  1148. + BORDER,
  1149. + ATTACHED,
  1150. + LAST;
  1151. + [CCode (cheader_filename = "meta/main.h")]
  1152. + public static unowned string to_string (Meta.FrameType type);
  1153. + }
  1154. + [CCode (cheader_filename = "meta/common.h", cprefix = "META_GRAB_OP_", type_id = "meta_grab_op_get_type ()")]
  1155. + public enum GrabOp {
  1156. + NONE,
  1157. + COMPOSITOR,
  1158. + WAYLAND_POPUP,
  1159. + WINDOW_BASE,
  1160. +#if HAS_MUTTER316
  1161. + FRAME_BUTTON,
  1162. +#endif
  1163. + MOVING,
  1164. + RESIZING_NW,
  1165. + RESIZING_N,
  1166. + RESIZING_NE,
  1167. + RESIZING_E,
  1168. + RESIZING_SW,
  1169. + RESIZING_S,
  1170. + RESIZING_SE,
  1171. + RESIZING_W,
  1172. + KEYBOARD_MOVING,
  1173. + KEYBOARD_RESIZING_UNKNOWN,
  1174. + KEYBOARD_RESIZING_NW,
  1175. + KEYBOARD_RESIZING_N,
  1176. + KEYBOARD_RESIZING_NE,
  1177. + KEYBOARD_RESIZING_E,
  1178. + KEYBOARD_RESIZING_SW,
  1179. + KEYBOARD_RESIZING_S,
  1180. + KEYBOARD_RESIZING_SE,
  1181. + KEYBOARD_RESIZING_W
  1182. + }
  1183. +#if !HAS_MUTTER316
  1184. + [CCode (cheader_filename = "meta/gradient.h", cprefix = "META_GRADIENT_", type_id = "meta_gradient_type_get_type ()")]
  1185. + public enum GradientType {
  1186. + VERTICAL,
  1187. + HORIZONTAL,
  1188. + DIAGONAL,
  1189. + LAST
  1190. + }
  1191. +#endif
  1192. + [CCode (cheader_filename = "meta/prefs.h", cprefix = "META_KEYBINDING_ACTION_", type_id = "meta_key_binding_action_get_type ()")]
  1193. + public enum KeyBindingAction {
  1194. + NONE,
  1195. + WORKSPACE_1,
  1196. + WORKSPACE_2,
  1197. + WORKSPACE_3,
  1198. + WORKSPACE_4,
  1199. + WORKSPACE_5,
  1200. + WORKSPACE_6,
  1201. + WORKSPACE_7,
  1202. + WORKSPACE_8,
  1203. + WORKSPACE_9,
  1204. + WORKSPACE_10,
  1205. + WORKSPACE_11,
  1206. + WORKSPACE_12,
  1207. + WORKSPACE_LEFT,
  1208. + WORKSPACE_RIGHT,
  1209. + WORKSPACE_UP,
  1210. + WORKSPACE_DOWN,
  1211. + WORKSPACE_LAST,
  1212. + SWITCH_APPLICATIONS,
  1213. + SWITCH_APPLICATIONS_BACKWARD,
  1214. + SWITCH_GROUP,
  1215. + SWITCH_GROUP_BACKWARD,
  1216. + SWITCH_WINDOWS,
  1217. + SWITCH_WINDOWS_BACKWARD,
  1218. + SWITCH_PANELS,
  1219. + SWITCH_PANELS_BACKWARD,
  1220. + CYCLE_GROUP,
  1221. + CYCLE_GROUP_BACKWARD,
  1222. + CYCLE_WINDOWS,
  1223. + CYCLE_WINDOWS_BACKWARD,
  1224. + CYCLE_PANELS,
  1225. + CYCLE_PANELS_BACKWARD,
  1226. + SHOW_DESKTOP,
  1227. + PANEL_MAIN_MENU,
  1228. + PANEL_RUN_DIALOG,
  1229. + TOGGLE_RECORDING,
  1230. + SET_SPEW_MARK,
  1231. + ACTIVATE_WINDOW_MENU,
  1232. + TOGGLE_FULLSCREEN,
  1233. + TOGGLE_MAXIMIZED,
  1234. + TOGGLE_TILED_LEFT,
  1235. + TOGGLE_TILED_RIGHT,
  1236. + TOGGLE_ABOVE,
  1237. + MAXIMIZE,
  1238. + UNMAXIMIZE,
  1239. + TOGGLE_SHADED,
  1240. + MINIMIZE,
  1241. + CLOSE,
  1242. + BEGIN_MOVE,
  1243. + BEGIN_RESIZE,
  1244. + TOGGLE_ON_ALL_WORKSPACES,
  1245. + MOVE_TO_WORKSPACE_1,
  1246. + MOVE_TO_WORKSPACE_2,
  1247. + MOVE_TO_WORKSPACE_3,
  1248. + MOVE_TO_WORKSPACE_4,
  1249. + MOVE_TO_WORKSPACE_5,
  1250. + MOVE_TO_WORKSPACE_6,
  1251. + MOVE_TO_WORKSPACE_7,
  1252. + MOVE_TO_WORKSPACE_8,
  1253. + MOVE_TO_WORKSPACE_9,
  1254. + MOVE_TO_WORKSPACE_10,
  1255. + MOVE_TO_WORKSPACE_11,
  1256. + MOVE_TO_WORKSPACE_12,
  1257. + MOVE_TO_WORKSPACE_LEFT,
  1258. + MOVE_TO_WORKSPACE_RIGHT,
  1259. + MOVE_TO_WORKSPACE_UP,
  1260. + MOVE_TO_WORKSPACE_DOWN,
  1261. + MOVE_TO_WORKSPACE_LAST,
  1262. + MOVE_TO_MONITOR_LEFT,
  1263. + MOVE_TO_MONITOR_RIGHT,
  1264. + MOVE_TO_MONITOR_UP,
  1265. + MOVE_TO_MONITOR_DOWN,
  1266. + RAISE_OR_LOWER,
  1267. + RAISE,
  1268. + LOWER,
  1269. + MAXIMIZE_VERTICALLY,
  1270. + MAXIMIZE_HORIZONTALLY,
  1271. + MOVE_TO_CORNER_NW,
  1272. + MOVE_TO_CORNER_NE,
  1273. + MOVE_TO_CORNER_SW,
  1274. + MOVE_TO_CORNER_SE,
  1275. + MOVE_TO_SIDE_N,
  1276. + MOVE_TO_SIDE_S,
  1277. + MOVE_TO_SIDE_E,
  1278. + MOVE_TO_SIDE_W,
  1279. + MOVE_TO_CENTER,
  1280. + OVERLAY_KEY,
  1281. + ISO_NEXT_GROUP,
  1282. + ALWAYS_ON_TOP,
  1283. + LAST
  1284. + }
  1285. + [CCode (cheader_filename = "meta/prefs.h", cprefix = "META_KEY_BINDING_", type_id = "meta_key_binding_flags_get_type ()")]
  1286. + [Flags]
  1287. + public enum KeyBindingFlags {
  1288. + NONE,
  1289. + PER_WINDOW,
  1290. + BUILTIN,
  1291. + IS_REVERSED
  1292. + }
  1293. + [CCode (cheader_filename = "meta/util.h", cprefix = "META_LATER_", type_id = "meta_later_type_get_type ()")]
  1294. + public enum LaterType {
  1295. + RESIZE,
  1296. + CALC_SHOWING,
  1297. + CHECK_FULLSCREEN,
  1298. + SYNC_STACK,
  1299. + BEFORE_REDRAW,
  1300. + IDLE
  1301. + }
  1302. + [CCode (cheader_filename = "meta/util.h", cprefix = "META_LOCALE_DIRECTION_", type_id = "meta_locale_direction_get_type ()")]
  1303. + public enum LocaleDirection {
  1304. + LTR,
  1305. + RTL
  1306. + }
  1307. + [CCode (cheader_filename = "meta/window.h", cprefix = "META_MAXIMIZE_", type_id = "meta_maximize_flags_get_type ()")]
  1308. + [Flags]
  1309. + public enum MaximizeFlags {
  1310. + HORIZONTAL,
  1311. + VERTICAL,
  1312. + BOTH
  1313. + }
  1314. + [CCode (cheader_filename = "meta/meta-plugin.h", cprefix = "META_MODAL_", type_id = "meta_modal_options_get_type ()")]
  1315. + [Flags]
  1316. + public enum ModalOptions {
  1317. + POINTER_ALREADY_GRABBED,
  1318. + KEYBOARD_ALREADY_GRABBED
  1319. + }
  1320. + [CCode (cheader_filename = "meta/common.h", cprefix = "META_MOTION_", type_id = "meta_motion_direction_get_type ()")]
  1321. + public enum MotionDirection {
  1322. + UP,
  1323. + DOWN,
  1324. + LEFT,
  1325. + RIGHT,
  1326. + UP_LEFT,
  1327. + UP_RIGHT,
  1328. + DOWN_LEFT,
  1329. + DOWN_RIGHT
  1330. + }
  1331. + [CCode (cheader_filename = "meta/prefs.h", cprefix = "META_PREF_", type_id = "meta_preference_get_type ()")]
  1332. + public enum Preference {
  1333. + MOUSE_BUTTON_MODS,
  1334. + FOCUS_MODE,
  1335. + FOCUS_NEW_WINDOWS,
  1336. + ATTACH_MODAL_DIALOGS,
  1337. + RAISE_ON_CLICK,
  1338. + ACTION_DOUBLE_CLICK_TITLEBAR,
  1339. + ACTION_MIDDLE_CLICK_TITLEBAR,
  1340. + ACTION_RIGHT_CLICK_TITLEBAR,
  1341. + AUTO_RAISE,
  1342. + AUTO_RAISE_DELAY,
  1343. + FOCUS_CHANGE_ON_POINTER_REST,
  1344. +#if !HAS_MUTTER316
  1345. + THEME,
  1346. +#endif
  1347. + TITLEBAR_FONT,
  1348. + NUM_WORKSPACES,
  1349. + DYNAMIC_WORKSPACES,
  1350. + KEYBINDINGS,
  1351. + DISABLE_WORKAROUNDS,
  1352. + BUTTON_LAYOUT,
  1353. + WORKSPACE_NAMES,
  1354. + VISUAL_BELL,
  1355. + AUDIBLE_BELL,
  1356. + VISUAL_BELL_TYPE,
  1357. + GNOME_ACCESSIBILITY,
  1358. + GNOME_ANIMATIONS,
  1359. + CURSOR_THEME,
  1360. + CURSOR_SIZE,
  1361. + RESIZE_WITH_RIGHT_BUTTON,
  1362. + EDGE_TILING,
  1363. + FORCE_FULLSCREEN,
  1364. + WORKSPACES_ONLY_ON_PRIMARY,
  1365. + DRAGGABLE_BORDER_WIDTH,
  1366. + AUTO_MAXIMIZE,
  1367. + CENTER_NEW_WINDOWS,
  1368. + DRAG_THRESHOLD;
  1369. + [CCode (cheader_filename = "meta/main.h")]
  1370. + public static unowned string to_string (Meta.Preference pref);
  1371. + }
  1372. + [CCode (cheader_filename = "meta/screen.h", cprefix = "META_SCREEN_", type_id = "meta_screen_corner_get_type ()")]
  1373. + public enum ScreenCorner {
  1374. + TOPLEFT,
  1375. + TOPRIGHT,
  1376. + BOTTOMLEFT,
  1377. + BOTTOMRIGHT
  1378. + }
  1379. +#if HAS_MUTTER318
  1380. + [CCode (cheader_filename = "meta/meta-enum-types.h", cprefix = "META_SCREEN_", type_id = "meta_screen_direction_get_type ()")]
  1381. + public enum ScreenDirection {
  1382. + UP,
  1383. + DOWN,
  1384. + LEFT,
  1385. + RIGHT
  1386. + }
  1387. + [CCode (cheader_filename = "meta/meta-enum-types.h", cprefix = "META_SHADOW_MODE_", type_id = "meta_shadow_mode_get_type ()")]
  1388. + public enum ShadowMode {
  1389. + AUTO,
  1390. + FORCED_OFF,
  1391. + FORCED_ON
  1392. + }
  1393. +#endif
  1394. + [CCode (cheader_filename = "meta/common.h", cprefix = "META_SIDE_", type_id = "meta_side_get_type ()")]
  1395. + public enum Side {
  1396. + LEFT,
  1397. + RIGHT,
  1398. + TOP,
  1399. + BOTTOM
  1400. + }
  1401. +#if HAS_MUTTER318
  1402. + [CCode (cheader_filename = "meta/meta-enum-types.h", cprefix = "META_SIZE_CHANGE_", type_id = "meta_size_change_get_type ()")]
  1403. + public enum SizeChange {
  1404. + MAXIMIZE,
  1405. + UNMAXIMIZE,
  1406. + FULLSCREEN,
  1407. + UNFULLSCREEN
  1408. + }
  1409. +#endif
  1410. + [CCode (cheader_filename = "meta/common.h", cprefix = "META_LAYER_", type_id = "meta_stack_layer_get_type ()")]
  1411. + public enum StackLayer {
  1412. + DESKTOP,
  1413. + BOTTOM,
  1414. + NORMAL,
  1415. + TOP,
  1416. + DOCK,
  1417. + FULLSCREEN,
  1418. + FOCUSED_WINDOW,
  1419. + OVERRIDE_REDIRECT,
  1420. + LAST
  1421. + }
  1422. + [CCode (cheader_filename = "meta/display.h", cprefix = "META_TAB_LIST_", type_id = "meta_tab_list_get_type ()")]
  1423. + public enum TabList {
  1424. + NORMAL,
  1425. + DOCKS,
  1426. + GROUP,
  1427. + NORMAL_ALL
  1428. + }
  1429. + [CCode (cheader_filename = "meta/display.h", cprefix = "META_TAB_SHOW_", type_id = "meta_tab_show_type_get_type ()")]
  1430. + public enum TabShowType {
  1431. + ICON,
  1432. + INSTANTLY
  1433. + }
  1434. + [CCode (cheader_filename = "meta/common.h", cprefix = "META_VIRTUAL_", type_id = "meta_virtual_modifier_get_type ()")]
  1435. + [Flags]
  1436. + public enum VirtualModifier {
  1437. + SHIFT_MASK,
  1438. + CONTROL_MASK,
  1439. + ALT_MASK,
  1440. + META_MASK,
  1441. + SUPER_MASK,
  1442. + HYPER_MASK,
  1443. + MOD2_MASK,
  1444. + MOD3_MASK,
  1445. + MOD4_MASK,
  1446. + MOD5_MASK
  1447. + }
  1448. + [CCode (cheader_filename = "meta/window.h", cprefix = "META_WINDOW_CLIENT_TYPE_", type_id = "meta_window_client_type_get_type ()")]
  1449. + public enum WindowClientType {
  1450. + WAYLAND,
  1451. + X11
  1452. + }
  1453. + [CCode (cheader_filename = "meta/common.h", cprefix = "META_WINDOW_MENU_", type_id = "meta_window_menu_type_get_type ()")]
  1454. + public enum WindowMenuType {
  1455. + WM,
  1456. + APP
  1457. + }
  1458. + [CCode (cheader_filename = "meta/window.h", cprefix = "META_WINDOW_", type_id = "meta_window_type_get_type ()")]
  1459. + public enum WindowType {
  1460. + NORMAL,
  1461. + DESKTOP,
  1462. + DOCK,
  1463. + DIALOG,
  1464. + MODAL_DIALOG,
  1465. + TOOLBAR,
  1466. + MENU,
  1467. + UTILITY,
  1468. + SPLASHSCREEN,
  1469. + DROPDOWN_MENU,
  1470. + POPUP_MENU,
  1471. + TOOLTIP,
  1472. + NOTIFICATION,
  1473. + COMBO,
  1474. + DND,
  1475. + OVERRIDE_OTHER
  1476. + }
  1477. + [CCode (cheader_filename = "meta/meta-idle-monitor.h", instance_pos = 2.9)]
  1478. + public delegate void IdleMonitorWatchFunc (Meta.IdleMonitor monitor, uint watch_id);
  1479. + [CCode (cheader_filename = "meta/prefs.h", instance_pos = 5.9)]
  1480. + public delegate void KeyHandlerFunc (Meta.Display display, Meta.Screen screen, Meta.Window? window, Clutter.KeyEvent? event, Meta.KeyBinding binding);
  1481. + [CCode (cheader_filename = "meta/prefs.h", instance_pos = 1.9)]
  1482. + public delegate void PrefsChangedFunc (Meta.Preference pref);
  1483. + [CCode (cheader_filename = "meta/window.h", instance_pos = 1.9)]
  1484. + public delegate bool WindowForeachFunc (Meta.Window window);
  1485. + [CCode (cheader_filename = "meta/main.h", cname = "META_DEFAULT_ICON_NAME")]
  1486. + public const string DEFAULT_ICON_NAME;
  1487. + [CCode (cheader_filename = "meta/main.h", cname = "META_ICON_HEIGHT")]
  1488. + public const int ICON_HEIGHT;
  1489. + [CCode (cheader_filename = "meta/main.h", cname = "META_ICON_WIDTH")]
  1490. + public const int ICON_WIDTH;
  1491. + [CCode (cheader_filename = "meta/main.h", cname = "META_MAJOR_VERSION")]
  1492. + public const int MAJOR_VERSION;
  1493. + [CCode (cheader_filename = "meta/main.h", cname = "META_MICRO_VERSION")]
  1494. + public const int MICRO_VERSION;
  1495. + [CCode (cheader_filename = "meta/main.h", cname = "META_MINI_ICON_HEIGHT")]
  1496. + public const int MINI_ICON_HEIGHT;
  1497. + [CCode (cheader_filename = "meta/main.h", cname = "META_MINI_ICON_WIDTH")]
  1498. + public const int MINI_ICON_WIDTH;
  1499. + [CCode (cheader_filename = "meta/main.h", cname = "META_MINOR_VERSION")]
  1500. + public const int MINOR_VERSION;
  1501. + [CCode (cheader_filename = "meta/main.h", cname = "META_PLUGIN_API_VERSION")]
  1502. + public const int PLUGIN_API_VERSION;
  1503. + [CCode (cheader_filename = "meta/main.h", cname = "META_PRIORITY_BEFORE_REDRAW")]
  1504. + public const int PRIORITY_BEFORE_REDRAW;
  1505. + [CCode (cheader_filename = "meta/main.h", cname = "META_PRIORITY_PREFS_NOTIFY")]
  1506. + public const int PRIORITY_PREFS_NOTIFY;
  1507. + [CCode (cheader_filename = "meta/main.h", cname = "META_PRIORITY_REDRAW")]
  1508. + public const int PRIORITY_REDRAW;
  1509. + [CCode (cheader_filename = "meta/main.h", cname = "META_PRIORITY_RESIZE")]
  1510. + public const int PRIORITY_RESIZE;
  1511. + [CCode (cheader_filename = "meta/main.h", cname = "META_VIRTUAL_CORE_KEYBOARD_ID")]
  1512. + public const int VIRTUAL_CORE_KEYBOARD_ID;
  1513. + [CCode (cheader_filename = "meta/main.h", cname = "META_VIRTUAL_CORE_POINTER_ID")]
  1514. + public const int VIRTUAL_CORE_POINTER_ID;
  1515. + [CCode (cheader_filename = "meta/main.h")]
  1516. + public static bool activate_session ();
  1517. + [CCode (cheader_filename = "meta/main.h")]
  1518. + public static void clutter_init ();
  1519. + [CCode (cheader_filename = "meta/main.h")]
  1520. + public static void exit (Meta.ExitCode code);
  1521. + [CCode (cheader_filename = "meta/main.h")]
  1522. + public static unowned GLib.OptionContext get_option_context ();
  1523. + [CCode (cheader_filename = "meta/main.h")]
  1524. + public static bool get_replace_current_wm ();
  1525. + [CCode (cheader_filename = "meta/main.h")]
  1526. + public static void init ();
  1527. + [CCode (cheader_filename = "meta/main.h")]
  1528. + public static bool is_restart ();
  1529. + [CCode (cheader_filename = "meta/main.h")]
  1530. + public static void quit (Meta.ExitCode code);
  1531. + [CCode (cheader_filename = "meta/main.h")]
  1532. + public static void register_with_session ();
  1533. + [CCode (cheader_filename = "meta/main.h")]
  1534. + public static void restart (string message);
  1535. + [CCode (cheader_filename = "meta/main.h")]
  1536. + public static int run ();
  1537. + [CCode (cheader_filename = "meta/main.h")]
  1538. + public static void set_gnome_wm_keybindings (string wm_keybindings);
  1539. + [CCode (cheader_filename = "meta/main.h")]
  1540. + public static void set_wm_name (string wm_name);
  1541. +}
  1542. diff -Naur gala/vapi/libmutter.deps gala-deepin/vapi/libmutter.deps
  1543. --- gala/vapi/libmutter.deps 2015-11-24 08:06:36.842420000 +0100
  1544. +++ gala-deepin/vapi/libmutter.deps 1970-01-01 01:00:00.000000000 +0100
  1545. @@ -1,9 +0,0 @@
  1546. -cairo
  1547. -clutter-1.0
  1548. -cogl-1.0
  1549. -gdesktopenums-3.0
  1550. -gdk-3.0
  1551. -gdk-pixbuf-2.0
  1552. -gtk+-3.0
  1553. -x11
  1554. -xfixes-4.0
  1555. diff -Naur gala/vapi/libmutter.vapi gala-deepin/vapi/libmutter.vapi
  1556. --- gala/vapi/libmutter.vapi 2015-11-24 08:06:36.842420000 +0100
  1557. +++ gala-deepin/vapi/libmutter.vapi 1970-01-01 01:00:00.000000000 +0100
  1558. @@ -1,1451 +0,0 @@
  1559. -/* libmutter.vapi generated by vapigen, do not modify. */
  1560. -
  1561. -[CCode (cprefix = "Meta", gir_namespace = "Meta", gir_version = "3.0", lower_case_cprefix = "meta_")]
  1562. -namespace Meta {
  1563. -#if !HAS_MUTTER316
  1564. - namespace Gradient {
  1565. - [CCode (cheader_filename = "meta/gradient.h")]
  1566. - public static void add_alpha (Gdk.Pixbuf pixbuf, uint8 alphas, int n_alphas, Meta.GradientType type);
  1567. - [CCode (cheader_filename = "meta/gradient.h")]
  1568. - public static unowned Gdk.Pixbuf create_interwoven (int width, int height, Gdk.RGBA colors1, int thickness1, Gdk.RGBA colors2, int thickness2);
  1569. - [CCode (cheader_filename = "meta/gradient.h")]
  1570. - 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);
  1571. - [CCode (cheader_filename = "meta/gradient.h")]
  1572. - public static Gdk.Pixbuf create_simple (int width, int height, Gdk.RGBA from, Gdk.RGBA to, Meta.GradientType style);
  1573. - }
  1574. -#endif
  1575. - namespace Prefs {
  1576. - [CCode (cheader_filename = "meta/prefs.h")]
  1577. - public static void add_listener (Meta.PrefsChangedFunc func);
  1578. - [CCode (cheader_filename = "meta/prefs.h")]
  1579. - public static bool bell_is_audible ();
  1580. - [CCode (cheader_filename = "meta/prefs.h")]
  1581. - public static void change_workspace_name (int i, string name);
  1582. - [CCode (cheader_filename = "meta/prefs.h")]
  1583. - public static GDesktop.TitlebarAction get_action_double_click_titlebar ();
  1584. - [CCode (cheader_filename = "meta/prefs.h")]
  1585. - public static GDesktop.TitlebarAction get_action_middle_click_titlebar ();
  1586. - [CCode (cheader_filename = "meta/prefs.h")]
  1587. - public static GDesktop.TitlebarAction get_action_right_click_titlebar ();
  1588. - [CCode (cheader_filename = "meta/prefs.h")]
  1589. - public static bool get_attach_modal_dialogs ();
  1590. - [CCode (cheader_filename = "meta/prefs.h")]
  1591. - public static bool get_auto_maximize ();
  1592. - [CCode (cheader_filename = "meta/prefs.h")]
  1593. - public static bool get_auto_raise ();
  1594. - [CCode (cheader_filename = "meta/prefs.h")]
  1595. - public static int get_auto_raise_delay ();
  1596. - [CCode (cheader_filename = "meta/prefs.h")]
  1597. - public static Meta.ButtonLayout get_button_layout ();
  1598. - [CCode (cheader_filename = "meta/prefs.h")]
  1599. - public static bool get_center_new_windows ();
  1600. - [CCode (cheader_filename = "meta/prefs.h")]
  1601. - public static bool get_compositing_manager ();
  1602. - [CCode (cheader_filename = "meta/prefs.h")]
  1603. - public static int get_cursor_size ();
  1604. - [CCode (cheader_filename = "meta/prefs.h")]
  1605. - public static unowned string get_cursor_theme ();
  1606. - [CCode (cheader_filename = "meta/prefs.h")]
  1607. - public static bool get_disable_workarounds ();
  1608. - [CCode (cheader_filename = "meta/prefs.h")]
  1609. - public static int get_drag_threshold ();
  1610. - [CCode (cheader_filename = "meta/prefs.h")]
  1611. - public static int get_draggable_border_width ();
  1612. - [CCode (cheader_filename = "meta/prefs.h")]
  1613. - public static bool get_dynamic_workspaces ();
  1614. - [CCode (cheader_filename = "meta/prefs.h")]
  1615. - public static bool get_edge_tiling ();
  1616. - [CCode (cheader_filename = "meta/prefs.h")]
  1617. - public static bool get_focus_change_on_pointer_rest ();
  1618. - [CCode (cheader_filename = "meta/prefs.h")]
  1619. - public static GDesktop.FocusMode get_focus_mode ();
  1620. - [CCode (cheader_filename = "meta/prefs.h")]
  1621. - public static GDesktop.FocusNewWindows get_focus_new_windows ();
  1622. - [CCode (cheader_filename = "meta/prefs.h")]
  1623. - public static bool get_force_fullscreen ();
  1624. - [CCode (cheader_filename = "meta/prefs.h")]
  1625. - public static bool get_gnome_accessibility ();
  1626. - [CCode (cheader_filename = "meta/prefs.h")]
  1627. - public static bool get_gnome_animations ();
  1628. - [CCode (cheader_filename = "meta/prefs.h")]
  1629. - public static bool get_ignore_request_hide_titlebar ();
  1630. - [CCode (cheader_filename = "meta/prefs.h")]
  1631. - public static Meta.KeyBindingAction get_keybinding_action (string name);
  1632. - [CCode (cheader_filename = "meta/prefs.h")]
  1633. - public static int get_mouse_button_menu ();
  1634. - [CCode (cheader_filename = "meta/prefs.h")]
  1635. - public static Meta.VirtualModifier get_mouse_button_mods ();
  1636. - [CCode (cheader_filename = "meta/prefs.h")]
  1637. - public static int get_mouse_button_resize ();
  1638. - [CCode (cheader_filename = "meta/prefs.h")]
  1639. - public static int get_num_workspaces ();
  1640. - [CCode (cheader_filename = "meta/prefs.h")]
  1641. - public static bool get_raise_on_click ();
  1642. - [CCode (cheader_filename = "meta/prefs.h")]
  1643. - public static bool get_show_fallback_app_menu ();
  1644. -#if !HAS_MUTTER316
  1645. - [CCode (cheader_filename = "meta/prefs.h")]
  1646. - public static unowned string get_theme ();
  1647. -#endif
  1648. - [CCode (cheader_filename = "meta/prefs.h")]
  1649. - public static unowned Pango.FontDescription get_titlebar_font ();
  1650. - [CCode (cheader_filename = "meta/prefs.h")]
  1651. - public static bool get_visual_bell ();
  1652. - [CCode (cheader_filename = "meta/prefs.h")]
  1653. - public static GDesktop.VisualBellType get_visual_bell_type ();
  1654. - [CCode (cheader_filename = "meta/prefs.h")]
  1655. - public static unowned string get_workspace_name (int i);
  1656. - [CCode (cheader_filename = "meta/prefs.h")]
  1657. - public static bool get_workspaces_only_on_primary ();
  1658. - [CCode (cheader_filename = "meta/prefs.h")]
  1659. - public static void init ();
  1660. - [CCode (cheader_filename = "meta/prefs.h")]
  1661. - public static void override_preference_schema (string key, string schema);
  1662. - [CCode (cheader_filename = "meta/prefs.h")]
  1663. - public static void remove_listener (Meta.PrefsChangedFunc func);
  1664. - [CCode (cheader_filename = "meta/prefs.h")]
  1665. - public static void set_force_fullscreen (bool whether);
  1666. - [CCode (cheader_filename = "meta/prefs.h")]
  1667. - public static void set_ignore_request_hide_titlebar (bool whether);
  1668. - [CCode (cheader_filename = "meta/prefs.h")]
  1669. - public static void set_num_workspaces (int n_workspaces);
  1670. - }
  1671. - namespace Util {
  1672. - [CCode (cheader_filename = "meta/main.h", cname = "meta_add_verbose_topic")]
  1673. - public static void add_verbose_topic (Meta.DebugTopic topic);
  1674. - [CCode (cheader_filename = "meta/main.h", cname = "meta_bug")]
  1675. - public static void bug (string format, ...);
  1676. - [CCode (cheader_filename = "meta/main.h", cname = "meta_debug_spew_real")]
  1677. - public static void debug_spew_real (string format, ...);
  1678. - [CCode (cheader_filename = "meta/main.h", cname = "meta_disable_unredirect_for_screen")]
  1679. - public static void disable_unredirect_for_screen (Meta.Screen screen);
  1680. - [CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_empty_stage_input_region")]
  1681. - public static void empty_stage_input_region (Meta.Screen screen);
  1682. - [CCode (cheader_filename = "meta/main.h", cname = "meta_enable_unredirect_for_screen")]
  1683. - public static void enable_unredirect_for_screen (Meta.Screen screen);
  1684. - [CCode (cheader_filename = "meta/main.h", cname = "meta_error_trap_pop")]
  1685. - public static void error_trap_pop (Meta.Display display);
  1686. - [CCode (cheader_filename = "meta/main.h", cname = "meta_error_trap_push")]
  1687. - public static void error_trap_push (Meta.Display display);
  1688. - [CCode (cheader_filename = "meta/main.h", cname = "meta_error_trap_push_with_return")]
  1689. - public static void error_trap_push_with_return (Meta.Display display);
  1690. - [CCode (cheader_filename = "meta/main.h", cname = "meta_external_binding_name_for_action")]
  1691. - public static string external_binding_name_for_action (uint keybinding_action);
  1692. - [CCode (cheader_filename = "meta/main.h", cname = "meta_fatal")]
  1693. - public static void fatal (string format, ...);
  1694. - [CCode (cheader_filename = "meta/main.h", cname = "meta_free_gslist_and_elements")]
  1695. - public static void free_gslist_and_elements (GLib.SList<void*> list_to_deep_free);
  1696. - [CCode (cheader_filename = "meta/main.h", cname = "meta_g_utf8_strndup")]
  1697. - public static string g_utf8_strndup (string src, size_t n);
  1698. - [CCode (cheader_filename = "meta/main.h", cname = "meta_get_locale_direction")]
  1699. - public static Meta.LocaleDirection get_locale_direction ();
  1700. - [CCode (cheader_filename = "meta/main.h", cname = "meta_get_overlay_window")]
  1701. - public static X.Window get_overlay_window (Meta.Screen screen);
  1702. - [CCode (cheader_filename = "meta/main.h", cname = "meta_gravity_to_string")]
  1703. - public static unowned string gravity_to_string (int gravity);
  1704. - [CCode (cheader_filename = "meta/main.h", cname = "meta_is_debugging")]
  1705. - public static bool is_debugging ();
  1706. - [CCode (cheader_filename = "meta/main.h", cname = "meta_is_syncing")]
  1707. - public static bool is_syncing ();
  1708. - [CCode (cheader_filename = "meta/main.h", cname = "meta_is_verbose")]
  1709. - public static bool is_verbose ();
  1710. - [CCode (cheader_filename = "meta/main.h", cname = "meta_is_wayland_compositor")]
  1711. - public static bool is_wayland_compositor ();
  1712. - [CCode (cheader_filename = "meta/main.h", cname = "meta_later_add")]
  1713. - public static uint later_add (Meta.LaterType when, owned GLib.SourceFunc func);
  1714. - [CCode (cheader_filename = "meta/main.h", cname = "meta_later_remove")]
  1715. - public static void later_remove (uint later_id);
  1716. - [CCode (cheader_filename = "meta/main.h", cname = "meta_pop_no_msg_prefix")]
  1717. - public static void pop_no_msg_prefix ();
  1718. - [CCode (cheader_filename = "meta/main.h", cname = "meta_push_no_msg_prefix")]
  1719. - public static void push_no_msg_prefix ();
  1720. - [CCode (cheader_filename = "meta/main.h", cname = "meta_rect")]
  1721. - public static Meta.Rectangle? rect (int x, int y, int width, int height);
  1722. - [CCode (cheader_filename = "meta/main.h", cname = "meta_remove_verbose_topic")]
  1723. - public static void remove_verbose_topic (Meta.DebugTopic topic);
  1724. - [CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_set_stage_input_region")]
  1725. - public static void set_stage_input_region (Meta.Screen screen, X.XserverRegion region);
  1726. - [CCode (cheader_filename = "meta/main.h", cname = "meta_show_dialog")]
  1727. - 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);
  1728. - [CCode (cheader_filename = "meta/main.h", cname = "meta_topic_real")]
  1729. - public static void topic_real (Meta.DebugTopic topic, string format, ...);
  1730. - [CCode (cheader_filename = "meta/main.h", cname = "meta_unsigned_long_equal")]
  1731. - public static int unsigned_long_equal (void* v1, void* v2);
  1732. - [CCode (cheader_filename = "meta/main.h", cname = "meta_unsigned_long_hash")]
  1733. - public static uint unsigned_long_hash (void* v);
  1734. - [CCode (cheader_filename = "meta/main.h", cname = "meta_verbose_real")]
  1735. - public static void verbose_real (string format, ...);
  1736. - [CCode (cheader_filename = "meta/main.h", cname = "meta_warning")]
  1737. - public static void warning (string format, ...);
  1738. - }
  1739. - [CCode (cheader_filename = "meta/main.h", type_id = "meta_backend_get_type ()")]
  1740. - public abstract class Backend : GLib.Object {
  1741. - [CCode (has_construct_function = false)]
  1742. - protected Backend ();
  1743. - [CCode (cheader_filename = "meta/meta-backend.h", cname = "meta_get_backend")]
  1744. - public static unowned Meta.Backend get_backend ();
  1745. - public unowned Clutter.Actor get_stage ();
  1746. - public void lock_layout_group (uint idx);
  1747. - public void set_keymap (string layouts, string variants, string options);
  1748. - public signal void keymap_changed ();
  1749. - public signal void keymap_layout_group_changed (uint object);
  1750. -#if HAS_MUTTER316
  1751. - public signal void last_device_changed (int object);
  1752. -#endif
  1753. - }
  1754. - [CCode (cheader_filename = "meta/meta-background.h", type_id = "meta_background_get_type ()")]
  1755. - public class Background : GLib.Object {
  1756. - [CCode (has_construct_function = false)]
  1757. - public Background (Meta.Screen screen);
  1758. - public static void refresh_all ();
  1759. -#if HAS_MUTTER316
  1760. - public void set_blend (GLib.File file1, GLib.File file2, double blend_factor, GDesktop.BackgroundStyle style);
  1761. -#else
  1762. - public void set_blend (string filename1, string filename2, double blend_factor, GDesktop.BackgroundStyle style);
  1763. -#endif
  1764. - public void set_color (Clutter.Color color);
  1765. -#if HAS_MUTTER316
  1766. - public void set_file (GLib.File file, GDesktop.BackgroundStyle style);
  1767. -#else
  1768. - public void set_filename (string filename, GDesktop.BackgroundStyle style);
  1769. -#endif
  1770. - public void set_gradient (GDesktop.BackgroundShading shading_direction, Clutter.Color color, Clutter.Color second_color);
  1771. - [NoAccessorMethod]
  1772. - public Meta.Screen meta_screen { owned get; construct; }
  1773. - public signal void changed ();
  1774. - }
  1775. - [CCode (cheader_filename = "meta/meta-background-actor.h", type_id = "meta_background_actor_get_type ()")]
  1776. - public class BackgroundActor : Clutter.Actor, Atk.Implementor, Clutter.Animatable, Clutter.Container, Clutter.Scriptable {
  1777. - [CCode (has_construct_function = false, type = "ClutterActor*")]
  1778. - public BackgroundActor (Meta.Screen screen, int monitor);
  1779. - public void set_background (Meta.Background background);
  1780. - public void set_vignette (bool enabled, double brightness, double sharpness);
  1781. - [NoAccessorMethod]
  1782. - public Meta.Background background { owned get; set; }
  1783. - [NoAccessorMethod]
  1784. - public double brightness { get; set; }
  1785. - [NoAccessorMethod]
  1786. - public Meta.Screen meta_screen { owned get; construct; }
  1787. - [NoAccessorMethod]
  1788. - public int monitor { get; construct; }
  1789. - [NoAccessorMethod]
  1790. - public bool vignette { get; set; }
  1791. - [NoAccessorMethod]
  1792. - public double vignette_sharpness { get; set; }
  1793. - }
  1794. - [CCode (cheader_filename = "meta/meta-background-group.h", type_id = "meta_background_group_get_type ()")]
  1795. - public class BackgroundGroup : Clutter.Actor, Atk.Implementor, Clutter.Animatable, Clutter.Container, Clutter.Scriptable {
  1796. - [CCode (has_construct_function = false, type = "ClutterActor*")]
  1797. - public BackgroundGroup ();
  1798. - }
  1799. - [CCode (cheader_filename = "meta/meta-background-image.h", type_id = "meta_background_image_get_type ()")]
  1800. - public class BackgroundImage : GLib.Object {
  1801. - [CCode (has_construct_function = false)]
  1802. - protected BackgroundImage ();
  1803. - public bool get_success ();
  1804. - public unowned Cogl.Texture get_texture ();
  1805. - public bool is_loaded ();
  1806. - public signal void loaded ();
  1807. - }
  1808. - [CCode (cheader_filename = "meta/meta-background-image.h", type_id = "meta_background_image_cache_get_type ()")]
  1809. - public class BackgroundImageCache : GLib.Object {
  1810. - [CCode (has_construct_function = false)]
  1811. - protected BackgroundImageCache ();
  1812. - public static unowned Meta.BackgroundImageCache get_default ();
  1813. -#if HAS_MUTTER316
  1814. - public Meta.BackgroundImage load (GLib.File file);
  1815. - public void purge (GLib.File file);
  1816. -#else
  1817. - public Meta.BackgroundImage load (string filename);
  1818. - public void purge (string filename);
  1819. -#endif
  1820. - }
  1821. - [CCode (cheader_filename = "meta/barrier.h", type_id = "meta_barrier_get_type ()")]
  1822. - public class Barrier : GLib.Object {
  1823. - [CCode (has_construct_function = false)]
  1824. - protected Barrier ();
  1825. - public void destroy ();
  1826. - public bool is_active ();
  1827. - public void release (Meta.BarrierEvent event);
  1828. - [NoAccessorMethod]
  1829. - public Meta.BarrierDirection directions { get; construct; }
  1830. - [NoAccessorMethod]
  1831. - public Meta.Display display { owned get; construct; }
  1832. - [NoAccessorMethod]
  1833. - public int x1 { get; construct; }
  1834. - [NoAccessorMethod]
  1835. - public int x2 { get; construct; }
  1836. - [NoAccessorMethod]
  1837. - public int y1 { get; construct; }
  1838. - [NoAccessorMethod]
  1839. - public int y2 { get; construct; }
  1840. - public signal void hit (Meta.BarrierEvent event);
  1841. - public signal void left (Meta.BarrierEvent event);
  1842. - }
  1843. - [CCode (cheader_filename = "meta/main.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "meta_barrier_event_get_type ()")]
  1844. - [Compact]
  1845. - public class BarrierEvent {
  1846. - public int dt;
  1847. - public double dx;
  1848. - public double dy;
  1849. - public int event_id;
  1850. - public bool grabbed;
  1851. - public bool released;
  1852. - public uint32 time;
  1853. - public double x;
  1854. - public double y;
  1855. - }
  1856. - [CCode (cheader_filename = "meta/compositor.h")]
  1857. - [Compact]
  1858. - public class Compositor {
  1859. - public void add_window (Meta.Window window);
  1860. - public void destroy ();
  1861. - public bool filter_keybinding (Meta.KeyBinding binding);
  1862. - public void flash_screen (Meta.Screen screen);
  1863. - [CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_focus_stage_window")]
  1864. - public static void focus_stage_window (Meta.Screen screen, uint32 timestamp);
  1865. -#if HAS_MUTTER316
  1866. - [CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_get_feedback_group_for_screen")]
  1867. - public static unowned Clutter.Actor get_feedback_group_for_screen (Meta.Screen screen);
  1868. -#endif
  1869. - [CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_get_stage_for_screen")]
  1870. - public static unowned Clutter.Actor? get_stage_for_screen (Meta.Screen screen);
  1871. - [CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_get_top_window_group_for_screen")]
  1872. - public static unowned Clutter.Actor? get_top_window_group_for_screen (Meta.Screen screen);
  1873. - [CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_get_window_actors")]
  1874. - public static unowned GLib.List<weak Meta.WindowActor>? get_window_actors (Meta.Screen screen);
  1875. - [CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_get_window_group_for_screen")]
  1876. - public static unowned Clutter.Actor? get_window_group_for_screen (Meta.Screen screen);
  1877. - public void hide_tile_preview ();
  1878. - public void hide_window (Meta.Window window, Meta.CompEffect effect);
  1879. - public void manage ();
  1880. -#if !HAS_MUTTER318
  1881. - public void maximize_window (Meta.Window window, Meta.Rectangle old_rect, Meta.Rectangle new_rect);
  1882. -#endif
  1883. - [CCode (cheader_filename = "meta/main.h")]
  1884. - public static unowned Meta.Compositor @new (Meta.Display display);
  1885. - public void queue_frame_drawn (Meta.Window window, bool no_delay_frame);
  1886. - public void remove_window (Meta.Window window);
  1887. - public void show_tile_preview (Meta.Window window, Meta.Rectangle tile_rect, int tile_monitor_number);
  1888. - public void show_window (Meta.Window window, Meta.CompEffect effect);
  1889. - public void show_window_menu (Meta.Window window, Meta.WindowMenuType menu, int x, int y);
  1890. - public void show_window_menu_for_rect (Meta.Window window, Meta.WindowMenuType menu, Meta.Rectangle rect);
  1891. -#if HAS_MUTTER318
  1892. - public void size_change_window (Meta.Window window, Meta.SizeChange which_change, Meta.Rectangle old_frame_rect, Meta.Rectangle old_buffer_rect);
  1893. -#endif
  1894. - [CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_stage_is_focused")]
  1895. - public static bool stage_is_focused (Meta.Screen screen);
  1896. - public void switch_workspace (Meta.Workspace from, Meta.Workspace to, Meta.MotionDirection direction);
  1897. - public void sync_stack (GLib.List<Meta.WindowActor> stack);
  1898. - public void sync_updates_frozen (Meta.Window window);
  1899. - public void sync_window_geometry (Meta.Window window, bool did_placement);
  1900. - public void unmanage ();
  1901. -#if !HAS_MUTTER318
  1902. - public void unmaximize_window (Meta.Window window, Meta.Rectangle old_rect, Meta.Rectangle new_rect);
  1903. -#endif
  1904. - public void window_opacity_changed (Meta.Window window);
  1905. - public void window_shape_changed (Meta.Window window);
  1906. - public void window_surface_changed (Meta.Window window);
  1907. - }
  1908. - [CCode (cheader_filename = "meta/meta-cursor-tracker.h", type_id = "meta_cursor_tracker_get_type ()")]
  1909. - public class CursorTracker : GLib.Object {
  1910. - [CCode (has_construct_function = false)]
  1911. - protected CursorTracker ();
  1912. - public static unowned Meta.CursorTracker get_for_screen (Meta.Screen screen);
  1913. - public void get_hot (out int x, out int y);
  1914. - public void get_pointer (int x, int y, Clutter.ModifierType mods);
  1915. - public unowned Cogl.Texture get_sprite ();
  1916. - public void set_pointer_visible (bool visible);
  1917. - public signal void cursor_changed ();
  1918. - }
  1919. - [CCode (cheader_filename = "meta/display.h", type_id = "meta_display_get_type ()")]
  1920. - public class Display : GLib.Object {
  1921. - [CCode (has_construct_function = false)]
  1922. - protected Display ();
  1923. - public void add_ignored_crossing_serial (ulong serial);
  1924. - public uint add_keybinding (string name, GLib.Settings settings, Meta.KeyBindingFlags flags, owned Meta.KeyHandlerFunc handler);
  1925. - 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);
  1926. - public void clear_mouse_mode ();
  1927. - public void end_grab_op (uint32 timestamp);
  1928. - public void focus_the_no_focus_window (Meta.Screen screen, uint32 timestamp);
  1929. -#if HAS_MUTTER316
  1930. - public void freeze_keyboard (uint32 timestamp);
  1931. -#else
  1932. - public void freeze_keyboard (X.Window window, uint32 timestamp);
  1933. -#endif
  1934. - public unowned Meta.Compositor get_compositor ();
  1935. - public uint32 get_current_time ();
  1936. - public uint32 get_current_time_roundtrip ();
  1937. - public int get_damage_event_base ();
  1938. - public unowned Meta.Window get_focus_window ();
  1939. - public Meta.GrabOp get_grab_op ();
  1940. - public uint get_keybinding_action (uint keycode, ulong mask);
  1941. - public uint32 get_last_user_time ();
  1942. - public int get_shape_event_base ();
  1943. - public unowned Meta.Window get_tab_current (Meta.TabList type, Meta.Workspace workspace);
  1944. - public GLib.List<weak Meta.Window> get_tab_list (Meta.TabList type, Meta.Workspace? workspace);
  1945. - public unowned Meta.Window get_tab_next (Meta.TabList type, Meta.Workspace workspace, Meta.Window? window, bool backward);
  1946. - public unowned X.Display get_xdisplay ();
  1947. - public int get_xinput_opcode ();
  1948. - public uint grab_accelerator (string accelerator);
  1949. - public bool has_shape ();
  1950. - public bool is_pointer_emulating_sequence (Clutter.EventSequence? sequence);
  1951. - public unowned Meta.Group lookup_group (X.Window group_leader);
  1952. - public bool remove_keybinding (string name);
  1953. - public void set_input_focus_window (Meta.Window window, bool focus_frame, uint32 timestamp);
  1954. - public GLib.SList<weak Meta.Window> sort_windows_by_stacking (GLib.SList<Meta.Window> windows);
  1955. - public bool supports_extended_barriers ();
  1956. - public void unfreeze_keyboard (uint32 timestamp);
  1957. - public bool ungrab_accelerator (uint action_id);
  1958. - public void ungrab_keyboard (uint32 timestamp);
  1959. - public void unmanage_screen (Meta.Screen screen, uint32 timestamp);
  1960. - public bool xserver_time_is_before (uint32 time1, uint32 time2);
  1961. - public bool xwindow_is_a_no_focus_window (X.Window xwindow);
  1962. - public signal void accelerator_activated (uint object, uint p0, uint p1);
  1963. - public signal void grab_op_begin (Meta.Screen object, Meta.Window p0, Meta.GrabOp p1);
  1964. - public signal void grab_op_end (Meta.Screen object, Meta.Window p0, Meta.GrabOp p1);
  1965. - public signal bool modifiers_accelerator_activated ();
  1966. - public signal void overlay_key ();
  1967. - public signal bool restart ();
  1968. -#if HAS_MUTTER316
  1969. - public signal bool show_resize_popup (bool object, Meta.Rectangle p0, int p1, int p2);
  1970. -#endif
  1971. - public signal bool show_restart_message (string? message);
  1972. - public signal void window_created (Meta.Window object);
  1973. - public signal void window_demands_attention (Meta.Window object);
  1974. - public signal void window_marked_urgent (Meta.Window object);
  1975. - }
  1976. - [CCode (cheader_filename = "meta/common.h")]
  1977. - [Compact]
  1978. - public class Frame {
  1979. - }
  1980. - [CCode (cheader_filename = "meta/group.h")]
  1981. - [Compact]
  1982. - public class Group {
  1983. - public int get_size ();
  1984. - public unowned string get_startup_id ();
  1985. - public GLib.SList<weak Meta.Window> list_windows ();
  1986. - public bool property_notify (X.Event event);
  1987. - public void update_layers ();
  1988. - }
  1989. - [CCode (cheader_filename = "meta/meta-idle-monitor.h", type_id = "meta_idle_monitor_get_type ()")]
  1990. - public class IdleMonitor : GLib.Object {
  1991. - [CCode (has_construct_function = false)]
  1992. - protected IdleMonitor ();
  1993. - public uint add_idle_watch (uint64 interval_msec, owned Meta.IdleMonitorWatchFunc? callback);
  1994. - public uint add_user_active_watch (owned Meta.IdleMonitorWatchFunc? callback);
  1995. - public static unowned Meta.IdleMonitor get_core ();
  1996. - public static unowned Meta.IdleMonitor get_for_device (int device_id);
  1997. - public int64 get_idletime ();
  1998. - public void remove_watch (uint id);
  1999. - [NoAccessorMethod]
  2000. - public int device_id { get; construct; }
  2001. - }
  2002. - [CCode (cheader_filename = "meta/keybindings.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "meta_key_binding_get_type ()")]
  2003. - [Compact]
  2004. - public class KeyBinding {
  2005. - public uint get_mask ();
  2006. - public Meta.VirtualModifier get_modifiers ();
  2007. - public unowned string get_name ();
  2008. - public bool is_builtin ();
  2009. - public bool is_reversed ();
  2010. - [CCode (cheader_filename = "meta/keybindings.h", cname = "meta_keybindings_set_custom_handler")]
  2011. - public static bool set_custom_handler (string name, owned Meta.KeyHandlerFunc? handler);
  2012. - }
  2013. -#if HAS_MUTTER316
  2014. - [CCode (cheader_filename = "meta/meta-monitor-manager.h", type_id = "meta_monitor_manager_get_type ()")]
  2015. - public abstract class MonitorManager : GLib.DBusInterfaceSkeleton, GLib.DBusInterface {
  2016. - [CCode (has_construct_function = false)]
  2017. - protected MonitorManager ();
  2018. - public static unowned Meta.MonitorManager @get ();
  2019. - public int get_monitor_for_output (uint id);
  2020. - public signal void confirm_display_change ();
  2021. - }
  2022. -#endif
  2023. - [CCode (cheader_filename = "meta/meta-plugin.h", type_id = "meta_plugin_get_type ()")]
  2024. - public abstract class Plugin : GLib.Object {
  2025. - [CCode (has_construct_function = false)]
  2026. - protected Plugin ();
  2027. - public bool begin_modal (Meta.ModalOptions options, uint32 timestamp);
  2028. - public void complete_display_change (bool ok);
  2029. - [NoWrapper]
  2030. - public virtual void confirm_display_change ();
  2031. - [NoWrapper]
  2032. - public virtual void destroy (Meta.WindowActor actor);
  2033. - public void destroy_completed (Meta.WindowActor actor);
  2034. - public void end_modal (uint32 timestamp);
  2035. - public unowned Meta.PluginInfo? get_info ();
  2036. - public unowned Meta.Screen get_screen ();
  2037. - [NoWrapper]
  2038. - public virtual void hide_tile_preview ();
  2039. - [NoWrapper]
  2040. - public virtual bool keybinding_filter (Meta.KeyBinding binding);
  2041. - [NoWrapper]
  2042. - public virtual void kill_switch_workspace ();
  2043. - [NoWrapper]
  2044. - public virtual void kill_window_effects (Meta.WindowActor actor);
  2045. - public static void manager_set_plugin_type (GLib.Type gtype);
  2046. - [NoWrapper]
  2047. - public virtual void map (Meta.WindowActor actor);
  2048. - public void map_completed (Meta.WindowActor actor);
  2049. -#if !HAS_MUTTER318
  2050. - [NoWrapper]
  2051. - public virtual void maximize (Meta.WindowActor actor, int x, int y, int width, int height);
  2052. - public void maximize_completed (Meta.WindowActor actor);
  2053. -#endif
  2054. - [NoWrapper]
  2055. - public virtual void minimize (Meta.WindowActor actor);
  2056. - public void minimize_completed (Meta.WindowActor actor);
  2057. - [NoWrapper]
  2058. - public virtual unowned Meta.PluginInfo? plugin_info ();
  2059. - [NoWrapper]
  2060. - public virtual void show_tile_preview (Meta.Window window, Meta.Rectangle tile_rect, int tile_monitor_number);
  2061. - [NoWrapper]
  2062. - public virtual void show_window_menu (Meta.Window window, Meta.WindowMenuType menu, int x, int y);
  2063. - [NoWrapper]
  2064. - public virtual void show_window_menu_for_rect (Meta.Window window, Meta.WindowMenuType menu, Meta.Rectangle rect);
  2065. -#if HAS_MUTTER318
  2066. - [NoWrapper]
  2067. - public virtual void size_change (Meta.WindowActor actor, Meta.SizeChange which_change, Meta.Rectangle old_frame_rect, Meta.Rectangle old_buffer_rect);
  2068. - public void size_change_completed (Meta.WindowActor actor);
  2069. -#endif
  2070. - [NoWrapper]
  2071. - public virtual void start ();
  2072. - [NoWrapper]
  2073. - public virtual void switch_workspace (int from, int to, Meta.MotionDirection direction);
  2074. - public void switch_workspace_completed ();
  2075. -#if !HAS_MUTTER318
  2076. - [NoWrapper]
  2077. - public virtual void unmaximize (Meta.WindowActor actor, int x, int y, int width, int height);
  2078. - public void unmaximize_completed (Meta.WindowActor actor);
  2079. -#endif
  2080. - [NoWrapper]
  2081. - public virtual void unminimize (Meta.WindowActor actor);
  2082. - public void unminimize_completed (Meta.WindowActor actor);
  2083. - [NoWrapper]
  2084. - public virtual bool xevent_filter (X.Event event);
  2085. - }
  2086. - [CCode (cheader_filename = "meta/screen.h", type_id = "meta_screen_get_type ()")]
  2087. - public class Screen : GLib.Object {
  2088. - [CCode (has_construct_function = false)]
  2089. - protected Screen ();
  2090. - public unowned Meta.Workspace? append_new_workspace (bool activate, uint32 timestamp);
  2091. - public void focus_default_window (uint32 timestamp);
  2092. - public unowned Meta.Workspace get_active_workspace ();
  2093. - public int get_active_workspace_index ();
  2094. - public int get_current_monitor ();
  2095. - public int get_current_monitor_for_pos (int x, int y);
  2096. - public unowned Meta.Display get_display ();
  2097. - public Meta.Rectangle get_monitor_geometry (int monitor);
  2098. - public bool get_monitor_in_fullscreen (int monitor);
  2099. - public int get_monitor_index_for_rect (Meta.Rectangle rect);
  2100. -#if HAS_MUTTER318
  2101. - public int get_monitor_neighbor_index (int which_monitor, Meta.ScreenDirection dir);
  2102. -#endif
  2103. - public int get_n_monitors ();
  2104. - public int get_n_workspaces ();
  2105. - public int get_primary_monitor ();
  2106. - public int get_screen_number ();
  2107. - public void get_size (out int width, out int height);
  2108. - public unowned Meta.Workspace? get_workspace_by_index (int index);
  2109. - public unowned GLib.List<Meta.Workspace> get_workspaces ();
  2110. - public X.Window get_xroot ();
  2111. - public void override_workspace_layout (Meta.ScreenCorner starting_corner, bool vertical_layout, int n_rows, int n_columns);
  2112. - public void remove_workspace (Meta.Workspace workspace, uint32 timestamp);
  2113. - public void set_cm_selection ();
  2114. - public void set_cursor (Meta.Cursor cursor);
  2115. -#if !HAS_MUTTER316
  2116. - public void unset_cm_selection ();
  2117. -#endif
  2118. - public int n_workspaces { get; }
  2119. - public signal void in_fullscreen_changed ();
  2120. - public signal void monitors_changed ();
  2121. - public signal void restacked ();
  2122. - public signal void startup_sequence_changed (void* object);
  2123. - public signal void window_entered_monitor (int object, Meta.Window p0);
  2124. - public signal void window_left_monitor (int object, Meta.Window p0);
  2125. - public signal void workareas_changed ();
  2126. - public signal void workspace_added (int object);
  2127. - public signal void workspace_removed (int object);
  2128. - public signal void workspace_switched (int object, int p0, Meta.MotionDirection p1);
  2129. - }
  2130. -#if HAS_MUTTER318
  2131. - [CCode (cheader_filename = "meta/meta-shadow-factory.h", ref_function = "meta_shadow_ref", type_id = "meta_shadow_get_type ()", unref_function = "meta_shadow_unref")]
  2132. - [Compact]
  2133. - public class Shadow {
  2134. - public void get_bounds (int window_x, int window_y, int window_width, int window_height, Cairo.RectangleInt bounds);
  2135. - public void paint (int window_x, int window_y, int window_width, int window_height, uint8 opacity, Cairo.Region? clip, bool clip_strictly);
  2136. - public Meta.Shadow @ref ();
  2137. - public void unref ();
  2138. - }
  2139. -#endif
  2140. - [CCode (cheader_filename = "meta/meta-shadow-factory.h", type_id = "meta_shadow_factory_get_type ()")]
  2141. - public class ShadowFactory : GLib.Object {
  2142. - [CCode (has_construct_function = false)]
  2143. -#if HAS_MUTTER318
  2144. - public ShadowFactory ();
  2145. -#else
  2146. - protected ShadowFactory ();
  2147. -#endif
  2148. - public static unowned Meta.ShadowFactory get_default ();
  2149. - public Meta.ShadowParams get_params (string class_name, bool focused);
  2150. -#if HAS_MUTTER318
  2151. - public Meta.Shadow get_shadow (Meta.WindowShape shape, int width, int height, string class_name, bool focused);
  2152. -#endif
  2153. - public void set_params (string class_name, bool focused, Meta.ShadowParams @params);
  2154. - public signal void changed ();
  2155. - }
  2156. - [CCode (cheader_filename = "meta/meta-shaped-texture.h", type_id = "meta_shaped_texture_get_type ()")]
  2157. - public class ShapedTexture : Clutter.Actor, Atk.Implementor, Clutter.Animatable, Clutter.Container, Clutter.Scriptable {
  2158. - [CCode (has_construct_function = false)]
  2159. - protected ShapedTexture ();
  2160. - public Cairo.Surface get_image (Cairo.RectangleInt clip);
  2161. - public unowned Cogl.Texture get_texture ();
  2162. - public void set_create_mipmaps (bool create_mipmaps);
  2163. - public void set_mask_texture (Cogl.Texture mask_texture);
  2164. - public void set_opaque_region (owned Cairo.Region opaque_region);
  2165. - public bool update_area (int x, int y, int width, int height);
  2166. - public signal void size_changed ();
  2167. - }
  2168. - [CCode (cheader_filename = "meta/theme.h")]
  2169. - [Compact]
  2170. - public class Theme {
  2171. - public void free ();
  2172. -#if HAS_MUTTER316
  2173. - [CCode (cheader_filename = "meta/main.h")]
  2174. - public static unowned Meta.Theme get_default ();
  2175. - [CCode (cheader_filename = "meta/main.h")]
  2176. - public static unowned Meta.Theme @new ();
  2177. -#else
  2178. - [CCode (cheader_filename = "meta/main.h")]
  2179. - public static unowned Meta.Theme get_current ();
  2180. - [CCode (cheader_filename = "meta/main.h")]
  2181. - public static unowned Meta.Theme load (string theme_name) throws GLib.Error;
  2182. - [CCode (cheader_filename = "meta/main.h")]
  2183. - public static unowned Meta.Theme @new ();
  2184. - [CCode (cheader_filename = "meta/main.h")]
  2185. - public static void set_current (string name);
  2186. - public bool validate () throws GLib.Error;
  2187. -#endif
  2188. - }
  2189. - [CCode (cheader_filename = "meta/window.h", type_id = "meta_window_get_type ()")]
  2190. - public abstract class Window : GLib.Object {
  2191. - [CCode (has_construct_function = false)]
  2192. - protected Window ();
  2193. - public void activate (uint32 current_time);
  2194. - public void activate_with_workspace (uint32 current_time, Meta.Workspace workspace);
  2195. - public bool allows_move ();
  2196. - public bool allows_resize ();
  2197. - public void begin_grab_op (Meta.GrabOp op, bool frame_action, uint32 timestamp);
  2198. - public bool can_close ();
  2199. - public bool can_maximize ();
  2200. - public bool can_minimize ();
  2201. - public bool can_shade ();
  2202. - public void change_workspace (Meta.Workspace workspace);
  2203. - public void change_workspace_by_index (int space_index, bool append);
  2204. - public void check_alive (uint32 timestamp);
  2205. - public Meta.Rectangle client_rect_to_frame_rect (Meta.Rectangle client_rect);
  2206. - public void compute_group ();
  2207. - public void @delete (uint32 timestamp);
  2208. - public unowned Meta.Window find_root_ancestor ();
  2209. - public void focus (uint32 timestamp);
  2210. - public void foreach_ancestor (Meta.WindowForeachFunc func);
  2211. - public void foreach_transient (Meta.WindowForeachFunc func);
  2212. - public Meta.Rectangle frame_rect_to_client_rect (Meta.Rectangle frame_rect);
  2213. - [CCode (array_length_pos = 0.1, array_length_type = "gsize")]
  2214. - public int[] get_all_monitors ();
  2215. - public Meta.Rectangle get_buffer_rect ();
  2216. - public unowned string get_client_machine ();
  2217. - public unowned GLib.Object get_compositor_private ();
  2218. - public unowned string get_description ();
  2219. - public unowned Meta.Display get_display ();
  2220. - public unowned Meta.Frame get_frame ();
  2221. - public unowned Cairo.Region? get_frame_bounds ();
  2222. - public Meta.Rectangle get_frame_rect ();
  2223. - public Meta.FrameType get_frame_type ();
  2224. - public unowned Meta.Group get_group ();
  2225. - public unowned string get_gtk_app_menu_object_path ();
  2226. - public unowned string get_gtk_application_id ();
  2227. - public unowned string get_gtk_application_object_path ();
  2228. - public unowned string get_gtk_menubar_object_path ();
  2229. - public unowned string get_gtk_theme_variant ();
  2230. - public unowned string get_gtk_unique_bus_name ();
  2231. - public unowned string get_gtk_window_object_path ();
  2232. - public bool get_icon_geometry (out Meta.Rectangle rect);
  2233. - public Meta.StackLayer get_layer ();
  2234. - public Meta.MaximizeFlags get_maximized ();
  2235. - public int get_monitor ();
  2236. - public unowned string get_mutter_hints ();
  2237. -#if !HAS_MUTTER316
  2238. - [Deprecated (since = "3.12")]
  2239. - public Meta.Rectangle get_outer_rect ();
  2240. -#endif
  2241. - public int get_pid ();
  2242. - public unowned string get_role ();
  2243. - public unowned Meta.Screen get_screen ();
  2244. - public uint get_stable_sequence ();
  2245. - public unowned string get_startup_id ();
  2246. - public unowned Meta.Window? get_tile_match ();
  2247. - public unowned string get_title ();
  2248. - public unowned Meta.Window get_transient_for ();
  2249. - public uint32 get_user_time ();
  2250. - public Meta.WindowType get_window_type ();
  2251. - public unowned string get_wm_class ();
  2252. - public unowned string get_wm_class_instance ();
  2253. - public Meta.Rectangle get_work_area_all_monitors ();
  2254. - public Meta.Rectangle get_work_area_current_monitor ();
  2255. - public Meta.Rectangle get_work_area_for_monitor (int which_monitor);
  2256. - public unowned Meta.Workspace get_workspace ();
  2257. - public X.Window get_xwindow ();
  2258. - public void group_leader_changed ();
  2259. - public bool has_focus ();
  2260. - public bool is_above ();
  2261. - public bool is_always_on_all_workspaces ();
  2262. - public bool is_ancestor_of_transient (Meta.Window transient);
  2263. - public bool is_attached_dialog ();
  2264. - public bool is_fullscreen ();
  2265. - public bool is_hidden ();
  2266. - public bool is_monitor_sized ();
  2267. - public bool is_on_all_workspaces ();
  2268. - public bool is_on_primary_monitor ();
  2269. - public bool is_override_redirect ();
  2270. - public bool is_remote ();
  2271. - public bool is_screen_sized ();
  2272. - public bool is_shaded ();
  2273. - public bool is_skip_taskbar ();
  2274. - public void kill ();
  2275. - public bool located_on_workspace (Meta.Workspace workspace);
  2276. - public void lower ();
  2277. - public void make_above ();
  2278. - public void make_fullscreen ();
  2279. - public void maximize (Meta.MaximizeFlags directions);
  2280. - public void minimize ();
  2281. - public void move_frame (bool user_op, int root_x_nw, int root_y_nw);
  2282. - public void move_resize_frame (bool user_op, int root_x_nw, int root_y_nw, int w, int h);
  2283. - public void move_to_monitor (int monitor);
  2284. - public void raise ();
  2285. - public bool requested_bypass_compositor ();
  2286. - public bool requested_dont_bypass_compositor ();
  2287. - public void set_compositor_private (GLib.Object priv);
  2288. - public void set_demands_attention ();
  2289. - public void set_icon_geometry (Meta.Rectangle? rect);
  2290. - public void shade (uint32 timestamp);
  2291. - public void shove_titlebar_onscreen ();
  2292. - public bool showing_on_its_workspace ();
  2293. - public void shutdown_group ();
  2294. - public void stick ();
  2295. - public bool titlebar_is_onscreen ();
  2296. - public void unmake_above ();
  2297. - public void unmake_fullscreen ();
  2298. - public void unmaximize (Meta.MaximizeFlags directions);
  2299. - public void unminimize ();
  2300. - public void unset_demands_attention ();
  2301. - public void unshade (uint32 timestamp);
  2302. - public void unstick ();
  2303. - [NoAccessorMethod]
  2304. - public bool above { get; }
  2305. - [NoAccessorMethod]
  2306. - public bool appears_focused { get; }
  2307. - [NoAccessorMethod]
  2308. - public bool decorated { get; }
  2309. - [NoAccessorMethod]
  2310. - public bool demands_attention { get; }
  2311. - [NoAccessorMethod]
  2312. - public bool fullscreen { get; }
  2313. - public string gtk_app_menu_object_path { get; }
  2314. - public string gtk_application_id { get; }
  2315. - public string gtk_application_object_path { get; }
  2316. - public string gtk_menubar_object_path { get; }
  2317. - public string gtk_unique_bus_name { get; }
  2318. - public string gtk_window_object_path { get; }
  2319. - [NoAccessorMethod]
  2320. -#if HAS_MUTTER316
  2321. - public Cairo.Surface icon { owned get; }
  2322. -#else
  2323. - public Gdk.Pixbuf icon { owned get; }
  2324. -#endif
  2325. - [NoAccessorMethod]
  2326. - public bool maximized_horizontally { get; }
  2327. - [NoAccessorMethod]
  2328. - public bool maximized_vertically { get; }
  2329. - [NoAccessorMethod]
  2330. -#if HAS_MUTTER316
  2331. - public Cairo.Surface mini_icon { owned get; }
  2332. -#else
  2333. - public Gdk.Pixbuf mini_icon { owned get; }
  2334. -#endif
  2335. - [NoAccessorMethod]
  2336. - public bool minimized { get; }
  2337. - public string mutter_hints { get; }
  2338. - [NoAccessorMethod]
  2339. - public bool on_all_workspaces { get; }
  2340. - [NoAccessorMethod]
  2341. - public bool resizeable { get; }
  2342. - [NoAccessorMethod]
  2343. - public bool skip_taskbar { get; }
  2344. - public string title { get; }
  2345. - [NoAccessorMethod]
  2346. - public bool urgent { get; }
  2347. - public uint user_time { get; }
  2348. - public Meta.WindowType window_type { get; }
  2349. - public string wm_class { get; }
  2350. - [CCode (cname = "focus")]
  2351. - public signal void focused ();
  2352. - public signal void position_changed ();
  2353. - public signal void raised ();
  2354. - public signal void size_changed ();
  2355. - public signal void unmanaged ();
  2356. - public signal void workspace_changed ();
  2357. - }
  2358. - [CCode (cheader_filename = "meta/meta-window-actor.h", type_id = "meta_window_actor_get_type ()")]
  2359. - public class WindowActor : Clutter.Actor, Atk.Implementor, Clutter.Animatable, Clutter.Container, Clutter.Scriptable {
  2360. - [CCode (has_construct_function = false)]
  2361. - protected WindowActor ();
  2362. - public unowned Meta.Window get_meta_window ();
  2363. - public unowned Clutter.Actor get_texture ();
  2364. - public X.Window get_x_window ();
  2365. - public bool is_destroyed ();
  2366. -#if !HAS_MUTTER318
  2367. - [NoAccessorMethod]
  2368. - public bool no_shadow { get; set; }
  2369. -#endif
  2370. - [NoAccessorMethod]
  2371. - public string shadow_class { owned get; set; }
  2372. -#if HAS_MUTTER318
  2373. - [NoAccessorMethod]
  2374. - public Meta.ShadowMode shadow_mode { get; set; }
  2375. -#endif
  2376. - public signal void first_frame ();
  2377. - }
  2378. -#if HAS_MUTTER318
  2379. - [CCode (cheader_filename = "meta/meta_window_shape.h", ref_function = "meta_window_shape_ref", type_id = "meta_window_shape_get_type ()", unref_function = "meta_window_shape_unref")]
  2380. - [Compact]
  2381. - public class WindowShape {
  2382. - [CCode (has_construct_function = false)]
  2383. - public WindowShape (Cairo.Region region);
  2384. - public bool equal (Meta.WindowShape shape_b);
  2385. - public void get_borders (int border_top, int border_right, int border_bottom, int border_left);
  2386. - public uint hash ();
  2387. - public Meta.WindowShape @ref ();
  2388. - public Cairo.Region to_region (int center_width, int center_height);
  2389. - public void unref ();
  2390. - }
  2391. -#endif
  2392. - [CCode (cheader_filename = "meta/workspace.h", type_id = "meta_workspace_get_type ()")]
  2393. - public class Workspace : GLib.Object {
  2394. - [CCode (has_construct_function = false)]
  2395. - protected Workspace ();
  2396. - public void activate (uint32 timestamp);
  2397. - public void activate_with_focus (Meta.Window focus_this, uint32 timestamp);
  2398. - public unowned Meta.Workspace get_neighbor (Meta.MotionDirection direction);
  2399. - public unowned Meta.Screen get_screen ();
  2400. - public Meta.Rectangle get_work_area_all_monitors ();
  2401. - public Meta.Rectangle get_work_area_for_monitor (int which_monitor);
  2402. - public int index ();
  2403. - public GLib.List<weak Meta.Window> list_windows ();
  2404. - public void set_builtin_struts (GLib.SList<Meta.Strut> struts);
  2405. - [NoAccessorMethod]
  2406. - public uint n_windows { get; }
  2407. - [NoAccessorMethod]
  2408. - public uint workspace_index { get; }
  2409. - public signal void window_added (Meta.Window object);
  2410. - public signal void window_removed (Meta.Window object);
  2411. - }
  2412. - [CCode (cheader_filename = "meta/common.h", has_type_id = false)]
  2413. - public struct ButtonLayout {
  2414. - [CCode (array_length = false, array_null_terminated = true)]
  2415. - public weak Meta.ButtonFunction[] left_buttons;
  2416. - [CCode (array_length = false, array_null_terminated = true)]
  2417. - public weak bool[] left_buttons_has_spacer;
  2418. - [CCode (array_length = false, array_null_terminated = true)]
  2419. - public weak Meta.ButtonFunction[] right_buttons;
  2420. - [CCode (array_length = false, array_null_terminated = true)]
  2421. - public weak bool[] right_buttons_has_spacer;
  2422. - }
  2423. - [CCode (cheader_filename = "meta/boxes.h", has_type_id = false)]
  2424. - public struct Edge {
  2425. - public Meta.Rectangle rect;
  2426. - public Meta.Side side_type;
  2427. - public Meta.EdgeType edge_type;
  2428. - }
  2429. - [CCode (cheader_filename = "meta/common.h", has_type_id = false)]
  2430. - public struct FrameBorders {
  2431. - public Gtk.Border visible;
  2432. - public Gtk.Border invisible;
  2433. - public Gtk.Border total;
  2434. - public void clear ();
  2435. - }
  2436. - [CCode (cheader_filename = "meta/meta-plugin.h", has_type_id = false)]
  2437. - public struct PluginInfo {
  2438. - public weak string name;
  2439. - public weak string version;
  2440. - public weak string author;
  2441. - public weak string license;
  2442. - public weak string description;
  2443. - }
  2444. - [CCode (cheader_filename = "meta/meta-plugin.h", has_type_id = false)]
  2445. - public struct PluginVersion {
  2446. - public uint version_major;
  2447. - public uint version_minor;
  2448. - public uint version_micro;
  2449. - public uint version_api;
  2450. - }
  2451. - [CCode (cheader_filename = "meta/boxes.h", has_type_id = false)]
  2452. - public struct Rectangle {
  2453. - public int x;
  2454. - public int y;
  2455. - public int width;
  2456. - public int height;
  2457. - public int area ();
  2458. - public bool contains_rect (Meta.Rectangle inner_rect);
  2459. - public bool could_fit_rect (Meta.Rectangle inner_rect);
  2460. - public bool equal (Meta.Rectangle src2);
  2461. - public bool horiz_overlap (Meta.Rectangle rect2);
  2462. - public bool intersect (Meta.Rectangle src2, out Meta.Rectangle dest);
  2463. - public bool overlap (Meta.Rectangle rect2);
  2464. - public Meta.Rectangle union (Meta.Rectangle rect2);
  2465. - public bool vert_overlap (Meta.Rectangle rect2);
  2466. - }
  2467. - [CCode (cheader_filename = "meta/meta-shadow-factory.h", has_type_id = false)]
  2468. - public struct ShadowParams {
  2469. - public int radius;
  2470. - public int top_fade;
  2471. - public int x_offset;
  2472. - public int y_offset;
  2473. - public uint8 opacity;
  2474. - }
  2475. - [CCode (cheader_filename = "meta/boxes.h", has_type_id = false)]
  2476. - public struct Strut {
  2477. - public Meta.Rectangle rect;
  2478. - public Meta.Side side;
  2479. - }
  2480. - [CCode (cheader_filename = "meta/barrier.h", cprefix = "META_BARRIER_DIRECTION_", type_id = "meta_barrier_direction_get_type ()")]
  2481. - [Flags]
  2482. - public enum BarrierDirection {
  2483. - POSITIVE_X,
  2484. - POSITIVE_Y,
  2485. - NEGATIVE_X,
  2486. - NEGATIVE_Y
  2487. - }
  2488. - [CCode (cheader_filename = "meta/common.h", cprefix = "META_BUTTON_FUNCTION_", type_id = "meta_button_function_get_type ()")]
  2489. - public enum ButtonFunction {
  2490. - MENU,
  2491. - MINIMIZE,
  2492. - MAXIMIZE,
  2493. - CLOSE,
  2494. -#if !HAS_MUTTER320
  2495. - SHADE,
  2496. - ABOVE,
  2497. - STICK,
  2498. - UNSHADE,
  2499. - UNABOVE,
  2500. - UNSTICK,
  2501. -#endif
  2502. - APPMENU,
  2503. - LAST
  2504. - }
  2505. - [CCode (cheader_filename = "meta/compositor.h", cprefix = "META_COMP_EFFECT_", type_id = "meta_comp_effect_get_type ()")]
  2506. - public enum CompEffect {
  2507. - CREATE,
  2508. - UNMINIMIZE,
  2509. - DESTROY,
  2510. - MINIMIZE,
  2511. - NONE
  2512. - }
  2513. - [CCode (cheader_filename = "meta/common.h", cprefix = "META_CURSOR_", type_id = "meta_cursor_get_type ()")]
  2514. - public enum Cursor {
  2515. - NONE,
  2516. - DEFAULT,
  2517. - NORTH_RESIZE,
  2518. - SOUTH_RESIZE,
  2519. - WEST_RESIZE,
  2520. - EAST_RESIZE,
  2521. - SE_RESIZE,
  2522. - SW_RESIZE,
  2523. - NE_RESIZE,
  2524. - NW_RESIZE,
  2525. - MOVE_OR_RESIZE_WINDOW,
  2526. - BUSY,
  2527. - DND_IN_DRAG,
  2528. - DND_MOVE,
  2529. - DND_COPY,
  2530. - DND_UNSUPPORTED_TARGET,
  2531. - POINTING_HAND,
  2532. - CROSSHAIR,
  2533. - IBEAM,
  2534. - LAST
  2535. - }
  2536. - [CCode (cheader_filename = "meta/util.h", cprefix = "META_DEBUG_", type_id = "meta_debug_topic_get_type ()")]
  2537. - [Flags]
  2538. - public enum DebugTopic {
  2539. - VERBOSE,
  2540. - FOCUS,
  2541. - WORKAREA,
  2542. - STACK,
  2543. - THEMES,
  2544. - SM,
  2545. - EVENTS,
  2546. - WINDOW_STATE,
  2547. - WINDOW_OPS,
  2548. - GEOMETRY,
  2549. - PLACEMENT,
  2550. - PING,
  2551. - XINERAMA,
  2552. - KEYBINDINGS,
  2553. - SYNC,
  2554. - ERRORS,
  2555. - STARTUP,
  2556. - PREFS,
  2557. - GROUPS,
  2558. - RESIZING,
  2559. - SHAPES,
  2560. - COMPOSITOR,
  2561. - EDGE_RESISTANCE,
  2562. - DBUS
  2563. - }
  2564. - [CCode (cheader_filename = "meta/common.h", cprefix = "META_DIRECTION_", type_id = "meta_direction_get_type ()")]
  2565. - [Flags]
  2566. - public enum Direction {
  2567. - LEFT,
  2568. - RIGHT,
  2569. - TOP,
  2570. - BOTTOM,
  2571. - UP,
  2572. - DOWN,
  2573. - HORIZONTAL,
  2574. - VERTICAL
  2575. - }
  2576. - [CCode (cheader_filename = "meta/boxes.h", cprefix = "META_EDGE_", type_id = "meta_edge_type_get_type ()")]
  2577. - public enum EdgeType {
  2578. - WINDOW,
  2579. - MONITOR,
  2580. - SCREEN
  2581. - }
  2582. - [CCode (cheader_filename = "meta/main.h", cprefix = "META_EXIT_", type_id = "meta_exit_code_get_type ()")]
  2583. - public enum ExitCode {
  2584. - SUCCESS,
  2585. - ERROR
  2586. - }
  2587. - [CCode (cheader_filename = "meta/common.h", cprefix = "META_FRAME_", type_id = "meta_frame_flags_get_type ()")]
  2588. - [Flags]
  2589. - public enum FrameFlags {
  2590. - ALLOWS_DELETE,
  2591. - ALLOWS_MENU,
  2592. - ALLOWS_APPMENU,
  2593. - ALLOWS_MINIMIZE,
  2594. - ALLOWS_MAXIMIZE,
  2595. - ALLOWS_VERTICAL_RESIZE,
  2596. - ALLOWS_HORIZONTAL_RESIZE,
  2597. - HAS_FOCUS,
  2598. - SHADED,
  2599. - STUCK,
  2600. - MAXIMIZED,
  2601. - ALLOWS_SHADE,
  2602. - ALLOWS_MOVE,
  2603. - FULLSCREEN,
  2604. - IS_FLASHING,
  2605. - ABOVE,
  2606. - TILED_LEFT,
  2607. - TILED_RIGHT
  2608. - }
  2609. - [CCode (cheader_filename = "meta/common.h", cprefix = "META_FRAME_TYPE_", type_id = "meta_frame_type_get_type ()")]
  2610. - public enum FrameType {
  2611. - NORMAL,
  2612. - DIALOG,
  2613. - MODAL_DIALOG,
  2614. - UTILITY,
  2615. - MENU,
  2616. - BORDER,
  2617. - ATTACHED,
  2618. - LAST;
  2619. - [CCode (cheader_filename = "meta/main.h")]
  2620. - public static unowned string to_string (Meta.FrameType type);
  2621. - }
  2622. - [CCode (cheader_filename = "meta/common.h", cprefix = "META_GRAB_OP_", type_id = "meta_grab_op_get_type ()")]
  2623. - public enum GrabOp {
  2624. - NONE,
  2625. - COMPOSITOR,
  2626. - WAYLAND_POPUP,
  2627. - WINDOW_BASE,
  2628. -#if HAS_MUTTER316
  2629. - FRAME_BUTTON,
  2630. -#endif
  2631. - MOVING,
  2632. - RESIZING_NW,
  2633. - RESIZING_N,
  2634. - RESIZING_NE,
  2635. - RESIZING_E,
  2636. - RESIZING_SW,
  2637. - RESIZING_S,
  2638. - RESIZING_SE,
  2639. - RESIZING_W,
  2640. - KEYBOARD_MOVING,
  2641. - KEYBOARD_RESIZING_UNKNOWN,
  2642. - KEYBOARD_RESIZING_NW,
  2643. - KEYBOARD_RESIZING_N,
  2644. - KEYBOARD_RESIZING_NE,
  2645. - KEYBOARD_RESIZING_E,
  2646. - KEYBOARD_RESIZING_SW,
  2647. - KEYBOARD_RESIZING_S,
  2648. - KEYBOARD_RESIZING_SE,
  2649. - KEYBOARD_RESIZING_W
  2650. - }
  2651. -#if !HAS_MUTTER316
  2652. - [CCode (cheader_filename = "meta/gradient.h", cprefix = "META_GRADIENT_", type_id = "meta_gradient_type_get_type ()")]
  2653. - public enum GradientType {
  2654. - VERTICAL,
  2655. - HORIZONTAL,
  2656. - DIAGONAL,
  2657. - LAST
  2658. - }
  2659. -#endif
  2660. - [CCode (cheader_filename = "meta/prefs.h", cprefix = "META_KEYBINDING_ACTION_", type_id = "meta_key_binding_action_get_type ()")]
  2661. - public enum KeyBindingAction {
  2662. - NONE,
  2663. - WORKSPACE_1,
  2664. - WORKSPACE_2,
  2665. - WORKSPACE_3,
  2666. - WORKSPACE_4,
  2667. - WORKSPACE_5,
  2668. - WORKSPACE_6,
  2669. - WORKSPACE_7,
  2670. - WORKSPACE_8,
  2671. - WORKSPACE_9,
  2672. - WORKSPACE_10,
  2673. - WORKSPACE_11,
  2674. - WORKSPACE_12,
  2675. - WORKSPACE_LEFT,
  2676. - WORKSPACE_RIGHT,
  2677. - WORKSPACE_UP,
  2678. - WORKSPACE_DOWN,
  2679. - WORKSPACE_LAST,
  2680. - SWITCH_APPLICATIONS,
  2681. - SWITCH_APPLICATIONS_BACKWARD,
  2682. - SWITCH_GROUP,
  2683. - SWITCH_GROUP_BACKWARD,
  2684. - SWITCH_WINDOWS,
  2685. - SWITCH_WINDOWS_BACKWARD,
  2686. - SWITCH_PANELS,
  2687. - SWITCH_PANELS_BACKWARD,
  2688. - CYCLE_GROUP,
  2689. - CYCLE_GROUP_BACKWARD,
  2690. - CYCLE_WINDOWS,
  2691. - CYCLE_WINDOWS_BACKWARD,
  2692. - CYCLE_PANELS,
  2693. - CYCLE_PANELS_BACKWARD,
  2694. - SHOW_DESKTOP,
  2695. - PANEL_MAIN_MENU,
  2696. - PANEL_RUN_DIALOG,
  2697. - TOGGLE_RECORDING,
  2698. - SET_SPEW_MARK,
  2699. - ACTIVATE_WINDOW_MENU,
  2700. - TOGGLE_FULLSCREEN,
  2701. - TOGGLE_MAXIMIZED,
  2702. - TOGGLE_TILED_LEFT,
  2703. - TOGGLE_TILED_RIGHT,
  2704. - TOGGLE_ABOVE,
  2705. - MAXIMIZE,
  2706. - UNMAXIMIZE,
  2707. - TOGGLE_SHADED,
  2708. - MINIMIZE,
  2709. - CLOSE,
  2710. - BEGIN_MOVE,
  2711. - BEGIN_RESIZE,
  2712. - TOGGLE_ON_ALL_WORKSPACES,
  2713. - MOVE_TO_WORKSPACE_1,
  2714. - MOVE_TO_WORKSPACE_2,
  2715. - MOVE_TO_WORKSPACE_3,
  2716. - MOVE_TO_WORKSPACE_4,
  2717. - MOVE_TO_WORKSPACE_5,
  2718. - MOVE_TO_WORKSPACE_6,
  2719. - MOVE_TO_WORKSPACE_7,
  2720. - MOVE_TO_WORKSPACE_8,
  2721. - MOVE_TO_WORKSPACE_9,
  2722. - MOVE_TO_WORKSPACE_10,
  2723. - MOVE_TO_WORKSPACE_11,
  2724. - MOVE_TO_WORKSPACE_12,
  2725. - MOVE_TO_WORKSPACE_LEFT,
  2726. - MOVE_TO_WORKSPACE_RIGHT,
  2727. - MOVE_TO_WORKSPACE_UP,
  2728. - MOVE_TO_WORKSPACE_DOWN,
  2729. - MOVE_TO_WORKSPACE_LAST,
  2730. - MOVE_TO_MONITOR_LEFT,
  2731. - MOVE_TO_MONITOR_RIGHT,
  2732. - MOVE_TO_MONITOR_UP,
  2733. - MOVE_TO_MONITOR_DOWN,
  2734. - RAISE_OR_LOWER,
  2735. - RAISE,
  2736. - LOWER,
  2737. - MAXIMIZE_VERTICALLY,
  2738. - MAXIMIZE_HORIZONTALLY,
  2739. - MOVE_TO_CORNER_NW,
  2740. - MOVE_TO_CORNER_NE,
  2741. - MOVE_TO_CORNER_SW,
  2742. - MOVE_TO_CORNER_SE,
  2743. - MOVE_TO_SIDE_N,
  2744. - MOVE_TO_SIDE_S,
  2745. - MOVE_TO_SIDE_E,
  2746. - MOVE_TO_SIDE_W,
  2747. - MOVE_TO_CENTER,
  2748. - OVERLAY_KEY,
  2749. - ISO_NEXT_GROUP,
  2750. - ALWAYS_ON_TOP,
  2751. - LAST
  2752. - }
  2753. - [CCode (cheader_filename = "meta/prefs.h", cprefix = "META_KEY_BINDING_", type_id = "meta_key_binding_flags_get_type ()")]
  2754. - [Flags]
  2755. - public enum KeyBindingFlags {
  2756. - NONE,
  2757. - PER_WINDOW,
  2758. - BUILTIN,
  2759. - IS_REVERSED
  2760. - }
  2761. - [CCode (cheader_filename = "meta/util.h", cprefix = "META_LATER_", type_id = "meta_later_type_get_type ()")]
  2762. - public enum LaterType {
  2763. - RESIZE,
  2764. - CALC_SHOWING,
  2765. - CHECK_FULLSCREEN,
  2766. - SYNC_STACK,
  2767. - BEFORE_REDRAW,
  2768. - IDLE
  2769. - }
  2770. - [CCode (cheader_filename = "meta/util.h", cprefix = "META_LOCALE_DIRECTION_", type_id = "meta_locale_direction_get_type ()")]
  2771. - public enum LocaleDirection {
  2772. - LTR,
  2773. - RTL
  2774. - }
  2775. - [CCode (cheader_filename = "meta/window.h", cprefix = "META_MAXIMIZE_", type_id = "meta_maximize_flags_get_type ()")]
  2776. - [Flags]
  2777. - public enum MaximizeFlags {
  2778. - HORIZONTAL,
  2779. - VERTICAL,
  2780. - BOTH
  2781. - }
  2782. - [CCode (cheader_filename = "meta/meta-plugin.h", cprefix = "META_MODAL_", type_id = "meta_modal_options_get_type ()")]
  2783. - [Flags]
  2784. - public enum ModalOptions {
  2785. - POINTER_ALREADY_GRABBED,
  2786. - KEYBOARD_ALREADY_GRABBED
  2787. - }
  2788. - [CCode (cheader_filename = "meta/common.h", cprefix = "META_MOTION_", type_id = "meta_motion_direction_get_type ()")]
  2789. - public enum MotionDirection {
  2790. - UP,
  2791. - DOWN,
  2792. - LEFT,
  2793. - RIGHT,
  2794. - UP_LEFT,
  2795. - UP_RIGHT,
  2796. - DOWN_LEFT,
  2797. - DOWN_RIGHT
  2798. - }
  2799. - [CCode (cheader_filename = "meta/prefs.h", cprefix = "META_PREF_", type_id = "meta_preference_get_type ()")]
  2800. - public enum Preference {
  2801. - MOUSE_BUTTON_MODS,
  2802. - FOCUS_MODE,
  2803. - FOCUS_NEW_WINDOWS,
  2804. - ATTACH_MODAL_DIALOGS,
  2805. - RAISE_ON_CLICK,
  2806. - ACTION_DOUBLE_CLICK_TITLEBAR,
  2807. - ACTION_MIDDLE_CLICK_TITLEBAR,
  2808. - ACTION_RIGHT_CLICK_TITLEBAR,
  2809. - AUTO_RAISE,
  2810. - AUTO_RAISE_DELAY,
  2811. - FOCUS_CHANGE_ON_POINTER_REST,
  2812. -#if !HAS_MUTTER316
  2813. - THEME,
  2814. -#endif
  2815. - TITLEBAR_FONT,
  2816. - NUM_WORKSPACES,
  2817. - DYNAMIC_WORKSPACES,
  2818. - KEYBINDINGS,
  2819. - DISABLE_WORKAROUNDS,
  2820. - BUTTON_LAYOUT,
  2821. - WORKSPACE_NAMES,
  2822. - VISUAL_BELL,
  2823. - AUDIBLE_BELL,
  2824. - VISUAL_BELL_TYPE,
  2825. - GNOME_ACCESSIBILITY,
  2826. - GNOME_ANIMATIONS,
  2827. - CURSOR_THEME,
  2828. - CURSOR_SIZE,
  2829. - RESIZE_WITH_RIGHT_BUTTON,
  2830. - EDGE_TILING,
  2831. - FORCE_FULLSCREEN,
  2832. - WORKSPACES_ONLY_ON_PRIMARY,
  2833. - DRAGGABLE_BORDER_WIDTH,
  2834. - AUTO_MAXIMIZE,
  2835. - CENTER_NEW_WINDOWS,
  2836. - DRAG_THRESHOLD;
  2837. - [CCode (cheader_filename = "meta/main.h")]
  2838. - public static unowned string to_string (Meta.Preference pref);
  2839. - }
  2840. - [CCode (cheader_filename = "meta/screen.h", cprefix = "META_SCREEN_", type_id = "meta_screen_corner_get_type ()")]
  2841. - public enum ScreenCorner {
  2842. - TOPLEFT,
  2843. - TOPRIGHT,
  2844. - BOTTOMLEFT,
  2845. - BOTTOMRIGHT
  2846. - }
  2847. -#if HAS_MUTTER318
  2848. - [CCode (cheader_filename = "meta/meta-enum-types.h", cprefix = "META_SCREEN_", type_id = "meta_screen_direction_get_type ()")]
  2849. - public enum ScreenDirection {
  2850. - UP,
  2851. - DOWN,
  2852. - LEFT,
  2853. - RIGHT
  2854. - }
  2855. - [CCode (cheader_filename = "meta/meta-enum-types.h", cprefix = "META_SHADOW_MODE_", type_id = "meta_shadow_mode_get_type ()")]
  2856. - public enum ShadowMode {
  2857. - AUTO,
  2858. - FORCED_OFF,
  2859. - FORCED_ON
  2860. - }
  2861. -#endif
  2862. - [CCode (cheader_filename = "meta/common.h", cprefix = "META_SIDE_", type_id = "meta_side_get_type ()")]
  2863. - public enum Side {
  2864. - LEFT,
  2865. - RIGHT,
  2866. - TOP,
  2867. - BOTTOM
  2868. - }
  2869. -#if HAS_MUTTER318
  2870. - [CCode (cheader_filename = "meta/meta-enum-types.h", cprefix = "META_SIZE_CHANGE_", type_id = "meta_size_change_get_type ()")]
  2871. - public enum SizeChange {
  2872. - MAXIMIZE,
  2873. - UNMAXIMIZE,
  2874. - FULLSCREEN,
  2875. - UNFULLSCREEN
  2876. - }
  2877. -#endif
  2878. - [CCode (cheader_filename = "meta/common.h", cprefix = "META_LAYER_", type_id = "meta_stack_layer_get_type ()")]
  2879. - public enum StackLayer {
  2880. - DESKTOP,
  2881. - BOTTOM,
  2882. - NORMAL,
  2883. - TOP,
  2884. - DOCK,
  2885. - FULLSCREEN,
  2886. - FOCUSED_WINDOW,
  2887. - OVERRIDE_REDIRECT,
  2888. - LAST
  2889. - }
  2890. - [CCode (cheader_filename = "meta/display.h", cprefix = "META_TAB_LIST_", type_id = "meta_tab_list_get_type ()")]
  2891. - public enum TabList {
  2892. - NORMAL,
  2893. - DOCKS,
  2894. - GROUP,
  2895. - NORMAL_ALL
  2896. - }
  2897. - [CCode (cheader_filename = "meta/display.h", cprefix = "META_TAB_SHOW_", type_id = "meta_tab_show_type_get_type ()")]
  2898. - public enum TabShowType {
  2899. - ICON,
  2900. - INSTANTLY
  2901. - }
  2902. - [CCode (cheader_filename = "meta/common.h", cprefix = "META_VIRTUAL_", type_id = "meta_virtual_modifier_get_type ()")]
  2903. - [Flags]
  2904. - public enum VirtualModifier {
  2905. - SHIFT_MASK,
  2906. - CONTROL_MASK,
  2907. - ALT_MASK,
  2908. - META_MASK,
  2909. - SUPER_MASK,
  2910. - HYPER_MASK,
  2911. - MOD2_MASK,
  2912. - MOD3_MASK,
  2913. - MOD4_MASK,
  2914. - MOD5_MASK
  2915. - }
  2916. - [CCode (cheader_filename = "meta/window.h", cprefix = "META_WINDOW_CLIENT_TYPE_", type_id = "meta_window_client_type_get_type ()")]
  2917. - public enum WindowClientType {
  2918. - WAYLAND,
  2919. - X11
  2920. - }
  2921. - [CCode (cheader_filename = "meta/common.h", cprefix = "META_WINDOW_MENU_", type_id = "meta_window_menu_type_get_type ()")]
  2922. - public enum WindowMenuType {
  2923. - WM,
  2924. - APP
  2925. - }
  2926. - [CCode (cheader_filename = "meta/window.h", cprefix = "META_WINDOW_", type_id = "meta_window_type_get_type ()")]
  2927. - public enum WindowType {
  2928. - NORMAL,
  2929. - DESKTOP,
  2930. - DOCK,
  2931. - DIALOG,
  2932. - MODAL_DIALOG,
  2933. - TOOLBAR,
  2934. - MENU,
  2935. - UTILITY,
  2936. - SPLASHSCREEN,
  2937. - DROPDOWN_MENU,
  2938. - POPUP_MENU,
  2939. - TOOLTIP,
  2940. - NOTIFICATION,
  2941. - COMBO,
  2942. - DND,
  2943. - OVERRIDE_OTHER
  2944. - }
  2945. - [CCode (cheader_filename = "meta/meta-idle-monitor.h", instance_pos = 2.9)]
  2946. - public delegate void IdleMonitorWatchFunc (Meta.IdleMonitor monitor, uint watch_id);
  2947. - [CCode (cheader_filename = "meta/prefs.h", instance_pos = 5.9)]
  2948. - public delegate void KeyHandlerFunc (Meta.Display display, Meta.Screen screen, Meta.Window? window, Clutter.KeyEvent? event, Meta.KeyBinding binding);
  2949. - [CCode (cheader_filename = "meta/prefs.h", instance_pos = 1.9)]
  2950. - public delegate void PrefsChangedFunc (Meta.Preference pref);
  2951. - [CCode (cheader_filename = "meta/window.h", instance_pos = 1.9)]
  2952. - public delegate bool WindowForeachFunc (Meta.Window window);
  2953. - [CCode (cheader_filename = "meta/main.h", cname = "META_DEFAULT_ICON_NAME")]
  2954. - public const string DEFAULT_ICON_NAME;
  2955. - [CCode (cheader_filename = "meta/main.h", cname = "META_ICON_HEIGHT")]
  2956. - public const int ICON_HEIGHT;
  2957. - [CCode (cheader_filename = "meta/main.h", cname = "META_ICON_WIDTH")]
  2958. - public const int ICON_WIDTH;
  2959. - [CCode (cheader_filename = "meta/main.h", cname = "META_MAJOR_VERSION")]
  2960. - public const int MAJOR_VERSION;
  2961. - [CCode (cheader_filename = "meta/main.h", cname = "META_MICRO_VERSION")]
  2962. - public const int MICRO_VERSION;
  2963. - [CCode (cheader_filename = "meta/main.h", cname = "META_MINI_ICON_HEIGHT")]
  2964. - public const int MINI_ICON_HEIGHT;
  2965. - [CCode (cheader_filename = "meta/main.h", cname = "META_MINI_ICON_WIDTH")]
  2966. - public const int MINI_ICON_WIDTH;
  2967. - [CCode (cheader_filename = "meta/main.h", cname = "META_MINOR_VERSION")]
  2968. - public const int MINOR_VERSION;
  2969. - [CCode (cheader_filename = "meta/main.h", cname = "META_PLUGIN_API_VERSION")]
  2970. - public const int PLUGIN_API_VERSION;
  2971. - [CCode (cheader_filename = "meta/main.h", cname = "META_PRIORITY_BEFORE_REDRAW")]
  2972. - public const int PRIORITY_BEFORE_REDRAW;
  2973. - [CCode (cheader_filename = "meta/main.h", cname = "META_PRIORITY_PREFS_NOTIFY")]
  2974. - public const int PRIORITY_PREFS_NOTIFY;
  2975. - [CCode (cheader_filename = "meta/main.h", cname = "META_PRIORITY_REDRAW")]
  2976. - public const int PRIORITY_REDRAW;
  2977. - [CCode (cheader_filename = "meta/main.h", cname = "META_PRIORITY_RESIZE")]
  2978. - public const int PRIORITY_RESIZE;
  2979. - [CCode (cheader_filename = "meta/main.h", cname = "META_VIRTUAL_CORE_KEYBOARD_ID")]
  2980. - public const int VIRTUAL_CORE_KEYBOARD_ID;
  2981. - [CCode (cheader_filename = "meta/main.h", cname = "META_VIRTUAL_CORE_POINTER_ID")]
  2982. - public const int VIRTUAL_CORE_POINTER_ID;
  2983. - [CCode (cheader_filename = "meta/main.h")]
  2984. - public static bool activate_session ();
  2985. - [CCode (cheader_filename = "meta/main.h")]
  2986. - public static void clutter_init ();
  2987. - [CCode (cheader_filename = "meta/main.h")]
  2988. - public static void exit (Meta.ExitCode code);
  2989. - [CCode (cheader_filename = "meta/main.h")]
  2990. - public static unowned GLib.OptionContext get_option_context ();
  2991. - [CCode (cheader_filename = "meta/main.h")]
  2992. - public static bool get_replace_current_wm ();
  2993. - [CCode (cheader_filename = "meta/main.h")]
  2994. - public static void init ();
  2995. - [CCode (cheader_filename = "meta/main.h")]
  2996. - public static bool is_restart ();
  2997. - [CCode (cheader_filename = "meta/main.h")]
  2998. - public static void quit (Meta.ExitCode code);
  2999. - [CCode (cheader_filename = "meta/main.h")]
  3000. - public static void register_with_session ();
  3001. - [CCode (cheader_filename = "meta/main.h")]
  3002. - public static void restart (string message);
  3003. - [CCode (cheader_filename = "meta/main.h")]
  3004. - public static int run ();
  3005. - [CCode (cheader_filename = "meta/main.h")]
  3006. - public static void set_gnome_wm_keybindings (string wm_keybindings);
  3007. - [CCode (cheader_filename = "meta/main.h")]
  3008. - public static void set_wm_name (string wm_name);
  3009. -}
  3010. diff -Naur gala/vapi/Makefile.am gala-deepin/vapi/Makefile.am
  3011. --- gala/vapi/Makefile.am 2015-11-24 08:06:36.842420000 +0100
  3012. +++ gala-deepin/vapi/Makefile.am 2015-11-24 08:16:43.648990251 +0100
  3013. @@ -4,12 +4,12 @@
  3014. libbamf3.vapi \
  3015. gdesktopenums-3.0.vapi \
  3016. gnome-desktop-3.0.vapi \
  3017. - libmutter.vapi \
  3018. + libdeepin-mutter.vapi \
  3019. xfixes-4.0.vapi \
  3020. $(NULL)
  3021.  
  3022. DEPS = \
  3023. - libmutter.deps \
  3024. + libdeepin-mutter.deps \
  3025. gnome-desktop-3.0.deps \
  3026. $(NULL)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement