protected Display ();
public void beep ();
public void close ();
+ [Version (since = "4.6")]
+ public Gdk.GLContext? create_gl_context () throws GLib.Error;
public bool device_is_grabbed (Gdk.Device device);
public void flush ();
public Gdk.AppLaunchContext get_app_launch_context ();
}
[CCode (cheader_filename = "gdk/gdk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gdk_file_list_get_type ()")]
[Compact]
+ [Version (since = "4.6")]
public class FileList {
+ public GLib.SList<weak GLib.File> get_files ();
}
[CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_focus_event_get_type ()")]
public class FocusEvent : Gdk.Event {
[CCode (has_construct_function = false)]
protected GLContext ();
public static void clear_current ();
+ [Version (since = "4.6")]
+ public Gdk.GLAPI get_allowed_apis ();
+ [Version (since = "4.6")]
+ public Gdk.GLAPI get_api ();
public static unowned Gdk.GLContext? get_current ();
public bool get_debug_enabled ();
public unowned Gdk.Display? get_display ();
public bool is_shared (Gdk.GLContext other);
public void make_current ();
public bool realize () throws GLib.Error;
+ [Version (since = "4.6")]
+ public void set_allowed_apis (Gdk.GLAPI apis);
public void set_debug_enabled (bool enabled);
public void set_forward_compatible (bool compatible);
public void set_required_version (int major, int minor);
public void set_use_es (int use_es);
+ [Version (since = "4.6")]
+ public Gdk.GLAPI allowed_apis { get; set; }
+ [Version (since = "4.6")]
+ public Gdk.GLAPI api { get; }
[Version (deprecated = true, deprecated_since = "4.4")]
public Gdk.GLContext shared_context { get; construct; }
}
protected Surface ();
public void beep ();
public Gdk.CairoContext create_cairo_context ();
- public Gdk.GLContext? create_gl_context () throws GLib.Error;
+ public Gdk.GLContext create_gl_context () throws GLib.Error;
public Cairo.Surface create_similar_surface (Cairo.Content content, int width, int height);
public Gdk.VulkanContext create_vulkan_context () throws GLib.Error;
[DestroysInstance]
CURRENT_MONITOR,
ALL_MONITORS
}
+ [CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_GL_API_", type_id = "gdk_gl_api_get_type ()")]
+ [Flags]
+ [Version (since = "4.6")]
+ public enum GLAPI {
+ GL,
+ GLES
+ }
[CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_GRAVITY_", type_id = "gdk_gravity_get_type ()")]
public enum Gravity {
NORTH_WEST,
B8G8R8,
R16G16B16,
R16G16B16A16_PREMULTIPLIED,
+ R16G16B16A16,
R16G16B16_FLOAT,
R16G16B16A16_FLOAT_PREMULTIPLIED,
+ R16G16B16A16_FLOAT,
R32G32B32_FLOAT,
R32G32B32A32_FLOAT_PREMULTIPLIED,
+ R32G32B32A32_FLOAT,
N_FORMATS
}
[CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_", type_id = "gdk_modifier_type_get_type ()")]
public unowned Gsk.RenderNode get_child ();
public unowned string get_message ();
}
+ [CCode (cheader_filename = "gsk/gsk.h", type_id = "gsk_gl_renderer_get_type ()")]
+ public class GLRenderer : Gsk.Renderer {
+ [CCode (has_construct_function = false, type = "GskRenderer*")]
+ [Version (since = "4.2")]
+ public GLRenderer ();
+ }
[CCode (cheader_filename = "gsk/gsk.h", type_id = "gsk_gl_shader_get_type ()")]
public class GLShader : GLib.Object {
[CCode (has_construct_function = false)]
[CCode (cheader_filename = "gsk/gsk.h", type_id = "gsk_ngl_renderer_get_type ()")]
public class NglRenderer : Gsk.Renderer {
[CCode (has_construct_function = false, type = "GskRenderer*")]
- [Version (since = "4.2")]
+ [Version (deprecated = true, deprecated_since = "4.4")]
public NglRenderer ();
}
[CCode (cheader_filename = "gsk/gsk.h", type_id = "gsk_opacity_node_get_type ()")]
public static Gsk.Renderer? for_surface (Gdk.Surface surface);
public unowned Gdk.Surface? get_surface ();
public bool is_realized ();
- public bool realize (Gdk.Surface surface) throws GLib.Error;
+ public bool realize (Gdk.Surface? surface) throws GLib.Error;
public void render (Gsk.RenderNode root, Cairo.Region? region);
public Gdk.Texture render_texture (Gsk.RenderNode root, Graphene.Rect? viewport);
public void unrealize ();
public unowned GLib.ListModel? get_model ();
public uint get_selected ();
public unowned GLib.Object? get_selected_item ();
+ [Version (since = "4.6")]
+ public bool get_show_arrow ();
public void set_enable_search (bool enable_search);
public void set_expression (Gtk.Expression? expression);
public void set_factory (Gtk.ListItemFactory? factory);
public void set_list_factory (Gtk.ListItemFactory? factory);
public void set_model (GLib.ListModel? model);
public void set_selected (uint position);
+ [Version (since = "4.6")]
+ public void set_show_arrow (bool show_arrow);
public bool enable_search { get; set; }
public Gtk.Expression expression { get; set; }
public Gtk.ListItemFactory factory { get; set; }
public GLib.ListModel model { get; set; }
public uint selected { get; set; }
public GLib.Object selected_item { get; }
+ [Version (since = "4.6")]
+ public bool show_arrow { get; set; }
}
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_drop_target_get_type ()")]
public class DropTarget : Gtk.EventController {
public class FlowBox : Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public FlowBox ();
+ [Version (since = "4.6")]
+ public void append (Gtk.Widget child);
public void bind_model (GLib.ListModel? model, owned Gtk.FlowBoxCreateWidgetFunc? create_widget_func);
public bool get_activate_on_single_click ();
public unowned Gtk.FlowBoxChild? get_child_at_index (int idx);
public void insert (Gtk.Widget widget, int position);
public void invalidate_filter ();
public void invalidate_sort ();
+ [Version (since = "4.6")]
+ public void prepend (Gtk.Widget child);
public void remove (Gtk.Widget widget);
public void select_child (Gtk.FlowBoxChild child);
public void selected_foreach (Gtk.FlowBoxForeachFunc func);
public void push_opacity (double opacity);
public void push_repeat (Graphene.Rect bounds, Graphene.Rect? child_bounds);
public void push_rounded_clip (Gsk.RoundedRect bounds);
- public void push_shadow ([CCode (array_length_cname = "n_shadows", array_length_pos = 1.1, array_length_type = "gsize", type = "const GskShadow*")] Gsk.Shadow[] shadow);
+ public void push_shadow ([CCode (array_length_cname = "n_shadows", array_length_pos = 1.1, array_length_type = "gsize")] Gsk.Shadow[] shadow);
public void render_background (Gtk.StyleContext context, double x, double y, double width, double height);
public void render_focus (Gtk.StyleContext context, double x, double y, double width, double height);
public void render_frame (Gtk.StyleContext context, double x, double y, double width, double height);
public Details ();
[Version (since = "0.8.12")]
public unowned string get_description ();
+ [Version (since = "1.2.4")]
+ public uint64 get_download_size ();
[Version (since = "0.8.12")]
public Pk.Group get_group ();
[Version (since = "0.8.12")]
[Version (since = "0.5.4")]
public string description { owned get; set; }
[NoAccessorMethod]
+ [Version (since = "1.2.4")]
+ public uint64 download_size { get; set; }
+ [NoAccessorMethod]
[Version (since = "0.5.4")]
public Pk.Group group { get; set; }
[NoAccessorMethod]
public unowned string get_name ();
[Version (since = "0.5.4")]
public unowned string get_summary ();
+ [Version (since = "1.2.4")]
+ public Pk.Info get_update_severity ();
[Version (since = "0.6.4")]
public unowned string get_version ();
[Version (since = "0.5.0")]
public void set_info (Pk.Info info);
[Version (since = "0.8.14")]
public void set_summary (string summary);
+ [Version (since = "1.2.4")]
+ public void set_update_severity (Pk.Info update_severity);
[NoAccessorMethod]
[Version (since = "0.5.4")]
public string description { owned get; set; }
[NoAccessorMethod]
[Version (since = "0.5.4")]
public Pk.Restart update_restart { get; set; }
+ [Version (since = "1.2.4")]
+ public Pk.Info update_severity { get; set; }
[NoAccessorMethod]
[Version (since = "0.5.4")]
public Pk.UpdateState update_state { get; set; }
UNTRUSTED,
TRUSTED,
UNAVAILABLE,
+ CRITICAL,
LAST;
[CCode (cname = "pk_info_enum_from_string")]
[Version (since = "0.5.0")]
[Version (since = "0.9.6")]
public unowned string to_string ();
}
+ [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_OFFLINE_FLAGS_", type_id = "pk_offline_flags_get_type ()")]
+ [Flags]
+ [Version (since = "1.2.5")]
+ public enum OfflineFlags {
+ NONE,
+ INTERACTIVE
+ }
[CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_PACKAGE_SACK_SORT_TYPE_", type_id = "pk_package_sack_sort_type_get_type ()")]
public enum PackageSackSortType {
NAME,
INVALID_FILE,
NOT_SUPPORTED,
DECLINED_SIMULATION,
+ DECLINED_INTERACTION,
LAST;
[Version (since = "0.5.2")]
public static GLib.Quark quark ();
[Version (since = "0.9.6")]
public static bool offline_cancel (GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
+ [Version (since = "1.2.5")]
+ public static bool offline_cancel_with_flags (Pk.OfflineFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
+ [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
[Version (since = "0.9.6")]
public static bool offline_clear_results (GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
+ [Version (since = "1.2.5")]
+ public static bool offline_clear_results_with_flags (Pk.OfflineFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
+ [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
[Version (replacement = "OfflineError.quark", since = "0.9.6")]
public static GLib.Quark offline_error_quark ();
[CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
[Version (since = "1.0.12")]
public static bool offline_trigger_upgrade (Pk.OfflineAction action, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
+ [Version (since = "1.2.5")]
+ public static bool offline_trigger_upgrade_with_flags (Pk.OfflineAction action, Pk.OfflineFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
+ [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
+ [Version (since = "1.2.5")]
+ public static bool offline_trigger_with_flags (Pk.OfflineAction action, Pk.OfflineFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
+ [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
public static void polkit_agent_close ();
[CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
public static int polkit_agent_open ();