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]
[CCode (cname = "gdk_texture_new_from_file")]
public static Gdk.Texture from_file (GLib.File file) throws GLib.Error;
[CCode (cname = "gdk_texture_new_from_filename")]
+ [Version (since = "4.6")]
public static Gdk.Texture from_filename (string path) throws GLib.Error;
[CCode (cname = "gdk_texture_new_from_resource")]
public static Gdk.Texture from_resource (string resource_path);
public void set_transient_for (Gdk.Surface parent);
public bool show_window_menu (Gdk.Event event);
public bool supports_edge_constraints ();
+ [Version (since = "4.4")]
public bool titlebar_gesture (Gdk.TitlebarGesture gesture);
[NoAccessorMethod]
public abstract bool decorated { get; set; }
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 ()")]
SOUTH_EAST
}
[CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_TITLEBAR_GESTURE_", type_id = "gdk_titlebar_gesture_get_type ()")]
+ [Version (since = "4.4")]
public enum TitlebarGesture {
DOUBLE_CLICK,
RIGHT_CLICK,
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 Pango.GlyphInfo[] get_glyphs ();
public uint get_num_glyphs ();
public unowned Graphene.Point? get_offset ();
+ [Version (since = "4.2")]
public bool has_color_glyphs ();
}
[CCode (cheader_filename = "gsk/gsk.h", type_id = "gsk_texture_node_get_type ()")]
[Version (replacement = "Transform.parse")]
public static bool transform_parse (string string, out Gsk.Transform out_transform);
[CCode (cheader_filename = "gsk/gsk.h")]
+ [Version (since = "4.6")]
public static Gsk.RenderNode? value_dup_render_node (GLib.Value value);
[CCode (cheader_filename = "gsk/gsk.h")]
+ [Version (since = "4.6")]
public static unowned Gsk.RenderNode? value_get_render_node (ref GLib.Value value);
[CCode (cheader_filename = "gsk/gsk.h")]
+ [Version (since = "4.6")]
public static void value_set_render_node (ref GLib.Value value, Gsk.RenderNode node);
[CCode (cheader_filename = "gsk/gsk.h")]
+ [Version (since = "4.6")]
public static void value_take_render_node (ref GLib.Value value, owned Gsk.RenderNode? node);
}
[CCode (cprefix = "Gtk", gir_namespace = "Gtk", gir_version = "4.0", lower_case_cprefix = "gtk_")]
public bool popup_fixed_width { get; set; }
[NoAccessorMethod]
public bool popup_shown { get; }
+ [Version (since = "4.6")]
+ public virtual signal void activate ();
public virtual signal void changed ();
public virtual signal string format_entry_text (string path);
public signal void move_active (Gtk.ScrollType scroll_type);
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; }
+ [Version (since = "4.6")]
+ public signal void activate ();
}
[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 signal void gtk_private_changed ();
}
[CCode (cheader_filename = "gtk/gtk.h", type_cname = "GtkSymbolicPaintableInterface", type_id = "gtk_symbolic_paintable_get_type ()")]
+ [Version (since = "4.6")]
public interface SymbolicPaintable : Gdk.Paintable, GLib.Object {
public abstract void snapshot_symbolic (Gdk.Snapshot snapshot, double width, double height, [CCode (array_length_cname = "n_colors", array_length_pos = 4.1, array_length_type = "gsize")] Gdk.RGBA[] colors);
}
SMALLER,
EQUAL,
LARGER;
+ [Version (since = "4.2")]
public static Gtk.Ordering from_cmpfunc (int cmpfunc_result);
}
[CCode (cheader_filename = "gtk/gtk.h", cprefix = "GTK_ORIENTATION_", type_id = "gtk_orientation_get_type ()")]
SHOW_CHANGE
}
[CCode (cheader_filename = "gtk/gtk.h", cprefix = "GTK_SYMBOLIC_COLOR_", type_id = "gtk_symbolic_color_get_type ()")]
+ [Version (since = "4.6")]
public enum SymbolicColor {
FOREGROUND,
ERROR,
[Version (replacement = "Native.get_for_surface")]
public static unowned Gtk.Native native_get_for_surface (Gdk.Surface surface);
[CCode (cheader_filename = "gtk/gtk.h")]
- [Version (replacement = "Ordering.from_cmpfunc")]
+ [Version (replacement = "Ordering.from_cmpfunc", since = "4.2")]
public static Gtk.Ordering ordering_from_cmpfunc (int cmpfunc_result);
[CCode (cheader_filename = "gtk/gtk.h")]
[Version (replacement = "PaperSize.get_default")]