mirror of
https://github.com/elementary/gala.git
synced 2024-10-03 18:27:12 +03:00
Update to latest mutter-11 changes
Add upstream sealed classes
This commit is contained in:
parent
ebe8c9051c
commit
40bd02c621
@ -17,6 +17,7 @@
|
||||
*/
|
||||
|
||||
|
||||
|
||||
private class Gala.Barrier : Meta.Barrier {
|
||||
public bool is_hit { get; set; default = false; }
|
||||
public double pressure_x { get; set; default = 0; }
|
||||
|
@ -158,6 +158,11 @@ 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"
|
||||
|
||||
// There is no way to know sealed classes before GLib 2.70
|
||||
ColorState sealed
|
||||
FrameClock sealed
|
||||
TextureContent sealed
|
||||
|
||||
// Backwards compatibility
|
||||
Color.alloc symbol_type="function"
|
||||
|
||||
|
@ -43,6 +43,7 @@ is_frame_info parent="Cogl.Object" symbol_type="method" instance_idx=0
|
||||
is_pipeline parent="Cogl.Object" symbol_type="method" instance_idx=0
|
||||
is_texture_2d parent="Cogl.Object" symbol_type="method" instance_idx=0
|
||||
is_texture_2d_sliced parent="Cogl.Object" symbol_type="method" instance_idx=0
|
||||
is_snippet parent="Cogl.Object" symbol_type="method" instance_idx=0
|
||||
|
||||
create_program type="unowned Cogl.Program" name="create" parent="Cogl.Program"
|
||||
create_shader type="unowned Cogl.Shader" name="create" parent="Cogl.Shader"
|
||||
@ -64,3 +65,5 @@ SystemError errordomain
|
||||
TextureError errordomain
|
||||
FramebufferError errordomain
|
||||
ScanoutError errordomain
|
||||
|
||||
Offscreen sealed
|
||||
|
@ -182,3 +182,24 @@ x11_error_trap_pop parent="Meta.X11Display" symbol_type="method" name="error_tra
|
||||
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"
|
||||
|
||||
BackgroundActor sealed
|
||||
BackgroundContent sealed
|
||||
BackgroundImage sealed
|
||||
BackgroundImageCache sealed
|
||||
Background sealed
|
||||
Dnd sealed
|
||||
IdleMonitor sealed
|
||||
LaunchContext sealed
|
||||
RemoteAccessController sealed
|
||||
SelectionSourceMemory sealed
|
||||
Selection sealed
|
||||
ShadowFactory sealed
|
||||
ShapedTexture sealed
|
||||
SoundPlayer sealed
|
||||
Stage sealed
|
||||
StartupNotification sealed
|
||||
WaylandClient sealed
|
||||
WindowGroup sealed
|
||||
WorkspaceManager sealed
|
||||
X11Display sealed
|
||||
|
@ -162,6 +162,9 @@ namespace Meta {
|
||||
protected Backend ();
|
||||
[CCode (cheader_filename = "meta/meta-backend.h", cname = "meta_get_backend")]
|
||||
public static unowned Meta.Backend get_backend ();
|
||||
#if HAS_MUTTER43
|
||||
public Meta.BackendCapabilities get_capabilities ();
|
||||
#endif
|
||||
#if HAS_MUTTER41
|
||||
public unowned Meta.Context get_context ();
|
||||
public unowned Meta.IdleMonitor get_core_idle_monitor ();
|
||||
@ -179,6 +182,9 @@ namespace Meta {
|
||||
public bool is_rendering_hardware_accelerated ();
|
||||
public void lock_layout_group (uint idx);
|
||||
public void set_keymap (string layouts, string variants, string options);
|
||||
#if HAS_MUTTER43
|
||||
public Meta.BackendCapabilities capabilities { get; }
|
||||
#endif
|
||||
#if HAS_MUTTER41
|
||||
public Meta.Context context { get; construct; }
|
||||
#endif
|
||||
@ -194,7 +200,7 @@ namespace Meta {
|
||||
#endif
|
||||
}
|
||||
[CCode (cheader_filename = "meta/meta-background.h", type_id = "meta_background_get_type ()")]
|
||||
public class Background : GLib.Object {
|
||||
public sealed class Background : GLib.Object {
|
||||
[CCode (has_construct_function = false)]
|
||||
public Background (Meta.Display display);
|
||||
public static void refresh_all ();
|
||||
@ -207,7 +213,7 @@ namespace Meta {
|
||||
public signal void changed ();
|
||||
}
|
||||
[CCode (cheader_filename = "meta/meta-background-actor.h", type_id = "meta_background_actor_get_type ()")]
|
||||
public class BackgroundActor : Clutter.Actor, Atk.Implementor, Clutter.Animatable, Clutter.Container, Clutter.Scriptable {
|
||||
public sealed class BackgroundActor : Clutter.Actor, Atk.Implementor, Clutter.Animatable, Clutter.Container, Clutter.Scriptable {
|
||||
[CCode (has_construct_function = false, type = "ClutterActor*")]
|
||||
public BackgroundActor (Meta.Display display, int monitor);
|
||||
#if HAS_MUTTER338
|
||||
@ -217,7 +223,7 @@ namespace Meta {
|
||||
public int monitor { get; construct; }
|
||||
}
|
||||
[CCode (cheader_filename = "meta/meta-background-content.h", type_id = "meta_background_content_get_type ()")]
|
||||
public class BackgroundContent : GLib.Object, Clutter.Content {
|
||||
public sealed class BackgroundContent : GLib.Object, Clutter.Content {
|
||||
[CCode (has_construct_function = false, type = "ClutterContent*")]
|
||||
public BackgroundContent (Meta.Display display, int monitor);
|
||||
#endif
|
||||
@ -260,7 +266,7 @@ namespace Meta {
|
||||
public BackgroundGroup ();
|
||||
}
|
||||
[CCode (cheader_filename = "meta/meta-background-image.h", type_id = "meta_background_image_get_type ()")]
|
||||
public class BackgroundImage : GLib.Object {
|
||||
public sealed class BackgroundImage : GLib.Object {
|
||||
[CCode (has_construct_function = false)]
|
||||
protected BackgroundImage ();
|
||||
public bool get_success ();
|
||||
@ -269,7 +275,7 @@ namespace Meta {
|
||||
public signal void loaded ();
|
||||
}
|
||||
[CCode (cheader_filename = "meta/meta-background-image.h", type_id = "meta_background_image_cache_get_type ()")]
|
||||
public class BackgroundImageCache : GLib.Object {
|
||||
public sealed class BackgroundImageCache : GLib.Object {
|
||||
[CCode (has_construct_function = false)]
|
||||
protected BackgroundImageCache ();
|
||||
public static unowned Meta.BackgroundImageCache get_default ();
|
||||
@ -277,12 +283,22 @@ namespace Meta {
|
||||
public void purge (GLib.File file);
|
||||
}
|
||||
[CCode (cheader_filename = "meta/barrier.h", type_id = "meta_barrier_get_type ()")]
|
||||
#if HAS_MUTTER43
|
||||
public class Barrier : GLib.Object, GLib.Initable {
|
||||
[CCode (has_construct_function = false)]
|
||||
public Barrier (Meta.Backend backend, int x1, int y1, int x2, int y2, Meta.BarrierDirection directions) throws GLib.Error;
|
||||
#else
|
||||
public class Barrier : GLib.Object {
|
||||
[CCode (has_construct_function = false)]
|
||||
protected Barrier ();
|
||||
#endif
|
||||
public void destroy ();
|
||||
public bool is_active ();
|
||||
public void release (Meta.BarrierEvent event);
|
||||
#if HAS_MUTTER43
|
||||
[NoAccessorMethod]
|
||||
public Meta.Backend backend { owned get; construct; }
|
||||
#endif
|
||||
[NoAccessorMethod]
|
||||
public Meta.BarrierDirection directions { get; construct; }
|
||||
[NoAccessorMethod]
|
||||
@ -531,7 +547,7 @@ namespace Meta {
|
||||
public signal void x11_display_setup ();
|
||||
}
|
||||
[CCode (cheader_filename = "meta/meta-dnd.h", type_id = "meta_dnd_get_type ()")]
|
||||
public class Dnd : GLib.Object {
|
||||
public sealed class Dnd : GLib.Object {
|
||||
[CCode (has_construct_function = false)]
|
||||
protected Dnd ();
|
||||
public signal void dnd_enter ();
|
||||
@ -552,7 +568,7 @@ namespace Meta {
|
||||
public void update_layers ();
|
||||
}
|
||||
[CCode (cheader_filename = "meta/meta-idle-monitor.h", type_id = "meta_idle_monitor_get_type ()")]
|
||||
public class IdleMonitor : GLib.Object {
|
||||
public sealed class IdleMonitor : GLib.Object {
|
||||
[CCode (has_construct_function = false)]
|
||||
protected IdleMonitor ();
|
||||
public uint add_idle_watch (uint64 interval_msec, owned Meta.IdleMonitorWatchFunc? callback);
|
||||
@ -585,7 +601,7 @@ namespace Meta {
|
||||
}
|
||||
#endif
|
||||
[CCode (cheader_filename = "meta/meta-launch-context.h", type_id = "meta_launch_context_get_type ()")]
|
||||
public class LaunchContext : GLib.AppLaunchContext {
|
||||
public sealed class LaunchContext : GLib.AppLaunchContext {
|
||||
[CCode (has_construct_function = false)]
|
||||
protected LaunchContext ();
|
||||
public void set_timestamp (uint32 timestamp);
|
||||
@ -617,6 +633,10 @@ namespace Meta {
|
||||
[NoAccessorMethod]
|
||||
public bool has_builtin_panel { get; }
|
||||
#endif
|
||||
#if HAS_MUTTER43
|
||||
[NoAccessorMethod]
|
||||
public bool night_light_supported { get; }
|
||||
#endif
|
||||
#if HAS_MUTTER338
|
||||
public bool panel_orientation_managed { get; }
|
||||
#endif
|
||||
@ -689,7 +709,7 @@ namespace Meta {
|
||||
public virtual bool xevent_filter ([CCode (type = "XEvent*")] ref X.Event event);
|
||||
}
|
||||
[CCode (cheader_filename = "meta/meta-remote-access-controller.h", type_id = "meta_remote_access_controller_get_type ()")]
|
||||
public class RemoteAccessController : GLib.Object {
|
||||
public sealed class RemoteAccessController : GLib.Object {
|
||||
[CCode (has_construct_function = false)]
|
||||
protected RemoteAccessController ();
|
||||
#if HAS_MUTTER338
|
||||
@ -711,7 +731,7 @@ namespace Meta {
|
||||
public signal void stopped ();
|
||||
}
|
||||
[CCode (cheader_filename = "meta/meta-selection.h", type_id = "meta_selection_get_type ()")]
|
||||
public class Selection : GLib.Object {
|
||||
public sealed class Selection : GLib.Object {
|
||||
[CCode (has_construct_function = false)]
|
||||
public Selection (Meta.Display display);
|
||||
public GLib.List<string> get_mimetypes (Meta.SelectionType selection_type);
|
||||
@ -731,7 +751,7 @@ namespace Meta {
|
||||
public virtual signal void deactivated ();
|
||||
}
|
||||
[CCode (cheader_filename = "meta/meta-selection-source-memory.h", type_id = "meta_selection_source_memory_get_type ()")]
|
||||
public class SelectionSourceMemory : Meta.SelectionSource {
|
||||
public sealed class SelectionSourceMemory : Meta.SelectionSource {
|
||||
[CCode (has_construct_function = false, type = "MetaSelectionSource*")]
|
||||
public SelectionSourceMemory (string mimetype, GLib.Bytes content);
|
||||
}
|
||||
@ -750,7 +770,7 @@ namespace Meta {
|
||||
public void unref ();
|
||||
}
|
||||
[CCode (cheader_filename = "meta/meta-shadow-factory.h", type_id = "meta_shadow_factory_get_type ()")]
|
||||
public class ShadowFactory : GLib.Object {
|
||||
public sealed class ShadowFactory : GLib.Object {
|
||||
[CCode (has_construct_function = false)]
|
||||
public ShadowFactory ();
|
||||
public static unowned Meta.ShadowFactory get_default ();
|
||||
@ -760,7 +780,7 @@ namespace Meta {
|
||||
public signal void changed ();
|
||||
}
|
||||
[CCode (cheader_filename = "meta/meta-shaped-texture.h", type_id = "meta_shaped_texture_get_type ()")]
|
||||
public class ShapedTexture : GLib.Object, Clutter.Content {
|
||||
public sealed class ShapedTexture : GLib.Object, Clutter.Content {
|
||||
[CCode (has_construct_function = false)]
|
||||
protected ShapedTexture ();
|
||||
public Cairo.Surface? get_image (Cairo.RectangleInt? clip);
|
||||
@ -773,20 +793,20 @@ namespace Meta {
|
||||
public signal void size_changed ();
|
||||
}
|
||||
[CCode (cheader_filename = "meta/meta-sound-player.h", type_id = "meta_sound_player_get_type ()")]
|
||||
public class SoundPlayer : GLib.Object {
|
||||
public sealed class SoundPlayer : GLib.Object {
|
||||
[CCode (has_construct_function = false)]
|
||||
protected SoundPlayer ();
|
||||
public void play_from_file (GLib.File file, string description, GLib.Cancellable? cancellable = null);
|
||||
public void play_from_theme (string name, string description, GLib.Cancellable? cancellable = null);
|
||||
}
|
||||
[CCode (cheader_filename = "meta/meta-stage.h", type_id = "meta_stage_get_type ()")]
|
||||
public class Stage : Clutter.Stage, Atk.Implementor, Clutter.Animatable, Clutter.Container, Clutter.Scriptable {
|
||||
public sealed class Stage : Clutter.Stage, Atk.Implementor, Clutter.Animatable, Clutter.Container, Clutter.Scriptable {
|
||||
[CCode (has_construct_function = false)]
|
||||
protected Stage ();
|
||||
public signal void actors_painted ();
|
||||
}
|
||||
[CCode (cheader_filename = "meta/meta-startup-notification.h", type_id = "meta_startup_notification_get_type ()")]
|
||||
public class StartupNotification : GLib.Object {
|
||||
public sealed class StartupNotification : GLib.Object {
|
||||
[CCode (has_construct_function = false)]
|
||||
protected StartupNotification ();
|
||||
public Meta.LaunchContext create_launcher ();
|
||||
@ -831,7 +851,7 @@ namespace Meta {
|
||||
}
|
||||
#if HAS_MUTTER338
|
||||
[CCode (cheader_filename = "meta/meta-wayland-client.h", type_id = "meta_wayland_client_get_type ()")]
|
||||
public class WaylandClient : GLib.Object {
|
||||
public sealed class WaylandClient : GLib.Object {
|
||||
[CCode (has_construct_function = false)]
|
||||
public WaylandClient (GLib.SubprocessLauncher launcher) throws GLib.Error;
|
||||
public void hide_from_window_list (Meta.Window window);
|
||||
@ -1047,7 +1067,7 @@ namespace Meta {
|
||||
public signal void thawed ();
|
||||
}
|
||||
[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 {
|
||||
public sealed class WindowGroup : Clutter.Actor, Atk.Implementor, Clutter.Animatable, Clutter.Container, Clutter.Scriptable {
|
||||
[CCode (has_construct_function = false)]
|
||||
protected WindowGroup ();
|
||||
}
|
||||
@ -1088,7 +1108,7 @@ namespace Meta {
|
||||
public signal void window_removed (Meta.Window object);
|
||||
}
|
||||
[CCode (cheader_filename = "meta/meta-workspace-manager.h", type_id = "meta_workspace_manager_get_type ()")]
|
||||
public class WorkspaceManager : GLib.Object {
|
||||
public sealed class WorkspaceManager : GLib.Object {
|
||||
[CCode (has_construct_function = false)]
|
||||
protected WorkspaceManager ();
|
||||
public unowned Meta.Workspace append_new_workspace (bool activate, uint32 timestamp);
|
||||
@ -1113,7 +1133,7 @@ namespace Meta {
|
||||
public signal void workspaces_reordered ();
|
||||
}
|
||||
[CCode (cheader_filename = "meta/meta-x11-display.h", type_id = "meta_x11_display_get_type ()")]
|
||||
public class X11Display : GLib.Object {
|
||||
public sealed class X11Display : GLib.Object {
|
||||
[CCode (has_construct_function = false)]
|
||||
protected X11Display ();
|
||||
public void clear_stage_input_region ();
|
||||
@ -1229,6 +1249,14 @@ namespace Meta {
|
||||
public Meta.Rectangle rect;
|
||||
public Meta.Side side;
|
||||
}
|
||||
#if HAS_MUTTER43
|
||||
[CCode (cheader_filename = "meta/main.h", cprefix = "META_BACKEND_CAPABILITY_", type_id = "meta_backend_capabilities_get_type ()")]
|
||||
[Flags]
|
||||
public enum BackendCapabilities {
|
||||
NONE,
|
||||
BARRIERS
|
||||
}
|
||||
#endif
|
||||
[CCode (cheader_filename = "meta/barrier.h", cprefix = "META_BARRIER_DIRECTION_", type_id = "meta_barrier_direction_get_type ()")]
|
||||
[Flags]
|
||||
public enum BarrierDirection {
|
||||
@ -1343,6 +1371,9 @@ namespace Meta {
|
||||
#if HAS_MUTTER42
|
||||
BACKEND,
|
||||
RENDER,
|
||||
#endif
|
||||
#if HAS_MUTTER43
|
||||
COLOR,
|
||||
#endif
|
||||
DBUS;
|
||||
[CCode (cheader_filename = "meta/util.h", cname = "meta_topic_to_string")]
|
||||
@ -1380,11 +1411,7 @@ namespace Meta {
|
||||
MONITOR,
|
||||
SCREEN
|
||||
}
|
||||
#if HAS_MUTTER43
|
||||
[CCode (cheader_filename = "meta/meta-context.h,meta/main.h", cprefix = "META_EXIT_", type_id = "meta_exit_code_get_type ()")]
|
||||
#else
|
||||
[CCode (cheader_filename = "meta/main.h", cprefix = "META_EXIT_", type_id = "meta_exit_code_get_type ()")]
|
||||
#endif
|
||||
public enum ExitCode {
|
||||
SUCCESS,
|
||||
ERROR
|
||||
@ -1720,6 +1747,9 @@ namespace Meta {
|
||||
MAXIMIZE,
|
||||
UNMAXIMIZE,
|
||||
FULLSCREEN,
|
||||
#if HAS_MUTTER43
|
||||
MONITOR_MOVE,
|
||||
#endif
|
||||
UNFULLSCREEN
|
||||
}
|
||||
[CCode (cheader_filename = "meta/common.h", cprefix = "META_LAYER_", type_id = "meta_stack_layer_get_type ()")]
|
||||
@ -1836,30 +1866,14 @@ namespace Meta {
|
||||
public static bool activate_session ();
|
||||
#endif
|
||||
#if HAS_MUTTER338
|
||||
#if HAS_MUTTER43
|
||||
[CCode (cheader_filename = "meta/meta-context.h,meta/main.h")]
|
||||
#else
|
||||
[CCode (cheader_filename = "meta/main.h")]
|
||||
#endif
|
||||
public static void add_clutter_debug_flags (Clutter.DebugFlag debug_flags, Clutter.DrawDebugFlag draw_flags, Clutter.PickDebugFlag pick_flags);
|
||||
#if HAS_MUTTER43
|
||||
[CCode (cheader_filename = "meta/meta-context.h,meta/main.h")]
|
||||
#else
|
||||
[CCode (cheader_filename = "meta/main.h")]
|
||||
#endif
|
||||
public static void add_debug_paint_flag (Meta.DebugPaintFlag flag);
|
||||
#endif
|
||||
#if HAS_MUTTER43
|
||||
[CCode (cheader_filename = "meta/meta-context.h,meta/main.h")]
|
||||
#else
|
||||
[CCode (cheader_filename = "meta/main.h")]
|
||||
#endif
|
||||
public static void clutter_init ();
|
||||
#if HAS_MUTTER43
|
||||
[CCode (cheader_filename = "meta/meta-context.h,meta/main.h")]
|
||||
#else
|
||||
[CCode (cheader_filename = "meta/main.h")]
|
||||
#endif
|
||||
public static void exit (Meta.ExitCode code);
|
||||
#if !HAS_MUTTER41
|
||||
#if HAS_MUTTER40
|
||||
@ -1883,18 +1897,10 @@ namespace Meta {
|
||||
[CCode (cheader_filename = "meta/main.h")]
|
||||
public static void init ();
|
||||
#endif
|
||||
#if HAS_MUTTER43
|
||||
[CCode (cheader_filename = "meta/main.h,meta/meta-context.h")]
|
||||
#else
|
||||
[CCode (cheader_filename = "meta/main.h")]
|
||||
#endif
|
||||
public static bool is_restart ();
|
||||
#if HAS_MUTTER40
|
||||
#if HAS_MUTTER43
|
||||
[CCode (cheader_filename = "meta/meta-context.h,meta/main.h")]
|
||||
#else
|
||||
[CCode (cheader_filename = "meta/main.h")]
|
||||
#endif
|
||||
public static bool is_topic_enabled (Meta.DebugTopic topic);
|
||||
#endif
|
||||
#if !HAS_MUTTER41
|
||||
@ -1904,24 +1910,15 @@ namespace Meta {
|
||||
public static void register_with_session ();
|
||||
#endif
|
||||
#if HAS_MUTTER338
|
||||
#if HAS_MUTTER43
|
||||
[CCode (cheader_filename = "meta/meta-context.h,meta/main.h")]
|
||||
#else
|
||||
[CCode (cheader_filename = "meta/main.h")]
|
||||
#endif
|
||||
public static void remove_clutter_debug_flags (Clutter.DebugFlag debug_flags, Clutter.DrawDebugFlag draw_flags, Clutter.PickDebugFlag pick_flags);
|
||||
#if HAS_MUTTER43
|
||||
[CCode (cheader_filename = "meta/meta-context.h,meta/main.h")]
|
||||
#else
|
||||
[CCode (cheader_filename = "meta/main.h")]
|
||||
#endif
|
||||
public static void remove_debug_paint_flag (Meta.DebugPaintFlag flag);
|
||||
#endif
|
||||
[CCode (cheader_filename = "meta/main.h")]
|
||||
#if HAS_MUTTER43
|
||||
[CCode (cheader_filename = "meta/meta-context.h,meta/main.h")]
|
||||
public static void restart (string? message, Meta.Context context);
|
||||
#else
|
||||
[CCode (cheader_filename = "meta/main.h")]
|
||||
public static void restart (string? message);
|
||||
#endif
|
||||
#if !HAS_MUTTER41
|
||||
|
@ -5890,7 +5890,7 @@ namespace Clutter {
|
||||
}
|
||||
#if HAS_MUTTER43
|
||||
[CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_color_state_get_type ()")]
|
||||
public class ColorState : GLib.Object {
|
||||
public sealed class ColorState : GLib.Object {
|
||||
[CCode (has_construct_function = false)]
|
||||
public ColorState (Clutter.Colorspace colorspace);
|
||||
public Clutter.Colorspace get_colorspace ();
|
||||
@ -6262,7 +6262,7 @@ namespace Clutter {
|
||||
#endif
|
||||
#if HAS_MUTTER338
|
||||
[CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_frame_clock_get_type ()")]
|
||||
public class FrameClock : GLib.Object {
|
||||
public sealed class FrameClock : GLib.Object {
|
||||
[CCode (has_construct_function = false)]
|
||||
protected FrameClock ();
|
||||
public void add_timeline (Clutter.Timeline timeline);
|
||||
@ -7895,7 +7895,7 @@ namespace Clutter {
|
||||
}
|
||||
#if HAS_MUTTER41
|
||||
[CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_texture_content_get_type ()")]
|
||||
public class TextureContent : GLib.Object, Clutter.Content {
|
||||
public sealed class TextureContent : GLib.Object, Clutter.Content {
|
||||
[CCode (has_construct_function = false)]
|
||||
protected TextureContent ();
|
||||
public unowned Cogl.Texture get_texture ();
|
||||
|
@ -306,6 +306,11 @@ namespace Cogl {
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cname = "cogl_is_pipeline")]
|
||||
[Version (since = "2.0")]
|
||||
public bool is_pipeline ();
|
||||
#if HAS_MUTTER43
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cname = "cogl_is_snippet")]
|
||||
[Version (since = "1.10")]
|
||||
public bool is_snippet ();
|
||||
#endif
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cname = "cogl_is_texture")]
|
||||
public bool is_texture ();
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cname = "cogl_is_texture_2d")]
|
||||
@ -316,7 +321,7 @@ namespace Cogl {
|
||||
}
|
||||
#if HAS_MUTTER40
|
||||
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_offscreen_get_type ()")]
|
||||
public class Offscreen : Cogl.Framebuffer {
|
||||
public sealed class Offscreen : Cogl.Framebuffer {
|
||||
#else
|
||||
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_offscreen_get_gtype ()")]
|
||||
public class Offscreen : Cogl.Object, Cogl.Framebuffer {
|
||||
@ -423,6 +428,12 @@ namespace Cogl {
|
||||
[CCode (has_construct_function = false)]
|
||||
[Version (since = "2.0")]
|
||||
public Pipeline (Cogl.Context context);
|
||||
#if HAS_MUTTER43
|
||||
[Version (since = "1.10")]
|
||||
public void add_layer_snippet (int layer, Cogl.Snippet snippet);
|
||||
[Version (since = "1.10")]
|
||||
public void add_snippet (Cogl.Snippet snippet);
|
||||
#endif
|
||||
[Version (since = "2.0")]
|
||||
public Cogl.Pipeline copy ();
|
||||
[Version (since = "2.0")]
|
||||
@ -617,6 +628,32 @@ namespace Cogl {
|
||||
[Version (deprecated = true, deprecated_since = "1.16")]
|
||||
public void source (string source);
|
||||
}
|
||||
#if HAS_MUTTER43
|
||||
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_snippet_get_gtype ()")]
|
||||
public class Snippet : Cogl.Object {
|
||||
[CCode (has_construct_function = false)]
|
||||
[Version (since = "1.10")]
|
||||
public Snippet (Cogl.SnippetHook hook, string? declarations, string? post);
|
||||
[Version (since = "1.10")]
|
||||
public unowned string get_declarations ();
|
||||
[Version (since = "1.10")]
|
||||
public Cogl.SnippetHook get_hook ();
|
||||
[Version (since = "1.10")]
|
||||
public unowned string get_post ();
|
||||
[Version (since = "1.10")]
|
||||
public unowned string get_pre ();
|
||||
[Version (since = "1.10")]
|
||||
public unowned string get_replace ();
|
||||
[Version (since = "1.10")]
|
||||
public void set_declarations (string declarations);
|
||||
[Version (since = "1.10")]
|
||||
public void set_post (string post);
|
||||
[Version (since = "1.10")]
|
||||
public void set_pre (string pre);
|
||||
[Version (since = "1.10")]
|
||||
public void set_replace (string replace);
|
||||
}
|
||||
#endif
|
||||
[CCode (cheader_filename = "cogl/cogl.h", lower_case_csuffix = "texture_2d", type_id = "cogl_texture_2d_get_gtype ()")]
|
||||
public class Texture2D : Cogl.Object, Cogl.Texture {
|
||||
[CCode (has_construct_function = false)]
|
||||
@ -774,6 +811,7 @@ namespace Cogl {
|
||||
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_texture_get_gtype ()")]
|
||||
public interface Texture : Cogl.Object {
|
||||
public bool allocate () throws GLib.Error;
|
||||
#if !HAS_MUTTER43
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cname = "cogl_texture_new_from_bitmap")]
|
||||
[Version (deprecated = true, deprecated_since = "1.18", replacement = "Texture.new_from_bitmap", since = "1.0")]
|
||||
public static Cogl.Texture from_bitmap (Cogl.Bitmap bitmap, Cogl.TextureFlags flags, Cogl.PixelFormat internal_format);
|
||||
@ -783,6 +821,7 @@ namespace Cogl {
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cname = "cogl_texture_new_from_file")]
|
||||
[Version (deprecated = true, deprecated_since = "1.18", replacement = "Texture.new_from_file", since = "0.8")]
|
||||
public static Cogl.Texture from_file (string filename, Cogl.TextureFlags flags, Cogl.PixelFormat internal_format) throws GLib.Error;
|
||||
#endif
|
||||
[Version (since = "1.18")]
|
||||
public Cogl.TextureComponents get_components ();
|
||||
public int get_data (Cogl.PixelFormat format, uint rowstride, [CCode (array_length = false)] uint8[] data);
|
||||
@ -793,12 +832,14 @@ namespace Cogl {
|
||||
public bool get_premultiplied ();
|
||||
public uint get_width ();
|
||||
public bool is_sliced ();
|
||||
#if !HAS_MUTTER43
|
||||
[Version (deprecated = true, deprecated_since = "1.18", since = "1.0")]
|
||||
public static Cogl.Texture new_from_bitmap (Cogl.Bitmap bitmap, Cogl.TextureFlags flags, Cogl.PixelFormat internal_format);
|
||||
[Version (deprecated = true, deprecated_since = "1.18", since = "0.8")]
|
||||
public static Cogl.Texture new_from_data (int width, int height, Cogl.TextureFlags flags, Cogl.PixelFormat format, Cogl.PixelFormat internal_format, int rowstride, [CCode (array_length = false)] uint8[] data);
|
||||
[Version (deprecated = true, deprecated_since = "1.18", since = "0.8")]
|
||||
public static Cogl.Texture new_from_file (string filename, Cogl.TextureFlags flags, Cogl.PixelFormat internal_format) throws GLib.Error;
|
||||
#endif
|
||||
#if !HAS_MUTTER42
|
||||
[Version (deprecated = true, deprecated_since = "1.18", since = "1.2")]
|
||||
public Cogl.Texture new_from_sub_texture (int sub_x, int sub_y, int sub_width, int sub_height);
|
||||
@ -1308,6 +1349,21 @@ namespace Cogl {
|
||||
VERTEX,
|
||||
FRAGMENT
|
||||
}
|
||||
#if HAS_MUTTER43
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_SNIPPET_HOOK_", has_type_id = false)]
|
||||
[Version (since = "1.10")]
|
||||
public enum SnippetHook {
|
||||
VERTEX,
|
||||
VERTEX_TRANSFORM,
|
||||
VERTEX_GLOBALS,
|
||||
POINT_SIZE,
|
||||
FRAGMENT,
|
||||
FRAGMENT_GLOBALS,
|
||||
TEXTURE_COORD_TRANSFORM,
|
||||
LAYER_FRAGMENT,
|
||||
TEXTURE_LOOKUP
|
||||
}
|
||||
#endif
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_STEREO_", has_type_id = false)]
|
||||
public enum StereoMode {
|
||||
BOTH,
|
||||
@ -1323,6 +1379,7 @@ namespace Cogl {
|
||||
RGBA,
|
||||
DEPTH
|
||||
}
|
||||
#if !HAS_MUTTER43
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_TEXTURE_", has_type_id = false)]
|
||||
[Flags]
|
||||
[Version (since = "1.0")]
|
||||
@ -1332,6 +1389,7 @@ namespace Cogl {
|
||||
NO_SLICING,
|
||||
NO_ATLAS
|
||||
}
|
||||
#endif
|
||||
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_VERTICES_MODE_", has_type_id = false)]
|
||||
[Version (since = "1.0")]
|
||||
public enum VerticesMode {
|
||||
|
Loading…
Reference in New Issue
Block a user