mirror of
https://github.com/elementary/gala.git
synced 2024-10-04 02:38:05 +03:00
Update bindings to latest Mutter
Update to mutter 42.beta
This commit is contained in:
parent
211ec47880
commit
cdcb87afcb
@ -155,9 +155,9 @@ if mutter41_dep.found()
|
|||||||
vala_flags = ['--define', 'HAS_MUTTER338', '--define', 'HAS_MUTTER40', '--define', 'HAS_MUTTER41']
|
vala_flags = ['--define', 'HAS_MUTTER338', '--define', 'HAS_MUTTER40', '--define', 'HAS_MUTTER41']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
mutter42_dep = dependency('libmutter-10', version: ['>= 42', '< 43'], required: false)
|
mutter42_dep = dependency('libmutter-10', version: ['>= 42.beta', '< 43'], required: false)
|
||||||
if mutter42_dep.found()
|
if mutter42_dep.found()
|
||||||
libmutter_dep = dependency('libmutter-10', version: '>= 42')
|
libmutter_dep = dependency('libmutter-10', version: '>= 42.beta')
|
||||||
mutter_dep = [
|
mutter_dep = [
|
||||||
libmutter_dep,
|
libmutter_dep,
|
||||||
dependency('mutter-cogl-10'), dependency('mutter-cogl-pango-10'),
|
dependency('mutter-cogl-10'), dependency('mutter-cogl-pango-10'),
|
||||||
|
@ -47,6 +47,9 @@ public class Gala.Plugins.PIP.PopupWindow : Clutter.Actor {
|
|||||||
|
|
||||||
private bool resizing = false;
|
private bool resizing = false;
|
||||||
private bool off_screen = false;
|
private bool off_screen = false;
|
||||||
|
#if HAS_MUTTER42
|
||||||
|
private Clutter.Grab? grab = null;
|
||||||
|
#endif
|
||||||
|
|
||||||
static unowned Meta.Window? previous_focus = null;
|
static unowned Meta.Window? previous_focus = null;
|
||||||
|
|
||||||
@ -219,7 +222,11 @@ public class Gala.Plugins.PIP.PopupWindow : Clutter.Actor {
|
|||||||
begin_resize_width = width;
|
begin_resize_width = width;
|
||||||
begin_resize_height = height;
|
begin_resize_height = height;
|
||||||
|
|
||||||
|
#if HAS_MUTTER42
|
||||||
|
grab = resize_button.get_stage ().grab (this);
|
||||||
|
#else
|
||||||
resize_button.get_stage ().set_motion_events_enabled (false);
|
resize_button.get_stage ().set_motion_events_enabled (false);
|
||||||
|
#endif
|
||||||
resize_button.get_stage ().captured_event.connect (on_resize_event);
|
resize_button.get_stage ().captured_event.connect (on_resize_event);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -274,7 +281,14 @@ public class Gala.Plugins.PIP.PopupWindow : Clutter.Actor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resize_button.get_stage ().captured_event.disconnect (on_resize_event);
|
resize_button.get_stage ().captured_event.disconnect (on_resize_event);
|
||||||
|
#if HAS_MUTTER42
|
||||||
|
if (grab != null) {
|
||||||
|
grab.dismiss ();
|
||||||
|
grab = null;
|
||||||
|
}
|
||||||
|
#else
|
||||||
resize_button.get_stage ().set_motion_events_enabled (true);
|
resize_button.get_stage ().set_motion_events_enabled (true);
|
||||||
|
#endif
|
||||||
|
|
||||||
resizing = false;
|
resizing = false;
|
||||||
|
|
||||||
|
@ -677,7 +677,9 @@ namespace Gala {
|
|||||||
var time = display.get_current_time ();
|
var time = display.get_current_time ();
|
||||||
|
|
||||||
update_input_area ();
|
update_input_area ();
|
||||||
|
#if !HAS_MUTTER42
|
||||||
begin_modal (0, time);
|
begin_modal (0, time);
|
||||||
|
#endif
|
||||||
|
|
||||||
display.disable_unredirect ();
|
display.disable_unredirect ();
|
||||||
|
|
||||||
@ -699,7 +701,9 @@ namespace Gala {
|
|||||||
update_input_area ();
|
update_input_area ();
|
||||||
|
|
||||||
unowned Meta.Display display = get_display ();
|
unowned Meta.Display display = get_display ();
|
||||||
|
#if !HAS_MUTTER42
|
||||||
end_modal (display.get_current_time ());
|
end_modal (display.get_current_time ());
|
||||||
|
#endif
|
||||||
|
|
||||||
display.enable_unredirect ();
|
display.enable_unredirect ();
|
||||||
}
|
}
|
||||||
|
@ -123,7 +123,6 @@ FrameClock.new skip
|
|||||||
StageView.layout skip
|
StageView.layout skip
|
||||||
|
|
||||||
Stage
|
Stage
|
||||||
.event name="emit_event"
|
|
||||||
.paint_view.redraw_clip type="Cairo.Region"
|
.paint_view.redraw_clip type="Cairo.Region"
|
||||||
|
|
||||||
Capture
|
Capture
|
||||||
|
@ -65,10 +65,10 @@ KeyHandlerFunc cheader_filename="meta/prefs.h"
|
|||||||
KeyHandlerFunc.event type="Clutter.KeyEvent?"
|
KeyHandlerFunc.event type="Clutter.KeyEvent?"
|
||||||
KeyHandlerFunc.window nullable
|
KeyHandlerFunc.window nullable
|
||||||
LaunchContext cheader_filename="meta/meta-launch-context.h"
|
LaunchContext cheader_filename="meta/meta-launch-context.h"
|
||||||
|
Laters cheader_filename="meta/types.h"
|
||||||
LaterType cheader_filename="meta/util.h"
|
LaterType cheader_filename="meta/util.h"
|
||||||
LocaleDirection cheader_filename="meta/util.h"
|
LocaleDirection cheader_filename="meta/util.h"
|
||||||
MaximizeFlags cheader_filename="meta/window.h"
|
MaximizeFlags cheader_filename="meta/window.h"
|
||||||
ModalOptions cheader_filename="meta/meta-plugin.h"
|
|
||||||
MonitorManager cheader_filename="meta/meta-monitor-manager.h"
|
MonitorManager cheader_filename="meta/meta-monitor-manager.h"
|
||||||
MonitorSwitchConfigType cheader_filename="meta/meta-monitor-manager.h"
|
MonitorSwitchConfigType cheader_filename="meta/meta-monitor-manager.h"
|
||||||
MotionDirection cheader_filename="meta/common.h"
|
MotionDirection cheader_filename="meta/common.h"
|
||||||
@ -123,6 +123,9 @@ WindowShape cheader_filename="meta/meta-window-shape.h"
|
|||||||
WindowType cheader_filename="meta/window.h"
|
WindowType cheader_filename="meta/window.h"
|
||||||
X11Display cheader_filename="meta/meta-x11-display.h"
|
X11Display cheader_filename="meta/meta-x11-display.h"
|
||||||
|
|
||||||
|
// As per https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2287
|
||||||
|
MonitorManager.monitor_privacy_screen_changed skip
|
||||||
|
|
||||||
rect skip
|
rect skip
|
||||||
prefs_* parent="Meta.Prefs" name="prefs_(.+)" cheader_filename="meta/prefs.h"
|
prefs_* parent="Meta.Prefs" name="prefs_(.+)" cheader_filename="meta/prefs.h"
|
||||||
|
|
||||||
@ -145,6 +148,11 @@ PRIORITY_PREFS_NOTIFY cheader_filename="meta/common.h"
|
|||||||
VIRTUAL_CORE_POINTER_ID cheader_filename="meta/common.h"
|
VIRTUAL_CORE_POINTER_ID cheader_filename="meta/common.h"
|
||||||
VIRTUAL_CORE_KEYBOARD_ID cheader_filename="meta/common.h"
|
VIRTUAL_CORE_KEYBOARD_ID cheader_filename="meta/common.h"
|
||||||
|
|
||||||
|
Display.window_visibility_updated
|
||||||
|
.object name="unplaced" type="GLib.List<unowned Meta.Window>"
|
||||||
|
.p0 name="should_show" type="GLib.List<unowned Meta.Window>"
|
||||||
|
.p1 name="should_hide" type="GLib.List<unowned Meta.Window>"
|
||||||
|
|
||||||
add_verbose_topic parent="Meta.Util" cheader_filename="meta/util.h"
|
add_verbose_topic parent="Meta.Util" cheader_filename="meta/util.h"
|
||||||
bug parent="Meta.Util" cheader_filename="meta/util.h"
|
bug parent="Meta.Util" cheader_filename="meta/util.h"
|
||||||
external_binding_name_for_action parent="Meta.Util" cheader_filename="meta/util.h"
|
external_binding_name_for_action parent="Meta.Util" cheader_filename="meta/util.h"
|
||||||
|
@ -316,6 +316,9 @@ namespace Meta {
|
|||||||
public void destroy ();
|
public void destroy ();
|
||||||
public bool filter_keybinding (Meta.KeyBinding binding);
|
public bool filter_keybinding (Meta.KeyBinding binding);
|
||||||
public void flash_display (Meta.Display display);
|
public void flash_display (Meta.Display display);
|
||||||
|
#if HAS_MUTTER42
|
||||||
|
public unowned Meta.Laters get_laters ();
|
||||||
|
#endif
|
||||||
public void hide_tile_preview ();
|
public void hide_tile_preview ();
|
||||||
public void hide_window (Meta.Window window, Meta.CompEffect effect);
|
public void hide_window (Meta.Window window, Meta.CompEffect effect);
|
||||||
public void manage ();
|
public void manage ();
|
||||||
@ -354,6 +357,10 @@ namespace Meta {
|
|||||||
public unowned Meta.Display get_display ();
|
public unowned Meta.Display get_display ();
|
||||||
public bool is_replacing ();
|
public bool is_replacing ();
|
||||||
public void notify_ready ();
|
public void notify_ready ();
|
||||||
|
#if HAS_MUTTER42
|
||||||
|
public bool raise_rlimit_nofile () throws GLib.Error;
|
||||||
|
public bool restore_rlimit_nofile () throws GLib.Error;
|
||||||
|
#endif
|
||||||
public bool run_main_loop () throws GLib.Error;
|
public bool run_main_loop () throws GLib.Error;
|
||||||
public void set_gnome_wm_keybindings (string wm_keybindings);
|
public void set_gnome_wm_keybindings (string wm_keybindings);
|
||||||
public void set_plugin_gtype (GLib.Type plugin_gtype);
|
public void set_plugin_gtype (GLib.Type plugin_gtype);
|
||||||
@ -511,6 +518,9 @@ namespace Meta {
|
|||||||
public signal void window_entered_monitor (int object, Meta.Window p0);
|
public signal void window_entered_monitor (int object, Meta.Window p0);
|
||||||
public signal void window_left_monitor (int object, Meta.Window p0);
|
public signal void window_left_monitor (int object, Meta.Window p0);
|
||||||
public signal void window_marked_urgent (Meta.Window object);
|
public signal void window_marked_urgent (Meta.Window object);
|
||||||
|
#if HAS_MUTTER42
|
||||||
|
public signal void window_visibility_updated ([CCode (type = "gpointer")] GLib.List<weak Meta.Window> unplaced, [CCode (type = "gpointer")] GLib.List<weak Meta.Window> should_show, [CCode (type = "gpointer")] GLib.List<weak Meta.Window> should_hide);
|
||||||
|
#endif
|
||||||
public signal void workareas_changed ();
|
public signal void workareas_changed ();
|
||||||
public signal void x11_display_closing ();
|
public signal void x11_display_closing ();
|
||||||
public signal void x11_display_opened ();
|
public signal void x11_display_opened ();
|
||||||
@ -562,6 +572,14 @@ namespace Meta {
|
|||||||
[CCode (cheader_filename = "meta/keybindings.h", cname = "meta_keybindings_set_custom_handler")]
|
[CCode (cheader_filename = "meta/keybindings.h", cname = "meta_keybindings_set_custom_handler")]
|
||||||
public static bool set_custom_handler (string name, owned Meta.KeyHandlerFunc? handler);
|
public static bool set_custom_handler (string name, owned Meta.KeyHandlerFunc? handler);
|
||||||
}
|
}
|
||||||
|
#if HAS_MUTTER42
|
||||||
|
[CCode (cheader_filename = "meta/types.h", has_type_id = false)]
|
||||||
|
[Compact]
|
||||||
|
public class Laters {
|
||||||
|
public uint add (Meta.LaterType when, owned GLib.SourceFunc func);
|
||||||
|
public void remove (uint later_id);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
[CCode (cheader_filename = "meta/meta-launch-context.h", type_id = "meta_launch_context_get_type ()")]
|
[CCode (cheader_filename = "meta/meta-launch-context.h", type_id = "meta_launch_context_get_type ()")]
|
||||||
public class LaunchContext : GLib.AppLaunchContext {
|
public class LaunchContext : GLib.AppLaunchContext {
|
||||||
[CCode (has_construct_function = false)]
|
[CCode (has_construct_function = false)]
|
||||||
@ -607,7 +625,9 @@ namespace Meta {
|
|||||||
public abstract class Plugin : GLib.Object {
|
public abstract class Plugin : GLib.Object {
|
||||||
[CCode (has_construct_function = false)]
|
[CCode (has_construct_function = false)]
|
||||||
protected Plugin ();
|
protected Plugin ();
|
||||||
|
#if !HAS_MUTTER42
|
||||||
public bool begin_modal (Meta.ModalOptions options, uint32 timestamp);
|
public bool begin_modal (Meta.ModalOptions options, uint32 timestamp);
|
||||||
|
#endif
|
||||||
public void complete_display_change (bool ok);
|
public void complete_display_change (bool ok);
|
||||||
[NoWrapper]
|
[NoWrapper]
|
||||||
public virtual void confirm_display_change ();
|
public virtual void confirm_display_change ();
|
||||||
@ -618,7 +638,9 @@ namespace Meta {
|
|||||||
[NoWrapper]
|
[NoWrapper]
|
||||||
public virtual void destroy (Meta.WindowActor actor);
|
public virtual void destroy (Meta.WindowActor actor);
|
||||||
public void destroy_completed (Meta.WindowActor actor);
|
public void destroy_completed (Meta.WindowActor actor);
|
||||||
|
#if !HAS_MUTTER42
|
||||||
public void end_modal (uint32 timestamp);
|
public void end_modal (uint32 timestamp);
|
||||||
|
#endif
|
||||||
public unowned Meta.Display get_display ();
|
public unowned Meta.Display get_display ();
|
||||||
public unowned Meta.PluginInfo? get_info ();
|
public unowned Meta.PluginInfo? get_info ();
|
||||||
[NoWrapper]
|
[NoWrapper]
|
||||||
@ -1394,7 +1416,9 @@ namespace Meta {
|
|||||||
public enum GrabOp {
|
public enum GrabOp {
|
||||||
NONE,
|
NONE,
|
||||||
WINDOW_BASE,
|
WINDOW_BASE,
|
||||||
|
#if !HAS_MUTTER42
|
||||||
COMPOSITOR,
|
COMPOSITOR,
|
||||||
|
#endif
|
||||||
WAYLAND_POPUP,
|
WAYLAND_POPUP,
|
||||||
FRAME_BUTTON,
|
FRAME_BUTTON,
|
||||||
MOVING,
|
MOVING,
|
||||||
@ -1568,12 +1592,14 @@ namespace Meta {
|
|||||||
VERTICAL,
|
VERTICAL,
|
||||||
BOTH
|
BOTH
|
||||||
}
|
}
|
||||||
|
#if !HAS_MUTTER42
|
||||||
[CCode (cheader_filename = "meta/meta-plugin.h", cprefix = "META_MODAL_", type_id = "meta_modal_options_get_type ()")]
|
[CCode (cheader_filename = "meta/meta-plugin.h", cprefix = "META_MODAL_", type_id = "meta_modal_options_get_type ()")]
|
||||||
[Flags]
|
[Flags]
|
||||||
public enum ModalOptions {
|
public enum ModalOptions {
|
||||||
POINTER_ALREADY_GRABBED,
|
POINTER_ALREADY_GRABBED,
|
||||||
KEYBOARD_ALREADY_GRABBED
|
KEYBOARD_ALREADY_GRABBED
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
[CCode (cheader_filename = "meta/meta-monitor-manager.h", cprefix = "META_MONITOR_SWITCH_CONFIG_", type_id = "meta_monitor_switch_config_type_get_type ()")]
|
[CCode (cheader_filename = "meta/meta-monitor-manager.h", cprefix = "META_MONITOR_SWITCH_CONFIG_", type_id = "meta_monitor_switch_config_type_get_type ()")]
|
||||||
public enum MonitorSwitchConfigType {
|
public enum MonitorSwitchConfigType {
|
||||||
ALL_MIRROR,
|
ALL_MIRROR,
|
||||||
|
@ -6312,6 +6312,16 @@ namespace Clutter {
|
|||||||
public virtual signal void gesture_end (Clutter.Actor actor);
|
public virtual signal void gesture_end (Clutter.Actor actor);
|
||||||
public virtual signal bool gesture_progress (Clutter.Actor actor);
|
public virtual signal bool gesture_progress (Clutter.Actor actor);
|
||||||
}
|
}
|
||||||
|
#if HAS_MUTTER42
|
||||||
|
[CCode (cheader_filename = "clutter/clutter.h", ref_function = "clutter_grab_ref", type_id = "clutter_grab_get_type ()", unref_function = "clutter_grab_unref")]
|
||||||
|
[Compact]
|
||||||
|
public class Grab {
|
||||||
|
public void dismiss ();
|
||||||
|
public Clutter.GrabState get_seat_state ();
|
||||||
|
public unowned Clutter.Grab @ref ();
|
||||||
|
public void unref ();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
[CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_grid_layout_get_type ()")]
|
[CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_grid_layout_get_type ()")]
|
||||||
[Version (since = "1.12")]
|
[Version (since = "1.12")]
|
||||||
public class GridLayout : Clutter.LayoutManager {
|
public class GridLayout : Clutter.LayoutManager {
|
||||||
@ -6421,8 +6431,10 @@ namespace Clutter {
|
|||||||
[Version (since = "1.6")]
|
[Version (since = "1.6")]
|
||||||
public bool get_enabled ();
|
public bool get_enabled ();
|
||||||
#endif
|
#endif
|
||||||
|
#if !HAS_MUTTER42
|
||||||
[Version (since = "1.10")]
|
[Version (since = "1.10")]
|
||||||
public unowned Clutter.Actor get_grabbed_actor ();
|
public unowned Clutter.Actor get_grabbed_actor ();
|
||||||
|
#endif
|
||||||
public virtual int get_group_n_modes (int group);
|
public virtual int get_group_n_modes (int group);
|
||||||
[Version (since = "1.6")]
|
[Version (since = "1.6")]
|
||||||
public bool get_has_cursor ();
|
public bool get_has_cursor ();
|
||||||
@ -6430,7 +6442,9 @@ namespace Clutter {
|
|||||||
[Version (since = "1.6")]
|
[Version (since = "1.6")]
|
||||||
public bool get_key (uint index_, out uint keyval, out Clutter.ModifierType modifiers);
|
public bool get_key (uint index_, out uint keyval, out Clutter.ModifierType modifiers);
|
||||||
public Clutter.InputDeviceMapping get_mapping_mode ();
|
public Clutter.InputDeviceMapping get_mapping_mode ();
|
||||||
|
#endif
|
||||||
public int get_mode_switch_button_group (uint button);
|
public int get_mode_switch_button_group (uint button);
|
||||||
|
#if !HAS_MUTTER40
|
||||||
[Version (since = "1.16")]
|
[Version (since = "1.16")]
|
||||||
public Clutter.ModifierType get_modifier_state ();
|
public Clutter.ModifierType get_modifier_state ();
|
||||||
#endif
|
#endif
|
||||||
@ -6479,12 +6493,14 @@ namespace Clutter {
|
|||||||
[Version (since = "1.10")]
|
[Version (since = "1.10")]
|
||||||
public virtual bool keycode_to_evdev (uint hardware_keycode, uint evdev_keycode);
|
public virtual bool keycode_to_evdev (uint hardware_keycode, uint evdev_keycode);
|
||||||
#endif
|
#endif
|
||||||
|
#if !HAS_MUTTER42
|
||||||
[Version (since = "1.12")]
|
[Version (since = "1.12")]
|
||||||
public unowned Clutter.Actor sequence_get_grabbed_actor (Clutter.EventSequence sequence);
|
public unowned Clutter.Actor sequence_get_grabbed_actor (Clutter.EventSequence sequence);
|
||||||
[Version (since = "1.12")]
|
[Version (since = "1.12")]
|
||||||
public void sequence_grab (Clutter.EventSequence sequence, Clutter.Actor actor);
|
public void sequence_grab (Clutter.EventSequence sequence, Clutter.Actor actor);
|
||||||
[Version (since = "1.12")]
|
[Version (since = "1.12")]
|
||||||
public void sequence_ungrab (Clutter.EventSequence sequence);
|
public void sequence_ungrab (Clutter.EventSequence sequence);
|
||||||
|
#endif
|
||||||
#if !HAS_MUTTER40
|
#if !HAS_MUTTER40
|
||||||
[Version (since = "1.6")]
|
[Version (since = "1.6")]
|
||||||
public void set_enabled (bool enabled);
|
public void set_enabled (bool enabled);
|
||||||
@ -6492,8 +6508,10 @@ namespace Clutter {
|
|||||||
public void set_key (uint index_, uint keyval, Clutter.ModifierType modifiers);
|
public void set_key (uint index_, uint keyval, Clutter.ModifierType modifiers);
|
||||||
public void set_mapping_mode (Clutter.InputDeviceMapping mapping);
|
public void set_mapping_mode (Clutter.InputDeviceMapping mapping);
|
||||||
#endif
|
#endif
|
||||||
|
#if !HAS_MUTTER42
|
||||||
[Version (since = "1.10")]
|
[Version (since = "1.10")]
|
||||||
public void ungrab ();
|
public void ungrab ();
|
||||||
|
#endif
|
||||||
#if !HAS_MUTTER40
|
#if !HAS_MUTTER40
|
||||||
[Version (since = "1.2")]
|
[Version (since = "1.2")]
|
||||||
public void update_from_event (Clutter.Event event, bool update_stage);
|
public void update_from_event (Clutter.Event event, bool update_stage);
|
||||||
@ -7185,6 +7203,10 @@ namespace Clutter {
|
|||||||
public virtual Clutter.VirtualDeviceType get_supported_virtual_device_types ();
|
public virtual Clutter.VirtualDeviceType get_supported_virtual_device_types ();
|
||||||
#endif
|
#endif
|
||||||
public bool get_touch_mode ();
|
public bool get_touch_mode ();
|
||||||
|
#if HAS_MUTTER42
|
||||||
|
[NoWrapper]
|
||||||
|
public virtual Clutter.GrabState grab (uint32 time);
|
||||||
|
#endif
|
||||||
#if HAS_MUTTER40
|
#if HAS_MUTTER40
|
||||||
public virtual bool handle_event_post (Clutter.Event event);
|
public virtual bool handle_event_post (Clutter.Event event);
|
||||||
#elif HAS_MUTTER338
|
#elif HAS_MUTTER338
|
||||||
@ -7204,6 +7226,10 @@ namespace Clutter {
|
|||||||
#endif
|
#endif
|
||||||
public void set_pointer_a11y_dwell_click_type (Clutter.PointerA11yDwellClickType click_type);
|
public void set_pointer_a11y_dwell_click_type (Clutter.PointerA11yDwellClickType click_type);
|
||||||
public void set_pointer_a11y_settings (Clutter.PointerA11ySettings settings);
|
public void set_pointer_a11y_settings (Clutter.PointerA11ySettings settings);
|
||||||
|
#if HAS_MUTTER42
|
||||||
|
[NoWrapper]
|
||||||
|
public virtual void ungrab (uint32 time);
|
||||||
|
#endif
|
||||||
public void uninhibit_unfocus ();
|
public void uninhibit_unfocus ();
|
||||||
public virtual void warp_pointer (int x, int y);
|
public virtual void warp_pointer (int x, int y);
|
||||||
#if !HAS_MUTTER42
|
#if !HAS_MUTTER42
|
||||||
@ -7327,7 +7353,9 @@ namespace Clutter {
|
|||||||
public bool capture (bool paint, Cairo.RectangleInt rect, [CCode (array_length_cname = "out_n_captures", array_length_pos = 3.1)] out Clutter.Capture[] out_captures);
|
public bool capture (bool paint, Cairo.RectangleInt rect, [CCode (array_length_cname = "out_n_captures", array_length_pos = 3.1)] out Clutter.Capture[] out_captures);
|
||||||
#endif
|
#endif
|
||||||
#if HAS_MUTTER40
|
#if HAS_MUTTER40
|
||||||
|
#if !HAS_MUTTER42
|
||||||
public void capture_into (Cairo.RectangleInt rect, float scale, uint8 data, int stride);
|
public void capture_into (Cairo.RectangleInt rect, float scale, uint8 data, int stride);
|
||||||
|
#endif
|
||||||
public void capture_view_into (Clutter.StageView view, Cairo.RectangleInt rect, uint8 data, int stride);
|
public void capture_view_into (Clutter.StageView view, Cairo.RectangleInt rect, uint8 data, int stride);
|
||||||
#else
|
#else
|
||||||
public void capture_into (bool paint, Cairo.RectangleInt rect, uint8 data);
|
public void capture_into (bool paint, Cairo.RectangleInt rect, uint8 data);
|
||||||
@ -7365,12 +7393,15 @@ namespace Clutter {
|
|||||||
public int64 get_frame_counter ();
|
public int64 get_frame_counter ();
|
||||||
[Version (since = "0.6")]
|
[Version (since = "0.6")]
|
||||||
public unowned Clutter.Actor get_key_focus ();
|
public unowned Clutter.Actor get_key_focus ();
|
||||||
|
#if HAS_MUTTER42
|
||||||
|
public unowned Clutter.Actor get_grab_actor ();
|
||||||
|
#endif
|
||||||
#if !HAS_MUTTER42
|
#if !HAS_MUTTER42
|
||||||
[Version (since = "1.2")]
|
[Version (since = "1.2")]
|
||||||
public void get_minimum_size (out uint width, out uint height);
|
public void get_minimum_size (out uint width, out uint height);
|
||||||
#endif
|
|
||||||
[Version (since = "1.8")]
|
[Version (since = "1.8")]
|
||||||
public bool get_motion_events_enabled ();
|
public bool get_motion_events_enabled ();
|
||||||
|
#endif
|
||||||
public Clutter.Perspective get_perspective ();
|
public Clutter.Perspective get_perspective ();
|
||||||
#if !HAS_MUTTER338
|
#if !HAS_MUTTER338
|
||||||
[Version (since = "1.8")]
|
[Version (since = "1.8")]
|
||||||
@ -7380,8 +7411,13 @@ namespace Clutter {
|
|||||||
public bool get_throttle_motion_events ();
|
public bool get_throttle_motion_events ();
|
||||||
[Version (since = "0.4")]
|
[Version (since = "0.4")]
|
||||||
public unowned string get_title ();
|
public unowned string get_title ();
|
||||||
|
#if HAS_MUTTER42
|
||||||
|
public unowned Clutter.Grab grab (Clutter.Actor actor);
|
||||||
|
#endif
|
||||||
|
#if !HAS_MUTTER42
|
||||||
[Version (since = "1.2")]
|
[Version (since = "1.2")]
|
||||||
public bool get_use_alpha ();
|
public bool get_use_alpha ();
|
||||||
|
#endif
|
||||||
#if HAS_MUTTER338
|
#if HAS_MUTTER338
|
||||||
public bool paint_to_buffer (Cairo.RectangleInt rect, float scale, [CCode (array_length = false)] uint8[] data, int stride, Cogl.PixelFormat format, Clutter.PaintFlag paint_flags) throws GLib.Error;
|
public bool paint_to_buffer (Cairo.RectangleInt rect, float scale, [CCode (array_length = false)] uint8[] data, int stride, Cogl.PixelFormat format, Clutter.PaintFlag paint_flags) throws GLib.Error;
|
||||||
#if HAS_MUTTER42
|
#if HAS_MUTTER42
|
||||||
@ -7414,8 +7450,10 @@ namespace Clutter {
|
|||||||
public void set_key_focus (Clutter.Actor? actor);
|
public void set_key_focus (Clutter.Actor? actor);
|
||||||
[Version (since = "1.2")]
|
[Version (since = "1.2")]
|
||||||
public void set_minimum_size (uint width, uint height);
|
public void set_minimum_size (uint width, uint height);
|
||||||
|
#if !HAS_MUTTER42
|
||||||
[Version (since = "1.8")]
|
[Version (since = "1.8")]
|
||||||
public void set_motion_events_enabled (bool enabled);
|
public void set_motion_events_enabled (bool enabled);
|
||||||
|
#endif
|
||||||
#if !HAS_MUTTER338
|
#if !HAS_MUTTER338
|
||||||
public void set_perspective (Clutter.Perspective perspective);
|
public void set_perspective (Clutter.Perspective perspective);
|
||||||
#endif
|
#endif
|
||||||
@ -7423,8 +7461,10 @@ namespace Clutter {
|
|||||||
public void set_throttle_motion_events (bool throttle);
|
public void set_throttle_motion_events (bool throttle);
|
||||||
[Version (since = "0.4")]
|
[Version (since = "0.4")]
|
||||||
public void set_title (string title);
|
public void set_title (string title);
|
||||||
|
#if !HAS_MUTTER42
|
||||||
[Version (since = "1.2")]
|
[Version (since = "1.2")]
|
||||||
public void set_use_alpha (bool use_alpha);
|
public void set_use_alpha (bool use_alpha);
|
||||||
|
#endif
|
||||||
#if HAS_MUTTER42
|
#if HAS_MUTTER42
|
||||||
public void update_device (Clutter.InputDevice device, Clutter.EventSequence sequence, Graphene.Point point, uint32 time, Clutter.Actor new_actor, Cairo.Region region, bool emit_crossing);
|
public void update_device (Clutter.InputDevice device, Clutter.EventSequence sequence, Graphene.Point point, uint32 time, Clutter.Actor new_actor, Cairo.Region region, bool emit_crossing);
|
||||||
#elif HAS_MUTTER40
|
#elif HAS_MUTTER40
|
||||||
@ -8064,6 +8104,9 @@ namespace Clutter {
|
|||||||
[CCode (has_construct_function = false)]
|
[CCode (has_construct_function = false)]
|
||||||
protected VirtualInputDevice ();
|
protected VirtualInputDevice ();
|
||||||
public int get_device_type ();
|
public int get_device_type ();
|
||||||
|
#if HAS_MUTTER42
|
||||||
|
public unowned Clutter.Seat get_seat ();
|
||||||
|
#endif
|
||||||
public virtual void notify_absolute_motion (uint64 time_us, double x, double y);
|
public virtual void notify_absolute_motion (uint64 time_us, double x, double y);
|
||||||
public virtual void notify_button (uint64 time_us, uint32 button, Clutter.ButtonState button_state);
|
public virtual void notify_button (uint64 time_us, uint32 button, Clutter.ButtonState button_state);
|
||||||
public virtual void notify_discrete_scroll (uint64 time_us, Clutter.ScrollDirection direction, Clutter.ScrollSource scroll_source);
|
public virtual void notify_discrete_scroll (uint64 time_us, Clutter.ScrollDirection direction, Clutter.ScrollSource scroll_source);
|
||||||
@ -8075,8 +8118,12 @@ namespace Clutter {
|
|||||||
public virtual void notify_touch_motion (uint64 time_us, int slot, double x, double y);
|
public virtual void notify_touch_motion (uint64 time_us, int slot, double x, double y);
|
||||||
public virtual void notify_touch_up (uint64 time_us, int slot);
|
public virtual void notify_touch_up (uint64 time_us, int slot);
|
||||||
public Clutter.InputDeviceType device_type { get; construct; }
|
public Clutter.InputDeviceType device_type { get; construct; }
|
||||||
|
#if HAS_MUTTER42
|
||||||
|
public Clutter.Seat seat { get; construct; }
|
||||||
|
#else
|
||||||
[NoAccessorMethod]
|
[NoAccessorMethod]
|
||||||
public Clutter.Seat seat { owned get; construct; }
|
public Clutter.Seat seat { owned get; construct; }
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
[CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_zoom_action_get_type ()")]
|
[CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_zoom_action_get_type ()")]
|
||||||
[Version (since = "1.12")]
|
[Version (since = "1.12")]
|
||||||
@ -8649,6 +8696,9 @@ namespace Clutter {
|
|||||||
FLAG_INPUT_METHOD,
|
FLAG_INPUT_METHOD,
|
||||||
#if HAS_MUTTER40
|
#if HAS_MUTTER40
|
||||||
FLAG_RELATIVE_MOTION,
|
FLAG_RELATIVE_MOTION,
|
||||||
|
#endif
|
||||||
|
#if HAS_MUTTER42
|
||||||
|
FLAG_GRAB_NOTIFY,
|
||||||
#endif
|
#endif
|
||||||
FLAG_REPEATED
|
FLAG_REPEATED
|
||||||
}
|
}
|
||||||
@ -8747,6 +8797,16 @@ namespace Clutter {
|
|||||||
AFTER,
|
AFTER,
|
||||||
BEFORE
|
BEFORE
|
||||||
}
|
}
|
||||||
|
#if HAS_MUTTER42
|
||||||
|
[CCode (cheader_filename = "clutter/clutter.h", cprefix = "CLUTTER_GRAB_STATE_", type_id = "clutter_grab_state_get_type ()")]
|
||||||
|
[Flags]
|
||||||
|
public enum GrabState {
|
||||||
|
NONE,
|
||||||
|
POINTER,
|
||||||
|
KEYBOARD,
|
||||||
|
ALL
|
||||||
|
}
|
||||||
|
#endif
|
||||||
[CCode (cheader_filename = "clutter/clutter.h", cprefix = "CLUTTER_GRAVITY_", type_id = "clutter_gravity_get_type ()")]
|
[CCode (cheader_filename = "clutter/clutter.h", cprefix = "CLUTTER_GRAVITY_", type_id = "clutter_gravity_get_type ()")]
|
||||||
[Version (deprecated = true, deprecated_since = "1.22", since = "0.2")]
|
[Version (deprecated = true, deprecated_since = "1.22", since = "0.2")]
|
||||||
public enum Gravity {
|
public enum Gravity {
|
||||||
@ -9300,13 +9360,13 @@ namespace Clutter {
|
|||||||
BOTH
|
BOTH
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
[CCode (cheader_filename = "clutter/clutter.h", cprefix = "CLUTTER_IMAGE_ERROR_INVALID_")]
|
[CCode (cheader_filename = "clutter/clutter.h", cprefix = "CLUTTER_IMAGE_ERROR_INVALID_", type_id = "clutter_image_error_get_type ()")]
|
||||||
[Version (since = "1.10")]
|
[Version (since = "1.10")]
|
||||||
public errordomain ImageError {
|
public errordomain ImageError {
|
||||||
DATA;
|
DATA;
|
||||||
public static GLib.Quark quark ();
|
public static GLib.Quark quark ();
|
||||||
}
|
}
|
||||||
[CCode (cheader_filename = "clutter/clutter.h", cprefix = "CLUTTER_SCRIPT_ERROR_INVALID_")]
|
[CCode (cheader_filename = "clutter/clutter.h", cprefix = "CLUTTER_SCRIPT_ERROR_INVALID_", type_id = "clutter_script_error_get_type ()")]
|
||||||
[Version (since = "0.6")]
|
[Version (since = "0.6")]
|
||||||
public errordomain ScriptError {
|
public errordomain ScriptError {
|
||||||
TYPE_FUNCTION,
|
TYPE_FUNCTION,
|
||||||
@ -9360,8 +9420,10 @@ namespace Clutter {
|
|||||||
[CCode (cheader_filename = "clutter/clutter.h", cname = "CLUTTER_PRIORITY_REDRAW")]
|
[CCode (cheader_filename = "clutter/clutter.h", cname = "CLUTTER_PRIORITY_REDRAW")]
|
||||||
[Version (since = "0.8")]
|
[Version (since = "0.8")]
|
||||||
public const int PRIORITY_REDRAW;
|
public const int PRIORITY_REDRAW;
|
||||||
|
#if !HAS_MUTTER42
|
||||||
[CCode (cheader_filename = "clutter/clutter.h")]
|
[CCode (cheader_filename = "clutter/clutter.h")]
|
||||||
public static void base_init ();
|
public static void base_init ();
|
||||||
|
#endif
|
||||||
[CCode (cheader_filename = "clutter/clutter.h")]
|
[CCode (cheader_filename = "clutter/clutter.h")]
|
||||||
[Version (since = "1.12")]
|
[Version (since = "1.12")]
|
||||||
public static void cairo_clear (Cairo.Context cr);
|
public static void cairo_clear (Cairo.Context cr);
|
||||||
@ -9402,9 +9464,11 @@ namespace Clutter {
|
|||||||
[CCode (cheader_filename = "clutter/clutter.h")]
|
[CCode (cheader_filename = "clutter/clutter.h")]
|
||||||
[Version (since = "0.4")]
|
[Version (since = "0.4")]
|
||||||
public static unowned Clutter.Backend get_default_backend ();
|
public static unowned Clutter.Backend get_default_backend ();
|
||||||
|
#if !HAS_MUTTER42
|
||||||
[CCode (cheader_filename = "clutter/clutter.h")]
|
[CCode (cheader_filename = "clutter/clutter.h")]
|
||||||
[Version (since = "0.6")]
|
[Version (since = "0.6")]
|
||||||
public static uint get_default_frame_rate ();
|
public static uint get_default_frame_rate ();
|
||||||
|
#endif
|
||||||
[CCode (cheader_filename = "clutter/clutter.h")]
|
[CCode (cheader_filename = "clutter/clutter.h")]
|
||||||
[Version (since = "1.2")]
|
[Version (since = "1.2")]
|
||||||
public static Clutter.TextDirection get_default_text_direction ();
|
public static Clutter.TextDirection get_default_text_direction ();
|
||||||
@ -9441,8 +9505,10 @@ namespace Clutter {
|
|||||||
[CCode (cheader_filename = "clutter/clutter.h")]
|
[CCode (cheader_filename = "clutter/clutter.h")]
|
||||||
public static void main_quit ();
|
public static void main_quit ();
|
||||||
#endif
|
#endif
|
||||||
|
#if !HAS_MUTTER42
|
||||||
[CCode (cheader_filename = "clutter/clutter.h")]
|
[CCode (cheader_filename = "clutter/clutter.h")]
|
||||||
public static void set_custom_backend_func (void* func);
|
public static void set_custom_backend_func (void* func);
|
||||||
|
#endif
|
||||||
[CCode (cheader_filename = "clutter/clutter.h")]
|
[CCode (cheader_filename = "clutter/clutter.h")]
|
||||||
[Version (since = "1.10")]
|
[Version (since = "1.10")]
|
||||||
public static uint unicode_to_keysym (uint32 wc);
|
public static uint unicode_to_keysym (uint32 wc);
|
||||||
|
@ -1136,8 +1136,6 @@ namespace Cogl {
|
|||||||
#if HAS_MUTTER42
|
#if HAS_MUTTER42
|
||||||
[CCode (cname = "COGL_FEATURE_ID_TIMESTAMP_QUERY")]
|
[CCode (cname = "COGL_FEATURE_ID_TIMESTAMP_QUERY")]
|
||||||
OGL_FEATURE_ID_TIMESTAMP_QUERY,
|
OGL_FEATURE_ID_TIMESTAMP_QUERY,
|
||||||
[CCode (cname = "COGL_FEATURE_ID_GET_GPU_TIME")]
|
|
||||||
OGL_FEATURE_ID_GET_GPU_TIME,
|
|
||||||
#endif
|
#endif
|
||||||
[CCode (cname = "COGL_FEATURE_ID_TEXTURE_EGL_IMAGE_EXTERNAL")]
|
[CCode (cname = "COGL_FEATURE_ID_TEXTURE_EGL_IMAGE_EXTERNAL")]
|
||||||
OGL_FEATURE_ID_TEXTURE_EGL_IMAGE_EXTERNAL
|
OGL_FEATURE_ID_TEXTURE_EGL_IMAGE_EXTERNAL
|
||||||
@ -1369,7 +1367,7 @@ namespace Cogl {
|
|||||||
SYNC_AND_COMPLETE_EVENT,
|
SYNC_AND_COMPLETE_EVENT,
|
||||||
N_FEATURES
|
N_FEATURES
|
||||||
}
|
}
|
||||||
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_BITMAP_ERROR_")]
|
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_BITMAP_ERROR_", has_type_id = false)]
|
||||||
[Version (since = "1.4")]
|
[Version (since = "1.4")]
|
||||||
public errordomain BitmapError {
|
public errordomain BitmapError {
|
||||||
FAILED,
|
FAILED,
|
||||||
@ -1377,7 +1375,7 @@ namespace Cogl {
|
|||||||
CORRUPT_IMAGE;
|
CORRUPT_IMAGE;
|
||||||
public static uint32 quark ();
|
public static uint32 quark ();
|
||||||
}
|
}
|
||||||
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_BLEND_STRING_ERROR_")]
|
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_BLEND_STRING_ERROR_", has_type_id = false)]
|
||||||
[Version (since = "1.0")]
|
[Version (since = "1.0")]
|
||||||
public errordomain BlendStringError {
|
public errordomain BlendStringError {
|
||||||
PARSE_ERROR,
|
PARSE_ERROR,
|
||||||
@ -1387,13 +1385,18 @@ namespace Cogl {
|
|||||||
[CCode (cheader_filename = "cogl/cogl.h")]
|
[CCode (cheader_filename = "cogl/cogl.h")]
|
||||||
public static uint32 quark ();
|
public static uint32 quark ();
|
||||||
}
|
}
|
||||||
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_FRAMEBUFFER_ERROR_")]
|
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_FRAMEBUFFER_ERROR_", has_type_id = false)]
|
||||||
public errordomain FramebufferError {
|
public errordomain FramebufferError {
|
||||||
[CCode (cname = "COGL_FRAMEBUFFER_ERROR_ALLOCATE")]
|
[CCode (cname = "COGL_FRAMEBUFFER_ERROR_ALLOCATE")]
|
||||||
FRAMEBUFFER_ERROR_ALLOCATE
|
FRAMEBUFFER_ERROR_ALLOCATE
|
||||||
}
|
}
|
||||||
|
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_RENDERER_ERROR_", has_type_id = false)]
|
||||||
|
public errordomain RendererError {
|
||||||
|
XLIB_DISPLAY_OPEN,
|
||||||
|
BAD_CONSTRAINT
|
||||||
|
}
|
||||||
#if HAS_MUTTER40
|
#if HAS_MUTTER40
|
||||||
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_SCANOUT_ERROR_")]
|
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_SCANOUT_ERROR_", has_type_id = false)]
|
||||||
public errordomain ScanoutError {
|
public errordomain ScanoutError {
|
||||||
[CCode (cname = "COGL_SCANOUT_ERROR_INHIBITED")]
|
[CCode (cname = "COGL_SCANOUT_ERROR_INHIBITED")]
|
||||||
SCANOUT_ERROR_INHIBITED;
|
SCANOUT_ERROR_INHIBITED;
|
||||||
@ -1401,18 +1404,13 @@ namespace Cogl {
|
|||||||
public static GLib.Quark quark ();
|
public static GLib.Quark quark ();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_RENDERER_ERROR_")]
|
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_SYSTEM_ERROR_", has_type_id = false)]
|
||||||
public errordomain RendererError {
|
|
||||||
XLIB_DISPLAY_OPEN,
|
|
||||||
BAD_CONSTRAINT
|
|
||||||
}
|
|
||||||
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_SYSTEM_ERROR_")]
|
|
||||||
[Version (since = "1.4")]
|
[Version (since = "1.4")]
|
||||||
public errordomain SystemError {
|
public errordomain SystemError {
|
||||||
UNSUPPORTED,
|
UNSUPPORTED,
|
||||||
NO_MEMORY
|
NO_MEMORY
|
||||||
}
|
}
|
||||||
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_TEXTURE_ERROR_")]
|
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_TEXTURE_ERROR_", has_type_id = false)]
|
||||||
[Version (since = "1.8")]
|
[Version (since = "1.8")]
|
||||||
public errordomain TextureError {
|
public errordomain TextureError {
|
||||||
SIZE,
|
SIZE,
|
||||||
@ -1464,7 +1462,7 @@ namespace Cogl {
|
|||||||
[CCode (cheader_filename = "cogl/cogl.h", cname = "COGL_TEXTURE_MAX_WASTE")]
|
[CCode (cheader_filename = "cogl/cogl.h", cname = "COGL_TEXTURE_MAX_WASTE")]
|
||||||
public const int TEXTURE_MAX_WASTE;
|
public const int TEXTURE_MAX_WASTE;
|
||||||
[CCode (cheader_filename = "cogl/cogl.h")]
|
[CCode (cheader_filename = "cogl/cogl.h")]
|
||||||
public static bool blit_framebuffer (Cogl.Framebuffer src, Cogl.Framebuffer dest, int src_x, int src_y, int dst_x, int dst_y, int width, int height) throws GLib.Error;
|
public static bool blit_framebuffer (Cogl.Framebuffer framebuffer, Cogl.Framebuffer dst, int src_x, int src_y, int dst_x, int dst_y, int width, int height) throws GLib.Error;
|
||||||
[CCode (cheader_filename = "cogl/cogl.h")]
|
[CCode (cheader_filename = "cogl/cogl.h")]
|
||||||
public static bool clutter_winsys_has_feature_CLUTTER (Cogl.WinsysFeature feature);
|
public static bool clutter_winsys_has_feature_CLUTTER (Cogl.WinsysFeature feature);
|
||||||
#if !HAS_MUTTER40
|
#if !HAS_MUTTER40
|
||||||
|
Loading…
Reference in New Issue
Block a user