mirror of
https://github.com/elementary/gala.git
synced 2024-10-05 19:27:25 +03:00
Bump Mutter to 3.36
This commit is contained in:
parent
f89686af61
commit
c74298b49c
@ -361,28 +361,18 @@ namespace Gala {
|
||||
* @return The close button actor
|
||||
*/
|
||||
public static Clutter.Actor create_close_button () {
|
||||
#if HAS_MUTTER336
|
||||
var texture = new Clutter.Actor ();
|
||||
#else
|
||||
var texture = new Clutter.Texture ();
|
||||
#endif
|
||||
var pixbuf = get_close_button_pixbuf ();
|
||||
|
||||
texture.reactive = true;
|
||||
|
||||
if (pixbuf != null) {
|
||||
try {
|
||||
#if HAS_MUTTER336
|
||||
var image = new Clutter.Image ();
|
||||
Cogl.PixelFormat pixel_format = (pixbuf.get_has_alpha () ? Cogl.PixelFormat.RGBA_8888 : Cogl.PixelFormat.RGB_888);
|
||||
image.set_data (pixbuf.get_pixels (), pixel_format, pixbuf.width, pixbuf.height, pixbuf.rowstride);
|
||||
texture.set_content (image);
|
||||
texture.set_size (pixbuf.width, pixbuf.height);
|
||||
#else
|
||||
texture.set_from_rgb_data (pixbuf.get_pixels (), pixbuf.get_has_alpha (),
|
||||
pixbuf.get_width (), pixbuf.get_height (),
|
||||
pixbuf.get_rowstride (), (pixbuf.get_has_alpha () ? 4 : 3), 0);
|
||||
#endif
|
||||
} catch (Error e) {}
|
||||
} else {
|
||||
// we'll just make this red so there's at least something as an
|
||||
@ -426,28 +416,18 @@ namespace Gala {
|
||||
* @return The resize button actor
|
||||
*/
|
||||
public static Clutter.Actor create_resize_button () {
|
||||
#if HAS_MUTTER336
|
||||
var texture = new Clutter.Actor ();
|
||||
#else
|
||||
var texture = new Clutter.Texture ();
|
||||
#endif
|
||||
var pixbuf = get_resize_button_pixbuf ();
|
||||
|
||||
texture.reactive = true;
|
||||
|
||||
if (pixbuf != null) {
|
||||
try {
|
||||
#if HAS_MUTTER336
|
||||
var image = new Clutter.Image ();
|
||||
Cogl.PixelFormat pixel_format = (pixbuf.get_has_alpha () ? Cogl.PixelFormat.RGBA_8888 : Cogl.PixelFormat.RGB_888);
|
||||
image.set_data (pixbuf.get_pixels (), pixel_format, pixbuf.width, pixbuf.height, pixbuf.rowstride);
|
||||
texture.set_content (image);
|
||||
texture.set_size (pixbuf.width, pixbuf.height);
|
||||
#else
|
||||
texture.set_from_rgb_data (pixbuf.get_pixels (), pixbuf.get_has_alpha (),
|
||||
pixbuf.get_width (), pixbuf.get_height (),
|
||||
pixbuf.get_rowstride (), (pixbuf.get_has_alpha () ? 4 : 3), 0);
|
||||
#endif
|
||||
} catch (Error e) {}
|
||||
} else {
|
||||
// we'll just make this red so there's at least something as an
|
||||
|
@ -21,11 +21,7 @@ namespace Gala {
|
||||
* This is recommended way to grab an icon for a window as this method will make
|
||||
* sure the icon is updated if it becomes available at a later point.
|
||||
*/
|
||||
#if HAS_MUTTER336
|
||||
public class WindowIcon : Clutter.Actor {
|
||||
#else
|
||||
public class WindowIcon : Clutter.Texture {
|
||||
#endif
|
||||
public Meta.Window window { get; construct; }
|
||||
public int icon_size { get; construct; }
|
||||
public int scale { get; construct; }
|
||||
@ -77,16 +73,10 @@ namespace Gala {
|
||||
void update_texture (bool initial) {
|
||||
var pixbuf = Gala.Utils.get_icon_for_window (window, icon_size, scale);
|
||||
try {
|
||||
#if HAS_MUTTER336
|
||||
var image = new Clutter.Image ();
|
||||
Cogl.PixelFormat pixel_format = (pixbuf.get_has_alpha () ? Cogl.PixelFormat.RGBA_8888 : Cogl.PixelFormat.RGB_888);
|
||||
image.set_data (pixbuf.get_pixels (), pixel_format, pixbuf.width, pixbuf.height, pixbuf.rowstride);
|
||||
set_content (image);
|
||||
#else
|
||||
set_from_rgb_data (pixbuf.get_pixels (), pixbuf.get_has_alpha (),
|
||||
pixbuf.get_width (), pixbuf.get_height (),
|
||||
pixbuf.get_rowstride (), (pixbuf.get_has_alpha () ? 4 : 3), 0);
|
||||
#endif
|
||||
} catch (Error e) {}
|
||||
}
|
||||
|
||||
|
17
meson.build
17
meson.build
@ -98,19 +98,6 @@ libmutter_dep = []
|
||||
|
||||
vala_flags = []
|
||||
|
||||
mutter334_dep = dependency('libmutter-5', version: ['>= 3.34', '< 3.35.1'], required: false)
|
||||
if mutter334_dep.found()
|
||||
libmutter_dep = dependency('libmutter-5', version: '>= 3.34')
|
||||
mutter_dep = [
|
||||
libmutter_dep,
|
||||
dependency('mutter-cogl-5'), dependency('mutter-cogl-pango-5'),
|
||||
dependency('mutter-cogl-path-5'), dependency('mutter-clutter-5')
|
||||
]
|
||||
vala_flags = []
|
||||
add_project_arguments(['-DCLUTTER_ENABLE_COMPOSITOR_API', '-DCLUTTER_ENABLE_EXPERIMENTAL_API',
|
||||
'-DCOGL_ENABLE_EXPERIMENTAL_API', '-DCOGL_ENABLE_EXPERIMENTAL_2_0_API'], language: 'c')
|
||||
endif
|
||||
|
||||
mutter336_dep = dependency('libmutter-6', version: ['>= 3.35.1', '< 3.37'], required: false)
|
||||
if mutter336_dep.found()
|
||||
libmutter_dep = dependency('libmutter-6', version: '>= 3.35.1')
|
||||
@ -119,7 +106,7 @@ if mutter336_dep.found()
|
||||
dependency('mutter-cogl-6'), dependency('mutter-cogl-pango-6'),
|
||||
dependency('mutter-cogl-path-6'), dependency('mutter-clutter-6')
|
||||
]
|
||||
vala_flags = ['--define', 'HAS_MUTTER336']
|
||||
vala_flags = []
|
||||
add_project_arguments(['-DCLUTTER_ENABLE_COMPOSITOR_API', '-DCLUTTER_ENABLE_EXPERIMENTAL_API',
|
||||
'-DCOGL_ENABLE_EXPERIMENTAL_API', '-DCOGL_ENABLE_EXPERIMENTAL_2_0_API'], language: 'c')
|
||||
endif
|
||||
@ -132,7 +119,7 @@ if mutter338_dep.found()
|
||||
dependency('mutter-cogl-7'), dependency('mutter-cogl-pango-7'),
|
||||
dependency('mutter-clutter-7')
|
||||
]
|
||||
vala_flags = ['--define', 'HAS_MUTTER336', '--define', 'HAS_MUTTER338']
|
||||
vala_flags = ['--define', 'HAS_MUTTER338']
|
||||
add_project_arguments(['-DCLUTTER_ENABLE_COMPOSITOR_API', '-DCLUTTER_ENABLE_EXPERIMENTAL_API',
|
||||
'-DCOGL_ENABLE_EXPERIMENTAL_API', '-DCOGL_ENABLE_EXPERIMENTAL_2_0_API'], language: 'c')
|
||||
endif
|
||||
|
@ -79,11 +79,7 @@ public class Gala.Plugins.PIP.Plugin : Gala.Plugin {
|
||||
int point_x = x - (int)active.x;
|
||||
int point_y = y - (int)active.y;
|
||||
|
||||
#if HAS_MUTTER336
|
||||
var rect = Graphene.Rect.alloc ();
|
||||
#else
|
||||
var rect = Clutter.Rect.alloc ();
|
||||
#endif
|
||||
rect.init (point_x, point_y, width, height);
|
||||
|
||||
var popup_window = new PopupWindow (wm, active);
|
||||
|
@ -188,11 +188,7 @@ public class Gala.Plugins.PIP.PopupWindow : Clutter.Actor {
|
||||
return true;
|
||||
}
|
||||
|
||||
#if HAS_MUTTER336
|
||||
public void set_container_clip (Graphene.Rect? container_clip) {
|
||||
#else
|
||||
public void set_container_clip (Clutter.Rect? container_clip) {
|
||||
#endif
|
||||
container.clip_rect = container_clip;
|
||||
dynamic_container = true;
|
||||
update_container_scale ();
|
||||
|
@ -43,11 +43,7 @@ namespace Gala.Plugins.PIP {
|
||||
public float scale_factor { get; set; default = 1; }
|
||||
public uint8 shadow_opacity { get; set; default = 255; }
|
||||
|
||||
#if HAS_MUTTER336
|
||||
Cogl.Pipeline pipeline;
|
||||
#else
|
||||
Cogl.Material material;
|
||||
#endif
|
||||
|
||||
string? current_key = null;
|
||||
|
||||
@ -56,12 +52,7 @@ namespace Gala.Plugins.PIP {
|
||||
}
|
||||
|
||||
construct {
|
||||
#if HAS_MUTTER336
|
||||
pipeline = new Cogl.Pipeline (Clutter.get_default_backend ().get_cogl_context ());
|
||||
#else
|
||||
material = new Cogl.Material ();
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
~ShadowEffect () {
|
||||
@ -69,11 +60,7 @@ namespace Gala.Plugins.PIP {
|
||||
decrement_shadow_users (current_key);
|
||||
}
|
||||
|
||||
#if HAS_MUTTER336
|
||||
Cogl.Texture? get_shadow (Cogl.Context context, int width, int height, int shadow_size, int shadow_spread) {
|
||||
#else
|
||||
Cogl.Texture? get_shadow (int width, int height, int shadow_size, int shadow_spread) {
|
||||
#endif
|
||||
var old_key = current_key;
|
||||
|
||||
current_key = "%ix%i:%i:%i".printf (width, height, shadow_size, shadow_spread);
|
||||
@ -104,13 +91,8 @@ namespace Gala.Plugins.PIP {
|
||||
cr.set_source_surface (buffer.surface, 0, 0);
|
||||
cr.paint ();
|
||||
|
||||
#if HAS_MUTTER336
|
||||
var texture = new Cogl.Texture2D.from_data (context, width, height, Cogl.PixelFormat.BGRA_8888_PRE,
|
||||
surface.get_stride (), surface.get_data ());
|
||||
#else
|
||||
var texture = new Cogl.Texture.from_data (width, height, 0, Cogl.PixelFormat.BGRA_8888_PRE,
|
||||
Cogl.PixelFormat.ANY, surface.get_stride (), surface.get_data ());
|
||||
#endif
|
||||
|
||||
shadow_cache.@set (current_key, new Shadow (texture));
|
||||
|
||||
@ -127,7 +109,6 @@ namespace Gala.Plugins.PIP {
|
||||
shadow_cache.unset (key);
|
||||
}
|
||||
|
||||
#if HAS_MUTTER336
|
||||
public override void paint (Clutter.PaintContext context, EffectPaintFlags flags) {
|
||||
var bounding_box = get_bounding_box ();
|
||||
|
||||
@ -147,27 +128,6 @@ namespace Gala.Plugins.PIP {
|
||||
|
||||
actor.continue_paint (context);
|
||||
}
|
||||
#else
|
||||
public override void paint (EffectPaintFlags flags) {
|
||||
var bounding_box = get_bounding_box ();
|
||||
var shadow = get_shadow ((int) (bounding_box.x2 - bounding_box.x1), (int) (bounding_box.y2 - bounding_box.y1),
|
||||
shadow_size, shadow_spread);
|
||||
|
||||
if (shadow != null)
|
||||
material.set_layer (0, shadow);
|
||||
|
||||
var opacity = actor.get_paint_opacity () * shadow_opacity / 255;
|
||||
var alpha = Cogl.Color.from_4ub (255, 255, 255, opacity);
|
||||
alpha.premultiply ();
|
||||
|
||||
material.set_color (alpha);
|
||||
|
||||
Cogl.set_source (material);
|
||||
Cogl.rectangle (bounding_box.x1, bounding_box.y1, bounding_box.x2, bounding_box.y2);
|
||||
|
||||
actor.continue_paint ();
|
||||
}
|
||||
#endif
|
||||
|
||||
public virtual ActorBox get_bounding_box () {
|
||||
var size = shadow_size * scale_factor;
|
||||
|
@ -92,13 +92,9 @@ namespace Gala {
|
||||
|
||||
class DummyOffscreenEffect : Clutter.OffscreenEffect {
|
||||
public signal void done_painting ();
|
||||
#if HAS_MUTTER336
|
||||
|
||||
public override void post_paint (Clutter.PaintContext context) {
|
||||
base.post_paint (context);
|
||||
#else
|
||||
public override void post_paint () {
|
||||
base.post_paint ();
|
||||
#endif
|
||||
done_painting ();
|
||||
}
|
||||
}
|
||||
|
@ -53,11 +53,7 @@ namespace Gala {
|
||||
public uint8 shadow_opacity { get; set; default = 255; }
|
||||
public string? css_class { get; set; default = null; }
|
||||
|
||||
#if HAS_MUTTER336
|
||||
Cogl.Pipeline pipeline;
|
||||
#else
|
||||
Cogl.Material material;
|
||||
#endif
|
||||
string? current_key = null;
|
||||
|
||||
public ShadowEffect (int shadow_size, int shadow_spread) {
|
||||
@ -65,12 +61,7 @@ namespace Gala {
|
||||
}
|
||||
|
||||
construct {
|
||||
#if HAS_MUTTER336
|
||||
pipeline = new Cogl.Pipeline (Clutter.get_default_backend ().get_cogl_context ());
|
||||
#else
|
||||
material = new Cogl.Material ();
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
~ShadowEffect () {
|
||||
@ -78,11 +69,7 @@ namespace Gala {
|
||||
decrement_shadow_users (current_key);
|
||||
}
|
||||
|
||||
#if HAS_MUTTER336
|
||||
Cogl.Texture? get_shadow (Cogl.Context context, int width, int height, int shadow_size, int shadow_spread) {
|
||||
#else
|
||||
Cogl.Texture? get_shadow (int width, int height, int shadow_size, int shadow_spread) {
|
||||
#endif
|
||||
var old_key = current_key;
|
||||
current_key = "%ix%i:%i:%i".printf (width, height, shadow_size, shadow_spread);
|
||||
if (old_key == current_key)
|
||||
@ -117,13 +104,8 @@ namespace Gala {
|
||||
|
||||
cr.paint ();
|
||||
|
||||
#if HAS_MUTTER336
|
||||
var texture = new Cogl.Texture2D.from_data (context, width, height, Cogl.PixelFormat.BGRA_8888_PRE,
|
||||
surface.get_stride (), surface.get_data ());
|
||||
#else
|
||||
var texture = new Cogl.Texture.from_data (width, height, 0, Cogl.PixelFormat.BGRA_8888_PRE,
|
||||
Cogl.PixelFormat.ANY, surface.get_stride (), surface.get_data ());
|
||||
#endif
|
||||
shadow_cache.@set (current_key, new Shadow (texture));
|
||||
|
||||
return texture;
|
||||
@ -139,7 +121,6 @@ namespace Gala {
|
||||
shadow_cache.unset (key);
|
||||
}
|
||||
|
||||
#if HAS_MUTTER336
|
||||
public override void paint (Clutter.PaintContext context, EffectPaintFlags flags) {
|
||||
var bounding_box = get_bounding_box ();
|
||||
var width = (int) (bounding_box.x2 - bounding_box.x1);
|
||||
@ -159,28 +140,6 @@ namespace Gala {
|
||||
|
||||
actor.continue_paint (context);
|
||||
}
|
||||
#else
|
||||
public override void paint (EffectPaintFlags flags) {
|
||||
var bounding_box = get_bounding_box ();
|
||||
var width = (int) (bounding_box.x2 - bounding_box.x1);
|
||||
var height = (int) (bounding_box.y2 - bounding_box.y1);
|
||||
|
||||
var shadow = get_shadow (width, height, shadow_size, shadow_spread);
|
||||
if (shadow != null)
|
||||
material.set_layer (0, shadow);
|
||||
|
||||
var opacity = actor.get_paint_opacity () * shadow_opacity / 255;
|
||||
var alpha = Cogl.Color.from_4ub (255, 255, 255, opacity);
|
||||
alpha.premultiply ();
|
||||
|
||||
material.set_color (alpha);
|
||||
|
||||
Cogl.set_source (material);
|
||||
Cogl.rectangle (bounding_box.x1, bounding_box.y1, bounding_box.x2, bounding_box.y2);
|
||||
|
||||
actor.continue_paint ();
|
||||
}
|
||||
#endif
|
||||
|
||||
public virtual ActorBox get_bounding_box () {
|
||||
var size = shadow_size * scale_factor;
|
||||
|
@ -205,18 +205,9 @@ namespace Gala {
|
||||
/**
|
||||
* Override the paint handler to draw our backdrop if necessary
|
||||
*/
|
||||
#if HAS_MUTTER336
|
||||
public override void paint (Clutter.PaintContext context) {
|
||||
#else
|
||||
public override void paint () {
|
||||
#endif
|
||||
if (backdrop_opacity < 1 || drag_action.dragging) {
|
||||
#if HAS_MUTTER336
|
||||
base.paint (context);
|
||||
#else
|
||||
base.paint ();
|
||||
#endif
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@ -226,7 +217,6 @@ namespace Gala {
|
||||
var y = -10;
|
||||
var height = WorkspaceClone.BOTTOM_OFFSET * scale;
|
||||
|
||||
#if HAS_MUTTER336
|
||||
Cogl.VertexP2T2C4 vertices[4];
|
||||
vertices[0] = { x, y + height, 0, 1, backdrop_opacity, backdrop_opacity, backdrop_opacity, backdrop_opacity };
|
||||
vertices[1] = { x, y, 0, 0, 0, 0, 0, 0 };
|
||||
@ -236,28 +226,7 @@ namespace Gala {
|
||||
var primitive = new Cogl.Primitive.p2t2c4 (context.get_framebuffer ().get_context (), Cogl.VerticesMode.TRIANGLE_STRIP, vertices);
|
||||
var pipeline = new Cogl.Pipeline (context.get_framebuffer ().get_context ());
|
||||
primitive.draw (context.get_framebuffer (), pipeline);
|
||||
#else
|
||||
var color_top = Cogl.Color.from_4ub (0, 0, 0, 0);
|
||||
var color_bottom = Cogl.Color.from_4ub (255, 255, 255, backdrop_opacity);
|
||||
color_bottom.premultiply ();
|
||||
|
||||
Cogl.TextureVertex vertices[4];
|
||||
vertices[0] = { x, y, 0, 0, 0, color_top };
|
||||
vertices[1] = { x, y + height, 0, 0, 1, color_bottom };
|
||||
vertices[2] = { x + width, y + height, 0, 1, 1, color_bottom };
|
||||
vertices[3] = { x + width, y, 0, 1, 0, color_top };
|
||||
|
||||
// for some reason cogl will try mapping the textures of the children
|
||||
// to the cogl_polygon call. We can fix this and force it to use our
|
||||
// color by setting a different material with no properties.
|
||||
Cogl.set_source (dummy_material);
|
||||
Cogl.polygon (vertices, true);
|
||||
#endif
|
||||
#if HAS_MUTTER336
|
||||
base.paint (context);
|
||||
#else
|
||||
base.paint ();
|
||||
#endif
|
||||
base.paint (context);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -23,18 +23,14 @@ namespace Gala {
|
||||
* Utility class which adds a border and a shadow to a Background
|
||||
*/
|
||||
class FramedBackground : BackgroundManager {
|
||||
#if HAS_MUTTER336
|
||||
private Cogl.Pipeline pipeline;
|
||||
#endif
|
||||
|
||||
public FramedBackground (Display display) {
|
||||
Object (display: display, monitor_index: display.get_primary_monitor (), control_position: false);
|
||||
}
|
||||
|
||||
construct {
|
||||
#if HAS_MUTTER336
|
||||
pipeline = new Cogl.Pipeline (Clutter.get_default_backend ().get_cogl_context ());
|
||||
#endif
|
||||
var primary = display.get_primary_monitor ();
|
||||
var monitor_geom = display.get_monitor_geometry (primary);
|
||||
|
||||
@ -62,7 +58,7 @@ namespace Gala {
|
||||
fb.draw_rectangle (pipeline, 0.5f, 0.5f, width - 1, height - 1);
|
||||
fb.pop_clip ();
|
||||
}
|
||||
#elif HAS_MUTTER336
|
||||
#else
|
||||
public override void paint (Clutter.PaintContext context) {
|
||||
base.paint (context);
|
||||
|
||||
@ -77,19 +73,6 @@ namespace Gala {
|
||||
path.rectangle (0.5f, 0.5f, width - 1, height - 1);
|
||||
context.get_framebuffer ().stroke_path (pipeline, path);
|
||||
}
|
||||
#else
|
||||
public override void paint () {
|
||||
base.paint ();
|
||||
|
||||
Cogl.set_source_color4ub (0, 0, 0, 100);
|
||||
var path = new Cogl.Path ();
|
||||
path.rectangle (0, 0, width, height);
|
||||
path.stroke ();
|
||||
|
||||
Cogl.set_source_color4ub (255, 255, 255, 25);
|
||||
path.rectangle (0.5f, 0.5f, width - 1, height - 1);
|
||||
path.stroke ();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -63,9 +63,7 @@ namespace Gala {
|
||||
|
||||
public ScreenShield? screen_shield { get; private set; }
|
||||
|
||||
#if HAS_MUTTER336
|
||||
public PointerLocator pointer_locator { get; private set; }
|
||||
#endif
|
||||
|
||||
Meta.PluginInfo info;
|
||||
|
||||
@ -210,11 +208,9 @@ namespace Gala {
|
||||
|
||||
top_window_group = display.get_top_window_group ();
|
||||
|
||||
#if HAS_MUTTER336
|
||||
pointer_locator = new PointerLocator (this);
|
||||
ui_group.add_child (pointer_locator);
|
||||
ui_group.add_child (new DwellClickTimer (this));
|
||||
#endif
|
||||
|
||||
ui_group.add_child (screen_shield);
|
||||
|
||||
@ -2036,11 +2032,9 @@ namespace Gala {
|
||||
end_switch_workspace ();
|
||||
}
|
||||
|
||||
#if HAS_MUTTER336
|
||||
public override void locate_pointer () {
|
||||
pointer_locator.show_ripple ();
|
||||
}
|
||||
#endif
|
||||
|
||||
public override bool keybinding_filter (Meta.KeyBinding binding) {
|
||||
if (!is_modal ())
|
||||
|
@ -1,42 +0,0 @@
|
||||
namespace Clutter {
|
||||
|
||||
public struct Color {
|
||||
[CCode (cname = "clutter_color_from_hls")]
|
||||
public Color.from_hls (float hue, float luminance, float saturation);
|
||||
[CCode (cname = "clutter_color_from_pixel")]
|
||||
public Color.from_pixel (uint32 pixel);
|
||||
[CCode (cname = "clutter_color_from_string")]
|
||||
public Color.from_string (string str);
|
||||
[CCode (cname = "clutter_color_from_string")]
|
||||
public bool parse_string (string str);
|
||||
}
|
||||
|
||||
public interface Container : GLib.Object {
|
||||
public void add (params Clutter.Actor[] actors);
|
||||
[CCode (cname = "clutter_container_class_find_child_property")]
|
||||
public class unowned GLib.ParamSpec find_child_property (string property_name);
|
||||
[CCode (cname = "clutter_container_class_list_child_properties")]
|
||||
public class unowned GLib.ParamSpec[] list_child_properties ();
|
||||
}
|
||||
|
||||
public struct Units {
|
||||
[CCode (cname = "clutter_units_from_cm")]
|
||||
public Units.from_cm (float cm);
|
||||
[CCode (cname = "clutter_units_from_em")]
|
||||
public Units.from_em (float em);
|
||||
[CCode (cname = "clutter_units_from_em_for_font")]
|
||||
public Units.from_em_for_font (string font_name, float em);
|
||||
[CCode (cname = "clutter_units_from_mm")]
|
||||
public Units.from_mm (float mm);
|
||||
[CCode (cname = "clutter_units_from_pixels")]
|
||||
public Units.from_pixels (int px);
|
||||
[CCode (cname = "clutter_units_from_pt")]
|
||||
public Units.from_pt (float pt);
|
||||
[CCode (cname = "clutter_units_from_string")]
|
||||
public Units.from_string (string str);
|
||||
}
|
||||
|
||||
[CCode (cheader_filename = "clutter/clutter.h", has_copy_function = false, has_destroy_function = false, has_type_id = false)]
|
||||
public struct Capture {
|
||||
}
|
||||
}
|
@ -1,209 +0,0 @@
|
||||
// Non mini-object
|
||||
ActorBox struct
|
||||
Color struct
|
||||
Fog struct
|
||||
Geometry struct
|
||||
Knot struct
|
||||
Margin struct
|
||||
PaintVolume struct
|
||||
PathNode struct
|
||||
Perspective struct
|
||||
Point struct
|
||||
Rect struct
|
||||
Size struct
|
||||
Units struct
|
||||
Vertex struct
|
||||
|
||||
*.ref unowned
|
||||
|
||||
init.argv unowned
|
||||
init_with_args
|
||||
.argv unowned
|
||||
Actor
|
||||
.apply_transform.matrix ref
|
||||
.get_abs_allocation_vertices.verts out=false
|
||||
.get_allocation_vertices.verts out=false
|
||||
Canvas
|
||||
.new symbol_type="constructor"
|
||||
Event.type#method name="get_type"
|
||||
Image
|
||||
.new symbol_type="constructor"
|
||||
|
||||
// ???
|
||||
Actor.has_pointer#method name="get_has_pointer"
|
||||
InitError errordomain=false
|
||||
|
||||
// Not all backing symbols are deprecated
|
||||
Actor.pick deprecated=false
|
||||
|
||||
// Nullable return values
|
||||
Actor
|
||||
.get_parent nullable
|
||||
value_get_color nullable
|
||||
|
||||
// method/virtual-method/signal don't match
|
||||
Actor
|
||||
.event#method name="emit_event"
|
||||
.get_paint_volume#virtual_method name="get_paint_volume_vfunc"
|
||||
.get_paint_volume#virtual_method.volume out
|
||||
.queue_redraw#signal skip
|
||||
.queue_redraw#virtual_method skip
|
||||
Container
|
||||
.add_actor skip=false
|
||||
.class_* skip
|
||||
Text
|
||||
.activate#method name="try_activate"
|
||||
.insert_text#signal skip
|
||||
TextBuffer.get_text#virtual_method name="get_text_with_length"
|
||||
|
||||
// virtual/abstract distinction
|
||||
Container
|
||||
.lower virtual
|
||||
.raise virtual
|
||||
.*_child_meta#virtual_method virtual
|
||||
.foreach_with_internals#virtual_method virtual
|
||||
|
||||
// Default values
|
||||
Container
|
||||
.lower.sibling nullable default=null
|
||||
.raise.sibling nullable default=null
|
||||
Stage.read_pixels
|
||||
.width default=-1
|
||||
.height default=-1
|
||||
Text
|
||||
.position_to_coords.line_height default=null
|
||||
|
||||
// Reparented funcs methods can't be instance methods
|
||||
feature_available skip
|
||||
feature_get_all skip
|
||||
|
||||
// Skipped by g-i for unknown reasons
|
||||
LayoutManager
|
||||
.create_child_meta skip=false
|
||||
|
||||
// Variadic arguments
|
||||
Actor
|
||||
.animate skip=false
|
||||
.animate_with_alpha skip=false
|
||||
.animate_with_timeline skip=false
|
||||
Box
|
||||
.pack skip=false
|
||||
.pack_after skip=false
|
||||
.pack_at skip=false
|
||||
.pack_before skip=false
|
||||
Container
|
||||
.add_valist skip=false
|
||||
.child_get skip=false
|
||||
.child_set skip=false
|
||||
.remove skip=false
|
||||
.remove_valist skip=false
|
||||
Interval
|
||||
.new skip=false
|
||||
.get_interval skip=false
|
||||
.set_final skip=false
|
||||
.set_initial skip=false
|
||||
.set_interval skip=false
|
||||
LayoutManager
|
||||
.child_get skip=false
|
||||
.child_set skip=false
|
||||
Script
|
||||
.get_objects skip=false
|
||||
|
||||
// Changing error domains
|
||||
Texture
|
||||
.new_from_file throws="Clutter.TextureError"
|
||||
|
||||
// Skipped upstream for unknown reasons
|
||||
Alpha.register_func skip=false
|
||||
Interval.register_progress_func skip=false
|
||||
get_option_group skip=false
|
||||
get_option_group_without_init skip=false
|
||||
threads_add_idle skip=false
|
||||
threads_add_idle_full skip=false
|
||||
threads_add_timeout skip=false
|
||||
threads_add_timeout_full skip=false
|
||||
|
||||
// struct/class confusion
|
||||
ActorBox
|
||||
.new skip
|
||||
.from_vertices skip
|
||||
Units.from_* skip
|
||||
Color
|
||||
.new skip
|
||||
Margin
|
||||
.new skip
|
||||
Size
|
||||
.init skip
|
||||
Vertex.new skip
|
||||
|
||||
// Class methods
|
||||
container_class_find_child_property skip
|
||||
container_class_list_child_properties skip
|
||||
|
||||
// Move symbols
|
||||
get_actor_by_gid parent="Clutter.Actor" name="get_by_gid"
|
||||
color_from_* skip
|
||||
units_from_* skip
|
||||
|
||||
// Struct return values
|
||||
color_get_static nullable
|
||||
|
||||
// Upstream
|
||||
Event
|
||||
.get_position.position out
|
||||
Text
|
||||
.cursor_event.geometry out
|
||||
|
||||
// Remove for clutter-2.0
|
||||
/////////////////////////
|
||||
|
||||
Stage
|
||||
.event name="emit_event"
|
||||
.capture.captures out array_length_idx=3 type="Clutter.Capture[]"
|
||||
|
||||
Capture
|
||||
.image type="Cairo.ImageSurface"
|
||||
|
||||
// *Event should be compact classes derived from Clutter.Event
|
||||
Event.type skip=false
|
||||
AnyEvent struct=false base_type="Clutter.Event"
|
||||
ButtonEvent struct=false base_type="Clutter.Event"
|
||||
CrossingEvent struct=false base_type="Clutter.Event"
|
||||
KeyEvent struct=false base_type="Clutter.Event"
|
||||
MotionEvent struct=false base_type="Clutter.Event"
|
||||
ScrollEvent struct=false base_type="Clutter.Event"
|
||||
StageStateEvent struct=false base_type="Clutter.Event"
|
||||
TouchEvent struct=false base_type="Clutter.Event"
|
||||
TouchpadPinchEvent struct=false base_type="Clutter.Event"
|
||||
TouchpadSwipeEvent struct=false base_type="Clutter.Event"
|
||||
|
||||
// Keysyms used to be CLUTTER_X instead of CLUTTER_KEY_X
|
||||
*#constant skip
|
||||
COGL skip=false
|
||||
CURRENT_TIME skip=false
|
||||
FLAVOUR skip=false
|
||||
PATH_RELATIVE skip=false
|
||||
PRIORITY_REDRAW skip=false
|
||||
|
||||
// Clutter devs don't like us creating nested namespaces
|
||||
value_* name="value_(.+)" parent="Clutter.Value"
|
||||
threads_* name="threads_(.+)" parent="Clutter.Threads"
|
||||
threads_add_idle name="add" parent="Clutter.Threads.Idle"
|
||||
threads_add_idle_full name="add_full" parent="Clutter.Threads.Idle"
|
||||
threads_add_timeout name="add" parent="Clutter.Threads.Timeout"
|
||||
threads_add_timeout_full name="add_full" parent="Clutter.Threads.Timeout"
|
||||
|
||||
// Backwards compatibility
|
||||
Color.alloc symbol_type="function"
|
||||
Point.alloc symbol_type="function"
|
||||
Rect.alloc symbol_type="function"
|
||||
Size.alloc symbol_type="function"
|
||||
Vertex.alloc symbol_type="function"
|
||||
|
||||
BinAlignment deprecated=false deprecated_since=null
|
||||
BinAlignment.* deprecated
|
||||
BinAlignment.start deprecated=false
|
||||
BinLayout.new.*_align default=Clutter.BinAlignment.START
|
||||
|
||||
// Possibly keep
|
||||
KEY_* skip=false name="KEY_(.+)" type="uint" parent="Clutter.Key"
|
@ -1,68 +0,0 @@
|
||||
namespace Cogl {
|
||||
public struct Color {
|
||||
[Version (since = "1.4")]
|
||||
[CCode (cname="cogl_color_init_from_4f")]
|
||||
public Color.from_4f (float red, float green, float blue, float alpha);
|
||||
[Version (since = "1.4")]
|
||||
[CCode (cname="cogl_color_init_from_4fv")]
|
||||
public Color.from_4fv (float color_array);
|
||||
[Version (since = "1.4")]
|
||||
[CCode (cname="cogl_color_init_from_4ub")]
|
||||
public Color.from_4ub (uint8 red, uint8 green, uint8 blue, uint8 alpha);
|
||||
[Version (since = "1.16")]
|
||||
[CCode (cname="cogl_color_init_from_hsl")]
|
||||
public Color.from_hsl (float hue, float saturation, float luminance);
|
||||
}
|
||||
|
||||
[Compact]
|
||||
public class Bitmap : Cogl.Handle {
|
||||
}
|
||||
|
||||
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_quaternion_get_gtype ()", copy_function = "cogl_quaternion_copy", free_function = "cogl_quaternion_free")]
|
||||
[Compact]
|
||||
public class Quaternion {
|
||||
}
|
||||
|
||||
[Compact]
|
||||
[CCode (cname = "CoglHandle", cheader_filename = "cogl/cogl.h", type_id = "cogl_handle_get_gtype ()", ref_function = "cogl_vertex_buffer_ref", unref_function = "cogl_vertex_buffer_unref")]
|
||||
public class VertexBuffer : Cogl.Handle {
|
||||
}
|
||||
|
||||
[Compact]
|
||||
[CCode (cname = "CoglHandle", cheader_filename = "cogl/cogl.h", type_id = "cogl_handle_get_gtype ()", ref_function = "cogl_shader_ref", unref_function = "cogl_shader_unref")]
|
||||
public class Shader : Cogl.Handle {
|
||||
}
|
||||
|
||||
[Compact]
|
||||
[CCode (cname = "CoglHandle", cheader_filename = "cogl/cogl.h", type_id = "cogl_handle_get_gtype ()", ref_function = "cogl_program_ref", unref_function = "cogl_program_unref")]
|
||||
public class Program : Cogl.Handle {
|
||||
}
|
||||
|
||||
[Compact]
|
||||
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_handle_get_gtype ()", ref_function = "cogl_handle_ref", unref_function = "cogl_handle_unref")]
|
||||
public class Handle {
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_bitmap")]
|
||||
[Version (since = "1.0")]
|
||||
public bool is_bitmap ();
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_material")]
|
||||
[Version (deprecated = true, deprecated_since = "1.16")]
|
||||
public bool is_material ();
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_offscreen")]
|
||||
public bool is_offscreen ();
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_program")]
|
||||
[Version (deprecated = true, deprecated_since = "1.16")]
|
||||
public bool is_program (Cogl.Handle handle);
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_shader")]
|
||||
[Version (deprecated = true, deprecated_since = "1.16")]
|
||||
public bool is_shader ();
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_texture")]
|
||||
public bool is_texture ();
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_vertex_buffer")]
|
||||
[Version (deprecated = true, deprecated_since = "1.16", since = "1.0")]
|
||||
public bool is_vertex_buffer ();
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_vertex_buffer_indices")]
|
||||
[Version (deprecated = true, deprecated_since = "1.16", since = "1.4")]
|
||||
public bool is_vertex_buffer_indices ();
|
||||
}
|
||||
|
||||
}
|
@ -1,99 +0,0 @@
|
||||
Color struct
|
||||
Quaternion skip=false
|
||||
|
||||
Material base_type="Cogl.Handle"
|
||||
MaterialLayer base_type="Cogl.Handle"
|
||||
|
||||
_ColorSizeCheck skip
|
||||
_MatrixSizeCheck skip
|
||||
_TextureVertexSizeCheck skip
|
||||
|
||||
Offscreen.ref skip
|
||||
Offscreen.unref skip
|
||||
|
||||
Color
|
||||
.init_* skip
|
||||
color_init_from_hsl skip
|
||||
color_equal.v1 type="Cogl.Color"
|
||||
color_equal.v2 type="Cogl.Color"
|
||||
color_equal symbol_type=method
|
||||
|
||||
texture_new_* name="texture_new_(.+)" parent="Cogl.Texture"
|
||||
Texture
|
||||
.get_data.data type="uint8[]"
|
||||
.new_from_data.data type="uint8[]"
|
||||
.set_data.data type="uint8[]"
|
||||
.set_region.data type="uint8[]"
|
||||
|
||||
Matrix
|
||||
.transform_points.points_in type="uint8[]"
|
||||
.transform_points.stride_out out
|
||||
.transform_points.points_out out type="uint8[]"
|
||||
.project_points.points_in type="uint8[]"
|
||||
.project_points.stride_out out
|
||||
.project_points.points_out out type="uint8[]"
|
||||
|
||||
matrix_equal.v1 type="Cogl.Matrix"
|
||||
matrix_equal.v2 type="Cogl.Matrix"
|
||||
matrix_equal symbol_type=method
|
||||
|
||||
polygon.vertices array array_length_idx=1
|
||||
|
||||
vertex_buffer_* name="vertex_buffer_(.+)" parent="Cogl.VertexBuffer"
|
||||
//vertex_buffer_* symbol_type="method" instance_idx=0
|
||||
vertex_buffer_add symbol_type="method" instance_idx=0
|
||||
vertex_buffer_delete symbol_type="method" instance_idx=0
|
||||
vertex_buffer_disable symbol_type="method" instance_idx=0
|
||||
vertex_buffer_draw symbol_type="method" instance_idx=0
|
||||
vertex_buffer_draw_elements symbol_type="method" instance_idx=0
|
||||
vertex_buffer_enable symbol_type="method" instance_idx=0
|
||||
vertex_buffer_get_n_vertices symbol_type="method" instance_idx=0
|
||||
vertex_buffer_indices_get_type symbol_type="method" instance_idx=0
|
||||
vertex_buffer_submit symbol_type="method" instance_idx=0
|
||||
vertex_buffer_unref skip
|
||||
vertex_buffer_ref skip
|
||||
|
||||
shader_* name="shader_(.+)" parent="Cogl.Shader"
|
||||
shader_* symbol_type="method" instance_idx=0
|
||||
shader_unref skip
|
||||
shader_ref skip
|
||||
|
||||
program_* name="program_(.+)" parent="Cogl.Program"
|
||||
program_attach_shader symbol_type="method" instance_idx=0
|
||||
program_get_uniform_location symbol_type="method" instance_idx=0
|
||||
program_link symbol_type="method" instance_idx=0
|
||||
program_set_uniform_1f symbol_type="method" instance_idx=0
|
||||
program_set_uniform_1i symbol_type="method" instance_idx=0
|
||||
program_set_uniform_float symbol_type="method" instance_idx=0
|
||||
program_set_uniform_int symbol_type="method" instance_idx=0
|
||||
program_set_uniform_matrix symbol_type="method" instance_idx=0
|
||||
program_use symbol_type="method" instance_idx=0
|
||||
|
||||
program_unref skip
|
||||
program_ref skip
|
||||
|
||||
is_bitmap parent="Cogl.Handle"
|
||||
is_material parent="Cogl.Handle"
|
||||
is_offscreen parent="Cogl.Handle"
|
||||
is_program parent="Cogl.Handle"
|
||||
is_shader parent="Cogl.Handle"
|
||||
is_texture parent="Cogl.Handle"
|
||||
is_vertex_buffer parent="Cogl.Handle"
|
||||
is_vertex_buffer_indices parent="Cogl.Handle"
|
||||
|
||||
create_program type="unowned Cogl.Program" name="create" parent="Cogl.Program"
|
||||
create_shader type="unowned Cogl.Shader" name="create" parent="Cogl.Shader"
|
||||
|
||||
get_source type="unowned Cogl.Material"
|
||||
push_source.material type="Cogl.Material"
|
||||
set_source.material type="Cogl.Material"
|
||||
|
||||
Bitmap.error_quark parent="Cogl.BitmapError" name="quark"
|
||||
Texture.error_quark parent="Cogl.TextureError" name="quark"
|
||||
texture_error_quark skip
|
||||
|
||||
BitmapError errordomain
|
||||
BlendStringError errordomain
|
||||
RendererError errordomain
|
||||
SystemError errordomain
|
||||
TextureError errordomain
|
@ -1,190 +0,0 @@
|
||||
* skip=false
|
||||
*.* skip=false
|
||||
* cheader_filename="meta/main.h"
|
||||
|
||||
Backend cheader_filename="meta/meta-backend.h"
|
||||
Backend.gpu_added skip
|
||||
get_backend parent="Meta.Backend" cheader_filename="meta/meta-backend.h"
|
||||
Background cheader_filename="meta/meta-background.h"
|
||||
Background.set_file.file nullable
|
||||
BackgroundActor cheader_filename="meta/meta-background-actor.h"
|
||||
BackgroundGroup cheader_filename="meta/meta-background-group.h"
|
||||
BackgroundImage cheader_filename="meta/meta-background-image.h"
|
||||
BackgroundImageCache cheader_filename="meta/meta-background-image.h"
|
||||
Barrier cheader_filename="meta/barrier.h"
|
||||
BarrierDirection cheader_filename="meta/barrier.h"
|
||||
BarrierEvent cheader_filename="meta/barrier.h"
|
||||
ButtonFunction cheader_filename="meta/common.h"
|
||||
ButtonLayout cheader_filename="meta/common.h"
|
||||
Compositor cheader_filename="meta/compositor.h"
|
||||
Compositor.sync_stack.stack type_arguments="Meta.Window"
|
||||
get_feedback_group_for_display parent="Meta.Display" symbol_type="method" name="get_feedback_group" instance_idx=0 cheader_filename="meta/compositor-mutter.h"
|
||||
get_stage_for_display parent="Meta.Display" symbol_type="method" name="get_stage" instance_idx=0 cheader_filename="meta/compositor-mutter.h"
|
||||
get_top_window_group_for_display parent="Meta.Display" symbol_type="method" name="get_top_window_group" instance_idx=0 cheader_filename="meta/compositor-mutter.h"
|
||||
get_window_group_for_display parent="Meta.Display" symbol_type="method" name="get_window_group" instance_idx=0 cheader_filename="meta/compositor-mutter.h"
|
||||
disable_unredirect_for_display parent="Meta.Display" symbol_type="method" name="disable_unredirect" instance_idx=0 cheader_filename="meta/compositor-mutter.h"
|
||||
enable_unredirect_for_display parent="Meta.Display" symbol_type="method" name="enable_unredirect" instance_idx=0 cheader_filename="meta/compositor-mutter.h"
|
||||
|
||||
get_window_actors parent="Meta.Display" symbol_type="method" instance_idx=0 cheader_filename="meta/compositor-mutter.h" type_arguments="Meta.WindowActor"
|
||||
focus_stage_window parent="Meta.Display" symbol_type="method" instance_idx=0 cheader_filename="meta/compositor-mutter.h"
|
||||
|
||||
CompEffect cheader_filename="meta/compositor.h"
|
||||
CloseDialog cheader_filename="meta/meta-close-dialog.h"
|
||||
CloseDialogResponse cheader_filename="meta/meta-close-dialog.h"
|
||||
Cursor cheader_filename="meta/common.h"
|
||||
CursorTracker cheader_filename="meta/meta-cursor-tracker.h"
|
||||
CursorTracker.get_for_display parent="Meta.Display" symbol_type="method" instance_idx=0 name="get_cursor_tracker"
|
||||
CursorTracker.get_pointer.x out
|
||||
CursorTracker.get_pointer.y out
|
||||
CursorTracker.get_pointer.mods out
|
||||
DebugTopic cheader_filename="meta/util.h"
|
||||
Direction cheader_filename="meta/common.h"
|
||||
Display cheader_filename="meta/display.h"
|
||||
DisplayCorner cheader_filename="meta/display.h"
|
||||
DisplayDirection cheader_filename="meta/display.h"
|
||||
Dnd cheader_filename="meta/meta-dnd.h"
|
||||
EdgeType cheader_filename="meta/boxes.h"
|
||||
Edge cheader_filename="meta/boxes.h"
|
||||
Frame cheader_filename="meta/types.h"
|
||||
FrameBorders cheader_filename="meta/common.h"
|
||||
FrameFlags cheader_filename="meta/common.h"
|
||||
FrameType cheader_filename="meta/common.h"
|
||||
GrabOp cheader_filename="meta/common.h"
|
||||
Group cheader_filename="meta/group.h"
|
||||
Group.property_notify.event type="X.Event" ref
|
||||
IdleMonitor cheader_filename="meta/meta-idle-monitor.h"
|
||||
IdleMonitorWatchFunc cheader_filename="meta/meta-idle-monitor.h"
|
||||
InhibitShortcutsDialog cheader_filename="meta/meta-inhibit-shortcuts-dialog.h"
|
||||
InhibitShortcutsDialogResponse cheader_filename="meta/meta-inhibit-shortcuts-dialog.h"
|
||||
KeyBinding cheader_filename="meta/keybindings.h"
|
||||
keybindings_set_custom_handler parent="Meta.KeyBinding" name="set_custom_handler" cheader_filename="meta/keybindings.h"
|
||||
KeyBindingAction cheader_filename="meta/prefs.h"
|
||||
KeyBindingFlags cheader_filename="meta/prefs.h"
|
||||
KeyHandlerFunc cheader_filename="meta/prefs.h"
|
||||
KeyHandlerFunc.event type="Clutter.KeyEvent"
|
||||
LaunchContext cheader_filename="meta/meta-launch-context.h"
|
||||
LaterType cheader_filename="meta/util.h"
|
||||
LocaleDirection cheader_filename="meta/util.h"
|
||||
MaximizeFlags cheader_filename="meta/window.h"
|
||||
ModalOptions cheader_filename="meta/meta-plugin.h"
|
||||
MonitorManager cheader_filename="meta/meta-monitor-manager.h"
|
||||
MonitorSwitchConfigType cheader_filename="meta/meta-monitor-manager.h"
|
||||
MotionDirection cheader_filename="meta/common.h"
|
||||
PadActionType cheader_filename="meta/display.h"
|
||||
Plugin cheader_filename="meta/meta-plugin.h"
|
||||
Plugin.xevent_filter.event type="X.Event" ref
|
||||
PluginInfo cheader_filename="meta/meta-plugin.h"
|
||||
PluginVersion cheader_filename="meta/meta-plugin.h"
|
||||
Preference cheader_filename="meta/prefs.h"
|
||||
PrefsChangedFunc cheader_filename="meta/prefs.h"
|
||||
Rectangle cheader_filename="meta/boxes.h" struct
|
||||
RemoteAccessController cheader_filename="meta/meta-remote-access-controller.h"
|
||||
RemoteAccessHandle cheader_filename="meta/meta-remote-access-controller.h"
|
||||
Selection cheader_filename="meta/meta-selection.h"
|
||||
SelectionSource cheader_filename="meta/meta-selection-source.h"
|
||||
SelectionSourceMemory cheader_filename="meta/meta-selection-source-memory.h"
|
||||
SelectionType cheader_filename="meta/meta-selection-source.h"
|
||||
Settings cheader_filename="meta/meta-settings.h"
|
||||
Shadow cheader_filename="meta/meta-shadow-factory.h"
|
||||
ShadowFactory cheader_filename="meta/meta-shadow-factory.h"
|
||||
ShadowMode cheader_filename="meta/meta-window-actor.h"
|
||||
ShadowParams cheader_filename="meta/meta-shadow-factory.h"
|
||||
ShapedTexture cheader_filename="meta/meta-shaped-texture.h"
|
||||
Side cheader_filename="meta/common.h"
|
||||
SizeChange cheader_filename="meta/compositor.h"
|
||||
SoundPlayer cheader_filename="meta/meta-sound-player.h"
|
||||
StartupNotification cheader_filename="meta/meta-startup-notification.h"
|
||||
StartupNotification.changed.object type="Meta.StartupSequence"
|
||||
StartupNotification.get_sequences type_arguments="Meta.StartupSequence"
|
||||
StartupSequence cheader_filename="meta/meta-startup-notification.h"
|
||||
StackLayer cheader_filename="meta/common.h"
|
||||
Stage cheader_filename="meta/meta-stage.h"
|
||||
Stage.is_focused parent="Meta.Display" symbol_type="method" name="stage_is_focused" instance_idx=0 cheader_filename="meta/compositor-mutter.h"
|
||||
Strut cheader_filename="meta/boxes.h"
|
||||
TabList cheader_filename="meta/display.h"
|
||||
TabShowType cheader_filename="meta/display.h"
|
||||
Theme cheader_filename="meta/theme.h"
|
||||
theme_get_default cheader_filename="meta/theme.h"
|
||||
theme_new cheader_filename="meta/theme.h"
|
||||
VirtualModifier cheader_filename="meta/common.h"
|
||||
Workspace cheader_filename="meta/workspace.h"
|
||||
WorkspaceManager cheader_filename="meta/meta-workspace-manager.h"
|
||||
Window cheader_filename="meta/window.h"
|
||||
Window.focus#signal name="focused"
|
||||
Window.icon type="Cairo.Surface"
|
||||
Window.mini_icon type="Cairo.Surface"
|
||||
WindowActor cheader_filename="meta/meta-window-actor.h"
|
||||
WindowClientType cheader_filename="meta/window.h"
|
||||
WindowForeachFunc cheader_filename="meta/window.h"
|
||||
WindowGroup cheader_filename="meta/meta-window-group.h"
|
||||
WindowMenuType cheader_filename="meta/compositor.h"
|
||||
WindowShape cheader_filename="meta/meta-window-shape.h"
|
||||
WindowType cheader_filename="meta/window.h"
|
||||
X11Display cheader_filename="meta/meta-x11-display.h"
|
||||
|
||||
rect skip
|
||||
prefs_* parent="Meta.Prefs" name="prefs_(.+)" cheader_filename="meta/prefs.h"
|
||||
|
||||
g_utf8_strndup skip
|
||||
|
||||
preference_to_string cheader_filename="meta/prefs.h"
|
||||
frame_type_to_string cheader_filename="meta/util.h"
|
||||
|
||||
CURRENT_TIME cheader_filename="meta/common.h"
|
||||
ICON_WIDTH cheader_filename="meta/common.h"
|
||||
ICON_HEIGHT cheader_filename="meta/common.h"
|
||||
MINI_ICON_WIDTH cheader_filename="meta/common.h"
|
||||
MINI_ICON_HEIGHT cheader_filename="meta/common.h"
|
||||
DEFAULT_ICON_NAME cheader_filename="meta/common.h"
|
||||
PRIORITY_RESIZE cheader_filename="meta/common.h"
|
||||
PRIORITY_BEFORE_REDRAW cheader_filename="meta/common.h"
|
||||
PRIORITY_REDRAW cheader_filename="meta/common.h"
|
||||
PRIORITY_PREFS_NOTIFY cheader_filename="meta/common.h"
|
||||
VIRTUAL_CORE_POINTER_ID cheader_filename="meta/common.h"
|
||||
VIRTUAL_CORE_KEYBOARD_ID cheader_filename="meta/common.h"
|
||||
|
||||
MAJOR_VERSION cheader_filename="meta/meta-version.h"
|
||||
MINOR_VERSION cheader_filename="meta/meta-version.h"
|
||||
MICRO_VERSION cheader_filename="meta/meta-version.h"
|
||||
PLUGIN_API_VERSION cheader_filename="meta/meta-version.h"
|
||||
|
||||
add_verbose_topic parent="Meta.Util" cheader_filename="meta/util.h"
|
||||
bug parent="Meta.Util" cheader_filename="meta/util.h"
|
||||
debug_spew_real parent="Meta.Util" cheader_filename="meta/util.h"
|
||||
external_binding_name_for_action parent="Meta.Util" cheader_filename="meta/util.h"
|
||||
fatal parent="Meta.Util" cheader_filename="meta/util.h"
|
||||
get_locale_direction parent="Meta.Util" cheader_filename="meta/util.h"
|
||||
gravity_to_string parent="Meta.Util" cheader_filename="meta/util.h"
|
||||
is_debugging parent="Meta.Util" cheader_filename="meta/util.h"
|
||||
is_syncing parent="Meta.Util" cheader_filename="meta/util.h"
|
||||
is_verbose parent="Meta.Util" cheader_filename="meta/util.h"
|
||||
is_wayland_compositor parent="Meta.Util" cheader_filename="meta/util.h"
|
||||
later_add parent="Meta.Util" cheader_filename="meta/util.h"
|
||||
later_remove parent="Meta.Util" cheader_filename="meta/util.h"
|
||||
pop_no_msg_prefix parent="Meta.Util" cheader_filename="meta/util.h"
|
||||
push_no_msg_prefix parent="Meta.Util" cheader_filename="meta/util.h"
|
||||
remove_verbose_topic parent="Meta.Util" cheader_filename="meta/util.h"
|
||||
show_dialog parent="Meta.Util" cheader_filename="meta/util.h"
|
||||
show_dialog.columns type_arguments="string" nullable default=null
|
||||
show_dialog.entries type_arguments="string" nullable default=null
|
||||
show_dialog.transient_for default=0
|
||||
show_dialog.icon_name nullable default=null
|
||||
show_dialog.cancel_text nullable default=null
|
||||
show_dialog.ok_text nullable default=null
|
||||
show_dialog.display nullable default=null
|
||||
show_dialog.timeout nullable default=null
|
||||
topic_real parent="Meta.Util" cheader_filename="meta/util.h"
|
||||
unsigned_long_equal parent="Meta.Util" name="ulong_equal" cheader_filename="meta/util.h"
|
||||
unsigned_long_equal.v1 type="ulong?"
|
||||
unsigned_long_equal.v2 type="ulong?"
|
||||
unsigned_long_hash parent="Meta.Util" name="ulong_hash" cheader_filename="meta/util.h"
|
||||
unsigned_long_hash.v type="ulong?"
|
||||
verbose_real parent="Meta.Util" cheader_filename="meta/util.h"
|
||||
warning parent="Meta.Util" cheader_filename="meta/util.h"
|
||||
set_gnome_wm_keybindings parent="Meta.Util"
|
||||
set_wm_name parent="Meta.Util"
|
||||
|
||||
x11_error_trap_pop parent="Meta.X11Display" symbol_type="method" name="error_trap_pop" instance_idx=0 cheader_filename="meta/meta-x11-errors.h"
|
||||
x11_error_trap_pop_with_return parent="Meta.X11Display" symbol_type="method" name="error_trap_pop_with_return" instance_idx=0 cheader_filename="meta/meta-x11-errors.h"
|
||||
x11_error_trap_push parent="Meta.X11Display" symbol_type="method" name="error_trap_push" instance_idx=0 cheader_filename="meta/meta-x11-errors.h"
|
||||
x11_init_gdk_display parent="Meta.X11Display" cheader_filename="meta/meta-x11-display.h"
|
@ -1 +0,0 @@
|
||||
libmutter.deps
|
@ -1 +0,0 @@
|
||||
libmutter.vapi
|
@ -1 +1 @@
|
||||
libmutter-5.deps
|
||||
libmutter.deps
|
@ -1 +1 @@
|
||||
libmutter-5.vapi
|
||||
libmutter.vapi
|
@ -27,10 +27,8 @@ namespace Meta {
|
||||
public static Meta.ButtonLayout get_button_layout ();
|
||||
[CCode (cheader_filename = "meta/prefs.h")]
|
||||
public static bool get_center_new_windows ();
|
||||
#if HAS_MUTTER336
|
||||
[CCode (cheader_filename = "meta/prefs.h")]
|
||||
public static uint get_check_alive_timeout ();
|
||||
#endif
|
||||
[CCode (cheader_filename = "meta/prefs.h")]
|
||||
public static bool get_compositing_manager ();
|
||||
[CCode (cheader_filename = "meta/prefs.h")]
|
||||
@ -107,10 +105,6 @@ namespace Meta {
|
||||
public static void fatal (string format, ...);
|
||||
[CCode (cheader_filename = "meta/util.h", cname = "meta_get_locale_direction")]
|
||||
public static Meta.LocaleDirection get_locale_direction ();
|
||||
#if !HAS_MUTTER336
|
||||
[CCode (cheader_filename = "meta/util.h", cname = "meta_gravity_to_string")]
|
||||
public static unowned string gravity_to_string (int gravity);
|
||||
#endif
|
||||
[CCode (cheader_filename = "meta/util.h", cname = "meta_is_debugging")]
|
||||
public static bool is_debugging ();
|
||||
[CCode (cheader_filename = "meta/util.h", cname = "meta_is_syncing")]
|
||||
@ -156,19 +150,13 @@ namespace Meta {
|
||||
public unowned Meta.RemoteAccessController get_remote_access_controller ();
|
||||
public unowned Meta.Settings get_settings ();
|
||||
public unowned Clutter.Actor get_stage ();
|
||||
#if HAS_MUTTER336
|
||||
public bool is_rendering_hardware_accelerated ();
|
||||
#endif
|
||||
public void lock_layout_group (uint idx);
|
||||
public void set_keymap (string layouts, string variants, string options);
|
||||
public void set_numlock (bool numlock_state);
|
||||
public signal void keymap_changed ();
|
||||
public signal void keymap_layout_group_changed (uint object);
|
||||
#if HAS_MUTTER336
|
||||
public signal void last_device_changed (Clutter.InputDevice object);
|
||||
#else
|
||||
public signal void last_device_changed (int object);
|
||||
#endif
|
||||
public signal void lid_is_closed_changed (bool object);
|
||||
}
|
||||
[CCode (cheader_filename = "meta/meta-background.h", type_id = "meta_background_get_type ()")]
|
||||
@ -398,9 +386,7 @@ namespace Meta {
|
||||
public void unfreeze_keyboard (uint32 timestamp);
|
||||
public bool ungrab_accelerator (uint action_id);
|
||||
public void ungrab_keyboard (uint32 timestamp);
|
||||
#if HAS_MUTTER336
|
||||
public void unset_input_focus (uint32 timestamp);
|
||||
#endif
|
||||
public bool xserver_time_is_before (uint32 time1, uint32 time2);
|
||||
public Meta.Window focus_window { get; }
|
||||
public signal void accelerator_activated (uint object, Clutter.InputDevice p0, uint p1);
|
||||
@ -459,17 +445,10 @@ namespace Meta {
|
||||
public uint add_idle_watch (uint64 interval_msec, owned Meta.IdleMonitorWatchFunc? callback);
|
||||
public uint add_user_active_watch (owned Meta.IdleMonitorWatchFunc? callback);
|
||||
public static unowned Meta.IdleMonitor get_core ();
|
||||
#if !HAS_MUTTER336
|
||||
public static unowned Meta.IdleMonitor get_for_device (int device_id);
|
||||
#endif
|
||||
public int64 get_idletime ();
|
||||
public void remove_watch (uint id);
|
||||
[NoAccessorMethod]
|
||||
#if HAS_MUTTER336
|
||||
public Clutter.InputDevice device { owned get; construct; }
|
||||
#else
|
||||
public int device_id { get; construct; }
|
||||
#endif
|
||||
}
|
||||
[CCode (cheader_filename = "meta/keybindings.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "meta_key_binding_get_type ()")]
|
||||
[Compact]
|
||||
@ -592,9 +571,7 @@ namespace Meta {
|
||||
public class RemoteAccessHandle : GLib.Object {
|
||||
[CCode (has_construct_function = false)]
|
||||
protected RemoteAccessHandle ();
|
||||
#if HAS_MUTTER336
|
||||
public bool get_disable_animations ();
|
||||
#endif
|
||||
public virtual void stop ();
|
||||
#if HAS_MUTTER338
|
||||
[NoAccessorMethod]
|
||||
@ -890,9 +867,7 @@ namespace Meta {
|
||||
public signal void shown ();
|
||||
public signal void size_changed ();
|
||||
public signal void unmanaged ();
|
||||
#if HAS_MUTTER336
|
||||
public signal void unmanaging ();
|
||||
#endif
|
||||
public signal void workspace_changed ();
|
||||
}
|
||||
[CCode (cheader_filename = "meta/meta-window-actor.h", type_id = "meta_window_actor_get_type ()")]
|
||||
@ -920,9 +895,7 @@ namespace Meta {
|
||||
public signal void damaged ();
|
||||
public signal void effects_completed ();
|
||||
public signal void first_frame ();
|
||||
#if HAS_MUTTER336
|
||||
public signal void thawed ();
|
||||
#endif
|
||||
}
|
||||
[CCode (cheader_filename = "meta/meta-window-group.h", type_id = "meta_window_group_get_type ()")]
|
||||
public class WindowGroup : Clutter.Actor, Atk.Implementor, Clutter.Animatable, Clutter.Container, Clutter.Scriptable {
|
||||
@ -1294,7 +1267,6 @@ namespace Meta {
|
||||
KEYBOARD_RESIZING_SE,
|
||||
KEYBOARD_RESIZING_W
|
||||
}
|
||||
#if HAS_MUTTER336
|
||||
[CCode (cheader_filename = "meta/main.h", cprefix = "META_GRAVITY_", type_id = "meta_gravity_get_type ()")]
|
||||
public enum Gravity {
|
||||
NONE,
|
||||
@ -1311,7 +1283,6 @@ namespace Meta {
|
||||
[CCode (cheader_filename = "meta/util.h")]
|
||||
public unowned string to_string ();
|
||||
}
|
||||
#endif
|
||||
[CCode (cheader_filename = "meta/meta-inhibit-shortcuts-dialog.h", cprefix = "META_INHIBIT_SHORTCUTS_DIALOG_RESPONSE_", type_id = "meta_inhibit_shortcuts_dialog_response_get_type ()")]
|
||||
public enum InhibitShortcutsDialogResponse {
|
||||
ALLOW,
|
||||
@ -1511,9 +1482,7 @@ namespace Meta {
|
||||
AUTO_MAXIMIZE,
|
||||
CENTER_NEW_WINDOWS,
|
||||
LOCATE_POINTER,
|
||||
#if HAS_MUTTER336
|
||||
CHECK_ALIVE_TIMEOUT,
|
||||
#endif
|
||||
DRAG_THRESHOLD;
|
||||
[CCode (cheader_filename = "meta/prefs.h")]
|
||||
public unowned string to_string ();
|
||||
|
@ -6,70 +6,6 @@ vapigen_args = [
|
||||
'--vapidir=@0@'.format(meson.current_source_dir()),
|
||||
]
|
||||
|
||||
if mutter334_dep.found()
|
||||
cogl_target = custom_target('mutter-cogl-5',
|
||||
command: [
|
||||
vapigen,
|
||||
mutter_typelib_dir / 'Cogl-5.gir',
|
||||
'--library=mutter-cogl-5',
|
||||
'--pkg=gobject-2.0',
|
||||
vapigen_args,
|
||||
files('Cogl-5-custom.vala')
|
||||
],
|
||||
output: 'mutter-cogl-5.vapi'
|
||||
)
|
||||
|
||||
cogl_pango_target = custom_target('mutter-cogl-pango-5',
|
||||
command: [
|
||||
vapigen,
|
||||
mutter_typelib_dir / 'CoglPango-5.gir',
|
||||
'--library=mutter-cogl-pango-5',
|
||||
'--pkg=mutter-cogl-5',
|
||||
'--pkg=pangocairo',
|
||||
vapigen_args
|
||||
],
|
||||
depends: cogl_target,
|
||||
output: 'mutter-cogl-pango-5.vapi'
|
||||
)
|
||||
|
||||
clutter_target = custom_target('mutter-clutter-5',
|
||||
command: [
|
||||
vapigen,
|
||||
mutter_typelib_dir / 'Clutter-5.gir',
|
||||
'--library=mutter-clutter-5',
|
||||
'--pkg=mutter-cogl-5',
|
||||
'--pkg=mutter-cogl-pango-5',
|
||||
'--pkg=atk',
|
||||
'--pkg=gio-2.0',
|
||||
'--pkg=json-glib-1.0',
|
||||
'--pkg=pangocairo',
|
||||
vapigen_args,
|
||||
files('Clutter-5-custom.vala')
|
||||
],
|
||||
depends: [ cogl_target, cogl_pango_target ],
|
||||
output: 'mutter-clutter-5.vapi'
|
||||
)
|
||||
|
||||
libmutter_target = custom_target('libmutter-5',
|
||||
command: [
|
||||
vapigen,
|
||||
mutter_typelib_dir / 'Meta-5.gir',
|
||||
'--library=libmutter-5',
|
||||
'--pkg=mutter-cogl-5',
|
||||
'--pkg=mutter-cogl-pango-5',
|
||||
'--pkg=mutter-clutter-5',
|
||||
'--pkg=atk',
|
||||
'--pkg=gio-2.0',
|
||||
'--pkg=json-glib-1.0',
|
||||
'--pkg=pangocairo',
|
||||
'--pkg=gtk+-3.0',
|
||||
'--pkg=x11',
|
||||
vapigen_args
|
||||
],
|
||||
depends: [ cogl_target, cogl_pango_target, clutter_target ],
|
||||
output: 'libmutter-5.vapi'
|
||||
)
|
||||
endif
|
||||
if mutter336_dep.found()
|
||||
cogl_target = custom_target('mutter-cogl-6',
|
||||
command: [
|
||||
|
@ -1,5 +0,0 @@
|
||||
atk
|
||||
cairo
|
||||
pango
|
||||
json-glib-1.0
|
||||
mutter-cogl-5
|
@ -1 +0,0 @@
|
||||
mutter-clutter.vapi
|
@ -1 +1 @@
|
||||
mutter-clutter-5.vapi
|
||||
mutter-clutter.vapi
|
File diff suppressed because it is too large
Load Diff
@ -1 +0,0 @@
|
||||
pango
|
@ -1 +0,0 @@
|
||||
mutter-cogl.vapi
|
@ -1 +0,0 @@
|
||||
mutter-cogl-5.deps
|
1
vapi/mutter-cogl-6.deps
Normal file
1
vapi/mutter-cogl-6.deps
Normal file
@ -0,0 +1 @@
|
||||
pango
|
@ -1,34 +0,0 @@
|
||||
[CCode (gir_namespace = "CoglPath", gir_version = "5")]
|
||||
namespace Cogl {
|
||||
[CCode (cheader_filename = "cogl-path/cogl-path.h", copy_function = "cogl_path_copy", ref_function = "cogl_object_ref", unref_function = "cogl_object_unref", type_id = "cogl_path_get_gtype")]
|
||||
[Compact]
|
||||
public class Path {
|
||||
public void arc (float center_x, float center_y, float radius_x, float radius_y, float angle_1, float angle_2);
|
||||
public void close ();
|
||||
public Cogl.Path copy ();
|
||||
public void curve_to (float x_1, float y_1, float x_2, float y_2, float x_3, float y_3);
|
||||
public void ellipse (float center_x, float center_y, float radius_x, float radius_y);
|
||||
public void fill ();
|
||||
public void fill_preserve ();
|
||||
public Cogl.PathFillRule get_fill_rule ();
|
||||
public void line (float x_1, float y_1, float x_2, float y_2);
|
||||
public void line_to (float x, float y);
|
||||
public void move_to (float x, float y);
|
||||
public Path ();
|
||||
public void polygon ([CCode (array_length = false)] float[] coords, int num_points);
|
||||
public void polyline ([CCode (array_length = false)] float[] coords, int num_points);
|
||||
public void rectangle (float x_1, float y_1, float x_2, float y_2);
|
||||
public void rel_curve_to (float x_1, float y_1, float x_2, float y_2, float x_3, float y_3);
|
||||
public void rel_line_to (float x, float y);
|
||||
public void rel_move_to (float x, float y);
|
||||
public void round_rectangle (float x_1, float y_1, float x_2, float y_2, float radius, float arc_step);
|
||||
public void set_fill_rule (Cogl.PathFillRule fill_rule);
|
||||
public void stroke ();
|
||||
public void stroke_preserve ();
|
||||
}
|
||||
[CCode (cheader_filename = "cogl-path/cogl-path.h", cprefix = "COGL_PATH_FILL_RULE_", has_type_id = false)]
|
||||
public enum PathFillRule {
|
||||
NON_ZERO,
|
||||
EVEN_ODD
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user