public static unowned Gdk.DisplayManager @get ();
public unowned Gdk.Display? get_default_display ();
public GLib.SList<weak Gdk.Display> list_displays ();
- public unowned Gdk.Display? open_display (string name);
+ public unowned Gdk.Display? open_display (string? name);
public void set_default_display (Gdk.Display display);
public Gdk.Display default_display { get; set; }
public signal void display_opened (Gdk.Display display);
public signal void dnd_finished ();
public signal void drop_performed ();
}
+ [CCode (cheader_filename = "gdk/gdk.h", has_type_id = false)]
+ [Compact]
+ [Version (since = "4.12")]
+ public class DragSurfaceSize {
+ public static GLib.Type get_type ();
+ public void set_size (int width, int height);
+ }
[CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_draw_context_get_type ()")]
public abstract class DrawContext : GLib.Object {
[CCode (has_construct_function = false)]
[CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_gl_texture_get_type ()")]
public sealed class GLTexture : Gdk.Texture, Gdk.Paintable, GLib.Icon, GLib.LoadableIcon {
[CCode (has_construct_function = false, type = "GdkTexture*")]
+ [Version (deprecated = true, deprecated_since = "4.12")]
public GLTexture (Gdk.GLContext context, uint id, int width, int height, GLib.DestroyNotify destroy, void* data);
public void release ();
}
+ [CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_gl_texture_builder_get_type ()")]
+ [Version (since = "4.12")]
+ public sealed class GLTextureBuilder : GLib.Object {
+ [CCode (has_construct_function = false)]
+ public GLTextureBuilder ();
+ public Gdk.Texture build (GLib.DestroyNotify? destroy, void* data);
+ public unowned Gdk.GLContext? get_context ();
+ public Gdk.MemoryFormat get_format ();
+ public bool get_has_mipmap ();
+ public int get_height ();
+ public uint get_id ();
+ public void* get_sync ();
+ public unowned Cairo.Region? get_update_region ();
+ public unowned Gdk.Texture? get_update_texture ();
+ public int get_width ();
+ public void set_context (Gdk.GLContext? context);
+ public void set_format (Gdk.MemoryFormat format);
+ public void set_has_mipmap (bool has_mipmap);
+ public void set_height (int height);
+ public void set_id (uint id);
+ public void set_sync (void* sync);
+ public void set_update_region (Cairo.Region? region);
+ public void set_update_texture (Gdk.Texture? texture);
+ public void set_width (int width);
+ public Gdk.GLContext context { get; set; }
+ public Gdk.MemoryFormat format { get; set; }
+ public bool has_mipmap { get; set; }
+ public int height { get; set; }
+ public uint id { get; set; }
+ public void* sync { get; set; }
+ public Cairo.Region update_region { get; set; }
+ public Gdk.Texture update_texture { get; set; }
+ public int width { get; set; }
+ }
[CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_grab_broken_event_get_type ()")]
public sealed class GrabBrokenEvent : Gdk.Event {
[CCode (has_construct_function = false)]
public void beep ();
public Gdk.CairoContext create_cairo_context ();
public Gdk.GLContext create_gl_context () throws GLib.Error;
+ [Version (deprecated = true, deprecated_since = "4.12")]
public Cairo.Surface create_similar_surface (Cairo.Content content, int width, int height);
public Gdk.VulkanContext create_vulkan_context () throws GLib.Error;
[DestroysInstance]
public unowned Gdk.FrameClock get_frame_clock ();
public int get_height ();
public bool get_mapped ();
+ [Version (since = "4.12")]
+ public double get_scale ();
public int get_scale_factor ();
public int get_width ();
public void hide ();
public Gdk.FrameClock frame_clock { get; construct; }
public int height { get; }
public bool mapped { get; }
+ [Version (since = "4.12")]
+ public double scale { get; }
public int scale_factor { get; }
public int width { get; }
public signal void enter_monitor (Gdk.Monitor monitor);
[CCode (cheader_filename = "gdk/gdk.h", type_cname = "GdkDragSurfaceInterface", type_id = "gdk_drag_surface_get_type ()")]
public interface DragSurface : Gdk.Surface {
public bool present (int width, int height);
+ [Version (since = "4.12")]
+ public signal void compute_size (Gdk.DragSurfaceSize size);
}
[CCode (cheader_filename = "gdk/gdk.h", type_cname = "GdkPaintableInterface", type_id = "gdk_paintable_get_type ()")]
public interface Paintable : GLib.Object {
R32G32B32_FLOAT,
R32G32B32A32_FLOAT_PREMULTIPLIED,
R32G32B32A32_FLOAT,
+ G8A8_PREMULTIPLIED,
+ G8A8,
+ G8,
+ G16A16_PREMULTIPLIED,
+ G16A16,
+ G16,
+ A8,
+ A16,
N_FORMATS
}
[CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_", type_id = "gdk_modifier_type_get_type ()")]
[CCode (cheader_filename = "gdk/gdk.h")]
public static Cairo.Region pango_layout_get_clip_region (Pango.Layout layout, int x_origin, int y_origin, [CCode (array_length_cname = "n_ranges", array_length_pos = 4.1, type = "const int*")] int[] index_ranges);
[CCode (cheader_filename = "gdk/gdk.h")]
+ [Version (deprecated = true, deprecated_since = "4.12")]
public static Gdk.Pixbuf? pixbuf_get_from_surface (Cairo.Surface surface, int src_x, int src_y, int width, int height);
[CCode (cheader_filename = "gdk/gdk.h")]
+ [Version (deprecated = true, deprecated_since = "4.12")]
public static Gdk.Pixbuf? pixbuf_get_from_texture (Gdk.Texture texture);
[CCode (cheader_filename = "gdk/gdk.h")]
public static void set_allowed_backends (string backends);
[CCode (has_construct_function = false, type = "GtkWidget*")]
public Box (Gtk.Orientation orientation, int spacing);
public void append (Gtk.Widget child);
+ [Version (since = "4.12")]
+ public int get_baseline_child ();
public Gtk.BaselinePosition get_baseline_position ();
public bool get_homogeneous ();
public int get_spacing ();
public void prepend (Gtk.Widget child);
public void remove (Gtk.Widget child);
public void reorder_child_after (Gtk.Widget child, Gtk.Widget? sibling);
+ [Version (since = "4.12")]
+ public void set_baseline_child (int child);
public void set_baseline_position (Gtk.BaselinePosition position);
public void set_homogeneous (bool homogeneous);
public void set_spacing (int spacing);
+ [Version (since = "4.12")]
+ public int baseline_child { get; set; }
public Gtk.BaselinePosition baseline_position { get; set; }
public bool homogeneous { get; set; }
public int spacing { get; set; }
public sealed class BoxLayout : Gtk.LayoutManager, Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkLayoutManager*")]
public BoxLayout (Gtk.Orientation orientation);
+ [Version (since = "4.12")]
+ public int get_baseline_child ();
public Gtk.BaselinePosition get_baseline_position ();
public bool get_homogeneous ();
public uint get_spacing ();
+ [Version (since = "4.12")]
+ public void set_baseline_child (int child);
public void set_baseline_position (Gtk.BaselinePosition position);
public void set_homogeneous (bool homogeneous);
public void set_spacing (uint spacing);
+ [Version (since = "4.12")]
+ public int baseline_child { get; set; }
public Gtk.BaselinePosition baseline_position { get; set; }
public bool homogeneous { get; set; }
public int spacing { get; set; }
public Button ();
[CCode (has_construct_function = false, type = "GtkWidget*")]
public Button.from_icon_name (string icon_name);
+ [Version (since = "4.12")]
+ public bool get_can_shrink ();
public unowned Gtk.Widget? get_child ();
public bool get_has_frame ();
public unowned string? get_icon_name ();
public unowned string? get_label ();
public bool get_use_underline ();
+ [Version (since = "4.12")]
+ public void set_can_shrink (bool can_shrink);
public void set_child (Gtk.Widget? child);
public void set_has_frame (bool has_frame);
public void set_icon_name (string icon_name);
public Button.with_label (string label);
[CCode (has_construct_function = false, type = "GtkWidget*")]
public Button.with_mnemonic (string label);
+ [Version (since = "4.12")]
+ public bool can_shrink { get; set; }
public Gtk.Widget child { get; set; }
public bool has_frame { get; set; }
public string icon_name { get; set; }
public Gtk.BaselinePosition get_baseline_position ();
public unowned Gtk.Widget? get_center_widget ();
public unowned Gtk.Widget? get_end_widget ();
+ [Version (since = "4.12")]
+ public bool get_shrink_center_last ();
public unowned Gtk.Widget? get_start_widget ();
public void set_baseline_position (Gtk.BaselinePosition position);
public void set_center_widget (Gtk.Widget? child);
public void set_end_widget (Gtk.Widget? child);
+ [Version (since = "4.12")]
+ public void set_shrink_center_last (bool shrink_center_last);
public void set_start_widget (Gtk.Widget? child);
public Gtk.BaselinePosition baseline_position { get; set; }
[Version (since = "4.10")]
public Gtk.Widget center_widget { get; set; }
[Version (since = "4.10")]
public Gtk.Widget end_widget { get; set; }
+ [Version (since = "4.12")]
+ public bool shrink_center_last { get; set; }
[Version (since = "4.10")]
public Gtk.Widget start_widget { get; set; }
}
public unowned Gtk.Widget? get_center_widget ();
public unowned Gtk.Widget? get_end_widget ();
public Gtk.Orientation get_orientation ();
+ [Version (since = "4.12")]
+ public bool get_shrink_center_last ();
public unowned Gtk.Widget? get_start_widget ();
public void set_baseline_position (Gtk.BaselinePosition baseline_position);
public void set_center_widget (Gtk.Widget? widget);
public void set_end_widget (Gtk.Widget? widget);
public void set_orientation (Gtk.Orientation orientation);
+ [Version (since = "4.12")]
+ public void set_shrink_center_last (bool shrink_center_last);
public void set_start_widget (Gtk.Widget? widget);
+ [Version (since = "4.12")]
+ public bool shrink_center_last { get; set; }
}
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_check_button_get_type ()")]
public class CheckButton : Gtk.Widget, Gtk.Accessible, Gtk.Actionable, Gtk.Buildable, Gtk.ConstraintTarget {
public void append_column (Gtk.ColumnViewColumn column);
public unowned GLib.ListModel get_columns ();
public bool get_enable_rubberband ();
+ [Version (since = "4.12")]
+ public unowned Gtk.ListItemFactory? get_header_factory ();
public unowned Gtk.SelectionModel? get_model ();
public bool get_reorderable ();
+ [Version (since = "4.12")]
+ public unowned Gtk.ListItemFactory? get_row_factory ();
public bool get_show_column_separators ();
public bool get_show_row_separators ();
public bool get_single_click_activate ();
public unowned Gtk.Sorter? get_sorter ();
+ [Version (since = "4.12")]
+ public Gtk.ListTabBehavior get_tab_behavior ();
public void insert_column (uint position, Gtk.ColumnViewColumn column);
public void remove_column (Gtk.ColumnViewColumn column);
public void set_enable_rubberband (bool enable_rubberband);
+ [Version (since = "4.12")]
+ public void set_header_factory (Gtk.ListItemFactory? factory);
public void set_model (Gtk.SelectionModel? model);
public void set_reorderable (bool reorderable);
+ [Version (since = "4.12")]
+ public void set_row_factory (Gtk.ListItemFactory? factory);
public void set_show_column_separators (bool show_column_separators);
public void set_show_row_separators (bool show_row_separators);
public void set_single_click_activate (bool single_click_activate);
+ [Version (since = "4.12")]
+ public void set_tab_behavior (Gtk.ListTabBehavior tab_behavior);
public void sort_by_column (Gtk.ColumnViewColumn? column, Gtk.SortType direction);
public GLib.ListModel columns { get; }
public bool enable_rubberband { get; set; }
+ [Version (since = "4.12")]
+ public Gtk.ListItemFactory header_factory { get; set; }
public Gtk.SelectionModel model { get; set; }
public bool reorderable { get; set; }
+ [Version (since = "4.12")]
+ public Gtk.ListItemFactory row_factory { get; set; }
public bool show_column_separators { get; set; }
public bool show_row_separators { get; set; }
public bool single_click_activate { get; set; }
public Gtk.Sorter sorter { get; }
+ [Version (since = "4.12")]
+ public Gtk.ListTabBehavior tab_behavior { get; set; }
public signal void activate (uint position);
}
+ [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_column_view_cell_get_type ()")]
+ [Version (since = "4.12")]
+ public sealed class ColumnViewCell : Gtk.ListItem {
+ [CCode (has_construct_function = false)]
+ protected ColumnViewCell ();
+ public unowned Gtk.Widget? get_child ();
+ public bool get_focusable ();
+ public unowned GLib.Object? get_item ();
+ public uint get_position ();
+ public bool get_selected ();
+ public void set_child (Gtk.Widget? child);
+ public void set_focusable (bool focusable);
+ public Gtk.Widget child { get; set; }
+ public bool focusable { get; set; }
+ public GLib.Object item { get; }
+ public uint position { get; }
+ public bool selected { get; }
+ }
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_column_view_column_get_type ()")]
public sealed class ColumnViewColumn : GLib.Object {
[CCode (has_construct_function = false)]
public string title { get; set; }
public bool visible { get; set; }
}
+ [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_column_view_row_get_type ()")]
+ [Version (since = "4.12")]
+ public sealed class ColumnViewRow : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected ColumnViewRow ();
+ public unowned string get_accessible_description ();
+ public unowned string get_accessible_label ();
+ public bool get_activatable ();
+ public bool get_focusable ();
+ public unowned GLib.Object? get_item ();
+ public uint get_position ();
+ public bool get_selectable ();
+ public bool get_selected ();
+ public void set_accessible_description (string description);
+ public void set_accessible_label (string label);
+ public void set_activatable (bool activatable);
+ public void set_focusable (bool focusable);
+ public void set_selectable (bool selectable);
+ public string accessible_description { get; set; }
+ public string accessible_label { get; set; }
+ public bool activatable { get; set; }
+ public bool focusable { get; set; }
+ public GLib.Object item { get; }
+ public uint position { get; }
+ public bool selectable { get; set; }
+ public bool selected { get; }
+ }
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_column_view_sorter_get_type ()")]
[Version (since = "4.10")]
public sealed class ColumnViewSorter : Gtk.Sorter {
public class CssProvider : GLib.Object, Gtk.StyleProvider {
[CCode (has_construct_function = false)]
public CssProvider ();
+ [Version (since = "4.12")]
+ public void load_from_bytes (GLib.Bytes data);
+ [Version (deprecated = true, deprecated_since = "4.12")]
public void load_from_data (string data, ssize_t length = -1);
public void load_from_file (GLib.File file);
public void load_from_path (string path);
public void load_from_resource (string resource_path);
+ [Version (since = "4.12")]
+ public void load_from_string (string str);
public void load_named (string name, string? variant);
public string to_string ();
public signal void parsing_error (Gtk.CssSection section, GLib.Error error);
public bool get_enable_search ();
public unowned Gtk.Expression? get_expression ();
public unowned Gtk.ListItemFactory? get_factory ();
+ [Version (since = "4.12")]
+ public unowned Gtk.ListItemFactory? get_header_factory ();
public unowned Gtk.ListItemFactory? get_list_factory ();
public unowned GLib.ListModel? get_model ();
public uint get_selected ();
public void set_enable_search (bool enable_search);
public void set_expression (Gtk.Expression? expression);
public void set_factory (Gtk.ListItemFactory? factory);
+ [Version (since = "4.12")]
+ public void set_header_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);
public bool enable_search { get; set; }
public Gtk.Expression expression { get; set; }
public Gtk.ListItemFactory factory { get; set; }
+ [Version (since = "4.12")]
+ public Gtk.ListItemFactory header_factory { get; set; }
public Gtk.ListItemFactory list_factory { get; set; }
public GLib.ListModel model { get; set; }
public uint selected { get; set; }
public async GLib.ListModel? select_multiple_folders (Gtk.Window? parent, GLib.Cancellable? cancellable) throws GLib.Error;
public void set_accept_label (string? accept_label);
public void set_default_filter (Gtk.FileFilter? filter);
- public void set_filters (GLib.ListModel filters);
+ public void set_filters (GLib.ListModel? filters);
public void set_initial_file (GLib.File? file);
public void set_initial_folder (GLib.File? folder);
public void set_initial_name (string? name);
public signal void changed (Gtk.FilterChange change);
}
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_filter_list_model_get_type ()")]
- public sealed class FilterListModel : GLib.Object, GLib.ListModel {
+ public sealed class FilterListModel : GLib.Object, GLib.ListModel, Gtk.SectionModel {
[CCode (has_construct_function = false)]
public FilterListModel (owned GLib.ListModel? model, owned Gtk.Filter? filter);
public unowned Gtk.Filter? get_filter ();
public Gsk.Transform transform { get; set; }
}
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_flatten_list_model_get_type ()")]
- public sealed class FlattenListModel : GLib.Object, GLib.ListModel {
+ public sealed class FlattenListModel : GLib.Object, GLib.ListModel, Gtk.SectionModel {
[CCode (has_construct_function = false)]
public FlattenListModel (owned GLib.ListModel? model);
public unowned GLib.ListModel? get_model ();
[Version (since = "4.6")]
public void prepend (Gtk.Widget child);
public void remove (Gtk.Widget widget);
+ [Version (since = "4.12")]
+ public void remove_all ();
public void select_child (Gtk.FlowBoxChild child);
public void selected_foreach (Gtk.FlowBoxForeachFunc func);
public void set_activate_on_single_click (bool single);
[CCode (has_construct_function = false, type = "GtkWidget*")]
public GLArea ();
public void attach_buffers ();
+ [Version (since = "4.12")]
+ public Gdk.GLAPI get_allowed_apis ();
+ [Version (since = "4.12")]
+ public Gdk.GLAPI get_api ();
public bool get_auto_render ();
public unowned Gdk.GLContext? get_context ();
public unowned GLib.Error? get_error ();
public bool get_has_depth_buffer ();
public bool get_has_stencil_buffer ();
public void get_required_version (out int major, out int minor);
+ [Version (deprecated = true, deprecated_since = "4.12")]
public bool get_use_es ();
public void make_current ();
public void queue_render ();
+ [Version (since = "4.12")]
+ public void set_allowed_apis (Gdk.GLAPI apis);
public void set_auto_render (bool auto_render);
public void set_error (GLib.Error? error);
public void set_has_depth_buffer (bool has_depth_buffer);
public void set_has_stencil_buffer (bool has_stencil_buffer);
public void set_required_version (int major, int minor);
+ [Version (deprecated = true, deprecated_since = "4.12")]
public void set_use_es (bool use_es);
+ [Version (since = "4.12")]
+ public Gdk.GLAPI allowed_apis { get; set; }
+ [Version (since = "4.12")]
+ public Gdk.GLAPI api { get; }
public bool auto_render { get; set; }
public Gdk.GLContext context { get; }
public bool has_depth_buffer { get; set; }
public bool has_stencil_buffer { get; set; }
+ [Version (deprecated = true, deprecated_since = "4.12")]
public bool use_es { get; set; }
public virtual signal Gdk.GLContext create_context ();
public virtual signal bool render (Gdk.GLContext context);
public uint get_min_columns ();
public unowned Gtk.SelectionModel? get_model ();
public bool get_single_click_activate ();
+ [Version (since = "4.12")]
+ public Gtk.ListTabBehavior get_tab_behavior ();
public void set_enable_rubberband (bool enable_rubberband);
public void set_factory (Gtk.ListItemFactory? factory);
public void set_max_columns (uint max_columns);
public void set_min_columns (uint min_columns);
public void set_model (Gtk.SelectionModel? model);
public void set_single_click_activate (bool single_click_activate);
+ [Version (since = "4.12")]
+ public void set_tab_behavior (Gtk.ListTabBehavior tab_behavior);
public bool enable_rubberband { get; set; }
public Gtk.ListItemFactory factory { get; set; }
public uint max_columns { get; set; }
public uint min_columns { get; set; }
public Gtk.SelectionModel model { get; set; }
public bool single_click_activate { get; set; }
+ [Version (since = "4.12")]
+ public Gtk.ListTabBehavior tab_behavior { get; set; }
public signal void activate (uint position);
}
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_header_bar_get_type ()")]
[CCode (has_construct_function = false, type = "GtkWidget*")]
public Image.from_paintable (Gdk.Paintable? paintable);
[CCode (has_construct_function = false, type = "GtkWidget*")]
+ [Version (deprecated = true, deprecated_since = "4.12")]
public Image.from_pixbuf (Gdk.Pixbuf? pixbuf);
[CCode (has_construct_function = false, type = "GtkWidget*")]
public Image.from_resource (string resource_path);
public void set_from_gicon (GLib.Icon icon);
public void set_from_icon_name (string? icon_name);
public void set_from_paintable (Gdk.Paintable? paintable);
+ [Version (deprecated = true, deprecated_since = "4.12")]
public void set_from_pixbuf (Gdk.Pixbuf? pixbuf);
public void set_from_resource (string? resource_path);
public void set_icon_size (Gtk.IconSize icon_size);
public void invalidate_sort ();
public void prepend (Gtk.Widget child);
public void remove (Gtk.Widget child);
+ [Version (since = "4.12")]
+ public void remove_all ();
public void select_row (Gtk.ListBoxRow? row);
public void selected_foreach (Gtk.ListBoxForeachFunc func);
public void set_activate_on_single_click (bool single);
public bool selectable { get; set; }
public virtual signal void activate ();
}
+ [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_list_header_get_type ()")]
+ [Version (since = "4.12")]
+ public sealed class ListHeader : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected ListHeader ();
+ public unowned Gtk.Widget? get_child ();
+ public uint get_end ();
+ public unowned GLib.Object? get_item ();
+ public uint get_n_items ();
+ public uint get_start ();
+ public void set_child (Gtk.Widget? child);
+ public Gtk.Widget child { get; set; }
+ public uint end { get; }
+ public GLib.Object item { get; }
+ public uint n_items { get; }
+ public uint start { get; }
+ }
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_list_item_get_type ()")]
public sealed class ListItem : GLib.Object {
[CCode (has_construct_function = false)]
protected ListItem ();
+ [Version (since = "4.12")]
+ public unowned string get_accessible_description ();
+ [Version (since = "4.12")]
+ public unowned string get_accessible_label ();
public bool get_activatable ();
public unowned Gtk.Widget? get_child ();
+ [Version (since = "4.12")]
+ public bool get_focusable ();
public unowned GLib.Object? get_item ();
public uint get_position ();
public bool get_selectable ();
public bool get_selected ();
+ [Version (since = "4.12")]
+ public void set_accessible_description (string description);
+ [Version (since = "4.12")]
+ public void set_accessible_label (string label);
public void set_activatable (bool activatable);
public void set_child (Gtk.Widget? child);
+ [Version (since = "4.12")]
+ public void set_focusable (bool focusable);
public void set_selectable (bool selectable);
+ [Version (since = "4.12")]
+ public string accessible_description { get; set; }
+ [Version (since = "4.12")]
+ public string accessible_label { get; set; }
public bool activatable { get; set; }
public Gtk.Widget child { get; set; }
+ [Version (since = "4.12")]
+ public bool focusable { get; set; }
public GLib.Object item { get; }
public uint position { get; }
public bool selectable { get; set; }
public ListView (owned Gtk.SelectionModel? model, owned Gtk.ListItemFactory? factory);
public bool get_enable_rubberband ();
public unowned Gtk.ListItemFactory? get_factory ();
+ [Version (since = "4.12")]
+ public unowned Gtk.ListItemFactory? get_header_factory ();
public unowned Gtk.SelectionModel? get_model ();
public bool get_show_separators ();
public bool get_single_click_activate ();
+ [Version (since = "4.12")]
+ public Gtk.ListTabBehavior get_tab_behavior ();
public void set_enable_rubberband (bool enable_rubberband);
public void set_factory (Gtk.ListItemFactory? factory);
+ [Version (since = "4.12")]
+ public void set_header_factory (Gtk.ListItemFactory? factory);
public void set_model (Gtk.SelectionModel? model);
public void set_show_separators (bool show_separators);
public void set_single_click_activate (bool single_click_activate);
+ [Version (since = "4.12")]
+ public void set_tab_behavior (Gtk.ListTabBehavior tab_behavior);
public bool enable_rubberband { get; set; }
public Gtk.ListItemFactory factory { get; set; }
+ [Version (since = "4.12")]
+ public Gtk.ListItemFactory header_factory { get; set; }
public Gtk.SelectionModel model { get; set; }
public bool show_separators { get; set; }
public bool single_click_activate { get; set; }
+ [Version (since = "4.12")]
+ public Gtk.ListTabBehavior tab_behavior { get; set; }
public signal void activate (uint position);
}
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_lock_button_get_type ()")]
public bool get_active ();
[Version (since = "4.4")]
public bool get_always_show_arrow ();
+ [Version (since = "4.12")]
+ public bool get_can_shrink ();
[Version (since = "4.6")]
public unowned Gtk.Widget? get_child ();
public Gtk.ArrowType get_direction ();
public void set_active (bool active);
[Version (since = "4.4")]
public void set_always_show_arrow (bool always_show_arrow);
+ [Version (since = "4.12")]
+ public void set_can_shrink (bool can_shrink);
[Version (since = "4.6")]
public void set_child (Gtk.Widget? child);
public void set_create_popup_func (owned Gtk.MenuButtonCreatePopupFunc? func);
public bool active { get; set; }
[Version (since = "4.4")]
public bool always_show_arrow { get; set; }
+ [Version (since = "4.12")]
+ public bool can_shrink { get; set; }
[Version (since = "4.6")]
public Gtk.Widget child { get; set; }
public Gtk.ArrowType direction { get; set; }
public uint n_items { get; }
}
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_multi_selection_get_type ()")]
- public sealed class MultiSelection : GLib.Object, GLib.ListModel, Gtk.SelectionModel {
+ public sealed class MultiSelection : GLib.Object, GLib.ListModel, Gtk.SectionModel, Gtk.SelectionModel {
[CCode (has_construct_function = false)]
public MultiSelection (owned GLib.ListModel? model);
public unowned GLib.ListModel? get_model ();
public static unowned Gtk.NeverTrigger @get ();
}
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_no_selection_get_type ()")]
- public sealed class NoSelection : GLib.Object, GLib.ListModel, Gtk.SelectionModel {
+ public sealed class NoSelection : GLib.Object, GLib.ListModel, Gtk.SectionModel, Gtk.SelectionModel {
[CCode (has_construct_function = false)]
public NoSelection (owned GLib.ListModel? model);
public unowned GLib.ListModel? get_model ();
[CCode (has_construct_function = false, type = "GtkWidget*")]
public Picture.for_paintable (Gdk.Paintable? paintable);
[CCode (has_construct_function = false, type = "GtkWidget*")]
+ [Version (deprecated = true, deprecated_since = "4.12")]
public Picture.for_pixbuf (Gdk.Pixbuf? pixbuf);
[CCode (has_construct_function = false, type = "GtkWidget*")]
public Picture.for_resource (string? resource_path);
[Version (deprecated = true, deprecated_since = "4.8")]
public void set_keep_aspect_ratio (bool keep_aspect_ratio);
public void set_paintable (Gdk.Paintable? paintable);
+ [Version (deprecated = true, deprecated_since = "4.12")]
public void set_pixbuf (Gdk.Pixbuf? pixbuf);
public void set_resource (string? resource_path);
public string alternative_text { get; set; }
public signal void unbind (GLib.Object object);
}
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_single_selection_get_type ()")]
- public sealed class SingleSelection : GLib.Object, GLib.ListModel, Gtk.SelectionModel {
+ public sealed class SingleSelection : GLib.Object, GLib.ListModel, Gtk.SectionModel, Gtk.SelectionModel {
[CCode (has_construct_function = false)]
public SingleSelection (owned GLib.ListModel? model);
public bool get_autoselect ();
public Gtk.SizeGroupMode mode { get; set; }
}
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_slice_list_model_get_type ()")]
- public sealed class SliceListModel : GLib.Object, GLib.ListModel {
+ public sealed class SliceListModel : GLib.Object, GLib.ListModel, Gtk.SectionModel {
[CCode (has_construct_function = false)]
public SliceListModel (owned GLib.ListModel? model, uint offset, uint size);
public unowned GLib.ListModel? get_model ();
public void translate_3d (Graphene.Point3D point);
}
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_sort_list_model_get_type ()")]
- public sealed class SortListModel : GLib.Object, GLib.ListModel {
+ public sealed class SortListModel : GLib.Object, GLib.ListModel, Gtk.SectionModel {
[CCode (has_construct_function = false)]
public SortListModel (owned GLib.ListModel? model, owned Gtk.Sorter? sorter);
public bool get_incremental ();
public unowned GLib.ListModel? get_model ();
public uint get_pending ();
+ [Version (since = "4.12")]
+ public unowned Gtk.Sorter? get_section_sorter ();
public unowned Gtk.Sorter? get_sorter ();
public void set_incremental (bool incremental);
public void set_model (GLib.ListModel? model);
+ [Version (since = "4.12")]
+ public void set_section_sorter (Gtk.Sorter? sorter);
public void set_sorter (Gtk.Sorter? sorter);
public bool incremental { get; set; }
[NoAccessorMethod]
[Version (since = "4.8")]
public uint n_items { get; }
public uint pending { get; }
+ [Version (since = "4.12")]
+ public Gtk.Sorter section_sorter { get; set; }
public Gtk.Sorter sorter { get; set; }
}
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_sorter_get_type ()")]
public class Gtk.AccessibleRole get_accessible_role ();
[CCode (cname = "gtk_widget_class_get_activate_signal")]
public class uint get_activate_signal ();
+ [Version (deprecated = true, deprecated_since = "4.12")]
public int get_allocated_baseline ();
+ [Version (deprecated = true, deprecated_since = "4.12")]
public int get_allocated_height ();
+ [Version (deprecated = true, deprecated_since = "4.12")]
public int get_allocated_width ();
+ [Version (deprecated = true, deprecated_since = "4.12")]
public void get_allocation (out Gtk.Allocation allocation);
public unowned Gtk.Widget? get_ancestor (GLib.Type widget_type);
+ [Version (since = "4.12")]
+ public int get_baseline ();
public bool get_can_focus ();
public bool get_can_target ();
public bool get_child_visible ();
public void snapshot_child (Gtk.Widget child, Gtk.Snapshot snapshot);
[NoWrapper]
public virtual void system_setting_changed (Gtk.SystemSetting settings);
+ [Version (deprecated = true, deprecated_since = "4.12")]
public bool translate_coordinates (Gtk.Widget dest_widget, double src_x, double src_y, out double dest_x, out double dest_y);
public void trigger_tooltip_query ();
public void unparent ();
[ConcreteAccessor]
public abstract Gtk.ScrollablePolicy vscroll_policy { get; set; }
}
+ [CCode (cheader_filename = "gtk/gtk.h", type_cname = "GtkSectionModelInterface", type_id = "gtk_section_model_get_type ()")]
+ [Version (since = "4.12")]
+ public interface SectionModel : GLib.ListModel, GLib.Object {
+ public abstract void get_section (uint position, out uint out_start, out uint out_end);
+ [HasEmitter]
+ public signal void sections_changed (uint position, uint n_items);
+ }
[CCode (cheader_filename = "gtk/gtk.h", type_cname = "GtkSelectionModelInterface", type_id = "gtk_selection_model_get_type ()")]
public interface SelectionModel : GLib.ListModel, GLib.Object {
public Gtk.Bitset get_selection ();
TREE_ITEM,
WIDGET,
WINDOW,
- TOGGLE_BUTTON
+ TOGGLE_BUTTON,
+ APPLICATION
}
[CCode (cheader_filename = "gtk/gtk.h", cprefix = "GTK_ACCESSIBLE_SORT_", type_id = "gtk_accessible_sort_get_type ()")]
public enum AccessibleSort {
HIDDEN,
INVALID,
PRESSED,
- SELECTED;
+ SELECTED,
+ VISITED;
public void init_value (GLib.Value value);
}
[CCode (cheader_filename = "gtk/gtk.h", cprefix = "GTK_ACCESSIBLE_TRISTATE_", type_id = "gtk_accessible_tristate_get_type ()")]
START,
END,
CENTER,
- BASELINE
+ BASELINE_FILL,
+ BASELINE,
+ BASELINE_CENTER
}
[CCode (cheader_filename = "gtk/gtk.h", cprefix = "GTK_APPLICATION_INHIBIT_", type_id = "gtk_application_inhibit_flags_get_type ()")]
[Flags]
APACHE_2_0,
MPL_2_0
}
+ [CCode (cheader_filename = "gtk/gtk.h", cprefix = "GTK_LIST_TAB_", type_id = "gtk_list_tab_behavior_get_type ()")]
+ [Version (since = "4.12")]
+ public enum ListTabBehavior {
+ ALL,
+ ITEM,
+ CELL
+ }
[CCode (cheader_filename = "gtk/gtk.h", cprefix = "GTK_MESSAGE_", type_id = "gtk_message_type_get_type ()")]
public enum MessageType {
INFO,