Cargo Features

gdk4 has no features set by default.

[dependencies]
gdk4 = { version = "0.9.4", features = ["v4_2", "v4_4", "v4_6", "v4_8", "v4_10", "v4_12", "v4_14", "v4_16", "v4_18", "gl"] }
v4_2 v4_4?

Enables v4_2 of gdk4-sys

Affects device::DeviceExt.timestamp

v4_4 v4_6? = v4_2

Enables v4_4 of gdk4-sys

Affects display::DisplayExt.prepare_gl, enums::TitlebarGesture, gl_context::GLContextExt.is_shared, toplevel::ToplevelExt.titlebar_gesture

v4_6 v4_8? = v4_4

Enables v4_6 of gdk4-sys

Affects display::DisplayExt.create_gl_context, enums::TextureError, gl_context::GLContextExt.allowed_apis, gl_context::GLContextExt.api, gl_context::GLContextExt.set_allowed_apis, gl_context::GLContextExt.connect_allowed_apis_notify, gl_context::GLContextExt.connect_api_notify, texture::TextureExt.save_to_png_bytes, texture::TextureExt.save_to_tiff, texture::TextureExt.save_to_tiff_bytes

v4_8 v4_10? = v4_6

Enables v4_8 of gdk4-sys

Affects enums::ScrollUnit

v4_10 v4_12? = v4_8

Enables v4_10 of gdk4-sys

Affects monitor::MonitorExt.description, monitor::MonitorExt.connect_description_notify, texture::TextureExt.format

v4_12 v4_14? = v4_10

Enables v4_12 of gdk4-sys

Affects surface::SurfaceExt.scale, surface::SurfaceExt.connect_scale_notify, drag_surface::DragSurfaceExtManual.connect_compute_size

v4_14 v4_16? = v4_12

Enables v4_14 of gdk4-sys

Affects display::DisplayExt.dmabuf_formats, display::DisplayExt.supports_shadow_width, display::DisplayExt.connect_dmabuf_formats_notify, display::DisplayExt.connect_shadow_width_notify, enums::DmabufError, monitor::MonitorExt.scale, monitor::MonitorExt.connect_scale_notify

v4_16 v4_18? = v4_14

Enables v4_16 of gdk4-sys

Affects enums::CicpRange, texture::TextureExt.color_state

v4_18 = v4_16

Enables v4_18 of gdk4-sys

gl

Enables gl