Cargo Features

gtk4 has no features set by default.

[dependencies]
gtk4 = { version = "0.9.4", features = ["v4_2", "v4_4", "v4_6", "v4_8", "v4_10", "v4_12", "v4_14", "v4_16", "v4_18", "gio_v2_80", "xml_validation", "blueprint", "unsafe-assume-initialized", "gnome_47", "gnome_46", "gnome_45", "gnome_44", "gnome_43", "gnome_42"] }
v4_2 v4_4?

Enables v4_2 of gdk4, gsk4, and gtk4-sys

Affects check_button::CheckButtonExt.connect_activate, check_button::CheckButtonExt.emit_activate, im_context::IMContextExt.surrounding_with_selection, im_context::IMContextExt.set_surrounding_with_selection, window::GtkWindowExt.is_handle_menubar_accel, window::GtkWindowExt.set_handle_menubar_accel, window::GtkWindowExt.connect_handle_menubar_accel_notify, check_button::CheckButtonImpl.activate, check_button::CheckButtonImplExt.parent_activate

v4_4 v4_6? = v4_2

Enables v4_4 of gdk4, gsk4, and gtk4-sys

Affects media_stream::MediaStreamExt.stream_ended, media_stream::MediaStreamExt.stream_prepared, media_stream::MediaStreamExt.stream_unprepared, text_view::TextViewExt.ltr_context, text_view::TextViewExt.rtl_context

v4_6 gnome_42? v4_8? = v4_4

Enables v1_50 of pango, v4_6 of gdk4, gsk4, and gtk4-sys

Affects combo_box::ComboBoxExt.connect_activate, combo_box::ComboBoxExt.emit_activate, enums::NaturalWrapMode, enums::SymbolicColor, text_tag::TextTagExt.line_height, text_tag::TextTagExt.set_line_height, text_tag::TextTagExt.is_line_height_set, text_tag::TextTagExt.is_sentence, text_tag::TextTagExt.set_sentence, text_tag::TextTagExt.is_sentence_set, text_tag::TextTagExt.text_transform, text_tag::TextTagExt.set_text_transform, text_tag::TextTagExt.is_text_transform_set, text_tag::TextTagExt.is_word, text_tag::TextTagExt.set_word, text_tag::TextTagExt.is_word_set, text_tag::TextTagExt.connect_line_height_notify, text_tag::TextTagExt.connect_line_height_set_notify, text_tag::TextTagExt.connect_sentence_notify, text_tag::TextTagExt.connect_sentence_set_notify

v4_8 gnome_43? v4_10? = v4_6

Enables v4_8 of gdk4 and gtk4-sys

Affects check_button::CheckButtonExt.child, check_button::CheckButtonExt.set_child, check_button::CheckButtonExt.connect_child_notify, enums::ContentFit, enums::InscriptionOverflow, event_controller::EventControllerExt.set_static_name, widget::CompositeTemplateDisposeExt.dispose_template

v4_10 gnome_44? v4_12? = v4_8

Enables v4_10 of gdk4, gsk4, and gtk4-sys

Affects accessible::AccessibleExt.accessible_parent, accessible::AccessibleExt.at_context, accessible::AccessibleExt.bounds, accessible::AccessibleExt.first_accessible_child, accessible::AccessibleExt.next_accessible_sibling, accessible::AccessibleExt.platform_state, accessible::AccessibleExt.set_accessible_parent, accessible::AccessibleExt.update_next_accessible_sibling, editable::EditableExt.delegate_get_accessible_platform_state, enums::AccessiblePlatformState, enums::Collation, enums::DialogError, enums::FontLevel, scale_button::ScaleButtonExt.is_active, scale_button::ScaleButtonExt.connect_active_notify, snapshot::SnapshotExt.append_scaled_texture, snapshot::SnapshotExt.push_mask, widget::WidgetExt.color, im_context::IMContextImpl.activate_osk, im_context::IMContextImplExt.parent_activate_osk

v4_12 gnome_45? v4_14? = v4_10

Enables v4_12 of gdk4 and gtk4-sys

Affects box_::BoxExt.baseline_child, box_::BoxExt.set_baseline_child, box_::BoxExt.connect_baseline_child_notify, button::ButtonExt.can_shrink, button::ButtonExt.set_can_shrink, button::ButtonExt.connect_can_shrink_notify, enums::ListTabBehavior, gl_area::GLAreaExt.allowed_apis, gl_area::GLAreaExt.api, gl_area::GLAreaExt.set_allowed_apis, gl_area::GLAreaExt.connect_allowed_apis_notify, gl_area::GLAreaExt.connect_api_notify, list_item::ListItemExt.accessible_description, list_item::ListItemExt.accessible_label, list_item::ListItemExt.is_focusable, list_item::ListItemExt.set_accessible_description, list_item::ListItemExt.set_accessible_label, list_item::ListItemExt.set_focusable, list_item::ListItemExt.connect_accessible_description_notify, list_item::ListItemExt.connect_accessible_label_notify

v4_14 gnome_46? v4_16? = v4_12

Enables v4_14 of gdk4, gsk4, and gtk4-sys

Affects accessible::AccessibleExt.announce, constants::ACCESSIBLE_ATTRIBUTE_BACKGROUND, constants::ACCESSIBLE_ATTRIBUTE_FAMILY, constants::ACCESSIBLE_ATTRIBUTE_FOREGROUND, constants::ACCESSIBLE_ATTRIBUTE_OVERLINE, constants::ACCESSIBLE_ATTRIBUTE_OVERLINE_NONE, constants::ACCESSIBLE_ATTRIBUTE_OVERLINE_SINGLE, constants::ACCESSIBLE_ATTRIBUTE_SIZE, constants::ACCESSIBLE_ATTRIBUTE_STRETCH, constants::ACCESSIBLE_ATTRIBUTE_STRETCH_CONDENSED, constants::ACCESSIBLE_ATTRIBUTE_STRETCH_EXPANDED, constants::ACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_CONDENSED, constants::ACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_EXPANDED, constants::ACCESSIBLE_ATTRIBUTE_STRETCH_NORMAL, constants::ACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_CONDENSED, constants::ACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_EXPANDED, constants::ACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_CONDENSED, enums::AccessibleAnnouncementPriority, enums::AccessibleTextContentChange, enums::AccessibleTextGranularity

v4_16 gnome_47? v4_18? = v4_14

Enables v4_16 of gdk4, gsk4, and gtk4-sys

Affects enums::FontRendering, text_buffer::TextBufferExt.remove_commit_notify, accessible_text::AccessibleTextImpl.extents, accessible_text::AccessibleTextImpl.offset, accessible_text::AccessibleTextImplExt.parent_extents, accessible_text::AccessibleTextImplExt.parent_offset, text_buffer::TextBufferExtManual.add_commit_notify

v4_18 = v4_16

Enables v4_18 of gdk4 and gtk4-sys

gio_v2_80 gnome_46?

Enables v2_80 of gio

xml_validation

Enables xml_validation of gtk4-macros

blueprint

Enables blueprint of gtk4-macros

unsafe-assume-initialized
gnome_47 = gnome_46, v4_16

Versions from https://gitlab.gnome.org/GNOME/gnome-build-meta/-/tree/gnome-43/elements/sdk gtk takes care of setting the versions of gsk and gdk gio takes care of setting the version of glib

Enables v2_82 of gio

gnome_46 gnome_47? = gio_v2_80, v4_14

Enables v1_16 of cairo-rs, v2_42 of gdk-pixbuf, v1_52 of pango

gnome_45 = v4_12

Enables v1_16 of cairo-rs, v2_42 of gdk-pixbuf, v2_78 of gio, v1_52 of pango

gnome_44 = v4_10

Enables v1_16 of cairo-rs, v2_42 of gdk-pixbuf, v2_76 of gio

gnome_43 = v4_8

Enables v1_16 of cairo-rs, v2_42 of gdk-pixbuf, v2_74 of gio

gnome_42 = v4_6

Enables v1_16 of cairo-rs, v2_42 of gdk-pixbuf, v2_72 of gio