diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c6b93f51ef29..573fd19bece9 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -40,6 +40,7 @@ jobs: 0.5=0.5 0.4=0.4 0.3=0.3 + RUSTFLAGS: --cfg docsrs steps: - uses: actions/checkout@v2 with: @@ -77,7 +78,7 @@ jobs: -p gsk4 -p gsk4-sys -p gtk4 -p gtk4-sys -p gtk4-macros - --features "dox" --no-deps + --no-deps - name: Fix broken URLs run: | diff --git a/gdk4-wayland/Cargo.toml b/gdk4-wayland/Cargo.toml index dcc27a0b4584..006ada0e3aeb 100644 --- a/gdk4-wayland/Cargo.toml +++ b/gdk4-wayland/Cargo.toml @@ -15,13 +15,12 @@ rust-version = "1.64" [features] v4_4 = ["ffi/v4_4"] v4_10 = ["ffi/v4_10", "v4_4"] -dox = ["ffi/dox", "gdk/dox", "gio/dox", "glib/dox", "xkb_crate", "wayland_crate", "egl"] wayland_crate = ["wayland-client", "wayland-backend"] egl = ["khronos-egl"] xkb_crate = ["xkb"] [package.metadata.docs.rs] -features = ["dox"] +rustdoc-args = ["--cfg", "docsrs"] [dependencies] ffi = {path = "./sys", package = "gdk4-wayland-sys", version = "0.7"} diff --git a/gdk4-wayland/src/auto/versions.txt b/gdk4-wayland/src/auto/versions.txt index bc0b4f74d727..c4950229ce37 100644 --- a/gdk4-wayland/src/auto/versions.txt +++ b/gdk4-wayland/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 8a280cee2cbb) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) diff --git a/gdk4-wayland/src/lib.rs b/gdk4-wayland/src/lib.rs index 0f4b26a3ce25..07d8cb5fb1b2 100644 --- a/gdk4-wayland/src/lib.rs +++ b/gdk4-wayland/src/lib.rs @@ -1,25 +1,22 @@ // Take a look at the license at the top of the repository in the LICENSE file. #![doc = include_str!("../README.md")] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] pub use ffi; pub use gdk; pub use gio; pub use glib; -#[cfg(any(feature = "wayland_crate", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland_crate")))] +#[cfg(any(feature = "wayland_crate", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))] pub use wayland_client; -#[cfg(any(all(feature = "v4_4", feature = "egl"), feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(all(feature = "v4_4", feature = "egl"))))] +#[cfg(any(all(feature = "v4_4", feature = "egl"), docsrs))] +#[cfg_attr(docsrs, doc(cfg(all(feature = "v4_4", feature = "egl"))))] pub use khronos_egl; -#[cfg(any(all(feature = "v4_4", feature = "xkb_crate"), feature = "dox"))] -#[cfg_attr( - feature = "dox", - doc(cfg(all(feature = "v4_4", feature = "xkb_crate"))) -)] +#[cfg(any(all(feature = "v4_4", feature = "xkb_crate"), docsrs))] +#[cfg_attr(docsrs, doc(cfg(all(feature = "v4_4", feature = "xkb_crate"))))] pub use xkb; mod auto; diff --git a/gdk4-wayland/src/wayland_device.rs b/gdk4-wayland/src/wayland_device.rs index f94b230d1d54..338ae6636ea2 100644 --- a/gdk4-wayland/src/wayland_device.rs +++ b/gdk4-wayland/src/wayland_device.rs @@ -1,36 +1,33 @@ // Take a look at the license at the top of the repository in the LICENSE file. -#[cfg(any(feature = "wayland_crate", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland_crate")))] +#[cfg(any(feature = "wayland_crate", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))] use crate::prelude::*; use crate::WaylandDevice; -#[cfg(any(feature = "wayland_crate", feature = "dox", feature = "xkb_crate"))] +#[cfg(any(feature = "wayland_crate", docsrs, feature = "xkb_crate"))] #[cfg_attr( - feature = "dox", + docsrs, doc(cfg(any(feature = "wayland_crate", feature = "xkb_crate"))) )] use glib::translate::*; -#[cfg(any(feature = "wayland_crate", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland_crate")))] +#[cfg(any(feature = "wayland_crate", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))] use wayland_client::{ backend::ObjectId, protocol::{wl_keyboard::WlKeyboard, wl_pointer::WlPointer, wl_seat::WlSeat}, Proxy, }; -#[cfg(any(all(feature = "v4_4", feature = "xkb_crate"), feature = "dox"))] -#[cfg_attr( - feature = "dox", - doc(cfg(all(feature = "v4_4", feature = "xkb_crate"))) -)] +#[cfg(any(all(feature = "v4_4", feature = "xkb_crate"), docsrs))] +#[cfg_attr(docsrs, doc(cfg(all(feature = "v4_4", feature = "xkb_crate"))))] use xkb::Keymap; impl WaylandDevice { #[doc(alias = "gdk_wayland_device_get_wl_keyboard")] #[doc(alias = "get_wl_keyboard")] - #[cfg(any(feature = "wayland_crate", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "wayland_crate")))] + #[cfg(any(feature = "wayland_crate", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))] pub fn wl_keyboard(&self) -> Option { let display = self.display().downcast::().unwrap(); unsafe { @@ -49,8 +46,8 @@ impl WaylandDevice { #[doc(alias = "gdk_wayland_device_get_wl_pointer")] #[doc(alias = "get_wl_pointer")] - #[cfg(any(feature = "wayland_crate", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "wayland_crate")))] + #[cfg(any(feature = "wayland_crate", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))] pub fn wl_pointer(&self) -> Option { let display = self.display().downcast::().unwrap(); unsafe { @@ -68,8 +65,8 @@ impl WaylandDevice { #[doc(alias = "gdk_wayland_device_get_wl_seat")] #[doc(alias = "get_wl_seat")] - #[cfg(any(feature = "wayland_crate", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "wayland_crate")))] + #[cfg(any(feature = "wayland_crate", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))] pub fn wl_seat(&self) -> Option { let display = self.display().downcast::().unwrap(); unsafe { @@ -85,11 +82,8 @@ impl WaylandDevice { } } - #[cfg(any(all(feature = "v4_4", feature = "xkb_crate"), feature = "dox"))] - #[cfg_attr( - feature = "dox", - doc(cfg(all(feature = "v4_4", feature = "xkb_crate"))) - )] + #[cfg(any(all(feature = "v4_4", feature = "xkb_crate"), docsrs))] + #[cfg_attr(docsrs, doc(cfg(all(feature = "v4_4", feature = "xkb_crate"))))] #[doc(alias = "gdk_wayland_device_get_xkb_keymap")] #[doc(alias = "get_xkb_keymap")] pub fn xkb_keymap(&self) -> Option { diff --git a/gdk4-wayland/src/wayland_display.rs b/gdk4-wayland/src/wayland_display.rs index 0da1019ee8eb..feb2573d5a57 100644 --- a/gdk4-wayland/src/wayland_display.rs +++ b/gdk4-wayland/src/wayland_display.rs @@ -1,29 +1,29 @@ // Take a look at the license at the top of the repository in the LICENSE file. use crate::WaylandDisplay; -#[cfg(any(feature = "wayland_crate", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland_crate")))] +#[cfg(any(feature = "wayland_crate", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))] use glib::{once_cell::sync::Lazy, prelude::*, translate::*, Quark}; -#[cfg(any(all(feature = "v4_4", feature = "egl"), feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(all(feature = "v4_4", feature = "egl"))))] +#[cfg(any(all(feature = "v4_4", feature = "egl"), docsrs))] +#[cfg_attr(docsrs, doc(cfg(all(feature = "v4_4", feature = "egl"))))] use khronos_egl as egl; -#[cfg(any(feature = "wayland_crate", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland_crate")))] +#[cfg(any(feature = "wayland_crate", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))] use wayland_client::{ backend::ObjectId, protocol::{wl_compositor::WlCompositor, wl_display::WlDisplay}, Proxy, }; -#[cfg(any(feature = "wayland_crate", feature = "dox"))] +#[cfg(any(feature = "wayland_crate", docsrs))] static WAYLAND_DISPLAY_CONNECTION_QUARK: Lazy = Lazy::new(|| Quark::from_str("gtk-rs-wayland-display-connection-quark")); impl WaylandDisplay { - #[cfg(any(all(feature = "v4_4", feature = "egl"), feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(all(feature = "v4_4", feature = "egl"))))] + #[cfg(any(all(feature = "v4_4", feature = "egl"), docsrs))] + #[cfg_attr(docsrs, doc(cfg(all(feature = "v4_4", feature = "egl"))))] #[doc(alias = "gdk_wayland_display_get_egl_display")] #[doc(alias = "get_egl_display")] pub fn egl_display(&self) -> Option { @@ -39,8 +39,8 @@ impl WaylandDisplay { #[doc(alias = "gdk_wayland_display_get_wl_compositor")] #[doc(alias = "get_wl_compositor")] - #[cfg(any(feature = "wayland_crate", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "wayland_crate")))] + #[cfg(any(feature = "wayland_crate", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))] pub fn wl_compositor(&self) -> Option { unsafe { let compositor_ptr = ffi::gdk_wayland_display_get_wl_compositor(self.to_glib_none().0); @@ -58,8 +58,8 @@ impl WaylandDisplay { #[doc(alias = "gdk_wayland_display_get_wl_display")] #[doc(alias = "get_wl_display")] - #[cfg(any(feature = "wayland_crate", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "wayland_crate")))] + #[cfg(any(feature = "wayland_crate", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))] pub fn wl_display(&self) -> Option { unsafe { let display_ptr = ffi::gdk_wayland_display_get_wl_display(self.to_glib_none().0); diff --git a/gdk4-wayland/src/wayland_monitor.rs b/gdk4-wayland/src/wayland_monitor.rs index 1faf0530dbae..f137294ab662 100644 --- a/gdk4-wayland/src/wayland_monitor.rs +++ b/gdk4-wayland/src/wayland_monitor.rs @@ -1,19 +1,19 @@ // Take a look at the license at the top of the repository in the LICENSE file. use crate::WaylandMonitor; -#[cfg(any(feature = "wayland_crate", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland_crate")))] +#[cfg(any(feature = "wayland_crate", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))] use {crate::prelude::*, glib::translate::*}; -#[cfg(any(feature = "wayland_crate", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland_crate")))] +#[cfg(any(feature = "wayland_crate", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))] use wayland_client::{backend::ObjectId, protocol::wl_output::WlOutput, Proxy}; impl WaylandMonitor { #[doc(alias = "gdk_wayland_monitor_get_wl_output")] #[doc(alias = "get_wl_output")] - #[cfg(any(feature = "wayland_crate", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "wayland_crate")))] + #[cfg(any(feature = "wayland_crate", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))] pub fn wl_output(&self) -> Option { let display = self.display().downcast::().unwrap(); unsafe { diff --git a/gdk4-wayland/src/wayland_seat.rs b/gdk4-wayland/src/wayland_seat.rs index 7986ae7b187a..ebd06fee337f 100644 --- a/gdk4-wayland/src/wayland_seat.rs +++ b/gdk4-wayland/src/wayland_seat.rs @@ -1,19 +1,19 @@ // Take a look at the license at the top of the repository in the LICENSE file. use crate::WaylandSeat; -#[cfg(any(feature = "wayland_crate", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland_crate")))] +#[cfg(any(feature = "wayland_crate", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))] use {crate::prelude::*, glib::translate::*}; -#[cfg(any(feature = "wayland_crate", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland_crate")))] +#[cfg(any(feature = "wayland_crate", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))] use wayland_client::{backend::ObjectId, protocol::wl_seat::WlSeat, Proxy}; impl WaylandSeat { #[doc(alias = "gdk_wayland_seat_get_wl_seat")] #[doc(alias = "get_wl_seat")] - #[cfg(any(feature = "wayland_crate", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "wayland_crate")))] + #[cfg(any(feature = "wayland_crate", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))] pub fn wl_seat(&self) -> Option { let display = self.display().downcast::().unwrap(); unsafe { diff --git a/gdk4-wayland/src/wayland_surface.rs b/gdk4-wayland/src/wayland_surface.rs index bb16a8b65fa7..8a26cb8130f3 100644 --- a/gdk4-wayland/src/wayland_surface.rs +++ b/gdk4-wayland/src/wayland_surface.rs @@ -1,12 +1,12 @@ // Take a look at the license at the top of the repository in the LICENSE file. use crate::{prelude::*, WaylandSurface}; -#[cfg(any(feature = "wayland_crate", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland_crate")))] +#[cfg(any(feature = "wayland_crate", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))] use glib::translate::*; -#[cfg(any(feature = "wayland_crate", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland_crate")))] +#[cfg(any(feature = "wayland_crate", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))] use wayland_client::{backend::ObjectId, protocol::wl_surface::WlSurface, Proxy}; // rustdoc-stripper-ignore-next @@ -14,14 +14,14 @@ use wayland_client::{backend::ObjectId, protocol::wl_surface::WlSurface, Proxy}; pub trait WaylandSurfaceExtManual: 'static { #[doc(alias = "gdk_wayland_surface_get_wl_surface")] #[doc(alias = "get_wl_surface")] - #[cfg(any(feature = "wayland_crate", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "wayland_crate")))] + #[cfg(any(feature = "wayland_crate", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))] fn wl_surface(&self) -> Option; } impl> WaylandSurfaceExtManual for O { - #[cfg(any(feature = "wayland_crate", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "wayland_crate")))] + #[cfg(any(feature = "wayland_crate", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))] fn wl_surface(&self) -> Option { let display = self .as_ref() diff --git a/gdk4-wayland/sys/Cargo.toml b/gdk4-wayland/sys/Cargo.toml index c50a627fcbb4..7af2da663e11 100644 --- a/gdk4-wayland/sys/Cargo.toml +++ b/gdk4-wayland/sys/Cargo.toml @@ -23,13 +23,12 @@ version = "4.4" version = "4.10" [package.metadata.docs.rs] -features = ["dox"] +features = [] [lib] name = "gdk4_wayland_sys" [features] -dox = ["glib/dox"] v4_4 = [] v4_10 = ["v4_4"] diff --git a/gdk4-wayland/sys/build.rs b/gdk4-wayland/sys/build.rs index 8d181dad8caa..e98844f2d792 100644 --- a/gdk4-wayland/sys/build.rs +++ b/gdk4-wayland/sys/build.rs @@ -2,13 +2,13 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gdk4-wayland/sys/src/lib.rs b/gdk4-wayland/sys/src/lib.rs index e0ebabfefabf..378d29b0b21d 100644 --- a/gdk4-wayland/sys/src/lib.rs +++ b/gdk4-wayland/sys/src/lib.rs @@ -9,7 +9,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ @@ -181,16 +181,16 @@ extern "C" { pub fn gdk_wayland_device_get_wl_keyboard(device: *mut GdkWaylandDevice) -> gpointer; pub fn gdk_wayland_device_get_wl_pointer(device: *mut GdkWaylandDevice) -> gpointer; pub fn gdk_wayland_device_get_wl_seat(device: *mut GdkWaylandDevice) -> gpointer; - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gdk_wayland_device_get_xkb_keymap(device: *mut GdkWaylandDevice) -> gpointer; //========================================================================= // GdkWaylandDisplay //========================================================================= pub fn gdk_wayland_display_get_type() -> GType; - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gdk_wayland_display_get_egl_display(display: *mut GdkWaylandDisplay) -> gpointer; pub fn gdk_wayland_display_get_startup_notification_id( display: *mut GdkWaylandDisplay, diff --git a/gdk4-wayland/sys/versions.txt b/gdk4-wayland/sys/versions.txt index bc0b4f74d727..c4950229ce37 100644 --- a/gdk4-wayland/sys/versions.txt +++ b/gdk4-wayland/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 8a280cee2cbb) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) diff --git a/gdk4-win32/Cargo.toml b/gdk4-win32/Cargo.toml index aa120782c769..d6b8d2a74ecd 100644 --- a/gdk4-win32/Cargo.toml +++ b/gdk4-win32/Cargo.toml @@ -14,7 +14,7 @@ rust-version = "1.64" build = "build.rs" [package.metadata.docs.rs] -features = ["dox"] +rustdoc-args = ["--cfg", "docsrs"] [package.metadata.system-deps.gtk4_win32] name = "gtk4-win32" @@ -22,7 +22,6 @@ version = "4" [features] v4_4 = ["ffi/v4_4"] -dox = ["ffi/dox", "gdk/dox", "gio/dox", "glib/dox", "egl", "win32"] egl = ["khronos-egl"] win32 = ["windows"] diff --git a/gdk4-win32/build.rs b/gdk4-win32/build.rs index e7b297a532b8..13cfd4a06e90 100644 --- a/gdk4-win32/build.rs +++ b/gdk4-win32/build.rs @@ -2,13 +2,13 @@ // from ../gir-files // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={}", s); diff --git a/gdk4-win32/src/auto/versions.txt b/gdk4-win32/src/auto/versions.txt index bc0b4f74d727..c4950229ce37 100644 --- a/gdk4-win32/src/auto/versions.txt +++ b/gdk4-win32/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 8a280cee2cbb) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) diff --git a/gdk4-win32/src/lib.rs b/gdk4-win32/src/lib.rs index 1e1b567b3638..a5cb224dcc99 100644 --- a/gdk4-win32/src/lib.rs +++ b/gdk4-win32/src/lib.rs @@ -1,14 +1,14 @@ // Take a look at the license at the top of the repository in the LICENSE file. #![doc = include_str!("../README.md")] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] pub use ffi; pub use gdk; pub use gio; pub use glib; -#[cfg(any(feature = "win32", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "win32")))] +#[cfg(any(feature = "win32", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "win32")))] pub use windows; #[macro_use] diff --git a/gdk4-win32/src/win32_display.rs b/gdk4-win32/src/win32_display.rs index 1ad07fe7f62d..b3bf9b5c2b6b 100644 --- a/gdk4-win32/src/win32_display.rs +++ b/gdk4-win32/src/win32_display.rs @@ -3,13 +3,13 @@ use crate::{Win32Display, Win32MessageFilterReturn, MSG}; use glib::translate::*; -#[cfg(any(all(feature = "v4_4", feature = "egl"), feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(all(feature = "v4_4", feature = "egl"))))] +#[cfg(any(all(feature = "v4_4", feature = "egl"), docsrs))] +#[cfg_attr(docsrs, doc(cfg(all(feature = "v4_4", feature = "egl"))))] use khronos_egl as egl; impl Win32Display { - #[cfg(any(all(feature = "v4_4", feature = "egl"), feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(all(feature = "v4_4", feature = "egl"))))] + #[cfg(any(all(feature = "v4_4", feature = "egl"), docsrs))] + #[cfg_attr(docsrs, doc(cfg(all(feature = "v4_4", feature = "egl"))))] #[doc(alias = "gdk_win32_display_get_egl_display")] #[doc(alias = "get_egl_display")] pub fn egl_display(&self) -> Option { diff --git a/gdk4-win32/sys/Cargo.toml b/gdk4-win32/sys/Cargo.toml index 82b407c03ef5..dda235fe97ff 100644 --- a/gdk4-win32/sys/Cargo.toml +++ b/gdk4-win32/sys/Cargo.toml @@ -23,13 +23,12 @@ version = "4.4" version = "4.8" [package.metadata.docs.rs] -features = ["dox"] +features = [] [lib] name = "gdk4_win32_sys" [features] -dox = ["glib/dox", "gdk/dox"] v4_4 = [] v4_8 = ["v4_4"] diff --git a/gdk4-win32/sys/build.rs b/gdk4-win32/sys/build.rs index 8d181dad8caa..e98844f2d792 100644 --- a/gdk4-win32/sys/build.rs +++ b/gdk4-win32/sys/build.rs @@ -2,13 +2,13 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gdk4-win32/sys/src/lib.rs b/gdk4-win32/sys/src/lib.rs index c46d5d0762c1..58943cec8581 100644 --- a/gdk4-win32/sys/src/lib.rs +++ b/gdk4-win32/sys/src/lib.rs @@ -9,7 +9,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ @@ -224,8 +224,8 @@ extern "C" { function: GdkWin32MessageFilterFunc, data: gpointer, ); - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gdk_win32_display_get_egl_display(display: *mut GdkWin32Display) -> gpointer; pub fn gdk_win32_display_get_win32hcursor( display: *mut GdkWin32Display, diff --git a/gdk4-win32/sys/versions.txt b/gdk4-win32/sys/versions.txt index bc0b4f74d727..c4950229ce37 100644 --- a/gdk4-win32/sys/versions.txt +++ b/gdk4-win32/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 8a280cee2cbb) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) diff --git a/gdk4-x11/Cargo.toml b/gdk4-x11/Cargo.toml index 84951bf5158d..b5b206f5122e 100644 --- a/gdk4-x11/Cargo.toml +++ b/gdk4-x11/Cargo.toml @@ -14,12 +14,11 @@ rust-version = "1.64" [features] v4_4 = ["ffi/v4_4"] v4_10 = ["ffi/v4_10", "v4_4"] -dox = ["ffi/dox", "gdk/dox", "gio/dox", "glib/dox", "egl", "xlib"] egl = ["khronos-egl"] xlib = ["x11"] [package.metadata.docs.rs] -features = ["dox"] +rustdoc-args = ["--cfg", "docsrs"] [dependencies] ffi = {path = "./sys", package = "gdk4-x11-sys", version = "0.7"} diff --git a/gdk4-x11/src/auto/versions.txt b/gdk4-x11/src/auto/versions.txt index bc0b4f74d727..c4950229ce37 100644 --- a/gdk4-x11/src/auto/versions.txt +++ b/gdk4-x11/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 8a280cee2cbb) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) diff --git a/gdk4-x11/src/auto/x11_display.rs b/gdk4-x11/src/auto/x11_display.rs index afad9003ea06..c45da6ff83d2 100644 --- a/gdk4-x11/src/auto/x11_display.rs +++ b/gdk4-x11/src/auto/x11_display.rs @@ -51,8 +51,8 @@ impl X11Display { } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "gdk_x11_display_get_egl_version")] #[doc(alias = "get_egl_version")] pub fn egl_version(&self) -> Option<(i32, i32)> { diff --git a/gdk4-x11/src/functions.rs b/gdk4-x11/src/functions.rs index d513fd4f7925..1b607b3fbd85 100644 --- a/gdk4-x11/src/functions.rs +++ b/gdk4-x11/src/functions.rs @@ -5,8 +5,8 @@ use glib::{translate::*, IntoGStr}; #[cfg(not(feature = "xlib"))] use crate::XAtom; -#[cfg(any(feature = "xlib", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "xlib")))] +#[cfg(any(feature = "xlib", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "xlib")))] use x11::xlib::Atom as XAtom; #[doc(alias = "gdk_x11_get_xatom_by_name_for_display")] diff --git a/gdk4-x11/src/lib.rs b/gdk4-x11/src/lib.rs index cdeeb30647aa..e79624dfa5d7 100644 --- a/gdk4-x11/src/lib.rs +++ b/gdk4-x11/src/lib.rs @@ -1,18 +1,18 @@ // Take a look at the license at the top of the repository in the LICENSE file. #![doc = include_str!("../README.md")] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] pub use ffi; pub use gdk; pub use gio; pub use glib; -#[cfg(any(feature = "xlib", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "xlib")))] +#[cfg(any(feature = "xlib", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "xlib")))] pub use x11; -#[cfg(any(all(feature = "v4_4", feature = "egl"), feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(all(feature = "v4_4", feature = "egl"))))] +#[cfg(any(all(feature = "v4_4", feature = "egl"), docsrs))] +#[cfg_attr(docsrs, doc(cfg(all(feature = "v4_4", feature = "egl"))))] pub use khronos_egl; #[macro_use] mod rt; diff --git a/gdk4-x11/src/x11_display.rs b/gdk4-x11/src/x11_display.rs index c40a362559cb..4b90ec0be231 100644 --- a/gdk4-x11/src/x11_display.rs +++ b/gdk4-x11/src/x11_display.rs @@ -1,29 +1,29 @@ // Take a look at the license at the top of the repository in the LICENSE file. use crate::{prelude::*, X11Display}; -#[cfg(any(feature = "xlib", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "xlib")))] +#[cfg(any(feature = "xlib", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "xlib")))] use glib::signal::{connect_raw, SignalHandlerId}; -#[cfg(any(all(feature = "v4_4", feature = "egl"), feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(all(feature = "v4_4", feature = "egl"))))] +#[cfg(any(all(feature = "v4_4", feature = "egl"), docsrs))] +#[cfg_attr(docsrs, doc(cfg(all(feature = "v4_4", feature = "egl"))))] use khronos_egl as egl; -#[cfg(any(feature = "xlib", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "xlib")))] +#[cfg(any(feature = "xlib", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "xlib")))] use std::{boxed::Box as Box_, mem::transmute}; -#[cfg(any(feature = "xlib", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "xlib")))] +#[cfg(any(feature = "xlib", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "xlib")))] use x11::xlib; #[cfg(not(feature = "xlib"))] use crate::{XCursor, XWindow}; use glib::{translate::*, IntoGStr}; -#[cfg(any(feature = "xlib", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "xlib")))] +#[cfg(any(feature = "xlib", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "xlib")))] use x11::xlib::{Cursor as XCursor, Window as XWindow}; impl X11Display { - #[cfg(any(all(feature = "v4_4", feature = "egl"), feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(all(feature = "v4_4", feature = "egl"))))] + #[cfg(any(all(feature = "v4_4", feature = "egl"), docsrs))] + #[cfg_attr(docsrs, doc(cfg(all(feature = "v4_4", feature = "egl"))))] #[doc(alias = "gdk_x11_display_get_egl_display")] #[doc(alias = "get_egl_display")] pub fn egl_display(&self) -> Option { @@ -49,24 +49,24 @@ impl X11Display { unsafe { ffi::gdk_x11_display_get_xrootwindow(self.to_glib_none().0) } } - #[cfg(any(feature = "xlib", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "xlib")))] + #[cfg(any(feature = "xlib", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "xlib")))] #[doc(alias = "gdk_x11_display_get_xdisplay")] #[doc(alias = "get_xdisplay")] pub unsafe fn xdisplay(&self) -> *mut xlib::Display { ffi::gdk_x11_display_get_xdisplay(self.to_glib_none().0) as *mut xlib::Display } - #[cfg(any(feature = "xlib", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "xlib")))] + #[cfg(any(feature = "xlib", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "xlib")))] #[doc(alias = "gdk_x11_display_get_xscreen")] #[doc(alias = "get_xscreen")] pub unsafe fn xscreen(&self) -> *mut xlib::Screen { ffi::gdk_x11_display_get_xscreen(self.to_glib_none().0) as *mut xlib::Screen } - #[cfg(any(feature = "xlib", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "xlib")))] + #[cfg(any(feature = "xlib", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "xlib")))] #[doc(alias = "xevent")] pub unsafe fn connect_xevent glib::Continue + 'static>( &self, diff --git a/gdk4-x11/src/x11_monitor.rs b/gdk4-x11/src/x11_monitor.rs index 1a0eaa80264a..a87ec3e90230 100644 --- a/gdk4-x11/src/x11_monitor.rs +++ b/gdk4-x11/src/x11_monitor.rs @@ -4,8 +4,8 @@ use crate::X11Monitor; #[cfg(not(feature = "xlib"))] use crate::XID; use glib::translate::*; -#[cfg(any(feature = "xlib", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "xlib")))] +#[cfg(any(feature = "xlib", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "xlib")))] use x11::xlib::XID; impl X11Monitor { diff --git a/gdk4-x11/src/x11_screen.rs b/gdk4-x11/src/x11_screen.rs index daf5b61ca99d..fbc35de50321 100644 --- a/gdk4-x11/src/x11_screen.rs +++ b/gdk4-x11/src/x11_screen.rs @@ -4,13 +4,13 @@ use crate::X11Screen; #[cfg(not(feature = "xlib"))] use crate::XID; use glib::translate::*; -#[cfg(any(feature = "xlib", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "xlib")))] +#[cfg(any(feature = "xlib", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "xlib")))] use x11::xlib::{self, XID}; impl X11Screen { - #[cfg(any(feature = "xlib", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "xlib")))] + #[cfg(any(feature = "xlib", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "xlib")))] #[doc(alias = "gdk_x11_screen_get_xscreen")] #[doc(alias = "get_xscreen")] pub unsafe fn xscreen(&self) -> *mut xlib::Screen { diff --git a/gdk4-x11/src/x11_surface.rs b/gdk4-x11/src/x11_surface.rs index 8a79fad21942..12cabe56291a 100644 --- a/gdk4-x11/src/x11_surface.rs +++ b/gdk4-x11/src/x11_surface.rs @@ -4,8 +4,8 @@ use crate::X11Surface; #[cfg(not(feature = "xlib"))] use crate::XWindow; use glib::translate::*; -#[cfg(any(feature = "xlib", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "xlib")))] +#[cfg(any(feature = "xlib", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "xlib")))] use x11::xlib::Window as XWindow; impl X11Surface { diff --git a/gdk4-x11/sys/Cargo.toml b/gdk4-x11/sys/Cargo.toml index fee381d57d1f..0aff0ce78e69 100644 --- a/gdk4-x11/sys/Cargo.toml +++ b/gdk4-x11/sys/Cargo.toml @@ -23,13 +23,12 @@ version = "4.4" version = "4.10" [package.metadata.docs.rs] -features = ["dox"] +features = [] [lib] name = "gdk4_x11_sys" [features] -dox = ["glib/dox", "gdk/dox"] v4_4 = [] v4_10 = ["v4_4"] diff --git a/gdk4-x11/sys/build.rs b/gdk4-x11/sys/build.rs index 8d181dad8caa..e98844f2d792 100644 --- a/gdk4-x11/sys/build.rs +++ b/gdk4-x11/sys/build.rs @@ -2,13 +2,13 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gdk4-x11/sys/src/lib.rs b/gdk4-x11/sys/src/lib.rs index 7c65570a8da3..140c47ac4991 100644 --- a/gdk4-x11/sys/src/lib.rs +++ b/gdk4-x11/sys/src/lib.rs @@ -9,7 +9,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ @@ -251,11 +251,11 @@ extern "C" { pub fn gdk_x11_display_error_trap_pop_ignored(display: *mut GdkX11Display); pub fn gdk_x11_display_error_trap_push(display: *mut GdkX11Display); pub fn gdk_x11_display_get_default_group(display: *mut GdkX11Display) -> *mut gdk::GdkSurface; - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gdk_x11_display_get_egl_display(display: *mut GdkX11Display) -> gpointer; - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gdk_x11_display_get_egl_version( display: *mut GdkX11Display, major: *mut c_int, diff --git a/gdk4-x11/sys/versions.txt b/gdk4-x11/sys/versions.txt index bc0b4f74d727..c4950229ce37 100644 --- a/gdk4-x11/sys/versions.txt +++ b/gdk4-x11/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 8a280cee2cbb) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) diff --git a/gdk4/Cargo.toml b/gdk4/Cargo.toml index cdf42a56da76..07a15faf14be 100644 --- a/gdk4/Cargo.toml +++ b/gdk4/Cargo.toml @@ -15,7 +15,6 @@ rust-version = "1.64" name = "gdk4" [features] -dox = ["ffi/dox", "glib/dox", "gio/dox", "gdk-pixbuf/dox", "cairo-rs/dox", "pango/dox"] v4_2 = ["ffi/v4_2"] v4_4 = ["ffi/v4_4", "v4_2"] v4_6 = ["ffi/v4_6", "v4_4"] @@ -24,7 +23,7 @@ v4_10 = ["ffi/v4_10", "v4_8"] v4_12 = ["ffi/v4_12", "v4_10"] [package.metadata.docs.rs] -features = ["dox"] +rustdoc-args = ["--cfg", "docsrs"] [dependencies] bitflags = "1.0" diff --git a/gdk4/src/auto/content_formats.rs b/gdk4/src/auto/content_formats.rs index 43294e1248a0..2861362d4544 100644 --- a/gdk4/src/auto/content_formats.rs +++ b/gdk4/src/auto/content_formats.rs @@ -164,8 +164,8 @@ impl ContentFormats { } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "gdk_content_formats_parse")] pub fn parse(string: &str) -> Result { assert_initialized_main_thread!(); diff --git a/gdk4/src/auto/device.rs b/gdk4/src/auto/device.rs index 50418cd195dd..8ee456a45255 100644 --- a/gdk4/src/auto/device.rs +++ b/gdk4/src/auto/device.rs @@ -87,8 +87,8 @@ pub trait DeviceExt: 'static { #[doc(alias = "get_surface_at_position")] fn surface_at_position(&self) -> (Option, f64, f64); - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] #[doc(alias = "gdk_device_get_timestamp")] #[doc(alias = "get_timestamp")] fn timestamp(&self) -> u32; @@ -237,8 +237,8 @@ impl> DeviceExt for O { } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] fn timestamp(&self) -> u32 { unsafe { ffi::gdk_device_get_timestamp(self.as_ref().to_glib_none().0) } } diff --git a/gdk4/src/auto/display.rs b/gdk4/src/auto/display.rs index fdcb4ee46afa..7fa70b41db35 100644 --- a/gdk4/src/auto/display.rs +++ b/gdk4/src/auto/display.rs @@ -3,8 +3,8 @@ // DO NOT EDIT #![allow(deprecated)] -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] use crate::GLContext; use crate::{AppLaunchContext, Clipboard, Device, Event, Monitor, Seat, Surface}; use glib::{ @@ -12,8 +12,8 @@ use glib::{ signal::{connect_raw, SignalHandlerId}, translate::*, }; -#[cfg(any(feature = "v4_4", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] +#[cfg(any(feature = "v4_4", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] use std::ptr; use std::{boxed::Box as Box_, fmt, mem::transmute}; @@ -58,8 +58,8 @@ pub trait DisplayExt: 'static { #[doc(alias = "gdk_display_close")] fn close(&self); - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gdk_display_create_gl_context")] fn create_gl_context(&self) -> Result; @@ -120,8 +120,8 @@ pub trait DisplayExt: 'static { #[doc(alias = "gdk_display_notify_startup_complete")] fn notify_startup_complete(&self, startup_id: &str); - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "gdk_display_prepare_gl")] fn prepare_gl(&self) -> Result<(), glib::Error>; @@ -177,8 +177,8 @@ impl> DisplayExt for O { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn create_gl_context(&self) -> Result { unsafe { let mut error = ptr::null_mut(); @@ -303,8 +303,8 @@ impl> DisplayExt for O { } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] fn prepare_gl(&self) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); diff --git a/gdk4/src/auto/enums.rs b/gdk4/src/auto/enums.rs index 696dbd1a4458..ec45c8d4bc0e 100644 --- a/gdk4/src/auto/enums.rs +++ b/gdk4/src/auto/enums.rs @@ -737,8 +737,8 @@ pub enum EventType { PadStrip, #[doc(alias = "GDK_PAD_GROUP_MODE")] PadGroupMode, - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "GDK_TOUCHPAD_HOLD")] TouchpadHold, #[doc(hidden)] @@ -779,7 +779,7 @@ impl fmt::Display for EventType { Self::PadRing => "PadRing", Self::PadStrip => "PadStrip", Self::PadGroupMode => "PadGroupMode", - #[cfg(any(feature = "v4_8", feature = "dox"))] + #[cfg(any(feature = "v4_8", docsrs))] Self::TouchpadHold => "TouchpadHold", _ => "Unknown", } @@ -821,7 +821,7 @@ impl IntoGlib for EventType { Self::PadRing => ffi::GDK_PAD_RING, Self::PadStrip => ffi::GDK_PAD_STRIP, Self::PadGroupMode => ffi::GDK_PAD_GROUP_MODE, - #[cfg(any(feature = "v4_8", feature = "dox"))] + #[cfg(any(feature = "v4_8", docsrs))] Self::TouchpadHold => ffi::GDK_TOUCHPAD_HOLD, Self::__Unknown(value) => value, } @@ -862,7 +862,7 @@ impl FromGlib for EventType { ffi::GDK_PAD_RING => Self::PadRing, ffi::GDK_PAD_STRIP => Self::PadStrip, ffi::GDK_PAD_GROUP_MODE => Self::PadGroupMode, - #[cfg(any(feature = "v4_8", feature = "dox"))] + #[cfg(any(feature = "v4_8", docsrs))] ffi::GDK_TOUCHPAD_HOLD => Self::TouchpadHold, value => Self::__Unknown(value), } @@ -1599,40 +1599,40 @@ pub enum MemoryFormat { R8g8b8, #[doc(alias = "GDK_MEMORY_B8G8R8")] B8g8r8, - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "GDK_MEMORY_R16G16B16")] R16g16b16, - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "GDK_MEMORY_R16G16B16A16_PREMULTIPLIED")] R16g16b16a16Premultiplied, - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "GDK_MEMORY_R16G16B16A16")] R16g16b16a16, - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "GDK_MEMORY_R16G16B16_FLOAT")] R16g16b16Float, - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "GDK_MEMORY_R16G16B16A16_FLOAT_PREMULTIPLIED")] R16g16b16a16FloatPremultiplied, - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "GDK_MEMORY_R16G16B16A16_FLOAT")] R16g16b16a16Float, - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "GDK_MEMORY_R32G32B32_FLOAT")] R32g32b32Float, - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "GDK_MEMORY_R32G32B32A32_FLOAT_PREMULTIPLIED")] R32g32b32a32FloatPremultiplied, - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "GDK_MEMORY_R32G32B32A32_FLOAT")] R32g32b32a32Float, #[doc(hidden)] @@ -1654,23 +1654,23 @@ impl fmt::Display for MemoryFormat { Self::A8b8g8r8 => "A8b8g8r8", Self::R8g8b8 => "R8g8b8", Self::B8g8r8 => "B8g8r8", - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] Self::R16g16b16 => "R16g16b16", - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] Self::R16g16b16a16Premultiplied => "R16g16b16a16Premultiplied", - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] Self::R16g16b16a16 => "R16g16b16a16", - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] Self::R16g16b16Float => "R16g16b16Float", - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] Self::R16g16b16a16FloatPremultiplied => "R16g16b16a16FloatPremultiplied", - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] Self::R16g16b16a16Float => "R16g16b16a16Float", - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] Self::R32g32b32Float => "R32g32b32Float", - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] Self::R32g32b32a32FloatPremultiplied => "R32g32b32a32FloatPremultiplied", - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] Self::R32g32b32a32Float => "R32g32b32a32Float", _ => "Unknown", } @@ -1693,27 +1693,27 @@ impl IntoGlib for MemoryFormat { Self::A8b8g8r8 => ffi::GDK_MEMORY_A8B8G8R8, Self::R8g8b8 => ffi::GDK_MEMORY_R8G8B8, Self::B8g8r8 => ffi::GDK_MEMORY_B8G8R8, - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] Self::R16g16b16 => ffi::GDK_MEMORY_R16G16B16, - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] Self::R16g16b16a16Premultiplied => ffi::GDK_MEMORY_R16G16B16A16_PREMULTIPLIED, - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] Self::R16g16b16a16 => ffi::GDK_MEMORY_R16G16B16A16, - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] Self::R16g16b16Float => ffi::GDK_MEMORY_R16G16B16_FLOAT, - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] Self::R16g16b16a16FloatPremultiplied => { ffi::GDK_MEMORY_R16G16B16A16_FLOAT_PREMULTIPLIED } - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] Self::R16g16b16a16Float => ffi::GDK_MEMORY_R16G16B16A16_FLOAT, - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] Self::R32g32b32Float => ffi::GDK_MEMORY_R32G32B32_FLOAT, - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] Self::R32g32b32a32FloatPremultiplied => { ffi::GDK_MEMORY_R32G32B32A32_FLOAT_PREMULTIPLIED } - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] Self::R32g32b32a32Float => ffi::GDK_MEMORY_R32G32B32A32_FLOAT, Self::__Unknown(value) => value, } @@ -1735,27 +1735,27 @@ impl FromGlib for MemoryFormat { ffi::GDK_MEMORY_A8B8G8R8 => Self::A8b8g8r8, ffi::GDK_MEMORY_R8G8B8 => Self::R8g8b8, ffi::GDK_MEMORY_B8G8R8 => Self::B8g8r8, - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] ffi::GDK_MEMORY_R16G16B16 => Self::R16g16b16, - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] ffi::GDK_MEMORY_R16G16B16A16_PREMULTIPLIED => Self::R16g16b16a16Premultiplied, - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] ffi::GDK_MEMORY_R16G16B16A16 => Self::R16g16b16a16, - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] ffi::GDK_MEMORY_R16G16B16_FLOAT => Self::R16g16b16Float, - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] ffi::GDK_MEMORY_R16G16B16A16_FLOAT_PREMULTIPLIED => { Self::R16g16b16a16FloatPremultiplied } - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] ffi::GDK_MEMORY_R16G16B16A16_FLOAT => Self::R16g16b16a16Float, - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] ffi::GDK_MEMORY_R32G32B32_FLOAT => Self::R32g32b32Float, - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] ffi::GDK_MEMORY_R32G32B32A32_FLOAT_PREMULTIPLIED => { Self::R32g32b32a32FloatPremultiplied } - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] ffi::GDK_MEMORY_R32G32B32A32_FLOAT => Self::R32g32b32a32Float, value => Self::__Unknown(value), } @@ -2070,8 +2070,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GdkScrollUnit")] @@ -2084,8 +2084,8 @@ pub enum ScrollUnit { __Unknown(i32), } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] impl fmt::Display for ScrollUnit { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!( @@ -2100,8 +2100,8 @@ impl fmt::Display for ScrollUnit { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(hidden)] impl IntoGlib for ScrollUnit { type GlibType = ffi::GdkScrollUnit; @@ -2116,8 +2116,8 @@ impl IntoGlib for ScrollUnit { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(hidden)] impl FromGlib for ScrollUnit { #[inline] @@ -2132,8 +2132,8 @@ impl FromGlib for ScrollUnit { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] impl StaticType for ScrollUnit { #[inline] fn static_type() -> Type { @@ -2141,8 +2141,8 @@ impl StaticType for ScrollUnit { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] impl glib::HasParamSpec for ScrollUnit { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -2153,14 +2153,14 @@ impl glib::HasParamSpec for ScrollUnit { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] impl glib::value::ValueType for ScrollUnit { type Type = Self; } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] unsafe impl<'a> FromValue<'a> for ScrollUnit { type Checker = glib::value::GenericValueTypeChecker; @@ -2171,8 +2171,8 @@ unsafe impl<'a> FromValue<'a> for ScrollUnit { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] impl ToValue for ScrollUnit { #[inline] fn to_value(&self) -> glib::Value { @@ -2189,8 +2189,8 @@ impl ToValue for ScrollUnit { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] impl From for glib::Value { #[inline] fn from(v: ScrollUnit) -> Self { @@ -2467,8 +2467,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GdkTextureError")] @@ -2485,8 +2485,8 @@ pub enum TextureError { __Unknown(i32), } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl fmt::Display for TextureError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!( @@ -2503,8 +2503,8 @@ impl fmt::Display for TextureError { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(hidden)] impl IntoGlib for TextureError { type GlibType = ffi::GdkTextureError; @@ -2521,8 +2521,8 @@ impl IntoGlib for TextureError { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(hidden)] impl FromGlib for TextureError { #[inline] @@ -2539,8 +2539,8 @@ impl FromGlib for TextureError { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl ErrorDomain for TextureError { #[inline] fn domain() -> Quark { @@ -2564,8 +2564,8 @@ impl ErrorDomain for TextureError { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl StaticType for TextureError { #[inline] fn static_type() -> Type { @@ -2573,8 +2573,8 @@ impl StaticType for TextureError { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl glib::HasParamSpec for TextureError { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -2585,14 +2585,14 @@ impl glib::HasParamSpec for TextureError { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl glib::value::ValueType for TextureError { type Type = Self; } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] unsafe impl<'a> FromValue<'a> for TextureError { type Checker = glib::value::GenericValueTypeChecker; @@ -2603,8 +2603,8 @@ unsafe impl<'a> FromValue<'a> for TextureError { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl ToValue for TextureError { #[inline] fn to_value(&self) -> glib::Value { @@ -2621,8 +2621,8 @@ impl ToValue for TextureError { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl From for glib::Value { #[inline] fn from(v: TextureError) -> Self { @@ -2631,8 +2631,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v4_4", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] +#[cfg(any(feature = "v4_4", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GdkTitlebarGesture")] @@ -2647,8 +2647,8 @@ pub enum TitlebarGesture { __Unknown(i32), } -#[cfg(any(feature = "v4_4", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] +#[cfg(any(feature = "v4_4", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] impl fmt::Display for TitlebarGesture { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!( @@ -2664,8 +2664,8 @@ impl fmt::Display for TitlebarGesture { } } -#[cfg(any(feature = "v4_4", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] +#[cfg(any(feature = "v4_4", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(hidden)] impl IntoGlib for TitlebarGesture { type GlibType = ffi::GdkTitlebarGesture; @@ -2681,8 +2681,8 @@ impl IntoGlib for TitlebarGesture { } } -#[cfg(any(feature = "v4_4", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] +#[cfg(any(feature = "v4_4", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(hidden)] impl FromGlib for TitlebarGesture { #[inline] @@ -2698,8 +2698,8 @@ impl FromGlib for TitlebarGesture { } } -#[cfg(any(feature = "v4_4", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] +#[cfg(any(feature = "v4_4", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] impl StaticType for TitlebarGesture { #[inline] fn static_type() -> Type { @@ -2707,8 +2707,8 @@ impl StaticType for TitlebarGesture { } } -#[cfg(any(feature = "v4_4", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] +#[cfg(any(feature = "v4_4", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] impl glib::HasParamSpec for TitlebarGesture { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -2719,14 +2719,14 @@ impl glib::HasParamSpec for TitlebarGesture { } } -#[cfg(any(feature = "v4_4", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] +#[cfg(any(feature = "v4_4", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] impl glib::value::ValueType for TitlebarGesture { type Type = Self; } -#[cfg(any(feature = "v4_4", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] +#[cfg(any(feature = "v4_4", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] unsafe impl<'a> FromValue<'a> for TitlebarGesture { type Checker = glib::value::GenericValueTypeChecker; @@ -2737,8 +2737,8 @@ unsafe impl<'a> FromValue<'a> for TitlebarGesture { } } -#[cfg(any(feature = "v4_4", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] +#[cfg(any(feature = "v4_4", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] impl ToValue for TitlebarGesture { #[inline] fn to_value(&self) -> glib::Value { @@ -2755,8 +2755,8 @@ impl ToValue for TitlebarGesture { } } -#[cfg(any(feature = "v4_4", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] +#[cfg(any(feature = "v4_4", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] impl From for glib::Value { #[inline] fn from(v: TitlebarGesture) -> Self { diff --git a/gdk4/src/auto/file_list.rs b/gdk4/src/auto/file_list.rs index b449dc6984e9..13a1af6ed9b5 100644 --- a/gdk4/src/auto/file_list.rs +++ b/gdk4/src/auto/file_list.rs @@ -16,8 +16,8 @@ glib::wrapper! { } impl FileList { - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "gdk_file_list_new_from_array")] #[doc(alias = "new_from_array")] pub fn from_array(files: &[gio::File]) -> FileList { diff --git a/gdk4/src/auto/flags.rs b/gdk4/src/auto/flags.rs index 69a90fca0788..640cb8499c98 100644 --- a/gdk4/src/auto/flags.rs +++ b/gdk4/src/auto/flags.rs @@ -422,9 +422,9 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] +#[cfg(any(feature = "v4_6", docsrs))] bitflags! { - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "GdkGLAPI")] pub struct GLAPI: u32 { #[doc(alias = "GDK_GL_API_GL")] @@ -434,16 +434,16 @@ bitflags! { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl fmt::Display for GLAPI { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { ::fmt(self, f) } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(hidden)] impl IntoGlib for GLAPI { type GlibType = ffi::GdkGLAPI; @@ -454,8 +454,8 @@ impl IntoGlib for GLAPI { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(hidden)] impl FromGlib for GLAPI { #[inline] @@ -465,8 +465,8 @@ impl FromGlib for GLAPI { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl StaticType for GLAPI { #[inline] fn static_type() -> Type { @@ -474,8 +474,8 @@ impl StaticType for GLAPI { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl glib::HasParamSpec for GLAPI { type ParamSpec = glib::ParamSpecFlags; type SetValue = Self; @@ -486,14 +486,14 @@ impl glib::HasParamSpec for GLAPI { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl glib::value::ValueType for GLAPI { type Type = Self; } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] unsafe impl<'a> FromValue<'a> for GLAPI { type Checker = glib::value::GenericValueTypeChecker; @@ -504,8 +504,8 @@ unsafe impl<'a> FromValue<'a> for GLAPI { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl ToValue for GLAPI { #[inline] fn to_value(&self) -> glib::Value { @@ -522,8 +522,8 @@ impl ToValue for GLAPI { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl From for glib::Value { #[inline] fn from(v: GLAPI) -> Self { diff --git a/gdk4/src/auto/gl_context.rs b/gdk4/src/auto/gl_context.rs index 9adeac3ad674..ddcc5693fa62 100644 --- a/gdk4/src/auto/gl_context.rs +++ b/gdk4/src/auto/gl_context.rs @@ -3,16 +3,16 @@ // DO NOT EDIT #![allow(deprecated)] -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] use crate::GLAPI; use crate::{Display, DrawContext, Surface}; -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] use glib::signal::{connect_raw, SignalHandlerId}; use glib::{prelude::*, translate::*}; -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] use std::{boxed::Box as Box_, mem::transmute}; use std::{fmt, mem, ptr}; @@ -45,14 +45,14 @@ impl GLContext { } pub trait GLContextExt: 'static { - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gdk_gl_context_get_allowed_apis")] #[doc(alias = "get_allowed_apis")] fn allowed_apis(&self) -> GLAPI; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gdk_gl_context_get_api")] #[doc(alias = "get_api")] fn api(&self) -> GLAPI; @@ -95,8 +95,8 @@ pub trait GLContextExt: 'static { #[doc(alias = "gdk_gl_context_is_legacy")] fn is_legacy(&self) -> bool; - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "gdk_gl_context_is_shared")] fn is_shared(&self, other: &impl IsA) -> bool; @@ -106,8 +106,8 @@ pub trait GLContextExt: 'static { #[doc(alias = "gdk_gl_context_realize")] fn realize(&self) -> Result<(), glib::Error>; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gdk_gl_context_set_allowed_apis")] fn set_allowed_apis(&self, apis: GLAPI); @@ -123,20 +123,20 @@ pub trait GLContextExt: 'static { #[doc(alias = "gdk_gl_context_set_use_es")] fn set_use_es(&self, use_es: i32); - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "allowed-apis")] fn connect_allowed_apis_notify(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "api")] fn connect_api_notify(&self, f: F) -> SignalHandlerId; } impl> GLContextExt for O { - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn allowed_apis(&self) -> GLAPI { unsafe { from_glib(ffi::gdk_gl_context_get_allowed_apis( @@ -145,8 +145,8 @@ impl> GLContextExt for O { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn api(&self) -> GLAPI { unsafe { from_glib(ffi::gdk_gl_context_get_api(self.as_ref().to_glib_none().0)) } } @@ -234,8 +234,8 @@ impl> GLContextExt for O { } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] fn is_shared(&self, other: &impl IsA) -> bool { unsafe { from_glib(ffi::gdk_gl_context_is_shared( @@ -264,8 +264,8 @@ impl> GLContextExt for O { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn set_allowed_apis(&self, apis: GLAPI) { unsafe { ffi::gdk_gl_context_set_allowed_apis(self.as_ref().to_glib_none().0, apis.into_glib()); @@ -302,8 +302,8 @@ impl> GLContextExt for O { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn connect_allowed_apis_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_allowed_apis_trampoline< P: IsA, @@ -329,8 +329,8 @@ impl> GLContextExt for O { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn connect_api_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_api_trampoline, F: Fn(&P) + 'static>( this: *mut ffi::GdkGLContext, diff --git a/gdk4/src/auto/mod.rs b/gdk4/src/auto/mod.rs index 137505989012..aa254cd4c319 100644 --- a/gdk4/src/auto/mod.rs +++ b/gdk4/src/auto/mod.rs @@ -140,11 +140,11 @@ pub use self::content_formats_builder::ContentFormatsBuilder; mod event_sequence; pub use self::event_sequence::EventSequence; -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] mod file_list; -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub use self::file_list::FileList; mod frame_timings; @@ -159,11 +159,11 @@ pub use self::rgba::RGBA; mod rectangle; pub use self::rectangle::Rectangle; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] mod texture_downloader; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use self::texture_downloader::TextureDownloader; mod toplevel_layout; @@ -184,16 +184,16 @@ pub use self::enums::KeyMatch; pub use self::enums::MemoryFormat; pub use self::enums::NotifyType; pub use self::enums::ScrollDirection; -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub use self::enums::ScrollUnit; pub use self::enums::SubpixelLayout; pub use self::enums::SurfaceEdge; -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub use self::enums::TextureError; -#[cfg(any(feature = "v4_4", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] +#[cfg(any(feature = "v4_4", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub use self::enums::TitlebarGesture; pub use self::enums::TouchpadGesturePhase; pub use self::enums::VulkanError; @@ -207,8 +207,8 @@ pub use self::flags::ModifierType; pub use self::flags::PaintableFlags; pub use self::flags::SeatCapabilities; pub use self::flags::ToplevelState; -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub use self::flags::GLAPI; pub mod functions; diff --git a/gdk4/src/auto/monitor.rs b/gdk4/src/auto/monitor.rs index adfa821c8b55..2b1a8c9f7e61 100644 --- a/gdk4/src/auto/monitor.rs +++ b/gdk4/src/auto/monitor.rs @@ -28,8 +28,8 @@ pub trait MonitorExt: 'static { #[doc(alias = "get_connector")] fn connector(&self) -> Option; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gdk_monitor_get_description")] #[doc(alias = "get_description")] fn description(&self) -> Option; @@ -79,8 +79,8 @@ pub trait MonitorExt: 'static { #[doc(alias = "connector")] fn connect_connector_notify(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "description")] fn connect_description_notify(&self, f: F) -> SignalHandlerId; @@ -121,8 +121,8 @@ impl> MonitorExt for O { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] fn description(&self) -> Option { unsafe { from_glib_none(ffi::gdk_monitor_get_description( @@ -229,8 +229,8 @@ impl> MonitorExt for O { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] fn connect_description_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_description_trampoline, F: Fn(&P) + 'static>( this: *mut ffi::GdkMonitor, diff --git a/gdk4/src/auto/popup_layout.rs b/gdk4/src/auto/popup_layout.rs index 81d65bddd226..bab018e87b17 100644 --- a/gdk4/src/auto/popup_layout.rs +++ b/gdk4/src/auto/popup_layout.rs @@ -4,8 +4,8 @@ use crate::{AnchorHints, Gravity, Rectangle}; use glib::translate::*; -#[cfg(any(feature = "v4_2", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] +#[cfg(any(feature = "v4_2", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] use std::mem; glib::wrapper! { @@ -74,8 +74,8 @@ impl PopupLayout { unsafe { from_glib(ffi::gdk_popup_layout_get_rect_anchor(self.to_glib_none().0)) } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] #[doc(alias = "gdk_popup_layout_get_shadow_width")] #[doc(alias = "get_shadow_width")] pub fn shadow_width(&self) -> (i32, i32, i32, i32) { @@ -141,8 +141,8 @@ impl PopupLayout { } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] #[doc(alias = "gdk_popup_layout_set_shadow_width")] pub fn set_shadow_width(&self, left: i32, right: i32, top: i32, bottom: i32) { unsafe { diff --git a/gdk4/src/auto/scroll_event.rs b/gdk4/src/auto/scroll_event.rs index d87a229ed7be..e42d58f80f1b 100644 --- a/gdk4/src/auto/scroll_event.rs +++ b/gdk4/src/auto/scroll_event.rs @@ -3,8 +3,8 @@ // DO NOT EDIT use crate::ScrollDirection; -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] use crate::ScrollUnit; use glib::translate::*; use std::{fmt, mem}; @@ -47,8 +47,8 @@ impl ScrollEvent { unsafe { from_glib(ffi::gdk_scroll_event_get_direction(self.to_glib_none().0)) } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "gdk_scroll_event_get_unit")] #[doc(alias = "get_unit")] pub fn unit(&self) -> ScrollUnit { diff --git a/gdk4/src/auto/surface.rs b/gdk4/src/auto/surface.rs index 3d52f70e8ed5..36ecc4c96cb5 100644 --- a/gdk4/src/auto/surface.rs +++ b/gdk4/src/auto/surface.rs @@ -92,8 +92,8 @@ pub trait SurfaceExt: 'static { #[doc(alias = "get_mapped")] fn is_mapped(&self) -> bool; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "gdk_surface_get_scale")] #[doc(alias = "get_scale")] fn scale(&self) -> f64; @@ -157,8 +157,8 @@ pub trait SurfaceExt: 'static { #[doc(alias = "mapped")] fn connect_mapped_notify(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "scale")] fn connect_scale_notify(&self, f: F) -> SignalHandlerId; @@ -273,8 +273,8 @@ impl> SurfaceExt for O { unsafe { from_glib(ffi::gdk_surface_get_mapped(self.as_ref().to_glib_none().0)) } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] fn scale(&self) -> f64 { unsafe { ffi::gdk_surface_get_scale(self.as_ref().to_glib_none().0) } } @@ -557,8 +557,8 @@ impl> SurfaceExt for O { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] fn connect_scale_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_scale_trampoline, F: Fn(&P) + 'static>( this: *mut ffi::GdkSurface, diff --git a/gdk4/src/auto/texture.rs b/gdk4/src/auto/texture.rs index f0a8baa7f772..32d307d4f81e 100644 --- a/gdk4/src/auto/texture.rs +++ b/gdk4/src/auto/texture.rs @@ -2,8 +2,8 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] use crate::MemoryFormat; use crate::Paintable; use glib::{prelude::*, translate::*}; @@ -28,8 +28,8 @@ impl Texture { unsafe { from_glib_full(ffi::gdk_texture_new_for_pixbuf(pixbuf.to_glib_none().0)) } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gdk_texture_new_from_bytes")] #[doc(alias = "new_from_bytes")] pub fn from_bytes(bytes: &glib::Bytes) -> Result { @@ -60,8 +60,8 @@ impl Texture { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gdk_texture_new_from_filename")] #[doc(alias = "new_from_filename")] pub fn from_filename(path: impl AsRef) -> Result { @@ -94,8 +94,8 @@ unsafe impl Send for Texture {} unsafe impl Sync for Texture {} pub trait TextureExt: 'static { - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gdk_texture_get_format")] #[doc(alias = "get_format")] fn format(&self) -> MemoryFormat; @@ -114,28 +114,28 @@ pub trait TextureExt: 'static { filename: impl AsRef, ) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gdk_texture_save_to_png_bytes")] fn save_to_png_bytes(&self) -> glib::Bytes; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gdk_texture_save_to_tiff")] fn save_to_tiff( &self, filename: impl AsRef, ) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gdk_texture_save_to_tiff_bytes")] fn save_to_tiff_bytes(&self) -> glib::Bytes; } impl> TextureExt for O { - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] fn format(&self) -> MemoryFormat { unsafe { from_glib(ffi::gdk_texture_get_format(self.as_ref().to_glib_none().0)) } } @@ -163,8 +163,8 @@ impl> TextureExt for O { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn save_to_png_bytes(&self) -> glib::Bytes { unsafe { from_glib_full(ffi::gdk_texture_save_to_png_bytes( @@ -173,8 +173,8 @@ impl> TextureExt for O { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn save_to_tiff( &self, filename: impl AsRef, @@ -190,8 +190,8 @@ impl> TextureExt for O { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn save_to_tiff_bytes(&self) -> glib::Bytes { unsafe { from_glib_full(ffi::gdk_texture_save_to_tiff_bytes( diff --git a/gdk4/src/auto/toplevel.rs b/gdk4/src/auto/toplevel.rs index f20f1b4a9657..3c08984e5911 100644 --- a/gdk4/src/auto/toplevel.rs +++ b/gdk4/src/auto/toplevel.rs @@ -2,8 +2,8 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v4_4", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] +#[cfg(any(feature = "v4_4", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] use crate::TitlebarGesture; use crate::{ Device, Event, FullscreenMode, Surface, SurfaceEdge, Texture, ToplevelLayout, ToplevelState, @@ -92,8 +92,8 @@ pub trait ToplevelExt: 'static { #[doc(alias = "gdk_toplevel_supports_edge_constraints")] fn supports_edge_constraints(&self) -> bool; - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "gdk_toplevel_titlebar_gesture")] fn titlebar_gesture(&self, gesture: TitlebarGesture) -> bool; @@ -297,8 +297,8 @@ impl> ToplevelExt for O { } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] fn titlebar_gesture(&self, gesture: TitlebarGesture) -> bool { unsafe { from_glib(ffi::gdk_toplevel_titlebar_gesture( diff --git a/gdk4/src/auto/versions.txt b/gdk4/src/auto/versions.txt index bc0b4f74d727..c4950229ce37 100644 --- a/gdk4/src/auto/versions.txt +++ b/gdk4/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 8a280cee2cbb) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) diff --git a/gdk4/src/content_formats.rs b/gdk4/src/content_formats.rs index 6dff0862e210..b26be3d3f048 100644 --- a/gdk4/src/content_formats.rs +++ b/gdk4/src/content_formats.rs @@ -25,8 +25,8 @@ impl ContentFormats { } } -#[cfg(any(feature = "v4_4", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] +#[cfg(any(feature = "v4_4", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] impl std::str::FromStr for ContentFormats { type Err = glib::BoolError; fn from_str(s: &str) -> Result { diff --git a/gdk4/src/drag_surface.rs b/gdk4/src/drag_surface.rs index 55322894d9dd..807fcfbc2353 100644 --- a/gdk4/src/drag_surface.rs +++ b/gdk4/src/drag_surface.rs @@ -10,8 +10,8 @@ use std::{boxed::Box as Box_, mem::transmute}; // rustdoc-stripper-ignore-next /// Trait containing manually implemented methods of [`DragSurface`](crate::DragSurface). pub trait DragSurfaceExtManual { - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "compute-size")] fn connect_compute_size( &self, @@ -20,8 +20,8 @@ pub trait DragSurfaceExtManual { } impl> DragSurfaceExtManual for O { - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] fn connect_compute_size( &self, f: F, diff --git a/gdk4/src/lib.rs b/gdk4/src/lib.rs index 78cd3f917546..aa4776f6a19c 100644 --- a/gdk4/src/lib.rs +++ b/gdk4/src/lib.rs @@ -1,6 +1,6 @@ // Take a look at the license at the top of the repository in the LICENSE file. -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #![doc = include_str!("../README.md")] pub use cairo; @@ -70,11 +70,11 @@ mod crossing_event; mod delete_event; mod display; mod dnd_event; -#[cfg(any(feature = "v4_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] +#[cfg(any(feature = "v4_12", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] mod drag_surface; -#[cfg(any(feature = "v4_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] +#[cfg(any(feature = "v4_12", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] mod drag_surface_size; mod draw_context; mod drop; @@ -106,8 +106,8 @@ pub use auto::*; pub use functions::*; pub use display::Backend; -#[cfg(any(feature = "v4_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] +#[cfg(any(feature = "v4_12", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub use drag_surface_size::DragSurfaceSize; pub use keymap_key::KeymapKey; pub use keys::Key; diff --git a/gdk4/src/prelude.rs b/gdk4/src/prelude.rs index 9f58dde3a0df..3f38c2f0df1c 100644 --- a/gdk4/src/prelude.rs +++ b/gdk4/src/prelude.rs @@ -8,8 +8,8 @@ pub use crate::auto::traits::*; pub use crate::cairo_interaction::{GdkCairoContextExt, GdkCairoSurfaceExt}; pub use crate::content_provider::ContentProviderExtManual; pub use crate::display::DisplayExtManual; -#[cfg(any(feature = "v4_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] +#[cfg(any(feature = "v4_12", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub use crate::drag_surface::DragSurfaceExtManual; pub use crate::draw_context::DrawContextExtManual; pub use crate::event::EventKind; diff --git a/gdk4/sys/Cargo.toml b/gdk4/sys/Cargo.toml index 479bbf4b0603..10f93f53bc71 100644 --- a/gdk4/sys/Cargo.toml +++ b/gdk4/sys/Cargo.toml @@ -13,7 +13,7 @@ version = "0.7.0" rust-version = "1.64" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gtk4] name = "gtk4" @@ -41,7 +41,6 @@ version = "4.11" name = "gdk4_sys" [features] -dox = ["glib/dox", "gobject/dox", "gio/dox", "gdk_pixbuf/dox", "pango/dox", "cairo/dox"] v4_2 = [] v4_4 = ["v4_2"] v4_6 = ["v4_4"] diff --git a/gdk4/sys/build.rs b/gdk4/sys/build.rs index 7f576abbc8cd..3489f6ecbb4a 100644 --- a/gdk4/sys/build.rs +++ b/gdk4/sys/build.rs @@ -2,17 +2,17 @@ // from gir-files (https://github.com/gtk-rs/gir-files.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::io; -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::io::prelude::*; -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = writeln!(io::stderr(), "{s}"); @@ -24,7 +24,7 @@ fn main() { check_features(); } -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn check_features() { const PKG_CONFIG_PACKAGE: &str = "gtk4"; diff --git a/gdk4/sys/src/lib.rs b/gdk4/sys/src/lib.rs index e0dc4286f3ee..e6de413a8d13 100644 --- a/gdk4/sys/src/lib.rs +++ b/gdk4/sys/src/lib.rs @@ -9,7 +9,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ @@ -3594,8 +3594,8 @@ extern "C" { //========================================================================= // GdkScrollUnit //========================================================================= - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gdk_scroll_unit_get_type() -> GType; //========================================================================= @@ -3611,18 +3611,18 @@ extern "C" { //========================================================================= // GdkTextureError //========================================================================= - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gdk_texture_error_get_type() -> GType; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gdk_texture_error_quark() -> glib::GQuark; //========================================================================= // GdkTitlebarGesture //========================================================================= - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gdk_titlebar_gesture_get_type() -> GType; //========================================================================= @@ -3660,8 +3660,8 @@ extern "C" { //========================================================================= // GdkGLAPI //========================================================================= - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gdk_gl_api_get_type() -> GType; //========================================================================= @@ -3741,8 +3741,8 @@ extern "C" { formats: *mut GdkContentFormats, ) -> *mut GdkContentFormats; pub fn gdk_content_formats_unref(formats: *mut GdkContentFormats); - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gdk_content_formats_parse(string: *const c_char) -> *mut GdkContentFormats; //========================================================================= @@ -3776,8 +3776,8 @@ extern "C" { //========================================================================= // GdkDragSurfaceSize //========================================================================= - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gdk_drag_surface_size_set_size( size: *mut GdkDragSurfaceSize, width: c_int, @@ -3792,20 +3792,20 @@ extern "C" { //========================================================================= // GdkFileList //========================================================================= - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gdk_file_list_get_type() -> GType; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gdk_file_list_new_from_array( files: *mut *mut gio::GFile, n_files: size_t, ) -> *mut GdkFileList; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gdk_file_list_new_from_list(files: *mut glib::GSList) -> *mut GdkFileList; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gdk_file_list_get_files(file_list: *mut GdkFileList) -> *mut glib::GSList; //========================================================================= @@ -3839,8 +3839,8 @@ extern "C" { pub fn gdk_popup_layout_get_anchor_rect(layout: *mut GdkPopupLayout) -> *const GdkRectangle; pub fn gdk_popup_layout_get_offset(layout: *mut GdkPopupLayout, dx: *mut c_int, dy: *mut c_int); pub fn gdk_popup_layout_get_rect_anchor(layout: *mut GdkPopupLayout) -> GdkGravity; - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn gdk_popup_layout_get_shadow_width( layout: *mut GdkPopupLayout, left: *mut c_int, @@ -3860,8 +3860,8 @@ extern "C" { ); pub fn gdk_popup_layout_set_offset(layout: *mut GdkPopupLayout, dx: c_int, dy: c_int); pub fn gdk_popup_layout_set_rect_anchor(layout: *mut GdkPopupLayout, anchor: GdkGravity); - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn gdk_popup_layout_set_shadow_width( layout: *mut GdkPopupLayout, left: c_int, @@ -3905,50 +3905,50 @@ extern "C" { //========================================================================= // GdkTextureDownloader //========================================================================= - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gdk_texture_downloader_get_type() -> GType; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gdk_texture_downloader_new(texture: *mut GdkTexture) -> *mut GdkTextureDownloader; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gdk_texture_downloader_copy( self_: *const GdkTextureDownloader, ) -> *mut GdkTextureDownloader; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gdk_texture_downloader_download_bytes( self_: *const GdkTextureDownloader, out_stride: *mut size_t, ) -> *mut glib::GBytes; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gdk_texture_downloader_download_into( self_: *const GdkTextureDownloader, data: *mut u8, stride: size_t, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gdk_texture_downloader_free(self_: *mut GdkTextureDownloader); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gdk_texture_downloader_get_format(self_: *const GdkTextureDownloader) -> GdkMemoryFormat; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gdk_texture_downloader_get_texture( self_: *const GdkTextureDownloader, ) -> *mut GdkTexture; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gdk_texture_downloader_set_format( self_: *mut GdkTextureDownloader, format: GdkMemoryFormat, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gdk_texture_downloader_set_texture( self_: *mut GdkTextureDownloader, texture: *mut GdkTexture, @@ -4288,8 +4288,8 @@ extern "C" { win_x: *mut c_double, win_y: *mut c_double, ) -> *mut GdkSurface; - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn gdk_device_get_timestamp(device: *mut GdkDevice) -> u32; pub fn gdk_device_get_vendor_id(device: *mut GdkDevice) -> *const c_char; pub fn gdk_device_has_bidi_layouts(device: *mut GdkDevice) -> gboolean; @@ -4311,8 +4311,8 @@ extern "C" { pub fn gdk_display_open(display_name: *const c_char) -> *mut GdkDisplay; pub fn gdk_display_beep(display: *mut GdkDisplay); pub fn gdk_display_close(display: *mut GdkDisplay); - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gdk_display_create_gl_context( self_: *mut GdkDisplay, error: *mut *mut glib::GError, @@ -4357,8 +4357,8 @@ extern "C" { n_keys: *mut c_int, ) -> gboolean; pub fn gdk_display_notify_startup_complete(display: *mut GdkDisplay, startup_id: *const c_char); - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gdk_display_prepare_gl( self_: *mut GdkDisplay, error: *mut *mut glib::GError, @@ -4551,11 +4551,11 @@ extern "C" { pub fn gdk_gl_context_get_type() -> GType; pub fn gdk_gl_context_clear_current(); pub fn gdk_gl_context_get_current() -> *mut GdkGLContext; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gdk_gl_context_get_allowed_apis(self_: *mut GdkGLContext) -> GdkGLAPI; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gdk_gl_context_get_api(self_: *mut GdkGLContext) -> GdkGLAPI; pub fn gdk_gl_context_get_debug_enabled(context: *mut GdkGLContext) -> gboolean; pub fn gdk_gl_context_get_display(context: *mut GdkGLContext) -> *mut GdkDisplay; @@ -4574,8 +4574,8 @@ extern "C" { minor: *mut c_int, ); pub fn gdk_gl_context_is_legacy(context: *mut GdkGLContext) -> gboolean; - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gdk_gl_context_is_shared(self_: *mut GdkGLContext, other: *mut GdkGLContext) -> gboolean; pub fn gdk_gl_context_make_current(context: *mut GdkGLContext); @@ -4583,8 +4583,8 @@ extern "C" { context: *mut GdkGLContext, error: *mut *mut glib::GError, ) -> gboolean; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gdk_gl_context_set_allowed_apis(self_: *mut GdkGLContext, apis: GdkGLAPI); pub fn gdk_gl_context_set_debug_enabled(context: *mut GdkGLContext, enabled: gboolean); pub fn gdk_gl_context_set_forward_compatible(context: *mut GdkGLContext, compatible: gboolean); @@ -4656,8 +4656,8 @@ extern "C" { //========================================================================= pub fn gdk_monitor_get_type() -> GType; pub fn gdk_monitor_get_connector(monitor: *mut GdkMonitor) -> *const c_char; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gdk_monitor_get_description(monitor: *mut GdkMonitor) -> *const c_char; pub fn gdk_monitor_get_display(monitor: *mut GdkMonitor) -> *mut GdkDisplay; pub fn gdk_monitor_get_geometry(monitor: *mut GdkMonitor, geometry: *mut GdkRectangle); @@ -4706,8 +4706,8 @@ extern "C" { delta_y: *mut c_double, ); pub fn gdk_scroll_event_get_direction(event: *mut GdkScrollEvent) -> GdkScrollDirection; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gdk_scroll_event_get_unit(event: *mut GdkScrollEvent) -> GdkScrollUnit; pub fn gdk_scroll_event_is_stop(event: *mut GdkScrollEvent) -> gboolean; @@ -4769,8 +4769,8 @@ extern "C" { pub fn gdk_surface_get_frame_clock(surface: *mut GdkSurface) -> *mut GdkFrameClock; pub fn gdk_surface_get_height(surface: *mut GdkSurface) -> c_int; pub fn gdk_surface_get_mapped(surface: *mut GdkSurface) -> gboolean; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gdk_surface_get_scale(surface: *mut GdkSurface) -> c_double; pub fn gdk_surface_get_scale_factor(surface: *mut GdkSurface) -> c_int; pub fn gdk_surface_get_width(surface: *mut GdkSurface) -> c_int; @@ -4804,8 +4804,8 @@ extern "C" { //========================================================================= pub fn gdk_texture_get_type() -> GType; pub fn gdk_texture_new_for_pixbuf(pixbuf: *mut gdk_pixbuf::GdkPixbuf) -> *mut GdkTexture; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gdk_texture_new_from_bytes( bytes: *mut glib::GBytes, error: *mut *mut glib::GError, @@ -4814,28 +4814,28 @@ extern "C" { file: *mut gio::GFile, error: *mut *mut glib::GError, ) -> *mut GdkTexture; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gdk_texture_new_from_filename( path: *const c_char, error: *mut *mut glib::GError, ) -> *mut GdkTexture; pub fn gdk_texture_new_from_resource(resource_path: *const c_char) -> *mut GdkTexture; pub fn gdk_texture_download(texture: *mut GdkTexture, data: *mut u8, stride: size_t); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gdk_texture_get_format(self_: *mut GdkTexture) -> GdkMemoryFormat; pub fn gdk_texture_get_height(texture: *mut GdkTexture) -> c_int; pub fn gdk_texture_get_width(texture: *mut GdkTexture) -> c_int; pub fn gdk_texture_save_to_png(texture: *mut GdkTexture, filename: *const c_char) -> gboolean; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gdk_texture_save_to_png_bytes(texture: *mut GdkTexture) -> *mut glib::GBytes; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gdk_texture_save_to_tiff(texture: *mut GdkTexture, filename: *const c_char) -> gboolean; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gdk_texture_save_to_tiff_bytes(texture: *mut GdkTexture) -> *mut glib::GBytes; //========================================================================= @@ -4979,8 +4979,8 @@ extern "C" { event: *mut GdkEvent, ) -> gboolean; pub fn gdk_toplevel_supports_edge_constraints(toplevel: *mut GdkToplevel) -> gboolean; - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gdk_toplevel_titlebar_gesture( toplevel: *mut GdkToplevel, gesture: GdkTitlebarGesture, @@ -5053,8 +5053,8 @@ extern "C" { result: *mut gio::GAsyncResult, error: *mut *mut glib::GError, ) -> gboolean; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gdk_drag_surface_size_get_type() -> GType; pub fn gdk_events_get_angle( event1: *mut GdkEvent, diff --git a/gdk4/sys/versions.txt b/gdk4/sys/versions.txt index bc0b4f74d727..c4950229ce37 100644 --- a/gdk4/sys/versions.txt +++ b/gdk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 8a280cee2cbb) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) diff --git a/gir b/gir index 2358cc24efd2..8a280cee2cbb 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit 2358cc24efd2ad35ced6f12bd45a8700e905ae18 +Subproject commit 8a280cee2cbbce655d580cfc51534a649571566f diff --git a/gsk4/Cargo.toml b/gsk4/Cargo.toml index 1ada113b5105..443a08edaf3a 100644 --- a/gsk4/Cargo.toml +++ b/gsk4/Cargo.toml @@ -16,14 +16,13 @@ name = "gsk4" [features] broadway = [] -dox = ["ffi/dox", "gdk/dox", "graphene/dox", "glib/dox", "cairo-rs/dox", "pango/dox"] v4_2 = ["ffi/v4_2", "gdk/v4_2"] v4_4 = ["ffi/v4_4", "gdk/v4_4", "v4_2"] v4_6 = ["ffi/v4_6", "gdk/v4_6", "v4_4"] v4_10 = ["ffi/v4_10", "gdk/v4_10", "v4_6"] [package.metadata.docs.rs] -features = ["dox"] +rustdoc-args = ["--cfg", "docsrs"] [dependencies] bitflags = "1.0" diff --git a/gsk4/src/auto/conic_gradient_node.rs b/gsk4/src/auto/conic_gradient_node.rs index 6f8a4b3e9f09..4f2feac01b27 100644 --- a/gsk4/src/auto/conic_gradient_node.rs +++ b/gsk4/src/auto/conic_gradient_node.rs @@ -43,8 +43,8 @@ impl ConicGradientNode { } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] #[doc(alias = "gsk_conic_gradient_node_get_angle")] #[doc(alias = "get_angle")] pub fn angle(&self) -> f32 { diff --git a/gsk4/src/auto/enums.rs b/gsk4/src/auto/enums.rs index 668dd86e1248..1bd194f1d143 100644 --- a/gsk4/src/auto/enums.rs +++ b/gsk4/src/auto/enums.rs @@ -442,8 +442,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GskMaskMode")] @@ -460,8 +460,8 @@ pub enum MaskMode { __Unknown(i32), } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl fmt::Display for MaskMode { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!( @@ -478,8 +478,8 @@ impl fmt::Display for MaskMode { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(hidden)] impl IntoGlib for MaskMode { type GlibType = ffi::GskMaskMode; @@ -496,8 +496,8 @@ impl IntoGlib for MaskMode { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(hidden)] impl FromGlib for MaskMode { #[inline] @@ -514,8 +514,8 @@ impl FromGlib for MaskMode { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl StaticType for MaskMode { #[inline] fn static_type() -> Type { @@ -523,8 +523,8 @@ impl StaticType for MaskMode { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl glib::HasParamSpec for MaskMode { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -535,14 +535,14 @@ impl glib::HasParamSpec for MaskMode { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl glib::value::ValueType for MaskMode { type Type = Self; } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] unsafe impl<'a> FromValue<'a> for MaskMode { type Checker = glib::value::GenericValueTypeChecker; @@ -553,8 +553,8 @@ unsafe impl<'a> FromValue<'a> for MaskMode { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl ToValue for MaskMode { #[inline] fn to_value(&self) -> glib::Value { @@ -571,8 +571,8 @@ impl ToValue for MaskMode { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl From for glib::Value { #[inline] fn from(v: MaskMode) -> Self { diff --git a/gsk4/src/auto/gl_renderer.rs b/gsk4/src/auto/gl_renderer.rs index d07aca795ca8..4b18a5ca2128 100644 --- a/gsk4/src/auto/gl_renderer.rs +++ b/gsk4/src/auto/gl_renderer.rs @@ -3,8 +3,8 @@ // DO NOT EDIT use crate::Renderer; -#[cfg(any(feature = "v4_2", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] +#[cfg(any(feature = "v4_2", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] use glib::{prelude::*, translate::*}; use std::fmt; @@ -18,8 +18,8 @@ glib::wrapper! { } impl GLRenderer { - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] #[doc(alias = "gsk_gl_renderer_new")] pub fn new() -> GLRenderer { assert_initialized_main_thread!(); @@ -27,8 +27,8 @@ impl GLRenderer { } } -#[cfg(any(feature = "v4_2", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] +#[cfg(any(feature = "v4_2", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] impl Default for GLRenderer { fn default() -> Self { Self::new() diff --git a/gsk4/src/auto/mod.rs b/gsk4/src/auto/mod.rs index b759745055d6..2e8e55023703 100644 --- a/gsk4/src/auto/mod.rs +++ b/gsk4/src/auto/mod.rs @@ -11,11 +11,11 @@ pub use self::blur_node::BlurNode; mod border_node; pub use self::border_node::BorderNode; -#[cfg(any(feature = "broadway", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "broadway")))] +#[cfg(any(feature = "broadway", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "broadway")))] mod broadway_renderer; -#[cfg(any(feature = "broadway", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "broadway")))] +#[cfg(any(feature = "broadway", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "broadway")))] pub use self::broadway_renderer::BroadwayRenderer; mod cairo_node; @@ -60,11 +60,11 @@ pub use self::inset_shadow_node::InsetShadowNode; mod linear_gradient_node; pub use self::linear_gradient_node::LinearGradientNode; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] mod mask_node; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use self::mask_node::MaskNode; mod opacity_node; @@ -103,11 +103,11 @@ pub use self::text_node::TextNode; mod texture_node; pub use self::texture_node::TextureNode; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] mod texture_scale_node; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use self::texture_scale_node::TextureScaleNode; mod transform_node; @@ -123,8 +123,8 @@ mod enums; pub use self::enums::BlendMode; pub use self::enums::Corner; pub use self::enums::GLUniformType; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use self::enums::MaskMode; pub use self::enums::RenderNodeType; pub use self::enums::ScalingFilter; diff --git a/gsk4/src/auto/text_node.rs b/gsk4/src/auto/text_node.rs index acc0b30ad4ca..1514bf9c7fcd 100644 --- a/gsk4/src/auto/text_node.rs +++ b/gsk4/src/auto/text_node.rs @@ -77,8 +77,8 @@ impl TextNode { unsafe { from_glib_none(ffi::gsk_text_node_get_offset(self.to_glib_none().0)) } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] #[doc(alias = "gsk_text_node_has_color_glyphs")] pub fn has_color_glyphs(&self) -> bool { unsafe { from_glib(ffi::gsk_text_node_has_color_glyphs(self.to_glib_none().0)) } diff --git a/gsk4/src/auto/transform.rs b/gsk4/src/auto/transform.rs index 048a3a68db41..2b0656262ab1 100644 --- a/gsk4/src/auto/transform.rs +++ b/gsk4/src/auto/transform.rs @@ -86,8 +86,8 @@ impl Transform { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gsk_transform_to_2d_components")] pub fn to_2d_components(&self) -> (f32, f32, f32, f32, f32, f32, f32) { unsafe { diff --git a/gsk4/src/auto/versions.txt b/gsk4/src/auto/versions.txt index bc0b4f74d727..c4950229ce37 100644 --- a/gsk4/src/auto/versions.txt +++ b/gsk4/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 8a280cee2cbb) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) diff --git a/gsk4/src/lib.rs b/gsk4/src/lib.rs index d64f19e07bd9..9a90411ada63 100644 --- a/gsk4/src/lib.rs +++ b/gsk4/src/lib.rs @@ -1,6 +1,6 @@ // Take a look at the license at the top of the repository in the LICENSE file. -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #![doc = include_str!("../README.md")] pub use cairo; @@ -49,11 +49,11 @@ mod gl_shader; mod gl_shader_node; mod inset_shadow_node; mod linear_gradient_node; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] mod mask_node; -#[cfg(any(feature = "v4_2", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] +#[cfg(any(feature = "v4_2", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] mod ngl_renderer; mod opacity_node; mod outset_shadow_node; @@ -66,15 +66,15 @@ mod rounded_clip_node; mod shadow_node; mod text_node; mod texture_node; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] mod texture_scale_node; mod transform; mod transform_node; pub use color_stop::ColorStop; -#[cfg(any(feature = "v4_2", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] +#[cfg(any(feature = "v4_2", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] #[cfg_attr(feature = "v4_4", deprecated = "Since 4.4")] pub use ngl_renderer::NglRenderer; pub use parse_location::ParseLocation; diff --git a/gsk4/src/render_node.rs b/gsk4/src/render_node.rs index c313e3799d29..05286d0a665e 100644 --- a/gsk4/src/render_node.rs +++ b/gsk4/src/render_node.rs @@ -164,14 +164,14 @@ macro_rules! define_render_node { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl glib::value::ValueType for $rust_type { type Type = Self; } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] unsafe impl<'a> glib::value::FromValue<'a> for $rust_type { type Checker = glib::value::GenericValueTypeOrNoneChecker; @@ -184,8 +184,8 @@ macro_rules! define_render_node { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl glib::value::ToValue for $rust_type { #[inline] fn to_value(&self) -> glib::Value { @@ -206,8 +206,8 @@ macro_rules! define_render_node { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl glib::value::ToValueOptional for $rust_type { #[inline] fn to_value_optional(s: Option<&Self>) -> glib::Value { diff --git a/gsk4/src/transform.rs b/gsk4/src/transform.rs index d3a7bd240e78..aa272d0c5c8e 100644 --- a/gsk4/src/transform.rs +++ b/gsk4/src/transform.rs @@ -86,8 +86,8 @@ impl Transform { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gsk_transform_skew")] #[must_use] pub fn skew(self, skew_x: f32, skew_y: f32) -> Self { diff --git a/gsk4/sys/Cargo.toml b/gsk4/sys/Cargo.toml index 2fe91cd975ed..3bf92d14d96f 100644 --- a/gsk4/sys/Cargo.toml +++ b/gsk4/sys/Cargo.toml @@ -13,7 +13,7 @@ version = "0.7.0" rust-version = "1.64" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gtk4] name = "gtk4" @@ -35,7 +35,6 @@ version = "4.10" name = "gsk4_sys" [features] -dox = ["glib/dox", "gobject/dox", "pango/dox", "cairo/dox", "graphene/dox", "gdk/dox"] v4_2 = [] v4_4 = ["v4_2"] v4_6 = ["v4_4"] diff --git a/gsk4/sys/build.rs b/gsk4/sys/build.rs index 8d181dad8caa..e98844f2d792 100644 --- a/gsk4/sys/build.rs +++ b/gsk4/sys/build.rs @@ -2,13 +2,13 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gsk4/sys/src/lib.rs b/gsk4/sys/src/lib.rs index a1221d351830..48f6675ef49a 100644 --- a/gsk4/sys/src/lib.rs +++ b/gsk4/sys/src/lib.rs @@ -9,7 +9,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ @@ -720,8 +720,8 @@ extern "C" { //========================================================================= // GskMaskMode //========================================================================= - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gsk_mask_mode_get_type() -> GType; //========================================================================= @@ -877,8 +877,8 @@ extern "C" { factor_y: c_float, factor_z: c_float, ) -> *mut GskTransform; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gsk_transform_skew( next: *mut GskTransform, skew_x: c_float, @@ -893,8 +893,8 @@ extern "C" { out_dx: *mut c_float, out_dy: *mut c_float, ); - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gsk_transform_to_2d_components( self_: *mut GskTransform, out_skew_x: *mut c_float, @@ -1053,8 +1053,8 @@ extern "C" { color_stops: *const GskColorStop, n_color_stops: size_t, ) -> *mut GskConicGradientNode; - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn gsk_conic_gradient_node_get_angle(node: *const GskConicGradientNode) -> c_float; pub fn gsk_conic_gradient_node_get_center( node: *const GskConicGradientNode, @@ -1107,8 +1107,8 @@ extern "C" { // GskGLRenderer //========================================================================= pub fn gsk_gl_renderer_get_type() -> GType; - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn gsk_gl_renderer_new() -> *mut GskRenderer; //========================================================================= @@ -1243,24 +1243,24 @@ extern "C" { //========================================================================= // GskMaskNode //========================================================================= - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gsk_mask_node_get_type() -> GType; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gsk_mask_node_new( source: *mut GskRenderNode, mask: *mut GskRenderNode, mask_mode: GskMaskMode, ) -> *mut GskMaskNode; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gsk_mask_node_get_mask(node: *const GskMaskNode) -> *mut GskRenderNode; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gsk_mask_node_get_mask_mode(node: *const GskMaskNode) -> GskMaskMode; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gsk_mask_node_get_source(node: *const GskMaskNode) -> *mut GskRenderNode; //========================================================================= @@ -1461,8 +1461,8 @@ extern "C" { ) -> *const pango::PangoGlyphInfo; pub fn gsk_text_node_get_num_glyphs(node: *const GskTextNode) -> c_uint; pub fn gsk_text_node_get_offset(node: *const GskTextNode) -> *const graphene::graphene_point_t; - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn gsk_text_node_has_color_glyphs(node: *const GskTextNode) -> gboolean; //========================================================================= @@ -1478,21 +1478,21 @@ extern "C" { //========================================================================= // GskTextureScaleNode //========================================================================= - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gsk_texture_scale_node_get_type() -> GType; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gsk_texture_scale_node_new( texture: *mut gdk::GdkTexture, bounds: *const graphene::graphene_rect_t, filter: GskScalingFilter, ) -> *mut GskTextureScaleNode; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gsk_texture_scale_node_get_filter(node: *const GskTextureScaleNode) -> GskScalingFilter; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gsk_texture_scale_node_get_texture( node: *const GskTextureScaleNode, ) -> *mut gdk::GdkTexture; @@ -1511,17 +1511,17 @@ extern "C" { //========================================================================= // Other functions //========================================================================= - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gsk_value_dup_render_node(value: *const gobject::GValue) -> *mut GskRenderNode; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gsk_value_get_render_node(value: *const gobject::GValue) -> *mut GskRenderNode; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gsk_value_set_render_node(value: *mut gobject::GValue, node: *mut GskRenderNode); - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gsk_value_take_render_node(value: *mut gobject::GValue, node: *mut GskRenderNode); } diff --git a/gsk4/sys/versions.txt b/gsk4/sys/versions.txt index bc0b4f74d727..c4950229ce37 100644 --- a/gsk4/sys/versions.txt +++ b/gsk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 8a280cee2cbb) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) diff --git a/gtk4/Cargo.toml b/gtk4/Cargo.toml index bdb86527aa0d..bbf6c8d67d1b 100644 --- a/gtk4/Cargo.toml +++ b/gtk4/Cargo.toml @@ -16,7 +16,6 @@ rust-version = "1.64" name = "gtk4" [features] -dox = ["gdk/dox", "gsk/dox", "ffi/dox", "cairo-rs/dox", "gdk-pixbuf/dox", "gio/dox", "glib/dox", "graphene/dox", "pango/dox"] v4_2 = ["ffi/v4_2", "gdk/v4_2", "gsk/v4_2"] v4_4 = ["ffi/v4_4", "v4_2", "gdk/v4_4", "gsk/v4_4"] v4_6 = ["ffi/v4_6", "v4_4", "gdk/v4_6", "gsk/v4_6", "pango/v1_50"] @@ -35,7 +34,7 @@ gnome_43 = ["v4_8", "cairo-rs/v1_16", "gdk-pixbuf/v2_42", "gio/v2_74"] gnome_42 = ["v4_6", "cairo-rs/v1_16", "gdk-pixbuf/v2_42", "gio/v2_72"] [package.metadata.docs.rs] -features = ["dox"] +rustdoc-args = ["--cfg", "docsrs"] [dependencies] bitflags = "1.0" diff --git a/gtk4/src/auto/about_dialog.rs b/gtk4/src/auto/about_dialog.rs index b1d381e28175..d4f098f7fd65 100644 --- a/gtk4/src/auto/about_dialog.rs +++ b/gtk4/src/auto/about_dialog.rs @@ -925,8 +925,8 @@ impl AboutDialogBuilder { } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn handle_menubar_accel(self, handle_menubar_accel: bool) -> Self { Self { builder: self @@ -985,8 +985,8 @@ impl AboutDialogBuilder { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn titlebar(self, titlebar: &impl IsA) -> Self { Self { builder: self.builder.property("titlebar", titlebar.clone().upcast()), diff --git a/gtk4/src/auto/accessible.rs b/gtk4/src/auto/accessible.rs index 2d0eae60cac5..3f6deb0e617b 100644 --- a/gtk4/src/auto/accessible.rs +++ b/gtk4/src/auto/accessible.rs @@ -2,8 +2,8 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] use crate::{ATContext, AccessiblePlatformState}; use crate::{AccessibleProperty, AccessibleRelation, AccessibleRole, AccessibleState}; use glib::{ @@ -11,8 +11,8 @@ use glib::{ signal::{connect_raw, SignalHandlerId}, translate::*, }; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] use std::mem; use std::{boxed::Box as Box_, fmt, mem::transmute}; @@ -30,8 +30,8 @@ impl Accessible { } pub trait AccessibleExt: 'static { - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_accessible_get_accessible_parent")] #[doc(alias = "get_accessible_parent")] #[must_use] @@ -41,34 +41,34 @@ pub trait AccessibleExt: 'static { #[doc(alias = "get_accessible_role")] fn accessible_role(&self) -> AccessibleRole; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_accessible_get_at_context")] #[doc(alias = "get_at_context")] fn at_context(&self) -> ATContext; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_accessible_get_bounds")] #[doc(alias = "get_bounds")] fn bounds(&self) -> Option<(i32, i32, i32, i32)>; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_accessible_get_first_accessible_child")] #[doc(alias = "get_first_accessible_child")] #[must_use] fn first_accessible_child(&self) -> Option; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_accessible_get_next_accessible_sibling")] #[doc(alias = "get_next_accessible_sibling")] #[must_use] fn next_accessible_sibling(&self) -> Option; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_accessible_get_platform_state")] #[doc(alias = "get_platform_state")] fn platform_state(&self, state: AccessiblePlatformState) -> bool; @@ -82,8 +82,8 @@ pub trait AccessibleExt: 'static { #[doc(alias = "gtk_accessible_reset_state")] fn reset_state(&self, state: AccessibleState); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_accessible_set_accessible_parent")] fn set_accessible_parent( &self, @@ -91,8 +91,8 @@ pub trait AccessibleExt: 'static { next_sibling: Option<&impl IsA>, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_accessible_update_next_accessible_sibling")] fn update_next_accessible_sibling(&self, new_sibling: Option<&impl IsA>); @@ -104,8 +104,8 @@ pub trait AccessibleExt: 'static { } impl> AccessibleExt for O { - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] fn accessible_parent(&self) -> Option { unsafe { from_glib_full(ffi::gtk_accessible_get_accessible_parent( @@ -122,8 +122,8 @@ impl> AccessibleExt for O { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] fn at_context(&self) -> ATContext { unsafe { from_glib_full(ffi::gtk_accessible_get_at_context( @@ -132,8 +132,8 @@ impl> AccessibleExt for O { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] fn bounds(&self) -> Option<(i32, i32, i32, i32)> { unsafe { let mut x = mem::MaybeUninit::uninit(); @@ -160,8 +160,8 @@ impl> AccessibleExt for O { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] fn first_accessible_child(&self) -> Option { unsafe { from_glib_full(ffi::gtk_accessible_get_first_accessible_child( @@ -170,8 +170,8 @@ impl> AccessibleExt for O { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] fn next_accessible_sibling(&self) -> Option { unsafe { from_glib_full(ffi::gtk_accessible_get_next_accessible_sibling( @@ -180,8 +180,8 @@ impl> AccessibleExt for O { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] fn platform_state(&self, state: AccessiblePlatformState) -> bool { unsafe { from_glib(ffi::gtk_accessible_get_platform_state( @@ -215,8 +215,8 @@ impl> AccessibleExt for O { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] fn set_accessible_parent( &self, parent: Option<&impl IsA>, @@ -231,8 +231,8 @@ impl> AccessibleExt for O { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] fn update_next_accessible_sibling(&self, new_sibling: Option<&impl IsA>) { unsafe { ffi::gtk_accessible_update_next_accessible_sibling( diff --git a/gtk4/src/auto/alert_dialog.rs b/gtk4/src/auto/alert_dialog.rs index b3a2e0c2b930..ac418a8b9ea0 100644 --- a/gtk4/src/auto/alert_dialog.rs +++ b/gtk4/src/auto/alert_dialog.rs @@ -190,8 +190,8 @@ impl AlertDialog { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "buttons")] pub fn connect_buttons_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_buttons_trampoline( @@ -215,8 +215,8 @@ impl AlertDialog { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "cancel-button")] pub fn connect_cancel_button_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_cancel_button_trampoline( @@ -240,8 +240,8 @@ impl AlertDialog { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "default-button")] pub fn connect_default_button_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_default_button_trampoline( @@ -265,8 +265,8 @@ impl AlertDialog { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "detail")] pub fn connect_detail_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_detail_trampoline( @@ -290,8 +290,8 @@ impl AlertDialog { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "message")] pub fn connect_message_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_message_trampoline( @@ -315,8 +315,8 @@ impl AlertDialog { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "modal")] pub fn connect_modal_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_modal_trampoline( @@ -341,8 +341,8 @@ impl AlertDialog { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl Default for AlertDialog { fn default() -> Self { glib::object::Object::new::() @@ -365,48 +365,48 @@ impl AlertDialogBuilder { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn buttons(self, buttons: impl Into) -> Self { Self { builder: self.builder.property("buttons", buttons.into()), } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn cancel_button(self, cancel_button: i32) -> Self { Self { builder: self.builder.property("cancel-button", cancel_button), } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn default_button(self, default_button: i32) -> Self { Self { builder: self.builder.property("default-button", default_button), } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn detail(self, detail: impl Into) -> Self { Self { builder: self.builder.property("detail", detail.into()), } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn message(self, message: impl Into) -> Self { Self { builder: self.builder.property("message", message.into()), } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn modal(self, modal: bool) -> Self { Self { builder: self.builder.property("modal", modal), diff --git a/gtk4/src/auto/app_chooser_button.rs b/gtk4/src/auto/app_chooser_button.rs index da0d21eb9278..601049e9c134 100644 --- a/gtk4/src/auto/app_chooser_button.rs +++ b/gtk4/src/auto/app_chooser_button.rs @@ -169,8 +169,8 @@ impl AppChooserButton { } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "activate")] pub fn connect_activate(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn activate_trampoline( @@ -193,8 +193,8 @@ impl AppChooserButton { } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn emit_activate(&self) { self.emit_by_name::<()>("activate", &[]); } diff --git a/gtk4/src/auto/application_window.rs b/gtk4/src/auto/application_window.rs index 7d127a337f0d..4a36b391b69b 100644 --- a/gtk4/src/auto/application_window.rs +++ b/gtk4/src/auto/application_window.rs @@ -153,8 +153,8 @@ impl ApplicationWindowBuilder { } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn handle_menubar_accel(self, handle_menubar_accel: bool) -> Self { Self { builder: self @@ -213,8 +213,8 @@ impl ApplicationWindowBuilder { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn titlebar(self, titlebar: &impl IsA) -> Self { Self { builder: self.builder.property("titlebar", titlebar.clone().upcast()), diff --git a/gtk4/src/auto/assistant.rs b/gtk4/src/auto/assistant.rs index 1369f0f9189a..b8d3bb988290 100644 --- a/gtk4/src/auto/assistant.rs +++ b/gtk4/src/auto/assistant.rs @@ -565,8 +565,8 @@ impl AssistantBuilder { } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn handle_menubar_accel(self, handle_menubar_accel: bool) -> Self { Self { builder: self @@ -625,8 +625,8 @@ impl AssistantBuilder { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn titlebar(self, titlebar: &impl IsA) -> Self { Self { builder: self.builder.property("titlebar", titlebar.clone().upcast()), diff --git a/gtk4/src/auto/center_box.rs b/gtk4/src/auto/center_box.rs index ac6ff7046494..2c5ac2d6a672 100644 --- a/gtk4/src/auto/center_box.rs +++ b/gtk4/src/auto/center_box.rs @@ -128,8 +128,8 @@ impl CenterBox { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "center-widget")] pub fn connect_center_widget_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_center_widget_trampoline( @@ -153,8 +153,8 @@ impl CenterBox { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "end-widget")] pub fn connect_end_widget_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_end_widget_trampoline( @@ -178,8 +178,8 @@ impl CenterBox { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "start-widget")] pub fn connect_start_widget_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_start_widget_trampoline( @@ -234,8 +234,8 @@ impl CenterBoxBuilder { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn center_widget(self, center_widget: &impl IsA) -> Self { Self { builder: self @@ -244,8 +244,8 @@ impl CenterBoxBuilder { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn end_widget(self, end_widget: &impl IsA) -> Self { Self { builder: self @@ -254,8 +254,8 @@ impl CenterBoxBuilder { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn start_widget(self, start_widget: &impl IsA) -> Self { Self { builder: self diff --git a/gtk4/src/auto/check_button.rs b/gtk4/src/auto/check_button.rs index c6c485e9ac6e..a503b2a87d44 100644 --- a/gtk4/src/auto/check_button.rs +++ b/gtk4/src/auto/check_button.rs @@ -90,8 +90,8 @@ impl CheckButtonBuilder { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn child(self, child: &impl IsA) -> Self { Self { builder: self.builder.property("child", child.clone().upcast()), @@ -333,8 +333,8 @@ pub trait CheckButtonExt: 'static { #[doc(alias = "get_active")] fn is_active(&self) -> bool; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "gtk_check_button_get_child")] #[doc(alias = "get_child")] fn child(&self) -> Option; @@ -354,8 +354,8 @@ pub trait CheckButtonExt: 'static { #[doc(alias = "gtk_check_button_set_active")] fn set_active(&self, setting: bool); - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "gtk_check_button_set_child")] fn set_child(&self, child: Option<&impl IsA>); @@ -371,13 +371,13 @@ pub trait CheckButtonExt: 'static { #[doc(alias = "gtk_check_button_set_use_underline")] fn set_use_underline(&self, setting: bool); - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] #[doc(alias = "activate")] fn connect_activate(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] fn emit_activate(&self); #[doc(alias = "toggled")] @@ -386,8 +386,8 @@ pub trait CheckButtonExt: 'static { #[doc(alias = "active")] fn connect_active_notify(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "child")] fn connect_child_notify(&self, f: F) -> SignalHandlerId; @@ -413,8 +413,8 @@ impl> CheckButtonExt for O { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] fn child(&self) -> Option { unsafe { from_glib_none(ffi::gtk_check_button_get_child( @@ -453,8 +453,8 @@ impl> CheckButtonExt for O { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] fn set_child(&self, child: Option<&impl IsA>) { unsafe { ffi::gtk_check_button_set_child( @@ -497,8 +497,8 @@ impl> CheckButtonExt for O { } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] fn connect_activate(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn activate_trampoline, F: Fn(&P) + 'static>( this: *mut ffi::GtkCheckButton, @@ -520,8 +520,8 @@ impl> CheckButtonExt for O { } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] fn emit_activate(&self) { self.emit_by_name::<()>("activate", &[]); } @@ -569,8 +569,8 @@ impl> CheckButtonExt for O { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] fn connect_child_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_child_trampoline, F: Fn(&P) + 'static>( this: *mut ffi::GtkCheckButton, diff --git a/gtk4/src/auto/color_button.rs b/gtk4/src/auto/color_button.rs index dae28b3b3122..2e550e40d667 100644 --- a/gtk4/src/auto/color_button.rs +++ b/gtk4/src/auto/color_button.rs @@ -94,8 +94,8 @@ impl ColorButton { glib::ObjectExt::set_property(self, "show-editor", show_editor) } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "activate")] pub fn connect_activate(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn activate_trampoline( @@ -118,8 +118,8 @@ impl ColorButton { } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn emit_activate(&self) { self.emit_by_name::<()>("activate", &[]); } diff --git a/gtk4/src/auto/color_chooser_dialog.rs b/gtk4/src/auto/color_chooser_dialog.rs index 62244ab06f87..a2d9bbd33c91 100644 --- a/gtk4/src/auto/color_chooser_dialog.rs +++ b/gtk4/src/auto/color_chooser_dialog.rs @@ -195,8 +195,8 @@ impl ColorChooserDialogBuilder { } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn handle_menubar_accel(self, handle_menubar_accel: bool) -> Self { Self { builder: self @@ -255,8 +255,8 @@ impl ColorChooserDialogBuilder { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn titlebar(self, titlebar: &impl IsA) -> Self { Self { builder: self.builder.property("titlebar", titlebar.clone().upcast()), diff --git a/gtk4/src/auto/color_dialog.rs b/gtk4/src/auto/color_dialog.rs index 0c0c53df81a5..062fa24c1846 100644 --- a/gtk4/src/auto/color_dialog.rs +++ b/gtk4/src/auto/color_dialog.rs @@ -145,8 +145,8 @@ impl ColorDialog { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "modal")] pub fn connect_modal_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_modal_trampoline( @@ -170,8 +170,8 @@ impl ColorDialog { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "title")] pub fn connect_title_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_title_trampoline( @@ -195,8 +195,8 @@ impl ColorDialog { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "with-alpha")] pub fn connect_with_alpha_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_with_alpha_trampoline( @@ -221,8 +221,8 @@ impl ColorDialog { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl Default for ColorDialog { fn default() -> Self { Self::new() @@ -245,24 +245,24 @@ impl ColorDialogBuilder { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn modal(self, modal: bool) -> Self { Self { builder: self.builder.property("modal", modal), } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn title(self, title: impl Into) -> Self { Self { builder: self.builder.property("title", title.into()), } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn with_alpha(self, with_alpha: bool) -> Self { Self { builder: self.builder.property("with-alpha", with_alpha), diff --git a/gtk4/src/auto/color_dialog_button.rs b/gtk4/src/auto/color_dialog_button.rs index f2632e4d7166..1822d39a310b 100644 --- a/gtk4/src/auto/color_dialog_button.rs +++ b/gtk4/src/auto/color_dialog_button.rs @@ -70,8 +70,8 @@ impl ColorDialogButton { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "dialog")] pub fn connect_dialog_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_dialog_trampoline( @@ -95,8 +95,8 @@ impl ColorDialogButton { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "rgba")] pub fn connect_rgba_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_rgba_trampoline( @@ -121,8 +121,8 @@ impl ColorDialogButton { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl Default for ColorDialogButton { fn default() -> Self { glib::object::Object::new::() @@ -145,16 +145,16 @@ impl ColorDialogButtonBuilder { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn dialog(self, dialog: &ColorDialog) -> Self { Self { builder: self.builder.property("dialog", dialog.clone()), } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn rgba(self, rgba: &gdk::RGBA) -> Self { Self { builder: self.builder.property("rgba", rgba), diff --git a/gtk4/src/auto/column_view.rs b/gtk4/src/auto/column_view.rs index 64b58e28b847..2c491246c6e2 100644 --- a/gtk4/src/auto/column_view.rs +++ b/gtk4/src/auto/column_view.rs @@ -7,8 +7,8 @@ use crate::{ LayoutManager, Overflow, Scrollable, ScrollablePolicy, SelectionModel, SortType, Sorter, Widget, }; -#[cfg(any(feature = "v4_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] +#[cfg(any(feature = "v4_12", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] use crate::{ListItemFactory, ListTabBehavior}; use glib::{ prelude::*, @@ -81,8 +81,8 @@ impl ColumnView { unsafe { from_glib(ffi::gtk_column_view_get_reorderable(self.to_glib_none().0)) } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "gtk_column_view_get_row_factory")] #[doc(alias = "get_row_factory")] pub fn row_factory(&self) -> Option { @@ -125,8 +125,8 @@ impl ColumnView { unsafe { from_glib_none(ffi::gtk_column_view_get_sorter(self.to_glib_none().0)) } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "gtk_column_view_get_tab_behavior")] #[doc(alias = "get_tab_behavior")] pub fn tab_behavior(&self) -> ListTabBehavior { @@ -178,8 +178,8 @@ impl ColumnView { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "gtk_column_view_set_row_factory")] pub fn set_row_factory(&self, factory: Option<&impl IsA>) { unsafe { @@ -220,8 +220,8 @@ impl ColumnView { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "gtk_column_view_set_tab_behavior")] pub fn set_tab_behavior(&self, tab_behavior: ListTabBehavior) { unsafe { @@ -358,8 +358,8 @@ impl ColumnView { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "row-factory")] pub fn connect_row_factory_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_row_factory_trampoline( @@ -488,8 +488,8 @@ impl ColumnView { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "tab-behavior")] pub fn connect_tab_behavior_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_tab_behavior_trampoline( @@ -556,8 +556,8 @@ impl ColumnViewBuilder { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn row_factory(self, row_factory: &impl IsA) -> Self { Self { builder: self @@ -590,8 +590,8 @@ impl ColumnViewBuilder { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn tab_behavior(self, tab_behavior: ListTabBehavior) -> Self { Self { builder: self.builder.property("tab-behavior", tab_behavior), diff --git a/gtk4/src/auto/column_view_column.rs b/gtk4/src/auto/column_view_column.rs index f72e54691d36..3c8c7ac8bf51 100644 --- a/gtk4/src/auto/column_view_column.rs +++ b/gtk4/src/auto/column_view_column.rs @@ -88,8 +88,8 @@ impl ColumnViewColumn { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_column_view_column_get_id")] #[doc(alias = "get_id")] pub fn id(&self) -> Option { @@ -166,8 +166,8 @@ impl ColumnViewColumn { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_column_view_column_set_id")] pub fn set_id(&self, id: Option<&str>) { unsafe { @@ -321,8 +321,8 @@ impl ColumnViewColumn { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "id")] pub fn connect_id_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_id_trampoline( @@ -487,8 +487,8 @@ impl ColumnViewColumnBuilder { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn id(self, id: impl Into) -> Self { Self { builder: self.builder.property("id", id.into()), diff --git a/gtk4/src/auto/column_view_row.rs b/gtk4/src/auto/column_view_row.rs index 95ea22918659..fd9386edf60d 100644 --- a/gtk4/src/auto/column_view_row.rs +++ b/gtk4/src/auto/column_view_row.rs @@ -99,8 +99,8 @@ impl ColumnViewRow { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "activatable")] pub fn connect_activatable_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_activatable_trampoline( @@ -124,8 +124,8 @@ impl ColumnViewRow { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "focusable")] pub fn connect_focusable_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_focusable_trampoline( @@ -149,8 +149,8 @@ impl ColumnViewRow { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "item")] pub fn connect_item_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_item_trampoline( @@ -174,8 +174,8 @@ impl ColumnViewRow { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "position")] pub fn connect_position_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_position_trampoline( @@ -199,8 +199,8 @@ impl ColumnViewRow { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "selectable")] pub fn connect_selectable_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_selectable_trampoline( @@ -224,8 +224,8 @@ impl ColumnViewRow { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "selected")] pub fn connect_selected_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_selected_trampoline( @@ -266,24 +266,24 @@ impl ColumnViewRowBuilder { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn activatable(self, activatable: bool) -> Self { Self { builder: self.builder.property("activatable", activatable), } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn focusable(self, focusable: bool) -> Self { Self { builder: self.builder.property("focusable", focusable), } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn selectable(self, selectable: bool) -> Self { Self { builder: self.builder.property("selectable", selectable), diff --git a/gtk4/src/auto/column_view_sorter.rs b/gtk4/src/auto/column_view_sorter.rs index a9a11b4a95b3..2680d4c0f35a 100644 --- a/gtk4/src/auto/column_view_sorter.rs +++ b/gtk4/src/auto/column_view_sorter.rs @@ -60,8 +60,8 @@ impl ColumnViewSorter { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "primary-sort-column")] pub fn connect_primary_sort_column_notify( &self, @@ -90,8 +90,8 @@ impl ColumnViewSorter { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "primary-sort-order")] pub fn connect_primary_sort_order_notify( &self, diff --git a/gtk4/src/auto/combo_box.rs b/gtk4/src/auto/combo_box.rs index e6791911088c..5becb81cc2aa 100644 --- a/gtk4/src/auto/combo_box.rs +++ b/gtk4/src/auto/combo_box.rs @@ -490,13 +490,13 @@ pub trait ComboBoxExt: 'static { #[doc(alias = "popup-shown")] fn is_popup_shown(&self) -> bool; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "activate")] fn connect_activate(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn emit_activate(&self); #[doc(alias = "changed")] @@ -768,8 +768,8 @@ impl> ComboBoxExt for O { glib::ObjectExt::property(self.as_ref(), "popup-shown") } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn connect_activate(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn activate_trampoline, F: Fn(&P) + 'static>( this: *mut ffi::GtkComboBox, @@ -791,8 +791,8 @@ impl> ComboBoxExt for O { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn emit_activate(&self) { self.emit_by_name::<()>("activate", &[]); } diff --git a/gtk4/src/auto/dialog.rs b/gtk4/src/auto/dialog.rs index 96a1867287bb..61378ff56ef3 100644 --- a/gtk4/src/auto/dialog.rs +++ b/gtk4/src/auto/dialog.rs @@ -152,8 +152,8 @@ impl DialogBuilder { } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn handle_menubar_accel(self, handle_menubar_accel: bool) -> Self { Self { builder: self @@ -212,8 +212,8 @@ impl DialogBuilder { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn titlebar(self, titlebar: &impl IsA) -> Self { Self { builder: self.builder.property("titlebar", titlebar.clone().upcast()), diff --git a/gtk4/src/auto/drop_down.rs b/gtk4/src/auto/drop_down.rs index 826bcb0ddc4a..8d17ed49f958 100644 --- a/gtk4/src/auto/drop_down.rs +++ b/gtk4/src/auto/drop_down.rs @@ -102,8 +102,8 @@ impl DropDown { unsafe { from_glib_none(ffi::gtk_drop_down_get_selected_item(self.to_glib_none().0)) } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gtk_drop_down_get_show_arrow")] #[doc(alias = "get_show_arrow")] pub fn shows_arrow(&self) -> bool { @@ -164,8 +164,8 @@ impl DropDown { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gtk_drop_down_set_show_arrow")] pub fn set_show_arrow(&self, show_arrow: bool) { unsafe { @@ -173,8 +173,8 @@ impl DropDown { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "activate")] pub fn connect_activate(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn activate_trampoline( @@ -197,8 +197,8 @@ impl DropDown { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn emit_activate(&self) { self.emit_by_name::<()>("activate", &[]); } @@ -364,8 +364,8 @@ impl DropDown { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "show-arrow")] pub fn connect_show_arrow_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_show_arrow_trampoline( @@ -452,8 +452,8 @@ impl DropDownBuilder { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn show_arrow(self, show_arrow: bool) -> Self { Self { builder: self.builder.property("show-arrow", show_arrow), diff --git a/gtk4/src/auto/drop_target.rs b/gtk4/src/auto/drop_target.rs index ec7ddaa55bd6..ec2f40f9f1e6 100644 --- a/gtk4/src/auto/drop_target.rs +++ b/gtk4/src/auto/drop_target.rs @@ -46,8 +46,8 @@ impl DropTarget { unsafe { from_glib(ffi::gtk_drop_target_get_actions(self.to_glib_none().0)) } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "gtk_drop_target_get_current_drop")] #[doc(alias = "get_current_drop")] pub fn current_drop(&self) -> Option { @@ -230,8 +230,8 @@ impl DropTarget { } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "current-drop")] pub fn connect_current_drop_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_current_drop_trampoline( diff --git a/gtk4/src/auto/editable.rs b/gtk4/src/auto/editable.rs index 169a6b11c02f..4642ced16ea1 100644 --- a/gtk4/src/auto/editable.rs +++ b/gtk4/src/auto/editable.rs @@ -2,8 +2,8 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] use crate::AccessiblePlatformState; use crate::{Accessible, Buildable, ConstraintTarget, Widget}; use glib::{ @@ -27,8 +27,8 @@ impl Editable { } pub trait EditableExt: 'static { - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_editable_delegate_get_accessible_platform_state")] fn delegate_get_accessible_platform_state(&self, state: AccessiblePlatformState) -> bool; @@ -154,8 +154,8 @@ pub trait EditableExt: 'static { } impl> EditableExt for O { - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] fn delegate_get_accessible_platform_state(&self, state: AccessiblePlatformState) -> bool { unsafe { from_glib(ffi::gtk_editable_delegate_get_accessible_platform_state( diff --git a/gtk4/src/auto/editable_label.rs b/gtk4/src/auto/editable_label.rs index 2506b42fc72b..3a7b778fab45 100644 --- a/gtk4/src/auto/editable_label.rs +++ b/gtk4/src/auto/editable_label.rs @@ -55,8 +55,8 @@ impl EditableLabel { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn set_editing(&self, editing: bool) { glib::ObjectExt::set_property(self, "editing", editing) } @@ -84,8 +84,8 @@ impl EditableLabelBuilder { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn editing(self, editing: bool) -> Self { Self { builder: self.builder.property("editing", editing), diff --git a/gtk4/src/auto/enums.rs b/gtk4/src/auto/enums.rs index 3cb07a0afbc4..2312130ef7ac 100644 --- a/gtk4/src/auto/enums.rs +++ b/gtk4/src/auto/enums.rs @@ -245,8 +245,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GtkAccessiblePlatformState")] @@ -261,8 +261,8 @@ pub enum AccessiblePlatformState { __Unknown(i32), } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl fmt::Display for AccessiblePlatformState { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!( @@ -278,8 +278,8 @@ impl fmt::Display for AccessiblePlatformState { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(hidden)] impl IntoGlib for AccessiblePlatformState { type GlibType = ffi::GtkAccessiblePlatformState; @@ -295,8 +295,8 @@ impl IntoGlib for AccessiblePlatformState { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(hidden)] impl FromGlib for AccessiblePlatformState { #[inline] @@ -312,8 +312,8 @@ impl FromGlib for AccessiblePlatformState { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl StaticType for AccessiblePlatformState { #[inline] fn static_type() -> Type { @@ -321,8 +321,8 @@ impl StaticType for AccessiblePlatformState { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl glib::HasParamSpec for AccessiblePlatformState { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -333,14 +333,14 @@ impl glib::HasParamSpec for AccessiblePlatformState { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl glib::value::ValueType for AccessiblePlatformState { type Type = Self; } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] unsafe impl<'a> FromValue<'a> for AccessiblePlatformState { type Checker = glib::value::GenericValueTypeChecker; @@ -351,8 +351,8 @@ unsafe impl<'a> FromValue<'a> for AccessiblePlatformState { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl ToValue for AccessiblePlatformState { #[inline] fn to_value(&self) -> glib::Value { @@ -369,8 +369,8 @@ impl ToValue for AccessiblePlatformState { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl From for glib::Value { #[inline] fn from(v: AccessiblePlatformState) -> Self { @@ -938,8 +938,8 @@ pub enum AccessibleRole { Widget, #[doc(alias = "GTK_ACCESSIBLE_ROLE_WINDOW")] Window, - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "GTK_ACCESSIBLE_ROLE_TOGGLE_BUTTON")] ToggleButton, #[doc(hidden)] @@ -1030,7 +1030,7 @@ impl fmt::Display for AccessibleRole { Self::TreeItem => "TreeItem", Self::Widget => "Widget", Self::Window => "Window", - #[cfg(any(feature = "v4_10", feature = "dox"))] + #[cfg(any(feature = "v4_10", docsrs))] Self::ToggleButton => "ToggleButton", _ => "Unknown", } @@ -1122,7 +1122,7 @@ impl IntoGlib for AccessibleRole { Self::TreeItem => ffi::GTK_ACCESSIBLE_ROLE_TREE_ITEM, Self::Widget => ffi::GTK_ACCESSIBLE_ROLE_WIDGET, Self::Window => ffi::GTK_ACCESSIBLE_ROLE_WINDOW, - #[cfg(any(feature = "v4_10", feature = "dox"))] + #[cfg(any(feature = "v4_10", docsrs))] Self::ToggleButton => ffi::GTK_ACCESSIBLE_ROLE_TOGGLE_BUTTON, Self::__Unknown(value) => value, } @@ -1213,7 +1213,7 @@ impl FromGlib for AccessibleRole { ffi::GTK_ACCESSIBLE_ROLE_TREE_ITEM => Self::TreeItem, ffi::GTK_ACCESSIBLE_ROLE_WIDGET => Self::Widget, ffi::GTK_ACCESSIBLE_ROLE_WINDOW => Self::Window, - #[cfg(any(feature = "v4_10", feature = "dox"))] + #[cfg(any(feature = "v4_10", docsrs))] ffi::GTK_ACCESSIBLE_ROLE_TOGGLE_BUTTON => Self::ToggleButton, value => Self::__Unknown(value), } @@ -1414,8 +1414,8 @@ pub enum AccessibleState { Pressed, #[doc(alias = "GTK_ACCESSIBLE_STATE_SELECTED")] Selected, - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "GTK_ACCESSIBLE_STATE_VISITED")] Visited, #[doc(hidden)] @@ -1446,7 +1446,7 @@ impl fmt::Display for AccessibleState { Self::Invalid => "Invalid", Self::Pressed => "Pressed", Self::Selected => "Selected", - #[cfg(any(feature = "v4_12", feature = "dox"))] + #[cfg(any(feature = "v4_12", docsrs))] Self::Visited => "Visited", _ => "Unknown", } @@ -1469,7 +1469,7 @@ impl IntoGlib for AccessibleState { Self::Invalid => ffi::GTK_ACCESSIBLE_STATE_INVALID, Self::Pressed => ffi::GTK_ACCESSIBLE_STATE_PRESSED, Self::Selected => ffi::GTK_ACCESSIBLE_STATE_SELECTED, - #[cfg(any(feature = "v4_12", feature = "dox"))] + #[cfg(any(feature = "v4_12", docsrs))] Self::Visited => ffi::GTK_ACCESSIBLE_STATE_VISITED, Self::__Unknown(value) => value, } @@ -1491,7 +1491,7 @@ impl FromGlib for AccessibleState { ffi::GTK_ACCESSIBLE_STATE_INVALID => Self::Invalid, ffi::GTK_ACCESSIBLE_STATE_PRESSED => Self::Pressed, ffi::GTK_ACCESSIBLE_STATE_SELECTED => Self::Selected, - #[cfg(any(feature = "v4_12", feature = "dox"))] + #[cfg(any(feature = "v4_12", docsrs))] ffi::GTK_ACCESSIBLE_STATE_VISITED => Self::Visited, value => Self::__Unknown(value), } @@ -2854,8 +2854,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GtkCollation")] @@ -2870,8 +2870,8 @@ pub enum Collation { __Unknown(i32), } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl fmt::Display for Collation { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!( @@ -2887,8 +2887,8 @@ impl fmt::Display for Collation { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(hidden)] impl IntoGlib for Collation { type GlibType = ffi::GtkCollation; @@ -2904,8 +2904,8 @@ impl IntoGlib for Collation { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(hidden)] impl FromGlib for Collation { #[inline] @@ -2921,8 +2921,8 @@ impl FromGlib for Collation { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl StaticType for Collation { #[inline] fn static_type() -> Type { @@ -2930,8 +2930,8 @@ impl StaticType for Collation { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl glib::HasParamSpec for Collation { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -2942,14 +2942,14 @@ impl glib::HasParamSpec for Collation { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl glib::value::ValueType for Collation { type Type = Self; } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] unsafe impl<'a> FromValue<'a> for Collation { type Checker = glib::value::GenericValueTypeChecker; @@ -2960,8 +2960,8 @@ unsafe impl<'a> FromValue<'a> for Collation { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl ToValue for Collation { #[inline] fn to_value(&self) -> glib::Value { @@ -2978,8 +2978,8 @@ impl ToValue for Collation { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl From for glib::Value { #[inline] fn from(v: Collation) -> Self { @@ -3532,8 +3532,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GtkContentFit")] @@ -3550,8 +3550,8 @@ pub enum ContentFit { __Unknown(i32), } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] impl fmt::Display for ContentFit { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!( @@ -3568,8 +3568,8 @@ impl fmt::Display for ContentFit { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(hidden)] impl IntoGlib for ContentFit { type GlibType = ffi::GtkContentFit; @@ -3586,8 +3586,8 @@ impl IntoGlib for ContentFit { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(hidden)] impl FromGlib for ContentFit { #[inline] @@ -3604,8 +3604,8 @@ impl FromGlib for ContentFit { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] impl StaticType for ContentFit { #[inline] fn static_type() -> Type { @@ -3613,8 +3613,8 @@ impl StaticType for ContentFit { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] impl glib::HasParamSpec for ContentFit { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -3625,14 +3625,14 @@ impl glib::HasParamSpec for ContentFit { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] impl glib::value::ValueType for ContentFit { type Type = Self; } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] unsafe impl<'a> FromValue<'a> for ContentFit { type Checker = glib::value::GenericValueTypeChecker; @@ -3643,8 +3643,8 @@ unsafe impl<'a> FromValue<'a> for ContentFit { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] impl ToValue for ContentFit { #[inline] fn to_value(&self) -> glib::Value { @@ -3661,8 +3661,8 @@ impl ToValue for ContentFit { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] impl From for glib::Value { #[inline] fn from(v: ContentFit) -> Self { @@ -4081,8 +4081,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GtkDialogError")] @@ -4097,8 +4097,8 @@ pub enum DialogError { __Unknown(i32), } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl fmt::Display for DialogError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!( @@ -4114,8 +4114,8 @@ impl fmt::Display for DialogError { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(hidden)] impl IntoGlib for DialogError { type GlibType = ffi::GtkDialogError; @@ -4131,8 +4131,8 @@ impl IntoGlib for DialogError { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(hidden)] impl FromGlib for DialogError { #[inline] @@ -4148,8 +4148,8 @@ impl FromGlib for DialogError { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl ErrorDomain for DialogError { #[inline] fn domain() -> Quark { @@ -4174,8 +4174,8 @@ impl ErrorDomain for DialogError { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl StaticType for DialogError { #[inline] fn static_type() -> Type { @@ -4183,8 +4183,8 @@ impl StaticType for DialogError { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl glib::HasParamSpec for DialogError { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -4195,14 +4195,14 @@ impl glib::HasParamSpec for DialogError { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl glib::value::ValueType for DialogError { type Type = Self; } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] unsafe impl<'a> FromValue<'a> for DialogError { type Checker = glib::value::GenericValueTypeChecker; @@ -4213,8 +4213,8 @@ unsafe impl<'a> FromValue<'a> for DialogError { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl ToValue for DialogError { #[inline] fn to_value(&self) -> glib::Value { @@ -4231,8 +4231,8 @@ impl ToValue for DialogError { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl From for glib::Value { #[inline] fn from(v: DialogError) -> Self { @@ -5221,8 +5221,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GtkFontLevel")] @@ -5239,8 +5239,8 @@ pub enum FontLevel { __Unknown(i32), } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl fmt::Display for FontLevel { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!( @@ -5257,8 +5257,8 @@ impl fmt::Display for FontLevel { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(hidden)] impl IntoGlib for FontLevel { type GlibType = ffi::GtkFontLevel; @@ -5275,8 +5275,8 @@ impl IntoGlib for FontLevel { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(hidden)] impl FromGlib for FontLevel { #[inline] @@ -5293,8 +5293,8 @@ impl FromGlib for FontLevel { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl StaticType for FontLevel { #[inline] fn static_type() -> Type { @@ -5302,8 +5302,8 @@ impl StaticType for FontLevel { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl glib::HasParamSpec for FontLevel { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -5314,14 +5314,14 @@ impl glib::HasParamSpec for FontLevel { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl glib::value::ValueType for FontLevel { type Type = Self; } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] unsafe impl<'a> FromValue<'a> for FontLevel { type Checker = glib::value::GenericValueTypeChecker; @@ -5332,8 +5332,8 @@ unsafe impl<'a> FromValue<'a> for FontLevel { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl ToValue for FontLevel { #[inline] fn to_value(&self) -> glib::Value { @@ -5350,8 +5350,8 @@ impl ToValue for FontLevel { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl From for glib::Value { #[inline] fn from(v: FontLevel) -> Self { @@ -6009,8 +6009,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GtkInscriptionOverflow")] @@ -6027,8 +6027,8 @@ pub enum InscriptionOverflow { __Unknown(i32), } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] impl fmt::Display for InscriptionOverflow { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!( @@ -6045,8 +6045,8 @@ impl fmt::Display for InscriptionOverflow { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(hidden)] impl IntoGlib for InscriptionOverflow { type GlibType = ffi::GtkInscriptionOverflow; @@ -6063,8 +6063,8 @@ impl IntoGlib for InscriptionOverflow { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(hidden)] impl FromGlib for InscriptionOverflow { #[inline] @@ -6081,8 +6081,8 @@ impl FromGlib for InscriptionOverflow { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] impl StaticType for InscriptionOverflow { #[inline] fn static_type() -> Type { @@ -6090,8 +6090,8 @@ impl StaticType for InscriptionOverflow { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] impl glib::HasParamSpec for InscriptionOverflow { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -6102,14 +6102,14 @@ impl glib::HasParamSpec for InscriptionOverflow { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] impl glib::value::ValueType for InscriptionOverflow { type Type = Self; } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] unsafe impl<'a> FromValue<'a> for InscriptionOverflow { type Checker = glib::value::GenericValueTypeChecker; @@ -6120,8 +6120,8 @@ unsafe impl<'a> FromValue<'a> for InscriptionOverflow { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] impl ToValue for InscriptionOverflow { #[inline] fn to_value(&self) -> glib::Value { @@ -6138,8 +6138,8 @@ impl ToValue for InscriptionOverflow { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] impl From for glib::Value { #[inline] fn from(v: InscriptionOverflow) -> Self { @@ -6563,8 +6563,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v4_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] +#[cfg(any(feature = "v4_12", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GtkListTabBehavior")] @@ -6579,8 +6579,8 @@ pub enum ListTabBehavior { __Unknown(i32), } -#[cfg(any(feature = "v4_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] +#[cfg(any(feature = "v4_12", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] impl fmt::Display for ListTabBehavior { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!( @@ -6596,8 +6596,8 @@ impl fmt::Display for ListTabBehavior { } } -#[cfg(any(feature = "v4_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] +#[cfg(any(feature = "v4_12", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(hidden)] impl IntoGlib for ListTabBehavior { type GlibType = ffi::GtkListTabBehavior; @@ -6613,8 +6613,8 @@ impl IntoGlib for ListTabBehavior { } } -#[cfg(any(feature = "v4_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] +#[cfg(any(feature = "v4_12", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(hidden)] impl FromGlib for ListTabBehavior { #[inline] @@ -6630,8 +6630,8 @@ impl FromGlib for ListTabBehavior { } } -#[cfg(any(feature = "v4_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] +#[cfg(any(feature = "v4_12", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] impl StaticType for ListTabBehavior { #[inline] fn static_type() -> Type { @@ -6639,8 +6639,8 @@ impl StaticType for ListTabBehavior { } } -#[cfg(any(feature = "v4_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] +#[cfg(any(feature = "v4_12", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] impl glib::HasParamSpec for ListTabBehavior { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -6651,14 +6651,14 @@ impl glib::HasParamSpec for ListTabBehavior { } } -#[cfg(any(feature = "v4_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] +#[cfg(any(feature = "v4_12", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] impl glib::value::ValueType for ListTabBehavior { type Type = Self; } -#[cfg(any(feature = "v4_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] +#[cfg(any(feature = "v4_12", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] unsafe impl<'a> FromValue<'a> for ListTabBehavior { type Checker = glib::value::GenericValueTypeChecker; @@ -6669,8 +6669,8 @@ unsafe impl<'a> FromValue<'a> for ListTabBehavior { } } -#[cfg(any(feature = "v4_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] +#[cfg(any(feature = "v4_12", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] impl ToValue for ListTabBehavior { #[inline] fn to_value(&self) -> glib::Value { @@ -6687,8 +6687,8 @@ impl ToValue for ListTabBehavior { } } -#[cfg(any(feature = "v4_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] +#[cfg(any(feature = "v4_12", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] impl From for glib::Value { #[inline] fn from(v: ListTabBehavior) -> Self { @@ -6970,8 +6970,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GtkNaturalWrapMode")] @@ -6986,8 +6986,8 @@ pub enum NaturalWrapMode { __Unknown(i32), } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl fmt::Display for NaturalWrapMode { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!( @@ -7003,8 +7003,8 @@ impl fmt::Display for NaturalWrapMode { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(hidden)] impl IntoGlib for NaturalWrapMode { type GlibType = ffi::GtkNaturalWrapMode; @@ -7020,8 +7020,8 @@ impl IntoGlib for NaturalWrapMode { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(hidden)] impl FromGlib for NaturalWrapMode { #[inline] @@ -7037,8 +7037,8 @@ impl FromGlib for NaturalWrapMode { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl StaticType for NaturalWrapMode { #[inline] fn static_type() -> Type { @@ -7046,8 +7046,8 @@ impl StaticType for NaturalWrapMode { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl glib::HasParamSpec for NaturalWrapMode { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -7058,14 +7058,14 @@ impl glib::HasParamSpec for NaturalWrapMode { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl glib::value::ValueType for NaturalWrapMode { type Type = Self; } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] unsafe impl<'a> FromValue<'a> for NaturalWrapMode { type Checker = glib::value::GenericValueTypeChecker; @@ -7076,8 +7076,8 @@ unsafe impl<'a> FromValue<'a> for NaturalWrapMode { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl ToValue for NaturalWrapMode { #[inline] fn to_value(&self) -> glib::Value { @@ -7094,8 +7094,8 @@ impl ToValue for NaturalWrapMode { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl From for glib::Value { #[inline] fn from(v: NaturalWrapMode) -> Self { @@ -11966,8 +11966,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GtkSymbolicColor")] @@ -11984,8 +11984,8 @@ pub enum SymbolicColor { __Unknown(i32), } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl fmt::Display for SymbolicColor { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!( @@ -12002,8 +12002,8 @@ impl fmt::Display for SymbolicColor { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(hidden)] impl IntoGlib for SymbolicColor { type GlibType = ffi::GtkSymbolicColor; @@ -12020,8 +12020,8 @@ impl IntoGlib for SymbolicColor { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(hidden)] impl FromGlib for SymbolicColor { #[inline] @@ -12038,8 +12038,8 @@ impl FromGlib for SymbolicColor { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl StaticType for SymbolicColor { #[inline] fn static_type() -> Type { @@ -12047,8 +12047,8 @@ impl StaticType for SymbolicColor { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl glib::HasParamSpec for SymbolicColor { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -12059,14 +12059,14 @@ impl glib::HasParamSpec for SymbolicColor { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl glib::value::ValueType for SymbolicColor { type Type = Self; } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] unsafe impl<'a> FromValue<'a> for SymbolicColor { type Checker = glib::value::GenericValueTypeChecker; @@ -12077,8 +12077,8 @@ unsafe impl<'a> FromValue<'a> for SymbolicColor { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl ToValue for SymbolicColor { #[inline] fn to_value(&self) -> glib::Value { @@ -12095,8 +12095,8 @@ impl ToValue for SymbolicColor { } } -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] impl From for glib::Value { #[inline] fn from(v: SymbolicColor) -> Self { diff --git a/gtk4/src/auto/event_controller.rs b/gtk4/src/auto/event_controller.rs index 000729dbe03c..2b5e53d2a3b0 100644 --- a/gtk4/src/auto/event_controller.rs +++ b/gtk4/src/auto/event_controller.rs @@ -68,8 +68,8 @@ pub trait EventControllerExt: 'static { #[doc(alias = "gtk_event_controller_set_propagation_phase")] fn set_propagation_phase(&self, phase: PropagationPhase); - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "gtk_event_controller_set_static_name")] fn set_static_name(&self, name: Option<&str>); @@ -180,8 +180,8 @@ impl> EventControllerExt for O { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] fn set_static_name(&self, name: Option<&str>) { unsafe { ffi::gtk_event_controller_set_static_name( diff --git a/gtk4/src/auto/event_controller_scroll.rs b/gtk4/src/auto/event_controller_scroll.rs index 90ca0f5da29c..d8e687bb4542 100644 --- a/gtk4/src/auto/event_controller_scroll.rs +++ b/gtk4/src/auto/event_controller_scroll.rs @@ -47,8 +47,8 @@ impl EventControllerScroll { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "gtk_event_controller_scroll_get_unit")] #[doc(alias = "get_unit")] pub fn unit(&self) -> gdk::ScrollUnit { diff --git a/gtk4/src/auto/file_chooser_dialog.rs b/gtk4/src/auto/file_chooser_dialog.rs index 28580dca6d7e..166531ca749a 100644 --- a/gtk4/src/auto/file_chooser_dialog.rs +++ b/gtk4/src/auto/file_chooser_dialog.rs @@ -133,8 +133,8 @@ impl FileChooserDialogBuilder { } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn handle_menubar_accel(self, handle_menubar_accel: bool) -> Self { Self { builder: self @@ -193,8 +193,8 @@ impl FileChooserDialogBuilder { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn titlebar(self, titlebar: &impl IsA) -> Self { Self { builder: self.builder.property("titlebar", titlebar.clone().upcast()), diff --git a/gtk4/src/auto/file_chooser_widget.rs b/gtk4/src/auto/file_chooser_widget.rs index 97f16f3a2c54..93782af13197 100644 --- a/gtk4/src/auto/file_chooser_widget.rs +++ b/gtk4/src/auto/file_chooser_widget.rs @@ -53,8 +53,8 @@ impl FileChooserWidget { glib::ObjectExt::set_property(self, "search-mode", search_mode) } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "show-time")] pub fn shows_time(&self) -> bool { glib::ObjectExt::property(self, "show-time") @@ -410,8 +410,8 @@ impl FileChooserWidget { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "show-time")] pub fn connect_show_time_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_show_time_trampoline( diff --git a/gtk4/src/auto/file_dialog.rs b/gtk4/src/auto/file_dialog.rs index 0d2189fc9731..d2b2fdaab908 100644 --- a/gtk4/src/auto/file_dialog.rs +++ b/gtk4/src/auto/file_dialog.rs @@ -507,8 +507,8 @@ impl FileDialog { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "accept-label")] pub fn connect_accept_label_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_accept_label_trampoline( @@ -532,8 +532,8 @@ impl FileDialog { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "default-filter")] pub fn connect_default_filter_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_default_filter_trampoline( @@ -557,8 +557,8 @@ impl FileDialog { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "filters")] pub fn connect_filters_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_filters_trampoline( @@ -582,8 +582,8 @@ impl FileDialog { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "initial-file")] pub fn connect_initial_file_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_initial_file_trampoline( @@ -607,8 +607,8 @@ impl FileDialog { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "initial-folder")] pub fn connect_initial_folder_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_initial_folder_trampoline( @@ -632,8 +632,8 @@ impl FileDialog { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "initial-name")] pub fn connect_initial_name_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_initial_name_trampoline( @@ -657,8 +657,8 @@ impl FileDialog { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "modal")] pub fn connect_modal_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_modal_trampoline( @@ -682,8 +682,8 @@ impl FileDialog { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "title")] pub fn connect_title_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_title_trampoline( @@ -708,8 +708,8 @@ impl FileDialog { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl Default for FileDialog { fn default() -> Self { Self::new() @@ -732,16 +732,16 @@ impl FileDialogBuilder { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn accept_label(self, accept_label: impl Into) -> Self { Self { builder: self.builder.property("accept-label", accept_label.into()), } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn default_filter(self, default_filter: &FileFilter) -> Self { Self { builder: self @@ -750,16 +750,16 @@ impl FileDialogBuilder { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn filters(self, filters: &impl IsA) -> Self { Self { builder: self.builder.property("filters", filters.clone().upcast()), } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn initial_file(self, initial_file: &impl IsA) -> Self { Self { builder: self @@ -768,8 +768,8 @@ impl FileDialogBuilder { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn initial_folder(self, initial_folder: &impl IsA) -> Self { Self { builder: self @@ -778,24 +778,24 @@ impl FileDialogBuilder { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn initial_name(self, initial_name: impl Into) -> Self { Self { builder: self.builder.property("initial-name", initial_name.into()), } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn modal(self, modal: bool) -> Self { Self { builder: self.builder.property("modal", modal), } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn title(self, title: impl Into) -> Self { Self { builder: self.builder.property("title", title.into()), diff --git a/gtk4/src/auto/file_filter.rs b/gtk4/src/auto/file_filter.rs index 57d5ae300414..80d95b7633e5 100644 --- a/gtk4/src/auto/file_filter.rs +++ b/gtk4/src/auto/file_filter.rs @@ -58,8 +58,8 @@ impl FileFilter { } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "gtk_file_filter_add_suffix")] pub fn add_suffix(&self, suffix: &str) { unsafe { diff --git a/gtk4/src/auto/file_launcher.rs b/gtk4/src/auto/file_launcher.rs index 78785c8bab70..74f3f27357ce 100644 --- a/gtk4/src/auto/file_launcher.rs +++ b/gtk4/src/auto/file_launcher.rs @@ -180,8 +180,8 @@ impl FileLauncher { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "file")] pub fn connect_file_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_file_trampoline( diff --git a/gtk4/src/auto/flags.rs b/gtk4/src/auto/flags.rs index 6dacf6675029..e81d77c00016 100644 --- a/gtk4/src/auto/flags.rs +++ b/gtk4/src/auto/flags.rs @@ -329,8 +329,8 @@ bitflags! { const A11Y = ffi::GTK_DEBUG_A11Y as _; #[doc(alias = "GTK_DEBUG_ICONFALLBACK")] const ICONFALLBACK = ffi::GTK_DEBUG_ICONFALLBACK as _; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "GTK_DEBUG_INVERT_TEXT_DIR")] const INVERT_TEXT_DIR = ffi::GTK_DEBUG_INVERT_TEXT_DIR as _; } @@ -1086,9 +1086,9 @@ impl From for glib::Value { } } -#[cfg(any(target_os = "linux", feature = "dox"))] +#[cfg(any(target_os = "linux", docsrs))] bitflags! { - #[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] + #[cfg_attr(docsrs, doc(cfg(target_os = "linux")))] #[doc(alias = "GtkPrintCapabilities")] pub struct PrintCapabilities: u32 { #[doc(alias = "GTK_PRINT_CAPABILITY_PAGE_SET")] @@ -1114,14 +1114,14 @@ bitflags! { } } -#[cfg(any(target_os = "linux", feature = "dox"))] +#[cfg(any(target_os = "linux", docsrs))] impl fmt::Display for PrintCapabilities { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { ::fmt(self, f) } } -#[cfg(any(target_os = "linux", feature = "dox"))] +#[cfg(any(target_os = "linux", docsrs))] #[doc(hidden)] impl IntoGlib for PrintCapabilities { type GlibType = ffi::GtkPrintCapabilities; @@ -1132,7 +1132,7 @@ impl IntoGlib for PrintCapabilities { } } -#[cfg(any(target_os = "linux", feature = "dox"))] +#[cfg(any(target_os = "linux", docsrs))] #[doc(hidden)] impl FromGlib for PrintCapabilities { #[inline] @@ -1142,7 +1142,7 @@ impl FromGlib for PrintCapabilities { } } -#[cfg(any(target_os = "linux", feature = "dox"))] +#[cfg(any(target_os = "linux", docsrs))] impl StaticType for PrintCapabilities { #[inline] fn static_type() -> Type { @@ -1150,7 +1150,7 @@ impl StaticType for PrintCapabilities { } } -#[cfg(any(target_os = "linux", feature = "dox"))] +#[cfg(any(target_os = "linux", docsrs))] impl glib::HasParamSpec for PrintCapabilities { type ParamSpec = glib::ParamSpecFlags; type SetValue = Self; @@ -1161,12 +1161,12 @@ impl glib::HasParamSpec for PrintCapabilities { } } -#[cfg(any(target_os = "linux", feature = "dox"))] +#[cfg(any(target_os = "linux", docsrs))] impl glib::value::ValueType for PrintCapabilities { type Type = Self; } -#[cfg(any(target_os = "linux", feature = "dox"))] +#[cfg(any(target_os = "linux", docsrs))] unsafe impl<'a> FromValue<'a> for PrintCapabilities { type Checker = glib::value::GenericValueTypeChecker; @@ -1177,7 +1177,7 @@ unsafe impl<'a> FromValue<'a> for PrintCapabilities { } } -#[cfg(any(target_os = "linux", feature = "dox"))] +#[cfg(any(target_os = "linux", docsrs))] impl ToValue for PrintCapabilities { #[inline] fn to_value(&self) -> glib::Value { @@ -1194,7 +1194,7 @@ impl ToValue for PrintCapabilities { } } -#[cfg(any(target_os = "linux", feature = "dox"))] +#[cfg(any(target_os = "linux", docsrs))] impl From for glib::Value { #[inline] fn from(v: PrintCapabilities) -> Self { diff --git a/gtk4/src/auto/flow_box.rs b/gtk4/src/auto/flow_box.rs index b7114f95ef46..6351e770db26 100644 --- a/gtk4/src/auto/flow_box.rs +++ b/gtk4/src/auto/flow_box.rs @@ -37,8 +37,8 @@ impl FlowBox { FlowBoxBuilder::new() } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gtk_flow_box_append")] pub fn append(&self, child: &impl IsA) { unsafe { @@ -184,8 +184,8 @@ impl FlowBox { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gtk_flow_box_prepend")] pub fn prepend(&self, child: &impl IsA) { unsafe { @@ -200,8 +200,8 @@ impl FlowBox { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "gtk_flow_box_remove_all")] pub fn remove_all(&self) { unsafe { diff --git a/gtk4/src/auto/font_button.rs b/gtk4/src/auto/font_button.rs index a124163290e8..56d50b54bd48 100644 --- a/gtk4/src/auto/font_button.rs +++ b/gtk4/src/auto/font_button.rs @@ -122,8 +122,8 @@ impl FontButton { } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "activate")] pub fn connect_activate(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn activate_trampoline( @@ -146,8 +146,8 @@ impl FontButton { } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn emit_activate(&self) { self.emit_by_name::<()>("activate", &[]); } diff --git a/gtk4/src/auto/font_chooser_dialog.rs b/gtk4/src/auto/font_chooser_dialog.rs index 16826c114b37..ce28e3bb0859 100644 --- a/gtk4/src/auto/font_chooser_dialog.rs +++ b/gtk4/src/auto/font_chooser_dialog.rs @@ -153,8 +153,8 @@ impl FontChooserDialogBuilder { } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn handle_menubar_accel(self, handle_menubar_accel: bool) -> Self { Self { builder: self @@ -213,8 +213,8 @@ impl FontChooserDialogBuilder { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn titlebar(self, titlebar: &impl IsA) -> Self { Self { builder: self.builder.property("titlebar", titlebar.clone().upcast()), diff --git a/gtk4/src/auto/font_dialog.rs b/gtk4/src/auto/font_dialog.rs index 989939c03f33..b050bcb0c301 100644 --- a/gtk4/src/auto/font_dialog.rs +++ b/gtk4/src/auto/font_dialog.rs @@ -333,8 +333,8 @@ impl FontDialog { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "filter")] pub fn connect_filter_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_filter_trampoline( @@ -358,8 +358,8 @@ impl FontDialog { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "font-map")] pub fn connect_font_map_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_font_map_trampoline( @@ -383,8 +383,8 @@ impl FontDialog { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "language")] pub fn connect_language_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_language_trampoline( @@ -408,8 +408,8 @@ impl FontDialog { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "modal")] pub fn connect_modal_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_modal_trampoline( @@ -433,8 +433,8 @@ impl FontDialog { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "title")] pub fn connect_title_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_title_trampoline( @@ -459,8 +459,8 @@ impl FontDialog { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl Default for FontDialog { fn default() -> Self { Self::new() @@ -483,40 +483,40 @@ impl FontDialogBuilder { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn filter(self, filter: &impl IsA) -> Self { Self { builder: self.builder.property("filter", filter.clone().upcast()), } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn font_map(self, font_map: &impl IsA) -> Self { Self { builder: self.builder.property("font-map", font_map.clone().upcast()), } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn language(self, language: &pango::Language) -> Self { Self { builder: self.builder.property("language", language), } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn modal(self, modal: bool) -> Self { Self { builder: self.builder.property("modal", modal), } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn title(self, title: impl Into) -> Self { Self { builder: self.builder.property("title", title.into()), diff --git a/gtk4/src/auto/font_dialog_button.rs b/gtk4/src/auto/font_dialog_button.rs index 93106c8450aa..40217f6032fa 100644 --- a/gtk4/src/auto/font_dialog_button.rs +++ b/gtk4/src/auto/font_dialog_button.rs @@ -192,8 +192,8 @@ impl FontDialogButton { glib::ObjectExt::set_property(self, "use-size", use_size) } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "dialog")] pub fn connect_dialog_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_dialog_trampoline( @@ -217,8 +217,8 @@ impl FontDialogButton { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "font-desc")] pub fn connect_font_desc_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_font_desc_trampoline( @@ -242,8 +242,8 @@ impl FontDialogButton { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "font-features")] pub fn connect_font_features_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_font_features_trampoline( @@ -267,8 +267,8 @@ impl FontDialogButton { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "language")] pub fn connect_language_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_language_trampoline( @@ -362,8 +362,8 @@ impl FontDialogButton { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl Default for FontDialogButton { fn default() -> Self { glib::object::Object::new::() @@ -386,32 +386,32 @@ impl FontDialogButtonBuilder { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn dialog(self, dialog: &FontDialog) -> Self { Self { builder: self.builder.property("dialog", dialog.clone()), } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn font_desc(self, font_desc: &pango::FontDescription) -> Self { Self { builder: self.builder.property("font-desc", font_desc), } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn font_features(self, font_features: impl Into) -> Self { Self { builder: self.builder.property("font-features", font_features.into()), } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn language(self, language: &pango::Language) -> Self { Self { builder: self.builder.property("language", language), diff --git a/gtk4/src/auto/functions.rs b/gtk4/src/auto/functions.rs index 5d69de37a2bc..fc733a4298d7 100644 --- a/gtk4/src/auto/functions.rs +++ b/gtk4/src/auto/functions.rs @@ -2,8 +2,8 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(target_os = "linux", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] +#[cfg(any(target_os = "linux", docsrs))] +#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))] use crate::Printer; use crate::{ Accessible, AccessibleProperty, AccessibleRelation, AccessibleRole, AccessibleState, @@ -48,8 +48,8 @@ pub fn disable_setlocale() { // unsafe { TODO: call ffi:gtk_distribute_natural_allocation() } //} -#[cfg(any(target_os = "linux", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] +#[cfg(any(target_os = "linux", docsrs))] +#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))] #[doc(alias = "gtk_enumerate_printers")] pub fn enumerate_printers bool + Send + Sync + 'static>(func: P, wait: bool) { assert_initialized_main_thread!(); diff --git a/gtk4/src/auto/gesture_stylus.rs b/gtk4/src/auto/gesture_stylus.rs index 5e459cd4ad29..f944bca9729c 100644 --- a/gtk4/src/auto/gesture_stylus.rs +++ b/gtk4/src/auto/gesture_stylus.rs @@ -84,8 +84,8 @@ impl GestureStylus { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_gesture_stylus_get_stylus_only")] #[doc(alias = "get_stylus_only")] pub fn is_stylus_only(&self) -> bool { @@ -96,8 +96,8 @@ impl GestureStylus { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_gesture_stylus_set_stylus_only")] pub fn set_stylus_only(&self, stylus_only: bool) { unsafe { @@ -201,8 +201,8 @@ impl GestureStylus { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "stylus-only")] pub fn connect_stylus_only_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_stylus_only_trampoline( @@ -249,8 +249,8 @@ impl GestureStylusBuilder { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn stylus_only(self, stylus_only: bool) -> Self { Self { builder: self.builder.property("stylus-only", stylus_only), diff --git a/gtk4/src/auto/grid_view.rs b/gtk4/src/auto/grid_view.rs index 4059bff26261..fdc7fb98e2c0 100644 --- a/gtk4/src/auto/grid_view.rs +++ b/gtk4/src/auto/grid_view.rs @@ -2,8 +2,8 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v4_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] +#[cfg(any(feature = "v4_12", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] use crate::ListTabBehavior; use crate::{ Accessible, AccessibleRole, Adjustment, Align, Buildable, ConstraintTarget, LayoutManager, @@ -94,8 +94,8 @@ impl GridView { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "gtk_grid_view_get_tab_behavior")] #[doc(alias = "get_tab_behavior")] pub fn tab_behavior(&self) -> ListTabBehavior { @@ -156,8 +156,8 @@ impl GridView { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "gtk_grid_view_set_tab_behavior")] pub fn set_tab_behavior(&self, tab_behavior: ListTabBehavior) { unsafe { @@ -332,8 +332,8 @@ impl GridView { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "tab-behavior")] pub fn connect_tab_behavior_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_tab_behavior_trampoline( @@ -420,8 +420,8 @@ impl GridViewBuilder { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn tab_behavior(self, tab_behavior: ListTabBehavior) -> Self { Self { builder: self.builder.property("tab-behavior", tab_behavior), diff --git a/gtk4/src/auto/icon_paintable.rs b/gtk4/src/auto/icon_paintable.rs index ee3d4a84e4bc..4c93f5ef6e1f 100644 --- a/gtk4/src/auto/icon_paintable.rs +++ b/gtk4/src/auto/icon_paintable.rs @@ -2,14 +2,14 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] use crate::SymbolicPaintable; use glib::{prelude::*, translate::*}; use std::fmt; -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] glib::wrapper! { #[doc(alias = "GtkIconPaintable")] pub struct IconPaintable(Object) @implements gdk::Paintable, SymbolicPaintable; @@ -19,7 +19,7 @@ glib::wrapper! { } } -#[cfg(not(any(feature = "v4_6", feature = "dox")))] +#[cfg(not(any(feature = "v4_6", docsrs)))] glib::wrapper! { #[doc(alias = "GtkIconPaintable")] pub struct IconPaintable(Object) @implements gdk::Paintable; diff --git a/gtk4/src/auto/icon_theme.rs b/gtk4/src/auto/icon_theme.rs index c5ed89d1165b..e80afb07c3e6 100644 --- a/gtk4/src/auto/icon_theme.rs +++ b/gtk4/src/auto/icon_theme.rs @@ -93,8 +93,8 @@ impl IconTheme { unsafe { from_glib_full(ffi::gtk_icon_theme_get_theme_name(self.to_glib_none().0)) } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] #[doc(alias = "gtk_icon_theme_has_gicon")] pub fn has_gicon(&self, gicon: &impl IsA) -> bool { unsafe { diff --git a/gtk4/src/auto/im_context.rs b/gtk4/src/auto/im_context.rs index 742c4aadc006..0ae0e22bbf1b 100644 --- a/gtk4/src/auto/im_context.rs +++ b/gtk4/src/auto/im_context.rs @@ -59,8 +59,8 @@ pub trait IMContextExt: 'static { #[doc(alias = "get_surrounding")] fn surrounding(&self) -> Option<(glib::GString, i32)>; - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] #[doc(alias = "gtk_im_context_get_surrounding_with_selection")] #[doc(alias = "get_surrounding_with_selection")] fn surrounding_with_selection(&self) -> Option<(glib::GString, i32, i32)>; @@ -79,8 +79,8 @@ pub trait IMContextExt: 'static { #[doc(alias = "gtk_im_context_set_surrounding")] fn set_surrounding(&self, text: &str, cursor_index: i32); - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] #[doc(alias = "gtk_im_context_set_surrounding_with_selection")] fn set_surrounding_with_selection(&self, text: &str, cursor_index: i32, anchor_index: i32); @@ -221,8 +221,8 @@ impl> IMContextExt for O { } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] fn surrounding_with_selection(&self) -> Option<(glib::GString, i32, i32)> { unsafe { let mut text = ptr::null_mut(); @@ -283,8 +283,8 @@ impl> IMContextExt for O { } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] fn set_surrounding_with_selection(&self, text: &str, cursor_index: i32, anchor_index: i32) { let len = text.len() as _; unsafe { diff --git a/gtk4/src/auto/inscription.rs b/gtk4/src/auto/inscription.rs index b45061f02aea..e49b37dc8445 100644 --- a/gtk4/src/auto/inscription.rs +++ b/gtk4/src/auto/inscription.rs @@ -180,8 +180,8 @@ impl Inscription { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "attributes")] pub fn connect_attributes_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_attributes_trampoline( @@ -205,8 +205,8 @@ impl Inscription { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "markup")] pub fn connect_markup_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_markup_trampoline( @@ -230,8 +230,8 @@ impl Inscription { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "min-chars")] pub fn connect_min_chars_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_min_chars_trampoline( @@ -255,8 +255,8 @@ impl Inscription { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "min-lines")] pub fn connect_min_lines_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_min_lines_trampoline( @@ -280,8 +280,8 @@ impl Inscription { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "nat-chars")] pub fn connect_nat_chars_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_nat_chars_trampoline( @@ -305,8 +305,8 @@ impl Inscription { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "nat-lines")] pub fn connect_nat_lines_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_nat_lines_trampoline( @@ -330,8 +330,8 @@ impl Inscription { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "text")] pub fn connect_text_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_text_trampoline( @@ -355,8 +355,8 @@ impl Inscription { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "text-overflow")] pub fn connect_text_overflow_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_text_overflow_trampoline( @@ -380,8 +380,8 @@ impl Inscription { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "wrap-mode")] pub fn connect_wrap_mode_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_wrap_mode_trampoline( @@ -405,8 +405,8 @@ impl Inscription { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "xalign")] pub fn connect_xalign_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_xalign_trampoline( @@ -430,8 +430,8 @@ impl Inscription { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "yalign")] pub fn connect_yalign_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_yalign_trampoline( @@ -456,8 +456,8 @@ impl Inscription { } } -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] impl Default for Inscription { fn default() -> Self { glib::object::Object::new::() @@ -480,88 +480,88 @@ impl InscriptionBuilder { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn attributes(self, attributes: &pango::AttrList) -> Self { Self { builder: self.builder.property("attributes", attributes.clone()), } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn markup(self, markup: impl Into) -> Self { Self { builder: self.builder.property("markup", markup.into()), } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn min_chars(self, min_chars: u32) -> Self { Self { builder: self.builder.property("min-chars", min_chars), } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn min_lines(self, min_lines: u32) -> Self { Self { builder: self.builder.property("min-lines", min_lines), } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn nat_chars(self, nat_chars: u32) -> Self { Self { builder: self.builder.property("nat-chars", nat_chars), } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn nat_lines(self, nat_lines: u32) -> Self { Self { builder: self.builder.property("nat-lines", nat_lines), } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn text(self, text: impl Into) -> Self { Self { builder: self.builder.property("text", text.into()), } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn text_overflow(self, text_overflow: InscriptionOverflow) -> Self { Self { builder: self.builder.property("text-overflow", text_overflow), } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn wrap_mode(self, wrap_mode: pango::WrapMode) -> Self { Self { builder: self.builder.property("wrap-mode", wrap_mode), } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn xalign(self, xalign: f32) -> Self { Self { builder: self.builder.property("xalign", xalign), } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn yalign(self, yalign: f32) -> Self { Self { builder: self.builder.property("yalign", yalign), diff --git a/gtk4/src/auto/label.rs b/gtk4/src/auto/label.rs index a98ef1b04277..a039e0f7a8a7 100644 --- a/gtk4/src/auto/label.rs +++ b/gtk4/src/auto/label.rs @@ -2,8 +2,8 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] use crate::NaturalWrapMode; use crate::{ Accessible, AccessibleRole, Align, Buildable, ConstraintTarget, Justification, LayoutManager, @@ -125,8 +125,8 @@ impl Label { unsafe { from_glib_none(ffi::gtk_label_get_mnemonic_widget(self.to_glib_none().0)) } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gtk_label_get_natural_wrap_mode")] #[doc(alias = "get_natural_wrap_mode")] pub fn natural_wrap_mode(&self) -> NaturalWrapMode { @@ -164,8 +164,8 @@ impl Label { unsafe { from_glib(ffi::gtk_label_get_single_line_mode(self.to_glib_none().0)) } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "gtk_label_get_tabs")] #[doc(alias = "get_tabs")] pub fn tabs(&self) -> Option { @@ -303,8 +303,8 @@ impl Label { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gtk_label_set_natural_wrap_mode")] pub fn set_natural_wrap_mode(&self, wrap_mode: NaturalWrapMode) { unsafe { @@ -329,8 +329,8 @@ impl Label { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "gtk_label_set_tabs")] pub fn set_tabs(&self, tabs: Option<&pango::TabArray>) { unsafe { @@ -731,8 +731,8 @@ impl Label { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "natural-wrap-mode")] pub fn connect_natural_wrap_mode_notify( &self, @@ -805,8 +805,8 @@ impl Label { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "tabs")] pub fn connect_tabs_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_tabs_trampoline( @@ -1066,8 +1066,8 @@ impl LabelBuilder { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn natural_wrap_mode(self, natural_wrap_mode: NaturalWrapMode) -> Self { Self { builder: self @@ -1088,8 +1088,8 @@ impl LabelBuilder { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn tabs(self, tabs: &pango::TabArray) -> Self { Self { builder: self.builder.property("tabs", tabs), diff --git a/gtk4/src/auto/level_bar.rs b/gtk4/src/auto/level_bar.rs index 288988de5db4..e4668564c729 100644 --- a/gtk4/src/auto/level_bar.rs +++ b/gtk4/src/auto/level_bar.rs @@ -2,8 +2,8 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] use crate::AccessibleRange; use crate::{ Accessible, AccessibleRole, Align, Buildable, ConstraintTarget, LayoutManager, LevelBarMode, @@ -16,8 +16,8 @@ use glib::{ }; use std::{boxed::Box as Box_, fmt, mem, mem::transmute}; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] glib::wrapper! { #[doc(alias = "GtkLevelBar")] pub struct LevelBar(Object) @extends Widget, @implements Accessible, Buildable, ConstraintTarget, AccessibleRange, Orientable; @@ -27,7 +27,7 @@ glib::wrapper! { } } -#[cfg(not(any(feature = "v4_10", feature = "dox")))] +#[cfg(not(any(feature = "v4_10", docsrs)))] glib::wrapper! { #[doc(alias = "GtkLevelBar")] pub struct LevelBar(Object) @extends Widget, @implements Accessible, Buildable, ConstraintTarget, Orientable; diff --git a/gtk4/src/auto/list_box.rs b/gtk4/src/auto/list_box.rs index db0d3857c468..9850997ae5e9 100644 --- a/gtk4/src/auto/list_box.rs +++ b/gtk4/src/auto/list_box.rs @@ -202,8 +202,8 @@ impl ListBox { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "gtk_list_box_remove_all")] pub fn remove_all(&self) { unsafe { diff --git a/gtk4/src/auto/list_item.rs b/gtk4/src/auto/list_item.rs index 13c62755b9b7..d43dcca5662c 100644 --- a/gtk4/src/auto/list_item.rs +++ b/gtk4/src/auto/list_item.rs @@ -32,8 +32,8 @@ pub trait ListItemExt: 'static { #[doc(alias = "get_child")] fn child(&self) -> Option; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "gtk_list_item_get_focusable")] #[doc(alias = "get_focusable")] fn is_focusable(&self) -> bool; @@ -60,8 +60,8 @@ pub trait ListItemExt: 'static { #[doc(alias = "gtk_list_item_set_child")] fn set_child(&self, child: Option<&impl IsA>); - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "gtk_list_item_set_focusable")] fn set_focusable(&self, focusable: bool); @@ -74,8 +74,8 @@ pub trait ListItemExt: 'static { #[doc(alias = "child")] fn connect_child_notify(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "focusable")] fn connect_focusable_notify(&self, f: F) -> SignalHandlerId; @@ -105,8 +105,8 @@ impl> ListItemExt for O { unsafe { from_glib_none(ffi::gtk_list_item_get_child(self.as_ref().to_glib_none().0)) } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] fn is_focusable(&self) -> bool { unsafe { from_glib(ffi::gtk_list_item_get_focusable( @@ -157,8 +157,8 @@ impl> ListItemExt for O { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] fn set_focusable(&self, focusable: bool) { unsafe { ffi::gtk_list_item_set_focusable(self.as_ref().to_glib_none().0, focusable.into_glib()); @@ -221,8 +221,8 @@ impl> ListItemExt for O { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] fn connect_focusable_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_focusable_trampoline, F: Fn(&P) + 'static>( this: *mut ffi::GtkListItem, diff --git a/gtk4/src/auto/list_view.rs b/gtk4/src/auto/list_view.rs index fd9395c898dd..45b2234f7af4 100644 --- a/gtk4/src/auto/list_view.rs +++ b/gtk4/src/auto/list_view.rs @@ -2,8 +2,8 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v4_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] +#[cfg(any(feature = "v4_12", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] use crate::ListTabBehavior; use crate::{ Accessible, AccessibleRole, Adjustment, Align, Buildable, ConstraintTarget, LayoutManager, @@ -92,8 +92,8 @@ impl ListView { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "gtk_list_view_get_tab_behavior")] #[doc(alias = "get_tab_behavior")] pub fn tab_behavior(&self) -> ListTabBehavior { @@ -150,8 +150,8 @@ impl ListView { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "gtk_list_view_set_tab_behavior")] pub fn set_tab_behavior(&self, tab_behavior: ListTabBehavior) { unsafe { @@ -303,8 +303,8 @@ impl ListView { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "tab-behavior")] pub fn connect_tab_behavior_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_tab_behavior_trampoline( @@ -385,8 +385,8 @@ impl ListViewBuilder { } } - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn tab_behavior(self, tab_behavior: ListTabBehavior) -> Self { Self { builder: self.builder.property("tab-behavior", tab_behavior), diff --git a/gtk4/src/auto/media_stream.rs b/gtk4/src/auto/media_stream.rs index 32011719a8ed..0ef21f9a2f06 100644 --- a/gtk4/src/auto/media_stream.rs +++ b/gtk4/src/auto/media_stream.rs @@ -111,18 +111,18 @@ pub trait MediaStreamExt: 'static { #[doc(alias = "gtk_media_stream_set_volume")] fn set_volume(&self, volume: f64); - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "gtk_media_stream_stream_ended")] fn stream_ended(&self); - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "gtk_media_stream_stream_prepared")] fn stream_prepared(&self, has_audio: bool, has_video: bool, seekable: bool, duration: i64); - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "gtk_media_stream_stream_unprepared")] fn stream_unprepared(&self); @@ -355,16 +355,16 @@ impl> MediaStreamExt for O { } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] fn stream_ended(&self) { unsafe { ffi::gtk_media_stream_stream_ended(self.as_ref().to_glib_none().0); } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] fn stream_prepared(&self, has_audio: bool, has_video: bool, seekable: bool, duration: i64) { unsafe { ffi::gtk_media_stream_stream_prepared( @@ -377,8 +377,8 @@ impl> MediaStreamExt for O { } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] fn stream_unprepared(&self) { unsafe { ffi::gtk_media_stream_stream_unprepared(self.as_ref().to_glib_none().0); diff --git a/gtk4/src/auto/menu_button.rs b/gtk4/src/auto/menu_button.rs index 3b4dd1162223..d8ded9ad5831 100644 --- a/gtk4/src/auto/menu_button.rs +++ b/gtk4/src/auto/menu_button.rs @@ -37,16 +37,16 @@ impl MenuButton { MenuButtonBuilder::new() } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_menu_button_get_active")] #[doc(alias = "get_active")] pub fn is_active(&self) -> bool { unsafe { from_glib(ffi::gtk_menu_button_get_active(self.to_glib_none().0)) } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "gtk_menu_button_get_always_show_arrow")] #[doc(alias = "get_always_show_arrow")] pub fn must_always_show_arrow(&self) -> bool { @@ -57,8 +57,8 @@ impl MenuButton { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gtk_menu_button_get_child")] #[doc(alias = "get_child")] pub fn child(&self) -> Option { @@ -101,8 +101,8 @@ impl MenuButton { unsafe { from_glib_none(ffi::gtk_menu_button_get_popover(self.to_glib_none().0)) } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "gtk_menu_button_get_primary")] #[doc(alias = "get_primary")] pub fn is_primary(&self) -> bool { @@ -133,8 +133,8 @@ impl MenuButton { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_menu_button_set_active")] pub fn set_active(&self, active: bool) { unsafe { @@ -142,8 +142,8 @@ impl MenuButton { } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "gtk_menu_button_set_always_show_arrow")] pub fn set_always_show_arrow(&self, always_show_arrow: bool) { unsafe { @@ -154,8 +154,8 @@ impl MenuButton { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gtk_menu_button_set_child")] pub fn set_child(&self, child: Option<&impl IsA>) { unsafe { @@ -243,8 +243,8 @@ impl MenuButton { } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "gtk_menu_button_set_primary")] pub fn set_primary(&self, primary: bool) { unsafe { @@ -262,8 +262,8 @@ impl MenuButton { } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "activate")] pub fn connect_activate(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn activate_trampoline( @@ -286,14 +286,14 @@ impl MenuButton { } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn emit_activate(&self) { self.emit_by_name::<()>("activate", &[]); } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "active")] pub fn connect_active_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_active_trampoline( @@ -317,8 +317,8 @@ impl MenuButton { } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "always-show-arrow")] pub fn connect_always_show_arrow_notify( &self, @@ -345,8 +345,8 @@ impl MenuButton { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "child")] pub fn connect_child_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_child_trampoline( @@ -508,8 +508,8 @@ impl MenuButton { } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "primary")] pub fn connect_primary_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_primary_trampoline( @@ -579,16 +579,16 @@ impl MenuButtonBuilder { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn active(self, active: bool) -> Self { Self { builder: self.builder.property("active", active), } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn always_show_arrow(self, always_show_arrow: bool) -> Self { Self { builder: self @@ -597,8 +597,8 @@ impl MenuButtonBuilder { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn child(self, child: &impl IsA) -> Self { Self { builder: self.builder.property("child", child.clone().upcast()), @@ -643,8 +643,8 @@ impl MenuButtonBuilder { } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn primary(self, primary: bool) -> Self { Self { builder: self.builder.property("primary", primary), diff --git a/gtk4/src/auto/message_dialog.rs b/gtk4/src/auto/message_dialog.rs index 4fe860fd7091..94c63fa6064e 100644 --- a/gtk4/src/auto/message_dialog.rs +++ b/gtk4/src/auto/message_dialog.rs @@ -388,8 +388,8 @@ impl MessageDialogBuilder { } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn handle_menubar_accel(self, handle_menubar_accel: bool) -> Self { Self { builder: self @@ -448,8 +448,8 @@ impl MessageDialogBuilder { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn titlebar(self, titlebar: &impl IsA) -> Self { Self { builder: self.builder.property("titlebar", titlebar.clone().upcast()), diff --git a/gtk4/src/auto/mod.rs b/gtk4/src/auto/mod.rs index 9019a1bdef09..8377b0d79655 100644 --- a/gtk4/src/auto/mod.rs +++ b/gtk4/src/auto/mod.rs @@ -11,11 +11,11 @@ pub use self::about_dialog::AboutDialog; mod accessible; pub use self::accessible::Accessible; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] mod accessible_range; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use self::accessible_range::AccessibleRange; mod action_bar; @@ -30,11 +30,11 @@ pub use self::activate_action::ActivateAction; mod adjustment; pub use self::adjustment::Adjustment; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] mod alert_dialog; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use self::alert_dialog::AlertDialog; mod alternative_trigger; @@ -225,18 +225,18 @@ mod color_chooser_widget; #[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")] pub use self::color_chooser_widget::ColorChooserWidget; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] mod color_dialog; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use self::color_dialog::ColorDialog; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] mod color_dialog_button; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use self::color_dialog_button::ColorDialogButton; mod column_view; @@ -245,18 +245,18 @@ pub use self::column_view::ColumnView; mod column_view_column; pub use self::column_view_column::ColumnViewColumn; -#[cfg(any(feature = "v4_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] +#[cfg(any(feature = "v4_12", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] mod column_view_row; -#[cfg(any(feature = "v4_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] +#[cfg(any(feature = "v4_12", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub use self::column_view_row::ColumnViewRow; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] mod column_view_sorter; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use self::column_view_sorter::ColumnViewSorter; #[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")] @@ -392,21 +392,21 @@ mod file_chooser_widget; #[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")] pub use self::file_chooser_widget::FileChooserWidget; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] mod file_dialog; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use self::file_dialog::FileDialog; mod file_filter; pub use self::file_filter::FileFilter; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] mod file_launcher; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use self::file_launcher::FileLauncher; mod filter; @@ -453,18 +453,18 @@ mod font_chooser_widget; #[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")] pub use self::font_chooser_widget::FontChooserWidget; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] mod font_dialog; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use self::font_dialog::FontDialog; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] mod font_dialog_button; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use self::font_dialog_button::FontDialogButton; mod frame; @@ -546,11 +546,11 @@ mod info_bar; #[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")] pub use self::info_bar::InfoBar; -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] mod inscription; -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub use self::inscription::Inscription; mod label; @@ -679,11 +679,11 @@ pub use self::pad_controller::PadController; mod page_setup; pub use self::page_setup::PageSetup; -#[cfg(any(target_os = "linux", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] +#[cfg(any(target_os = "linux", docsrs))] +#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))] mod page_setup_unix_dialog; -#[cfg(any(target_os = "linux", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] +#[cfg(any(target_os = "linux", docsrs))] +#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))] pub use self::page_setup_unix_dialog::PageSetupUnixDialog; mod paned; @@ -695,11 +695,11 @@ pub use self::param_spec_expression::ParamSpecExpression; mod password_entry; pub use self::password_entry::PasswordEntry; -#[cfg(any(feature = "v4_4", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] +#[cfg(any(feature = "v4_4", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] mod password_entry_buffer; -#[cfg(any(feature = "v4_4", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] +#[cfg(any(feature = "v4_4", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub use self::password_entry_buffer::PasswordEntryBuffer; mod picture; @@ -717,11 +717,11 @@ pub use self::popover_menu_bar::PopoverMenuBar; mod print_context; pub use self::print_context::PrintContext; -#[cfg(any(target_os = "linux", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] +#[cfg(any(target_os = "linux", docsrs))] +#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))] mod print_job; -#[cfg(any(target_os = "linux", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] +#[cfg(any(target_os = "linux", docsrs))] +#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))] pub use self::print_job::PrintJob; mod print_operation; @@ -733,18 +733,18 @@ pub use self::print_operation_preview::PrintOperationPreview; mod print_settings; pub use self::print_settings::PrintSettings; -#[cfg(any(target_os = "linux", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] +#[cfg(any(target_os = "linux", docsrs))] +#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))] mod print_unix_dialog; -#[cfg(any(target_os = "linux", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] +#[cfg(any(target_os = "linux", docsrs))] +#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))] pub use self::print_unix_dialog::PrintUnixDialog; -#[cfg(any(target_os = "linux", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] +#[cfg(any(target_os = "linux", docsrs))] +#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))] mod printer; -#[cfg(any(target_os = "linux", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] +#[cfg(any(target_os = "linux", docsrs))] +#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))] pub use self::printer::Printer; mod progress_bar; @@ -898,11 +898,11 @@ pub use self::style_provider::StyleProvider; mod switch; pub use self::switch::Switch; -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] mod symbolic_paintable; -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub use self::symbolic_paintable::SymbolicPaintable; mod text; @@ -994,11 +994,11 @@ mod tree_view_column; #[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")] pub use self::tree_view_column::TreeViewColumn; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] mod uri_launcher; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use self::uri_launcher::UriLauncher; mod video; @@ -1060,8 +1060,8 @@ pub use self::tree_row_reference::TreeRowReference; mod enums; pub use self::enums::AccessibleAutocomplete; pub use self::enums::AccessibleInvalidState; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use self::enums::AccessiblePlatformState; pub use self::enums::AccessibleProperty; pub use self::enums::AccessibleRelation; @@ -1078,22 +1078,22 @@ pub use self::enums::BuilderError; pub use self::enums::ButtonsType; pub use self::enums::CellRendererAccelMode; pub use self::enums::CellRendererMode; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use self::enums::Collation; pub use self::enums::ConstraintAttribute; pub use self::enums::ConstraintRelation; pub use self::enums::ConstraintStrength; pub use self::enums::ConstraintVflParserError; -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub use self::enums::ContentFit; pub use self::enums::CornerType; pub use self::enums::CssParserError; pub use self::enums::CssParserWarning; pub use self::enums::DeleteType; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use self::enums::DialogError; pub use self::enums::DirectionType; pub use self::enums::EditableProperties; @@ -1103,27 +1103,27 @@ pub use self::enums::FileChooserAction; pub use self::enums::FileChooserError; pub use self::enums::FilterChange; pub use self::enums::FilterMatch; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use self::enums::FontLevel; pub use self::enums::IconSize; pub use self::enums::IconThemeError; pub use self::enums::IconViewDropPosition; pub use self::enums::ImageType; pub use self::enums::InputPurpose; -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub use self::enums::InscriptionOverflow; pub use self::enums::Justification; pub use self::enums::LevelBarMode; pub use self::enums::License; -#[cfg(any(feature = "v4_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] +#[cfg(any(feature = "v4_12", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub use self::enums::ListTabBehavior; pub use self::enums::MessageType; pub use self::enums::MovementStep; -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub use self::enums::NaturalWrapMode; pub use self::enums::NotebookTab; pub use self::enums::NumberUpLayout; @@ -1164,8 +1164,8 @@ pub use self::enums::SpinButtonUpdatePolicy; pub use self::enums::SpinType; pub use self::enums::StackTransitionType; pub use self::enums::StringFilterMatchMode; -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub use self::enums::SymbolicColor; pub use self::enums::SystemSetting; pub use self::enums::TextDirection; @@ -1190,8 +1190,8 @@ pub use self::flags::IconLookupFlags; pub use self::flags::InputHints; pub use self::flags::PickFlags; pub use self::flags::PopoverMenuFlags; -#[cfg(any(target_os = "linux", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] +#[cfg(any(target_os = "linux", docsrs))] +#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))] pub use self::flags::PrintCapabilities; pub use self::flags::ShortcutActionFlags; pub use self::flags::StateFlags; @@ -1253,8 +1253,8 @@ pub use self::constants::PRINT_SETTINGS_WIN32_DRIVER_VERSION; #[doc(hidden)] pub mod traits { pub use super::accessible::AccessibleExt; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use super::accessible_range::AccessibleRangeExt; pub use super::actionable::ActionableExt; pub use super::adjustment::AdjustmentExt; @@ -1335,8 +1335,8 @@ pub mod traits { #[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")] pub use super::style_context::StyleContextExt; pub use super::style_provider::StyleProviderExt; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub use super::symbolic_paintable::SymbolicPaintableExt; pub use super::text_buffer::TextBufferExt; pub use super::text_child_anchor::TextChildAnchorExt; @@ -1367,8 +1367,8 @@ pub mod builders { pub use super::about_dialog::AboutDialogBuilder; pub use super::action_bar::ActionBarBuilder; pub use super::adjustment::AdjustmentBuilder; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use super::alert_dialog::AlertDialogBuilder; pub use super::alternative_trigger::AlternativeTriggerBuilder; #[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")] @@ -1413,16 +1413,16 @@ pub mod builders { pub use super::color_chooser_dialog::ColorChooserDialogBuilder; #[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")] pub use super::color_chooser_widget::ColorChooserWidgetBuilder; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use super::color_dialog::ColorDialogBuilder; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use super::color_dialog_button::ColorDialogButtonBuilder; pub use super::column_view::ColumnViewBuilder; pub use super::column_view_column::ColumnViewColumnBuilder; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub use super::column_view_row::ColumnViewRowBuilder; #[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")] pub use super::combo_box::ComboBoxBuilder; @@ -1456,8 +1456,8 @@ pub mod builders { pub use super::file_chooser_native::FileChooserNativeBuilder; #[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")] pub use super::file_chooser_widget::FileChooserWidgetBuilder; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use super::file_dialog::FileDialogBuilder; pub use super::filter_list_model::FilterListModelBuilder; pub use super::fixed::FixedBuilder; @@ -1469,11 +1469,11 @@ pub mod builders { pub use super::font_chooser_dialog::FontChooserDialogBuilder; #[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")] pub use super::font_chooser_widget::FontChooserWidgetBuilder; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use super::font_dialog::FontDialogBuilder; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use super::font_dialog_button::FontDialogButtonBuilder; pub use super::frame::FrameBuilder; pub use super::gesture_click::GestureClickBuilder; @@ -1497,8 +1497,8 @@ pub mod builders { pub use super::image::ImageBuilder; #[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")] pub use super::info_bar::InfoBarBuilder; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub use super::inscription::InscriptionBuilder; pub use super::label::LabelBuilder; pub use super::level_bar::LevelBarBuilder; @@ -1517,21 +1517,21 @@ pub mod builders { pub use super::numeric_sorter::NumericSorterBuilder; pub use super::overlay::OverlayBuilder; pub use super::pad_controller::PadControllerBuilder; - #[cfg(any(target_os = "linux", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] + #[cfg(any(target_os = "linux", docsrs))] + #[cfg_attr(docsrs, doc(cfg(target_os = "linux")))] pub use super::page_setup_unix_dialog::PageSetupUnixDialogBuilder; pub use super::paned::PanedBuilder; pub use super::password_entry::PasswordEntryBuilder; - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub use super::password_entry_buffer::PasswordEntryBufferBuilder; pub use super::picture::PictureBuilder; pub use super::popover::PopoverBuilder; pub use super::popover_menu::PopoverMenuBuilder; pub use super::popover_menu_bar::PopoverMenuBarBuilder; pub use super::print_operation::PrintOperationBuilder; - #[cfg(any(target_os = "linux", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] + #[cfg(any(target_os = "linux", docsrs))] + #[cfg_attr(docsrs, doc(cfg(target_os = "linux")))] pub use super::print_unix_dialog::PrintUnixDialogBuilder; pub use super::progress_bar::ProgressBarBuilder; pub use super::revealer::RevealerBuilder; @@ -1573,8 +1573,8 @@ pub mod builders { pub use super::tree_view::TreeViewBuilder; #[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")] pub use super::tree_view_column::TreeViewColumnBuilder; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use super::uri_launcher::UriLauncherBuilder; pub use super::video::VideoBuilder; pub use super::viewport::ViewportBuilder; diff --git a/gtk4/src/auto/page_setup_unix_dialog.rs b/gtk4/src/auto/page_setup_unix_dialog.rs index e679226934e1..871586599ffd 100644 --- a/gtk4/src/auto/page_setup_unix_dialog.rs +++ b/gtk4/src/auto/page_setup_unix_dialog.rs @@ -190,8 +190,8 @@ impl PageSetupUnixDialogBuilder { } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn handle_menubar_accel(self, handle_menubar_accel: bool) -> Self { Self { builder: self @@ -250,8 +250,8 @@ impl PageSetupUnixDialogBuilder { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn titlebar(self, titlebar: &impl IsA) -> Self { Self { builder: self.builder.property("titlebar", titlebar.clone().upcast()), diff --git a/gtk4/src/auto/paned.rs b/gtk4/src/auto/paned.rs index 9c8a30cc5a44..a169dd4769bb 100644 --- a/gtk4/src/auto/paned.rs +++ b/gtk4/src/auto/paned.rs @@ -2,8 +2,8 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] use crate::AccessibleRange; use crate::{ Accessible, AccessibleRole, Align, Buildable, ConstraintTarget, LayoutManager, Orientable, @@ -16,8 +16,8 @@ use glib::{ }; use std::{boxed::Box as Box_, fmt, mem::transmute}; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] glib::wrapper! { #[doc(alias = "GtkPaned")] pub struct Paned(Object) @extends Widget, @implements Accessible, Buildable, ConstraintTarget, AccessibleRange, Orientable; @@ -27,7 +27,7 @@ glib::wrapper! { } } -#[cfg(not(any(feature = "v4_10", feature = "dox")))] +#[cfg(not(any(feature = "v4_10", docsrs)))] glib::wrapper! { #[doc(alias = "GtkPaned")] pub struct Paned(Object) @extends Widget, @implements Accessible, Buildable, ConstraintTarget, Orientable; diff --git a/gtk4/src/auto/picture.rs b/gtk4/src/auto/picture.rs index a635be9edabc..bbd6e9861e05 100644 --- a/gtk4/src/auto/picture.rs +++ b/gtk4/src/auto/picture.rs @@ -3,8 +3,8 @@ // DO NOT EDIT #![allow(deprecated)] -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] use crate::ContentFit; use crate::{ Accessible, AccessibleRole, Align, Buildable, ConstraintTarget, LayoutManager, Overflow, Widget, @@ -110,8 +110,8 @@ impl Picture { unsafe { from_glib(ffi::gtk_picture_get_can_shrink(self.to_glib_none().0)) } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "gtk_picture_get_content_fit")] #[doc(alias = "get_content_fit")] pub fn content_fit(&self) -> ContentFit { @@ -159,8 +159,8 @@ impl Picture { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "gtk_picture_set_content_fit")] pub fn set_content_fit(&self, content_fit: ContentFit) { unsafe { @@ -270,8 +270,8 @@ impl Picture { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "content-fit")] pub fn connect_content_fit_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_content_fit_trampoline( @@ -405,8 +405,8 @@ impl PictureBuilder { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn content_fit(self, content_fit: ContentFit) -> Self { Self { builder: self.builder.property("content-fit", content_fit), diff --git a/gtk4/src/auto/print_unix_dialog.rs b/gtk4/src/auto/print_unix_dialog.rs index 463e995ed59b..0495432ac90c 100644 --- a/gtk4/src/auto/print_unix_dialog.rs +++ b/gtk4/src/auto/print_unix_dialog.rs @@ -574,8 +574,8 @@ impl PrintUnixDialogBuilder { } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn handle_menubar_accel(self, handle_menubar_accel: bool) -> Self { Self { builder: self @@ -634,8 +634,8 @@ impl PrintUnixDialogBuilder { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn titlebar(self, titlebar: &impl IsA) -> Self { Self { builder: self.builder.property("titlebar", titlebar.clone().upcast()), diff --git a/gtk4/src/auto/progress_bar.rs b/gtk4/src/auto/progress_bar.rs index 74955dcde69c..ee48ccc0d49d 100644 --- a/gtk4/src/auto/progress_bar.rs +++ b/gtk4/src/auto/progress_bar.rs @@ -2,8 +2,8 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] use crate::AccessibleRange; use crate::{ Accessible, AccessibleRole, Align, Buildable, ConstraintTarget, LayoutManager, Orientable, @@ -16,8 +16,8 @@ use glib::{ }; use std::{boxed::Box as Box_, fmt, mem::transmute}; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] glib::wrapper! { #[doc(alias = "GtkProgressBar")] pub struct ProgressBar(Object) @extends Widget, @implements Accessible, Buildable, ConstraintTarget, AccessibleRange, Orientable; @@ -27,7 +27,7 @@ glib::wrapper! { } } -#[cfg(not(any(feature = "v4_10", feature = "dox")))] +#[cfg(not(any(feature = "v4_10", docsrs)))] glib::wrapper! { #[doc(alias = "GtkProgressBar")] pub struct ProgressBar(Object) @extends Widget, @implements Accessible, Buildable, ConstraintTarget, Orientable; diff --git a/gtk4/src/auto/range.rs b/gtk4/src/auto/range.rs index 9306bf86d87f..bbdf802d4c39 100644 --- a/gtk4/src/auto/range.rs +++ b/gtk4/src/auto/range.rs @@ -2,8 +2,8 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] use crate::AccessibleRange; use crate::{Accessible, Adjustment, Buildable, ConstraintTarget, Orientable, ScrollType, Widget}; use glib::{ @@ -13,8 +13,8 @@ use glib::{ }; use std::{boxed::Box as Box_, fmt, mem, mem::transmute}; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] glib::wrapper! { #[doc(alias = "GtkRange")] pub struct Range(Object) @extends Widget, @implements Accessible, Buildable, ConstraintTarget, AccessibleRange, Orientable; @@ -24,7 +24,7 @@ glib::wrapper! { } } -#[cfg(not(any(feature = "v4_10", feature = "dox")))] +#[cfg(not(any(feature = "v4_10", docsrs)))] glib::wrapper! { #[doc(alias = "GtkRange")] pub struct Range(Object) @extends Widget, @implements Accessible, Buildable, ConstraintTarget, Orientable; diff --git a/gtk4/src/auto/scale.rs b/gtk4/src/auto/scale.rs index 88e9a8109192..3a1dd65ba4ec 100644 --- a/gtk4/src/auto/scale.rs +++ b/gtk4/src/auto/scale.rs @@ -2,8 +2,8 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] use crate::AccessibleRange; use crate::{ Accessible, AccessibleRole, Adjustment, Align, Buildable, ConstraintTarget, LayoutManager, @@ -16,8 +16,8 @@ use glib::{ }; use std::{boxed::Box as Box_, fmt, mem, mem::transmute}; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] glib::wrapper! { #[doc(alias = "GtkScale")] pub struct Scale(Object) @extends Range, Widget, @implements Accessible, Buildable, ConstraintTarget, AccessibleRange, Orientable; @@ -27,7 +27,7 @@ glib::wrapper! { } } -#[cfg(not(any(feature = "v4_10", feature = "dox")))] +#[cfg(not(any(feature = "v4_10", docsrs)))] glib::wrapper! { #[doc(alias = "GtkScale")] pub struct Scale(Object) @extends Range, Widget, @implements Accessible, Buildable, ConstraintTarget, Orientable; diff --git a/gtk4/src/auto/scale_button.rs b/gtk4/src/auto/scale_button.rs index 1f9b55ffa058..6fc78b941946 100644 --- a/gtk4/src/auto/scale_button.rs +++ b/gtk4/src/auto/scale_button.rs @@ -2,8 +2,8 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] use crate::AccessibleRange; use crate::{ Accessible, AccessibleRole, Adjustment, Align, Buildable, Button, ConstraintTarget, @@ -16,8 +16,8 @@ use glib::{ }; use std::{boxed::Box as Box_, fmt, mem::transmute}; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] glib::wrapper! { #[doc(alias = "GtkScaleButton")] pub struct ScaleButton(Object) @extends Widget, @implements Accessible, Buildable, ConstraintTarget, AccessibleRange, Orientable; @@ -27,7 +27,7 @@ glib::wrapper! { } } -#[cfg(not(any(feature = "v4_10", feature = "dox")))] +#[cfg(not(any(feature = "v4_10", docsrs)))] glib::wrapper! { #[doc(alias = "GtkScaleButton")] pub struct ScaleButton(Object) @extends Widget, @implements Accessible, Buildable, ConstraintTarget, Orientable; @@ -304,8 +304,8 @@ impl ScaleButtonBuilder { } pub trait ScaleButtonExt: 'static { - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_scale_button_get_active")] #[doc(alias = "get_active")] fn is_active(&self) -> bool; @@ -354,8 +354,8 @@ pub trait ScaleButtonExt: 'static { #[doc(alias = "value-changed")] fn connect_value_changed(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "active")] fn connect_active_notify(&self, f: F) -> SignalHandlerId; @@ -370,8 +370,8 @@ pub trait ScaleButtonExt: 'static { } impl> ScaleButtonExt for O { - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] fn is_active(&self) -> bool { unsafe { from_glib(ffi::gtk_scale_button_get_active( @@ -516,8 +516,8 @@ impl> ScaleButtonExt for O { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] fn connect_active_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_active_trampoline, F: Fn(&P) + 'static>( this: *mut ffi::GtkScaleButton, diff --git a/gtk4/src/auto/search_entry.rs b/gtk4/src/auto/search_entry.rs index 8088235ed959..dfc682edca38 100644 --- a/gtk4/src/auto/search_entry.rs +++ b/gtk4/src/auto/search_entry.rs @@ -47,8 +47,8 @@ impl SearchEntry { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "gtk_search_entry_get_search_delay")] #[doc(alias = "get_search_delay")] pub fn search_delay(&self) -> u32 { @@ -65,8 +65,8 @@ impl SearchEntry { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "gtk_search_entry_set_search_delay")] pub fn set_search_delay(&self, delay: u32) { unsafe { @@ -291,8 +291,8 @@ impl SearchEntry { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "search-delay")] pub fn connect_search_delay_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_search_delay_trampoline( @@ -355,8 +355,8 @@ impl SearchEntryBuilder { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn search_delay(self, search_delay: u32) -> Self { Self { builder: self.builder.property("search-delay", search_delay), diff --git a/gtk4/src/auto/settings.rs b/gtk4/src/auto/settings.rs index f2a168e256f1..9edf20862e1f 100644 --- a/gtk4/src/auto/settings.rs +++ b/gtk4/src/auto/settings.rs @@ -295,15 +295,15 @@ impl Settings { glib::ObjectExt::set_property(self, "gtk-fontconfig-timestamp", gtk_fontconfig_timestamp) } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gtk-hint-font-metrics")] pub fn is_gtk_hint_font_metrics(&self) -> bool { glib::ObjectExt::property(self, "gtk-hint-font-metrics") } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gtk-hint-font-metrics")] pub fn set_gtk_hint_font_metrics(&self, gtk_hint_font_metrics: bool) { glib::ObjectExt::set_property(self, "gtk-hint-font-metrics", gtk_hint_font_metrics) @@ -1225,8 +1225,8 @@ impl Settings { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gtk-hint-font-metrics")] pub fn connect_gtk_hint_font_metrics_notify( &self, @@ -2116,8 +2116,8 @@ impl SettingsBuilder { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gtk_hint_font_metrics(self, gtk_hint_font_metrics: bool) -> Self { Self { builder: self diff --git a/gtk4/src/auto/shortcuts_window.rs b/gtk4/src/auto/shortcuts_window.rs index 4daefc18162f..c40b96ae6b57 100644 --- a/gtk4/src/auto/shortcuts_window.rs +++ b/gtk4/src/auto/shortcuts_window.rs @@ -258,8 +258,8 @@ impl ShortcutsWindowBuilder { } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn handle_menubar_accel(self, handle_menubar_accel: bool) -> Self { Self { builder: self @@ -318,8 +318,8 @@ impl ShortcutsWindowBuilder { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn titlebar(self, titlebar: &impl IsA) -> Self { Self { builder: self.builder.property("titlebar", titlebar.clone().upcast()), diff --git a/gtk4/src/auto/signal_list_item_factory.rs b/gtk4/src/auto/signal_list_item_factory.rs index 19b04b2b0aba..b27f1c53e128 100644 --- a/gtk4/src/auto/signal_list_item_factory.rs +++ b/gtk4/src/auto/signal_list_item_factory.rs @@ -3,13 +3,13 @@ // DO NOT EDIT use crate::ListItemFactory; -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] use glib::signal::{connect_raw, SignalHandlerId}; use glib::{prelude::*, translate::*}; use std::fmt; -#[cfg(any(feature = "v4_8", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] +#[cfg(any(feature = "v4_8", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] use std::{boxed::Box as Box_, mem::transmute}; glib::wrapper! { @@ -30,8 +30,8 @@ impl SignalListItemFactory { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "bind")] pub fn connect_bind(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn bind_trampoline< @@ -57,8 +57,8 @@ impl SignalListItemFactory { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "setup")] pub fn connect_setup(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn setup_trampoline< @@ -84,8 +84,8 @@ impl SignalListItemFactory { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "teardown")] pub fn connect_teardown(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn teardown_trampoline< @@ -111,8 +111,8 @@ impl SignalListItemFactory { } } - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] #[doc(alias = "unbind")] pub fn connect_unbind(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn unbind_trampoline< diff --git a/gtk4/src/auto/snapshot.rs b/gtk4/src/auto/snapshot.rs index efdf1d3bdaf5..266a2ceec3e3 100644 --- a/gtk4/src/auto/snapshot.rs +++ b/gtk4/src/auto/snapshot.rs @@ -118,8 +118,8 @@ pub trait SnapshotExt: 'static { stops: &[gsk::ColorStop], ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_snapshot_append_scaled_texture")] fn append_scaled_texture( &self, @@ -163,8 +163,8 @@ pub trait SnapshotExt: 'static { take_args: glib::Bytes, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_snapshot_push_mask")] fn push_mask(&self, mask_mode: gsk::MaskMode); @@ -472,8 +472,8 @@ impl> SnapshotExt for O { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] fn append_scaled_texture( &self, texture: &impl IsA, @@ -568,8 +568,8 @@ impl> SnapshotExt for O { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] fn push_mask(&self, mask_mode: gsk::MaskMode) { unsafe { ffi::gtk_snapshot_push_mask(self.as_ref().to_glib_none().0, mask_mode.into_glib()); diff --git a/gtk4/src/auto/spin_button.rs b/gtk4/src/auto/spin_button.rs index 6982d0a5c96c..9bab09da49f5 100644 --- a/gtk4/src/auto/spin_button.rs +++ b/gtk4/src/auto/spin_button.rs @@ -2,8 +2,8 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] use crate::AccessibleRange; use crate::{ Accessible, AccessibleRole, Adjustment, Align, Buildable, CellEditable, ConstraintTarget, @@ -17,8 +17,8 @@ use glib::{ }; use std::{boxed::Box as Box_, fmt, mem, mem::transmute}; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] glib::wrapper! { #[doc(alias = "GtkSpinButton")] pub struct SpinButton(Object) @extends Widget, @implements Accessible, Buildable, ConstraintTarget, AccessibleRange, CellEditable, Editable, Orientable; @@ -28,7 +28,7 @@ glib::wrapper! { } } -#[cfg(not(any(feature = "v4_10", feature = "dox")))] +#[cfg(not(any(feature = "v4_10", docsrs)))] glib::wrapper! { #[doc(alias = "GtkSpinButton")] pub struct SpinButton(Object) @extends Widget, @implements Accessible, Buildable, ConstraintTarget, CellEditable, Editable, Orientable; diff --git a/gtk4/src/auto/string_sorter.rs b/gtk4/src/auto/string_sorter.rs index e9256e526d56..2ded377e95a3 100644 --- a/gtk4/src/auto/string_sorter.rs +++ b/gtk4/src/auto/string_sorter.rs @@ -2,8 +2,8 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] use crate::Collation; use crate::{Expression, Sorter}; use glib::{ @@ -43,8 +43,8 @@ impl StringSorter { StringSorterBuilder::new() } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_string_sorter_get_collation")] #[doc(alias = "get_collation")] pub fn collation(&self) -> Collation { @@ -67,8 +67,8 @@ impl StringSorter { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_string_sorter_set_collation")] pub fn set_collation(&self, collation: Collation) { unsafe { @@ -93,8 +93,8 @@ impl StringSorter { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "collation")] pub fn connect_collation_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_collation_trampoline( @@ -187,8 +187,8 @@ impl StringSorterBuilder { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn collation(self, collation: Collation) -> Self { Self { builder: self.builder.property("collation", collation), diff --git a/gtk4/src/auto/text.rs b/gtk4/src/auto/text.rs index 924f3003b794..3617192d98f6 100644 --- a/gtk4/src/auto/text.rs +++ b/gtk4/src/auto/text.rs @@ -49,8 +49,8 @@ impl Text { TextBuilder::new() } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "gtk_text_compute_cursor_extents")] pub fn compute_cursor_extents(&self, position: usize) -> (graphene::Rect, graphene::Rect) { unsafe { diff --git a/gtk4/src/auto/text_child_anchor.rs b/gtk4/src/auto/text_child_anchor.rs index 8fb5d192e48d..fe4d7be8a3d9 100644 --- a/gtk4/src/auto/text_child_anchor.rs +++ b/gtk4/src/auto/text_child_anchor.rs @@ -24,8 +24,8 @@ impl TextChildAnchor { unsafe { from_glib_full(ffi::gtk_text_child_anchor_new()) } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gtk_text_child_anchor_new_with_replacement")] #[doc(alias = "new_with_replacement")] pub fn with_replacement(character: &str) -> TextChildAnchor { diff --git a/gtk4/src/auto/text_tag.rs b/gtk4/src/auto/text_tag.rs index fe7506f61f72..5f53a351c9c7 100644 --- a/gtk4/src/auto/text_tag.rs +++ b/gtk4/src/auto/text_tag.rs @@ -289,16 +289,16 @@ impl TextTagBuilder { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn line_height(self, line_height: f32) -> Self { Self { builder: self.builder.property("line-height", line_height), } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn line_height_set(self, line_height_set: bool) -> Self { Self { builder: self.builder.property("line-height-set", line_height_set), @@ -445,16 +445,16 @@ impl TextTagBuilder { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn sentence(self, sentence: bool) -> Self { Self { builder: self.builder.property("sentence", sentence), } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn sentence_set(self, sentence_set: bool) -> Self { Self { builder: self.builder.property("sentence-set", sentence_set), @@ -557,16 +557,16 @@ impl TextTagBuilder { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn text_transform(self, text_transform: pango::TextTransform) -> Self { Self { builder: self.builder.property("text-transform", text_transform), } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn text_transform_set(self, text_transform_set: bool) -> Self { Self { builder: self @@ -625,16 +625,16 @@ impl TextTagBuilder { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn word(self, word: bool) -> Self { Self { builder: self.builder.property("word", word), } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn word_set(self, word_set: bool) -> Self { Self { builder: self.builder.property("word-set", word_set), @@ -817,18 +817,18 @@ pub trait TextTagExt: 'static { #[doc(alias = "letter-spacing-set")] fn is_letter_spacing_set(&self) -> bool; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "line-height")] fn line_height(&self) -> f32; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "line-height")] fn set_line_height(&self, line_height: f32); - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "line-height-set")] fn is_line_height_set(&self) -> bool; @@ -912,16 +912,16 @@ pub trait TextTagExt: 'static { #[doc(alias = "scale-set")] fn is_scale_set(&self) -> bool; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn is_sentence(&self) -> bool; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn set_sentence(&self, sentence: bool); - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "sentence-set")] fn is_sentence_set(&self) -> bool; @@ -984,18 +984,18 @@ pub trait TextTagExt: 'static { #[doc(alias = "tabs-set")] fn is_tabs_set(&self) -> bool; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "text-transform")] fn text_transform(&self) -> pango::TextTransform; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "text-transform")] fn set_text_transform(&self, text_transform: pango::TextTransform); - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "text-transform-set")] fn is_text_transform_set(&self) -> bool; @@ -1029,16 +1029,16 @@ pub trait TextTagExt: 'static { #[doc(alias = "weight-set")] fn is_weight_set(&self) -> bool; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn is_word(&self) -> bool; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn set_word(&self, word: bool); - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "word-set")] fn is_word_set(&self) -> bool; @@ -1165,13 +1165,13 @@ pub trait TextTagExt: 'static { #[doc(alias = "letter-spacing-set")] fn connect_letter_spacing_set_notify(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "line-height")] fn connect_line_height_notify(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "line-height-set")] fn connect_line_height_set_notify(&self, f: F) -> SignalHandlerId; @@ -1247,13 +1247,13 @@ pub trait TextTagExt: 'static { #[doc(alias = "scale-set")] fn connect_scale_set_notify(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "sentence")] fn connect_sentence_notify(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "sentence-set")] fn connect_sentence_set_notify(&self, f: F) -> SignalHandlerId; @@ -1305,13 +1305,13 @@ pub trait TextTagExt: 'static { #[doc(alias = "tabs-set")] fn connect_tabs_set_notify(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "text-transform")] fn connect_text_transform_notify(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "text-transform-set")] fn connect_text_transform_set_notify(&self, f: F) -> SignalHandlerId; @@ -1339,13 +1339,13 @@ pub trait TextTagExt: 'static { #[doc(alias = "weight-set")] fn connect_weight_set_notify(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "word")] fn connect_word_notify(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "word-set")] fn connect_word_set_notify(&self, f: F) -> SignalHandlerId; @@ -1597,20 +1597,20 @@ impl> TextTagExt for O { glib::ObjectExt::property(self.as_ref(), "letter-spacing-set") } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn line_height(&self) -> f32 { glib::ObjectExt::property(self.as_ref(), "line-height") } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn set_line_height(&self, line_height: f32) { glib::ObjectExt::set_property(self.as_ref(), "line-height", line_height) } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn is_line_height_set(&self) -> bool { glib::ObjectExt::property(self.as_ref(), "line-height-set") } @@ -1735,20 +1735,20 @@ impl> TextTagExt for O { glib::ObjectExt::property(self.as_ref(), "scale-set") } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn is_sentence(&self) -> bool { glib::ObjectExt::property(self.as_ref(), "sentence") } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn set_sentence(&self, sentence: bool) { glib::ObjectExt::set_property(self.as_ref(), "sentence", sentence) } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn is_sentence_set(&self) -> bool { glib::ObjectExt::property(self.as_ref(), "sentence-set") } @@ -1845,20 +1845,20 @@ impl> TextTagExt for O { glib::ObjectExt::property(self.as_ref(), "tabs-set") } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn text_transform(&self) -> pango::TextTransform { glib::ObjectExt::property(self.as_ref(), "text-transform") } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn set_text_transform(&self, text_transform: pango::TextTransform) { glib::ObjectExt::set_property(self.as_ref(), "text-transform", text_transform) } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn is_text_transform_set(&self) -> bool { glib::ObjectExt::property(self.as_ref(), "text-transform-set") } @@ -1911,20 +1911,20 @@ impl> TextTagExt for O { glib::ObjectExt::property(self.as_ref(), "weight-set") } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn is_word(&self) -> bool { glib::ObjectExt::property(self.as_ref(), "word") } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn set_word(&self, word: bool) { glib::ObjectExt::set_property(self.as_ref(), "word", word) } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn is_word_set(&self) -> bool { glib::ObjectExt::property(self.as_ref(), "word-set") } @@ -2805,8 +2805,8 @@ impl> TextTagExt for O { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn connect_line_height_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_line_height_trampoline, F: Fn(&P) + 'static>( this: *mut ffi::GtkTextTag, @@ -2829,8 +2829,8 @@ impl> TextTagExt for O { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn connect_line_height_set_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_line_height_set_trampoline< P: IsA, @@ -3331,8 +3331,8 @@ impl> TextTagExt for O { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn connect_sentence_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_sentence_trampoline, F: Fn(&P) + 'static>( this: *mut ffi::GtkTextTag, @@ -3355,8 +3355,8 @@ impl> TextTagExt for O { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn connect_sentence_set_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_sentence_set_trampoline< P: IsA, @@ -3730,8 +3730,8 @@ impl> TextTagExt for O { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn connect_text_transform_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_text_transform_trampoline< P: IsA, @@ -3757,8 +3757,8 @@ impl> TextTagExt for O { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn connect_text_transform_set_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_text_transform_set_trampoline< P: IsA, @@ -3969,8 +3969,8 @@ impl> TextTagExt for O { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn connect_word_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_word_trampoline, F: Fn(&P) + 'static>( this: *mut ffi::GtkTextTag, @@ -3993,8 +3993,8 @@ impl> TextTagExt for O { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn connect_word_set_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_word_set_trampoline, F: Fn(&P) + 'static>( this: *mut ffi::GtkTextTag, diff --git a/gtk4/src/auto/text_view.rs b/gtk4/src/auto/text_view.rs index c1ca66718169..8491439b804a 100644 --- a/gtk4/src/auto/text_view.rs +++ b/gtk4/src/auto/text_view.rs @@ -529,8 +529,8 @@ pub trait TextViewExt: 'static { #[doc(alias = "get_line_yrange")] fn line_yrange(&self, iter: &TextIter) -> (i32, i32); - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "gtk_text_view_get_ltr_context")] #[doc(alias = "get_ltr_context")] fn ltr_context(&self) -> pango::Context; @@ -559,8 +559,8 @@ pub trait TextViewExt: 'static { #[doc(alias = "get_right_margin")] fn right_margin(&self) -> i32; - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] #[doc(alias = "gtk_text_view_get_rtl_context")] #[doc(alias = "get_rtl_context")] fn rtl_context(&self) -> pango::Context; @@ -1114,8 +1114,8 @@ impl> TextViewExt for O { } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] fn ltr_context(&self) -> pango::Context { unsafe { from_glib_none(ffi::gtk_text_view_get_ltr_context( @@ -1156,8 +1156,8 @@ impl> TextViewExt for O { unsafe { ffi::gtk_text_view_get_right_margin(self.as_ref().to_glib_none().0) } } - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] fn rtl_context(&self) -> pango::Context { unsafe { from_glib_none(ffi::gtk_text_view_get_rtl_context( diff --git a/gtk4/src/auto/tree_expander.rs b/gtk4/src/auto/tree_expander.rs index 6cefd0bd6a28..2fc2d9de4d4b 100644 --- a/gtk4/src/auto/tree_expander.rs +++ b/gtk4/src/auto/tree_expander.rs @@ -43,8 +43,8 @@ impl TreeExpander { unsafe { from_glib_none(ffi::gtk_tree_expander_get_child(self.to_glib_none().0)) } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_tree_expander_get_hide_expander")] #[doc(alias = "get_hide_expander")] pub fn hides_expander(&self) -> bool { @@ -55,8 +55,8 @@ impl TreeExpander { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_tree_expander_get_indent_for_depth")] #[doc(alias = "get_indent_for_depth")] pub fn is_indent_for_depth(&self) -> bool { @@ -67,8 +67,8 @@ impl TreeExpander { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gtk_tree_expander_get_indent_for_icon")] #[doc(alias = "get_indent_for_icon")] pub fn is_indent_for_icon(&self) -> bool { @@ -101,8 +101,8 @@ impl TreeExpander { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_tree_expander_set_hide_expander")] pub fn set_hide_expander(&self, hide_expander: bool) { unsafe { @@ -113,8 +113,8 @@ impl TreeExpander { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_tree_expander_set_indent_for_depth")] pub fn set_indent_for_depth(&self, indent_for_depth: bool) { unsafe { @@ -125,8 +125,8 @@ impl TreeExpander { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gtk_tree_expander_set_indent_for_icon")] pub fn set_indent_for_icon(&self, indent_for_icon: bool) { unsafe { @@ -167,8 +167,8 @@ impl TreeExpander { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "hide-expander")] pub fn connect_hide_expander_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_hide_expander_trampoline( @@ -192,8 +192,8 @@ impl TreeExpander { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "indent-for-depth")] pub fn connect_indent_for_depth_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_indent_for_depth_trampoline( @@ -217,8 +217,8 @@ impl TreeExpander { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "indent-for-icon")] pub fn connect_indent_for_icon_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_indent_for_icon_trampoline( @@ -317,24 +317,24 @@ impl TreeExpanderBuilder { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn hide_expander(self, hide_expander: bool) -> Self { Self { builder: self.builder.property("hide-expander", hide_expander), } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn indent_for_depth(self, indent_for_depth: bool) -> Self { Self { builder: self.builder.property("indent-for-depth", indent_for_depth), } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn indent_for_icon(self, indent_for_icon: bool) -> Self { Self { builder: self.builder.property("indent-for-icon", indent_for_icon), diff --git a/gtk4/src/auto/uri_launcher.rs b/gtk4/src/auto/uri_launcher.rs index 5d141306ead7..39bcc7224b07 100644 --- a/gtk4/src/auto/uri_launcher.rs +++ b/gtk4/src/auto/uri_launcher.rs @@ -111,8 +111,8 @@ impl UriLauncher { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "uri")] pub fn connect_uri_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_uri_trampoline( @@ -137,8 +137,8 @@ impl UriLauncher { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] impl Default for UriLauncher { fn default() -> Self { glib::object::Object::new::() @@ -161,8 +161,8 @@ impl UriLauncherBuilder { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn uri(self, uri: impl Into) -> Self { Self { builder: self.builder.property("uri", uri.into()), diff --git a/gtk4/src/auto/versions.txt b/gtk4/src/auto/versions.txt index bc0b4f74d727..c4950229ce37 100644 --- a/gtk4/src/auto/versions.txt +++ b/gtk4/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 8a280cee2cbb) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) diff --git a/gtk4/src/auto/volume_button.rs b/gtk4/src/auto/volume_button.rs index a1d8d69ba7c2..3c7d8c02173c 100644 --- a/gtk4/src/auto/volume_button.rs +++ b/gtk4/src/auto/volume_button.rs @@ -3,8 +3,8 @@ // DO NOT EDIT #![allow(deprecated)] -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] use crate::AccessibleRange; use crate::{ Accessible, AccessibleRole, Adjustment, Align, Buildable, ConstraintTarget, LayoutManager, @@ -17,8 +17,8 @@ use glib::{ }; use std::{boxed::Box as Box_, fmt, mem::transmute}; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] glib::wrapper! { #[doc(alias = "GtkVolumeButton")] pub struct VolumeButton(Object) @extends ScaleButton, Widget, @implements Accessible, Buildable, ConstraintTarget, AccessibleRange, Orientable; @@ -28,7 +28,7 @@ glib::wrapper! { } } -#[cfg(not(any(feature = "v4_10", feature = "dox")))] +#[cfg(not(any(feature = "v4_10", docsrs)))] glib::wrapper! { #[doc(alias = "GtkVolumeButton")] pub struct VolumeButton(Object) @extends ScaleButton, Widget, @implements Accessible, Buildable, ConstraintTarget, Orientable; diff --git a/gtk4/src/auto/widget.rs b/gtk4/src/auto/widget.rs index 79e44a895741..27857a375d55 100644 --- a/gtk4/src/auto/widget.rs +++ b/gtk4/src/auto/widget.rs @@ -157,8 +157,8 @@ pub trait WidgetExt: 'static { #[doc(alias = "get_clipboard")] fn clipboard(&self) -> gdk::Clipboard; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_widget_get_color")] #[doc(alias = "get_color")] fn color(&self) -> gdk::RGBA; @@ -1046,8 +1046,8 @@ impl> WidgetExt for O { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] fn color(&self) -> gdk::RGBA { unsafe { let mut color = gdk::RGBA::uninitialized(); diff --git a/gtk4/src/auto/window.rs b/gtk4/src/auto/window.rs index 45cdafba87d6..dea1bf496153 100644 --- a/gtk4/src/auto/window.rs +++ b/gtk4/src/auto/window.rs @@ -186,8 +186,8 @@ impl WindowBuilder { } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn handle_menubar_accel(self, handle_menubar_accel: bool) -> Self { Self { builder: self @@ -246,8 +246,8 @@ impl WindowBuilder { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn titlebar(self, titlebar: &impl IsA) -> Self { Self { builder: self.builder.property("titlebar", titlebar.clone().upcast()), @@ -507,8 +507,8 @@ pub trait GtkWindowExt: 'static { #[doc(alias = "get_group")] fn group(&self) -> WindowGroup; - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] #[doc(alias = "gtk_window_get_handle_menubar_accel")] #[doc(alias = "get_handle_menubar_accel")] fn is_handle_menubar_accel(&self) -> bool; @@ -600,8 +600,8 @@ pub trait GtkWindowExt: 'static { #[doc(alias = "gtk_window_set_focus_visible")] fn set_focus_visible(&self, setting: bool); - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] #[doc(alias = "gtk_window_set_handle_menubar_accel")] fn set_handle_menubar_accel(&self, handle_menubar_accel: bool); @@ -729,8 +729,8 @@ pub trait GtkWindowExt: 'static { #[doc(alias = "fullscreened")] fn connect_fullscreened_notify(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] #[doc(alias = "handle-menubar-accel")] fn connect_handle_menubar_accel_notify(&self, f: F) -> SignalHandlerId; @@ -761,8 +761,8 @@ pub trait GtkWindowExt: 'static { #[doc(alias = "title")] fn connect_title_notify(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "titlebar")] fn connect_titlebar_notify(&self, f: F) -> SignalHandlerId; @@ -871,8 +871,8 @@ impl> GtkWindowExt for O { unsafe { from_glib_none(ffi::gtk_window_get_group(self.as_ref().to_glib_none().0)) } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] fn is_handle_menubar_accel(&self) -> bool { unsafe { from_glib(ffi::gtk_window_get_handle_menubar_accel( @@ -1055,8 +1055,8 @@ impl> GtkWindowExt for O { } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] fn set_handle_menubar_accel(&self, handle_menubar_accel: bool) { unsafe { ffi::gtk_window_set_handle_menubar_accel( @@ -1599,8 +1599,8 @@ impl> GtkWindowExt for O { } } - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] fn connect_handle_menubar_accel_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_handle_menubar_accel_trampoline< P: IsA, @@ -1830,8 +1830,8 @@ impl> GtkWindowExt for O { } } - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] fn connect_titlebar_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_titlebar_trampoline, F: Fn(&P) + 'static>( this: *mut ffi::GtkWindow, diff --git a/gtk4/src/expression_watch.rs b/gtk4/src/expression_watch.rs index 6dcf43b5b5e1..b36270cae4d0 100644 --- a/gtk4/src/expression_watch.rs +++ b/gtk4/src/expression_watch.rs @@ -47,7 +47,7 @@ impl ExpressionWatch { } } -#[cfg(any(feature = "v4_2", feature = "dox"))] +#[cfg(any(feature = "v4_2", docsrs))] impl glib::StaticType for ExpressionWatch { #[doc(alias = "gtk_expression_watch_get_type")] #[inline] diff --git a/gtk4/src/lib.rs b/gtk4/src/lib.rs index bc8797f5b92e..29e86c9e1d36 100644 --- a/gtk4/src/lib.rs +++ b/gtk4/src/lib.rs @@ -1,6 +1,6 @@ // Take a look at the license at the top of the repository in the LICENSE file. -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #![allow(deprecated)] #![doc = include_str!("../README.md")] @@ -142,8 +142,8 @@ mod file_chooser; mod file_chooser_dialog; mod flow_box; mod font_chooser; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] mod font_dialog; mod functions; mod gesture_stylus; @@ -166,8 +166,8 @@ mod overlay; mod pad_action_entry; mod page_range; mod param_spec_expression; -#[cfg(any(target_os = "linux", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] +#[cfg(any(target_os = "linux", docsrs))] +#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))] mod print_job; mod print_operation; mod print_settings; diff --git a/gtk4/src/signal_list_item_factory.rs b/gtk4/src/signal_list_item_factory.rs index 404fcd362801..f951feabbd58 100644 --- a/gtk4/src/signal_list_item_factory.rs +++ b/gtk4/src/signal_list_item_factory.rs @@ -1,21 +1,21 @@ // Take a look at the license at the top of the repository in the LICENSE file. -#[cfg(not(any(feature = "v4_8", feature = "dox")))] +#[cfg(not(any(feature = "v4_8", docsrs)))] use crate::{prelude::*, ListItem}; use crate::SignalListItemFactory; -#[cfg(not(any(feature = "v4_8", feature = "dox")))] +#[cfg(not(any(feature = "v4_8", docsrs)))] use glib::{ signal::{connect_raw, SignalHandlerId}, translate::*, }; -#[cfg(not(any(feature = "v4_8", feature = "dox")))] +#[cfg(not(any(feature = "v4_8", docsrs)))] use std::{boxed::Box as Box_, mem::transmute}; impl SignalListItemFactory { #[doc(alias = "bind")] - #[cfg(not(any(feature = "v4_8", feature = "dox")))] + #[cfg(not(any(feature = "v4_8", docsrs)))] pub fn connect_bind(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn bind_trampoline( this: *mut ffi::GtkSignalListItemFactory, @@ -39,7 +39,7 @@ impl SignalListItemFactory { } #[doc(alias = "setup")] - #[cfg(not(any(feature = "v4_8", feature = "dox")))] + #[cfg(not(any(feature = "v4_8", docsrs)))] pub fn connect_setup(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn setup_trampoline< F: Fn(&SignalListItemFactory, &ListItem) + 'static, @@ -65,7 +65,7 @@ impl SignalListItemFactory { } #[doc(alias = "teardown")] - #[cfg(not(any(feature = "v4_8", feature = "dox")))] + #[cfg(not(any(feature = "v4_8", docsrs)))] pub fn connect_teardown(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn teardown_trampoline< F: Fn(&SignalListItemFactory, &ListItem) + 'static, @@ -91,7 +91,7 @@ impl SignalListItemFactory { } #[doc(alias = "unbind")] - #[cfg(not(any(feature = "v4_8", feature = "dox")))] + #[cfg(not(any(feature = "v4_8", docsrs)))] pub fn connect_unbind(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn unbind_trampoline< F: Fn(&SignalListItemFactory, &ListItem) + 'static, diff --git a/gtk4/src/subclass/check_button.rs b/gtk4/src/subclass/check_button.rs index 0ac3c049d7c4..4df99ee21bec 100644 --- a/gtk4/src/subclass/check_button.rs +++ b/gtk4/src/subclass/check_button.rs @@ -11,7 +11,7 @@ pub trait CheckButtonImpl: CheckButtonImplExt + WidgetImpl { self.parent_toggled() } - #[cfg(any(feature = "v4_2", feature = "dox"))] + #[cfg(any(feature = "v4_2", docsrs))] fn activate(&self) { self.parent_activate() } @@ -19,7 +19,7 @@ pub trait CheckButtonImpl: CheckButtonImplExt + WidgetImpl { pub trait CheckButtonImplExt: ObjectSubclass { fn parent_toggled(&self); - #[cfg(any(feature = "v4_2", feature = "dox"))] + #[cfg(any(feature = "v4_2", docsrs))] fn parent_activate(&self); } @@ -34,7 +34,7 @@ impl CheckButtonImplExt for T { } } - #[cfg(any(feature = "v4_2", feature = "dox"))] + #[cfg(any(feature = "v4_2", docsrs))] fn parent_activate(&self) { unsafe { let data = T::type_data(); @@ -53,7 +53,7 @@ unsafe impl IsSubclassable for CheckButton { let klass = class.as_mut(); klass.toggled = Some(check_button_toggled::); - #[cfg(any(feature = "v4_2", feature = "dox"))] + #[cfg(any(feature = "v4_2", docsrs))] { klass.activate = Some(check_button_activate::); }; @@ -67,7 +67,7 @@ unsafe extern "C" fn check_button_toggled(ptr: *mut ffi::Gtk imp.toggled() } -#[cfg(any(feature = "v4_2", feature = "dox"))] +#[cfg(any(feature = "v4_2", docsrs))] unsafe extern "C" fn check_button_activate(ptr: *mut ffi::GtkCheckButton) { let instance = &*(ptr as *mut T::Instance); let imp = instance.imp(); diff --git a/gtk4/src/subclass/combo_box.rs b/gtk4/src/subclass/combo_box.rs index e8083e340873..57f56c7a4c66 100644 --- a/gtk4/src/subclass/combo_box.rs +++ b/gtk4/src/subclass/combo_box.rs @@ -9,7 +9,7 @@ use glib::{translate::*, GString}; #[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")] #[allow(deprecated)] pub trait ComboBoxImpl: ComboBoxImplExt + WidgetImpl { - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] fn activate(&self) { self.parent_activate() } @@ -24,7 +24,7 @@ pub trait ComboBoxImpl: ComboBoxImplExt + WidgetImpl { #[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")] #[allow(deprecated)] pub trait ComboBoxImplExt: ObjectSubclass { - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] fn parent_activate(&self); fn parent_changed(&self); @@ -33,7 +33,7 @@ pub trait ComboBoxImplExt: ObjectSubclass { } impl ComboBoxImplExt for T { - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] fn parent_activate(&self) { unsafe { let data = T::type_data(); @@ -74,7 +74,7 @@ unsafe impl IsSubclassable for ComboBox { let klass = class.as_mut(); klass.changed = Some(combo_box_changed::); klass.format_entry_text = Some(combo_box_format_entry_text::); - #[cfg(any(feature = "v4_6", feature = "dox"))] + #[cfg(any(feature = "v4_6", docsrs))] { klass.activate = Some(combo_box_activate::); }; @@ -99,7 +99,7 @@ unsafe extern "C" fn combo_box_format_entry_text( imp.format_entry_text(path.as_str()).into_glib_ptr() } -#[cfg(any(feature = "v4_6", feature = "dox"))] +#[cfg(any(feature = "v4_6", docsrs))] unsafe extern "C" fn combo_box_activate(ptr: *mut ffi::GtkComboBox) { let instance = &*(ptr as *mut T::Instance); let imp = instance.imp(); diff --git a/gtk4/src/subclass/im_context.rs b/gtk4/src/subclass/im_context.rs index 25e9ce0145c1..e06bac48f801 100644 --- a/gtk4/src/subclass/im_context.rs +++ b/gtk4/src/subclass/im_context.rs @@ -61,7 +61,7 @@ pub trait IMContextImpl: IMContextImplExt + ObjectImpl { fn set_use_preedit(&self, use_preedit: bool) { self.parent_set_use_preedit(use_preedit) } - #[cfg(any(feature = "v4_10", feature = "dox"))] + #[cfg(any(feature = "v4_10", docsrs))] fn activate_osk(&self) { self.parent_activate_osk() } @@ -87,7 +87,7 @@ pub trait IMContextImplExt: ObjectSubclass { #[allow(deprecated)] fn parent_set_surrounding(&self, text: &str, cursor_index: i32); fn parent_set_use_preedit(&self, use_preedit: bool); - #[cfg(any(feature = "v4_10", feature = "dox"))] + #[cfg(any(feature = "v4_10", docsrs))] fn parent_activate_osk(&self); } @@ -313,7 +313,7 @@ impl IMContextImplExt for T { } } - #[cfg(any(feature = "v4_10", feature = "dox"))] + #[cfg(any(feature = "v4_10", docsrs))] fn parent_activate_osk(&self) { unsafe { let data = T::type_data(); @@ -348,7 +348,7 @@ unsafe impl IsSubclassable for IMContext { klass.set_cursor_location = Some(im_context_set_cursor_location::); klass.set_surrounding = Some(im_context_set_surrounding::); klass.set_use_preedit = Some(im_context_set_use_preedit::); - #[cfg(any(feature = "v4_10", feature = "dox"))] + #[cfg(any(feature = "v4_10", docsrs))] { klass.activate_osk = Some(im_context_activate_osk::); }; @@ -525,7 +525,7 @@ unsafe extern "C" fn im_context_set_use_preedit( imp.set_use_preedit(from_glib(use_preedit)) } -#[cfg(any(feature = "v4_10", feature = "dox"))] +#[cfg(any(feature = "v4_10", docsrs))] unsafe extern "C" fn im_context_activate_osk(ptr: *mut ffi::GtkIMContext) { let instance = &*(ptr as *mut T::Instance); let imp = instance.imp(); diff --git a/gtk4/src/subclass/mod.rs b/gtk4/src/subclass/mod.rs index 76bfec57c060..8365a880b919 100644 --- a/gtk4/src/subclass/mod.rs +++ b/gtk4/src/subclass/mod.rs @@ -14,11 +14,11 @@ impl Drop for PtrHolder { } } -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub mod accessible; -#[cfg(any(feature = "v4_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] +#[cfg(any(feature = "v4_10", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub mod accessible_range; pub mod actionable; pub mod adjustment; @@ -72,8 +72,8 @@ pub mod selection_model; pub mod shortcut_manager; pub mod sorter; pub mod style_context; -#[cfg(any(feature = "v4_6", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] +#[cfg(any(feature = "v4_6", docsrs))] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub mod symbolic_paintable; pub mod text_buffer; pub mod text_view; @@ -95,11 +95,11 @@ pub mod prelude { #[doc(hidden)] pub use glib::subclass::prelude::*; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use super::accessible::{AccessibleImpl, AccessibleImplExt}; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub use super::accessible_range::{AccessibleRangeImpl, AccessibleRangeImplExt}; pub use super::actionable::{ActionableImpl, ActionableImplExt}; pub use super::adjustment::{AdjustmentImpl, AdjustmentImplExt}; @@ -153,8 +153,8 @@ pub mod prelude { pub use super::shortcut_manager::{ShortcutManagerImpl, ShortcutManagerImplExt}; pub use super::sorter::{SorterImpl, SorterImplExt}; pub use super::style_context::{StyleContextImpl, StyleContextImplExt}; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub use super::symbolic_paintable::{SymbolicPaintableImpl, SymbolicPaintableImplExt}; pub use super::text_buffer::{TextBufferImpl, TextBufferImplExt}; pub use super::text_view::{TextViewImpl, TextViewImplExt}; diff --git a/gtk4/src/subclass/widget.rs b/gtk4/src/subclass/widget.rs index e1320b68f1f1..7eadbbb71555 100644 --- a/gtk4/src/subclass/widget.rs +++ b/gtk4/src/subclass/widget.rs @@ -1434,8 +1434,8 @@ where } pub trait CompositeTemplateDisposeExt { - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] fn dispose_template(&self); } @@ -1444,8 +1444,8 @@ where T: WidgetImpl + CompositeTemplate, ::Type: IsA, { - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] fn dispose_template(&self) { unsafe { ffi::gtk_widget_dispose_template( diff --git a/gtk4/sys/Cargo.toml b/gtk4/sys/Cargo.toml index 58822c3b79b1..cfe34fe8a433 100644 --- a/gtk4/sys/Cargo.toml +++ b/gtk4/sys/Cargo.toml @@ -14,7 +14,7 @@ version = "0.7.0" rust-version = "1.64" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gtk4] name = "gtk4" @@ -42,7 +42,6 @@ version = "4.11" name = "gtk4_sys" [features] -dox = ["glib/dox", "gobject/dox", "gio/dox", "gdk_pixbuf/dox", "pango/dox", "cairo/dox", "graphene/dox", "gdk/dox", "gsk/dox"] v4_2 = [] v4_4 = ["v4_2"] v4_6 = ["v4_4"] diff --git a/gtk4/sys/build.rs b/gtk4/sys/build.rs index 8d181dad8caa..e98844f2d792 100644 --- a/gtk4/sys/build.rs +++ b/gtk4/sys/build.rs @@ -2,13 +2,13 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gtk4/sys/src/lib.rs b/gtk4/sys/src/lib.rs index 7230a5de8230..fa0b4f8549ee 100644 --- a/gtk4/sys/src/lib.rs +++ b/gtk4/sys/src/lib.rs @@ -9,7 +9,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ @@ -9148,8 +9148,8 @@ extern "C" { //========================================================================= // GtkAccessiblePlatformState //========================================================================= - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_accessible_platform_state_get_type() -> GType; //========================================================================= @@ -9240,8 +9240,8 @@ extern "C" { //========================================================================= // GtkCollation //========================================================================= - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_collation_get_type() -> GType; //========================================================================= @@ -9268,8 +9268,8 @@ extern "C" { //========================================================================= // GtkContentFit //========================================================================= - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_content_fit_get_type() -> GType; //========================================================================= @@ -9285,11 +9285,11 @@ extern "C" { //========================================================================= // GtkDialogError //========================================================================= - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_dialog_error_get_type() -> GType; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_dialog_error_quark() -> glib::GQuark; //========================================================================= @@ -9336,8 +9336,8 @@ extern "C" { //========================================================================= // GtkFontLevel //========================================================================= - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_level_get_type() -> GType; //========================================================================= @@ -9369,8 +9369,8 @@ extern "C" { //========================================================================= // GtkInscriptionOverflow //========================================================================= - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_overflow_get_type() -> GType; //========================================================================= @@ -9391,8 +9391,8 @@ extern "C" { //========================================================================= // GtkListTabBehavior //========================================================================= - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_list_tab_behavior_get_type() -> GType; //========================================================================= @@ -9408,8 +9408,8 @@ extern "C" { //========================================================================= // GtkNaturalWrapMode //========================================================================= - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gtk_natural_wrap_mode_get_type() -> GType; //========================================================================= @@ -9426,8 +9426,8 @@ extern "C" { // GtkOrdering //========================================================================= pub fn gtk_ordering_get_type() -> GType; - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn gtk_ordering_from_cmpfunc(cmpfunc_result: c_int) -> GtkOrdering; //========================================================================= @@ -9620,8 +9620,8 @@ extern "C" { //========================================================================= // GtkSymbolicColor //========================================================================= - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gtk_symbolic_color_get_type() -> GType; //========================================================================= @@ -9909,8 +9909,8 @@ extern "C" { //========================================================================= // GtkExpressionWatch //========================================================================= - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn gtk_expression_watch_get_type() -> GType; pub fn gtk_expression_watch_evaluate( watch: *mut GtkExpressionWatch, @@ -10528,14 +10528,14 @@ extern "C" { //========================================================================= // GtkAlertDialog //========================================================================= - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_alert_dialog_get_type() -> GType; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_alert_dialog_new(format: *const c_char, ...) -> *mut GtkAlertDialog; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_alert_dialog_choose( self_: *mut GtkAlertDialog, parent: *mut GtkWindow, @@ -10543,51 +10543,51 @@ extern "C" { callback: gio::GAsyncReadyCallback, user_data: gpointer, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_alert_dialog_choose_finish( self_: *mut GtkAlertDialog, result: *mut gio::GAsyncResult, error: *mut *mut glib::GError, ) -> c_int; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_alert_dialog_get_buttons(self_: *mut GtkAlertDialog) -> *const *const c_char; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_alert_dialog_get_cancel_button(self_: *mut GtkAlertDialog) -> c_int; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_alert_dialog_get_default_button(self_: *mut GtkAlertDialog) -> c_int; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_alert_dialog_get_detail(self_: *mut GtkAlertDialog) -> *const c_char; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_alert_dialog_get_message(self_: *mut GtkAlertDialog) -> *const c_char; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_alert_dialog_get_modal(self_: *mut GtkAlertDialog) -> gboolean; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_alert_dialog_set_buttons(self_: *mut GtkAlertDialog, labels: *const *const c_char); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_alert_dialog_set_cancel_button(self_: *mut GtkAlertDialog, button: c_int); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_alert_dialog_set_default_button(self_: *mut GtkAlertDialog, button: c_int); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_alert_dialog_set_detail(self_: *mut GtkAlertDialog, detail: *const c_char); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_alert_dialog_set_message(self_: *mut GtkAlertDialog, message: *const c_char); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_alert_dialog_set_modal(self_: *mut GtkAlertDialog, modal: gboolean); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_alert_dialog_show(self_: *mut GtkAlertDialog, parent: *mut GtkWindow); //========================================================================= @@ -11672,15 +11672,15 @@ extern "C" { pub fn gtk_check_button_new_with_label(label: *const c_char) -> *mut GtkWidget; pub fn gtk_check_button_new_with_mnemonic(label: *const c_char) -> *mut GtkWidget; pub fn gtk_check_button_get_active(self_: *mut GtkCheckButton) -> gboolean; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_check_button_get_child(button: *mut GtkCheckButton) -> *mut GtkWidget; pub fn gtk_check_button_get_inconsistent(check_button: *mut GtkCheckButton) -> gboolean; pub fn gtk_check_button_get_label(self_: *mut GtkCheckButton) -> *const c_char; pub fn gtk_check_button_get_use_underline(self_: *mut GtkCheckButton) -> gboolean; pub fn gtk_check_button_set_active(self_: *mut GtkCheckButton, setting: gboolean); - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_check_button_set_child(button: *mut GtkCheckButton, child: *mut GtkWidget); pub fn gtk_check_button_set_group(self_: *mut GtkCheckButton, group: *mut GtkCheckButton); pub fn gtk_check_button_set_inconsistent( @@ -11730,14 +11730,14 @@ extern "C" { //========================================================================= // GtkColorDialog //========================================================================= - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_color_dialog_get_type() -> GType; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_color_dialog_new() -> *mut GtkColorDialog; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_color_dialog_choose_rgba( self_: *mut GtkColorDialog, parent: *mut GtkWindow, @@ -11746,59 +11746,59 @@ extern "C" { callback: gio::GAsyncReadyCallback, user_data: gpointer, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_color_dialog_choose_rgba_finish( self_: *mut GtkColorDialog, result: *mut gio::GAsyncResult, error: *mut *mut glib::GError, ) -> *mut gdk::GdkRGBA; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_color_dialog_get_modal(self_: *mut GtkColorDialog) -> gboolean; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_color_dialog_get_title(self_: *mut GtkColorDialog) -> *const c_char; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_color_dialog_get_with_alpha(self_: *mut GtkColorDialog) -> gboolean; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_color_dialog_set_modal(self_: *mut GtkColorDialog, modal: gboolean); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_color_dialog_set_title(self_: *mut GtkColorDialog, title: *const c_char); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_color_dialog_set_with_alpha(self_: *mut GtkColorDialog, with_alpha: gboolean); //========================================================================= // GtkColorDialogButton //========================================================================= - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_color_dialog_button_get_type() -> GType; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_color_dialog_button_new(dialog: *mut GtkColorDialog) -> *mut GtkWidget; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_color_dialog_button_get_dialog( self_: *mut GtkColorDialogButton, ) -> *mut GtkColorDialog; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_color_dialog_button_get_rgba( self_: *mut GtkColorDialogButton, ) -> *const gdk::GdkRGBA; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_color_dialog_button_set_dialog( self_: *mut GtkColorDialogButton, dialog: *mut GtkColorDialog, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_color_dialog_button_set_rgba( self_: *mut GtkColorDialogButton, color: *const gdk::GdkRGBA, @@ -11817,15 +11817,15 @@ extern "C" { pub fn gtk_column_view_get_enable_rubberband(self_: *mut GtkColumnView) -> gboolean; pub fn gtk_column_view_get_model(self_: *mut GtkColumnView) -> *mut GtkSelectionModel; pub fn gtk_column_view_get_reorderable(self_: *mut GtkColumnView) -> gboolean; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_column_view_get_row_factory(self_: *mut GtkColumnView) -> *mut GtkListItemFactory; pub fn gtk_column_view_get_show_column_separators(self_: *mut GtkColumnView) -> gboolean; pub fn gtk_column_view_get_show_row_separators(self_: *mut GtkColumnView) -> gboolean; pub fn gtk_column_view_get_single_click_activate(self_: *mut GtkColumnView) -> gboolean; pub fn gtk_column_view_get_sorter(self_: *mut GtkColumnView) -> *mut GtkSorter; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_column_view_get_tab_behavior(self_: *mut GtkColumnView) -> GtkListTabBehavior; pub fn gtk_column_view_insert_column( self_: *mut GtkColumnView, @@ -11842,8 +11842,8 @@ extern "C" { ); pub fn gtk_column_view_set_model(self_: *mut GtkColumnView, model: *mut GtkSelectionModel); pub fn gtk_column_view_set_reorderable(self_: *mut GtkColumnView, reorderable: gboolean); - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_column_view_set_row_factory( self_: *mut GtkColumnView, factory: *mut GtkListItemFactory, @@ -11860,8 +11860,8 @@ extern "C" { self_: *mut GtkColumnView, single_click_activate: gboolean, ); - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_column_view_set_tab_behavior( self_: *mut GtkColumnView, tab_behavior: GtkListTabBehavior, @@ -11875,29 +11875,29 @@ extern "C" { //========================================================================= // GtkColumnViewCell //========================================================================= - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_column_view_cell_get_type() -> GType; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_column_view_cell_get_child(self_: *mut GtkColumnViewCell) -> *mut GtkWidget; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_column_view_cell_get_focusable(self_: *mut GtkColumnViewCell) -> gboolean; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_column_view_cell_get_item(self_: *mut GtkColumnViewCell) -> *mut gobject::GObject; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_column_view_cell_get_position(self_: *mut GtkColumnViewCell) -> c_uint; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_column_view_cell_get_selected(self_: *mut GtkColumnViewCell) -> gboolean; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_column_view_cell_set_child(self_: *mut GtkColumnViewCell, child: *mut GtkWidget); - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_column_view_cell_set_focusable(self_: *mut GtkColumnViewCell, focusable: gboolean); //========================================================================= @@ -11919,8 +11919,8 @@ extern "C" { pub fn gtk_column_view_column_get_header_menu( self_: *mut GtkColumnViewColumn, ) -> *mut gio::GMenuModel; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_column_view_column_get_id(self_: *mut GtkColumnViewColumn) -> *const c_char; pub fn gtk_column_view_column_get_resizable(self_: *mut GtkColumnViewColumn) -> gboolean; pub fn gtk_column_view_column_get_sorter(self_: *mut GtkColumnViewColumn) -> *mut GtkSorter; @@ -11939,8 +11939,8 @@ extern "C" { self_: *mut GtkColumnViewColumn, menu: *mut gio::GMenuModel, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_column_view_column_set_id(self_: *mut GtkColumnViewColumn, id: *const c_char); pub fn gtk_column_view_column_set_resizable( self_: *mut GtkColumnViewColumn, @@ -11956,60 +11956,60 @@ extern "C" { //========================================================================= // GtkColumnViewRow //========================================================================= - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_column_view_row_get_type() -> GType; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_column_view_row_get_activatable(self_: *mut GtkColumnViewRow) -> gboolean; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_column_view_row_get_focusable(self_: *mut GtkColumnViewRow) -> gboolean; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_column_view_row_get_item(self_: *mut GtkColumnViewRow) -> *mut gobject::GObject; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_column_view_row_get_position(self_: *mut GtkColumnViewRow) -> c_uint; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_column_view_row_get_selectable(self_: *mut GtkColumnViewRow) -> gboolean; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_column_view_row_get_selected(self_: *mut GtkColumnViewRow) -> gboolean; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_column_view_row_set_activatable(self_: *mut GtkColumnViewRow, activatable: gboolean); - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_column_view_row_set_focusable(self_: *mut GtkColumnViewRow, focusable: gboolean); - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_column_view_row_set_selectable(self_: *mut GtkColumnViewRow, selectable: gboolean); //========================================================================= // GtkColumnViewSorter //========================================================================= - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_column_view_sorter_get_type() -> GType; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_column_view_sorter_get_n_sort_columns(self_: *mut GtkColumnViewSorter) -> c_uint; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_column_view_sorter_get_nth_sort_column( self_: *mut GtkColumnViewSorter, position: c_uint, sort_order: *mut GtkSortType, ) -> *mut GtkColumnViewColumn; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_column_view_sorter_get_primary_sort_column( self_: *mut GtkColumnViewSorter, ) -> *mut GtkColumnViewColumn; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_column_view_sorter_get_primary_sort_order( self_: *mut GtkColumnViewSorter, ) -> GtkSortType; @@ -12455,8 +12455,8 @@ extern "C" { pub fn gtk_drop_down_get_model(self_: *mut GtkDropDown) -> *mut gio::GListModel; pub fn gtk_drop_down_get_selected(self_: *mut GtkDropDown) -> c_uint; pub fn gtk_drop_down_get_selected_item(self_: *mut GtkDropDown) -> *mut gobject::GObject; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gtk_drop_down_get_show_arrow(self_: *mut GtkDropDown) -> gboolean; pub fn gtk_drop_down_set_enable_search(self_: *mut GtkDropDown, enable_search: gboolean); pub fn gtk_drop_down_set_expression(self_: *mut GtkDropDown, expression: *mut GtkExpression); @@ -12467,8 +12467,8 @@ extern "C" { ); pub fn gtk_drop_down_set_model(self_: *mut GtkDropDown, model: *mut gio::GListModel); pub fn gtk_drop_down_set_selected(self_: *mut GtkDropDown, position: c_uint); - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gtk_drop_down_set_show_arrow(self_: *mut GtkDropDown, show_arrow: gboolean); //========================================================================= @@ -12477,8 +12477,8 @@ extern "C" { pub fn gtk_drop_target_get_type() -> GType; pub fn gtk_drop_target_new(type_: GType, actions: gdk::GdkDragAction) -> *mut GtkDropTarget; pub fn gtk_drop_target_get_actions(self_: *mut GtkDropTarget) -> gdk::GdkDragAction; - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gtk_drop_target_get_current_drop(self_: *mut GtkDropTarget) -> *mut gdk::GdkDrop; pub fn gtk_drop_target_get_drop(self_: *mut GtkDropTarget) -> *mut gdk::GdkDrop; pub fn gtk_drop_target_get_formats(self_: *mut GtkDropTarget) -> *mut gdk::GdkContentFormats; @@ -12809,8 +12809,8 @@ extern "C" { controller: *mut GtkEventController, phase: GtkPropagationPhase, ); - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_event_controller_set_static_name( controller: *mut GtkEventController, name: *const c_char, @@ -12871,8 +12871,8 @@ extern "C" { pub fn gtk_event_controller_scroll_get_flags( scroll: *mut GtkEventControllerScroll, ) -> GtkEventControllerScrollFlags; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_event_controller_scroll_get_unit( scroll: *mut GtkEventControllerScroll, ) -> gdk::GdkScrollUnit; @@ -12982,38 +12982,38 @@ extern "C" { //========================================================================= // GtkFileDialog //========================================================================= - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_get_type() -> GType; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_new() -> *mut GtkFileDialog; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_get_accept_label(self_: *mut GtkFileDialog) -> *const c_char; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_get_default_filter(self_: *mut GtkFileDialog) -> *mut GtkFileFilter; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_get_filters(self_: *mut GtkFileDialog) -> *mut gio::GListModel; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_get_initial_file(self_: *mut GtkFileDialog) -> *mut gio::GFile; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_get_initial_folder(self_: *mut GtkFileDialog) -> *mut gio::GFile; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_get_initial_name(self_: *mut GtkFileDialog) -> *const c_char; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_get_modal(self_: *mut GtkFileDialog) -> gboolean; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_get_title(self_: *mut GtkFileDialog) -> *const c_char; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_open( self_: *mut GtkFileDialog, parent: *mut GtkWindow, @@ -13021,15 +13021,15 @@ extern "C" { callback: gio::GAsyncReadyCallback, user_data: gpointer, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_open_finish( self_: *mut GtkFileDialog, result: *mut gio::GAsyncResult, error: *mut *mut glib::GError, ) -> *mut gio::GFile; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_open_multiple( self_: *mut GtkFileDialog, parent: *mut GtkWindow, @@ -13037,15 +13037,15 @@ extern "C" { callback: gio::GAsyncReadyCallback, user_data: gpointer, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_open_multiple_finish( self_: *mut GtkFileDialog, result: *mut gio::GAsyncResult, error: *mut *mut glib::GError, ) -> *mut gio::GListModel; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_save( self_: *mut GtkFileDialog, parent: *mut GtkWindow, @@ -13053,15 +13053,15 @@ extern "C" { callback: gio::GAsyncReadyCallback, user_data: gpointer, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_save_finish( self_: *mut GtkFileDialog, result: *mut gio::GAsyncResult, error: *mut *mut glib::GError, ) -> *mut gio::GFile; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_select_folder( self_: *mut GtkFileDialog, parent: *mut GtkWindow, @@ -13069,15 +13069,15 @@ extern "C" { callback: gio::GAsyncReadyCallback, user_data: gpointer, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_select_folder_finish( self_: *mut GtkFileDialog, result: *mut gio::GAsyncResult, error: *mut *mut glib::GError, ) -> *mut gio::GFile; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_select_multiple_folders( self_: *mut GtkFileDialog, parent: *mut GtkWindow, @@ -13085,39 +13085,39 @@ extern "C" { callback: gio::GAsyncReadyCallback, user_data: gpointer, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_select_multiple_folders_finish( self_: *mut GtkFileDialog, result: *mut gio::GAsyncResult, error: *mut *mut glib::GError, ) -> *mut gio::GListModel; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_set_accept_label(self_: *mut GtkFileDialog, accept_label: *const c_char); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_set_default_filter( self_: *mut GtkFileDialog, filter: *mut GtkFileFilter, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_set_filters(self_: *mut GtkFileDialog, filters: *mut gio::GListModel); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_set_initial_file(self_: *mut GtkFileDialog, file: *mut gio::GFile); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_set_initial_folder(self_: *mut GtkFileDialog, folder: *mut gio::GFile); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_set_initial_name(self_: *mut GtkFileDialog, name: *const c_char); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_set_modal(self_: *mut GtkFileDialog, modal: gboolean); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_set_title(self_: *mut GtkFileDialog, title: *const c_char); //========================================================================= @@ -13129,8 +13129,8 @@ extern "C" { pub fn gtk_file_filter_add_mime_type(filter: *mut GtkFileFilter, mime_type: *const c_char); pub fn gtk_file_filter_add_pattern(filter: *mut GtkFileFilter, pattern: *const c_char); pub fn gtk_file_filter_add_pixbuf_formats(filter: *mut GtkFileFilter); - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gtk_file_filter_add_suffix(filter: *mut GtkFileFilter, suffix: *const c_char); pub fn gtk_file_filter_get_attributes(filter: *mut GtkFileFilter) -> *mut *const c_char; pub fn gtk_file_filter_get_name(filter: *mut GtkFileFilter) -> *const c_char; @@ -13140,17 +13140,17 @@ extern "C" { //========================================================================= // GtkFileLauncher //========================================================================= - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_launcher_get_type() -> GType; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_launcher_new(file: *mut gio::GFile) -> *mut GtkFileLauncher; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_launcher_get_file(self_: *mut GtkFileLauncher) -> *mut gio::GFile; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_launcher_launch( self_: *mut GtkFileLauncher, parent: *mut GtkWindow, @@ -13158,15 +13158,15 @@ extern "C" { callback: gio::GAsyncReadyCallback, user_data: gpointer, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_launcher_launch_finish( self_: *mut GtkFileLauncher, result: *mut gio::GAsyncResult, error: *mut *mut glib::GError, ) -> gboolean; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_launcher_open_containing_folder( self_: *mut GtkFileLauncher, parent: *mut GtkWindow, @@ -13174,15 +13174,15 @@ extern "C" { callback: gio::GAsyncReadyCallback, user_data: gpointer, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_launcher_open_containing_folder_finish( self_: *mut GtkFileLauncher, result: *mut gio::GAsyncResult, error: *mut *mut glib::GError, ) -> gboolean; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_launcher_set_file(self_: *mut GtkFileLauncher, file: *mut gio::GFile); //========================================================================= @@ -13279,8 +13279,8 @@ extern "C" { //========================================================================= pub fn gtk_flow_box_get_type() -> GType; pub fn gtk_flow_box_new() -> *mut GtkWidget; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gtk_flow_box_append(self_: *mut GtkFlowBox, child: *mut GtkWidget); pub fn gtk_flow_box_bind_model( box_: *mut GtkFlowBox, @@ -13309,12 +13309,12 @@ extern "C" { pub fn gtk_flow_box_insert(box_: *mut GtkFlowBox, widget: *mut GtkWidget, position: c_int); pub fn gtk_flow_box_invalidate_filter(box_: *mut GtkFlowBox); pub fn gtk_flow_box_invalidate_sort(box_: *mut GtkFlowBox); - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gtk_flow_box_prepend(self_: *mut GtkFlowBox, child: *mut GtkWidget); pub fn gtk_flow_box_remove(box_: *mut GtkFlowBox, widget: *mut GtkWidget); - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_flow_box_remove_all(box_: *mut GtkFlowBox); pub fn gtk_flow_box_select_all(box_: *mut GtkFlowBox); pub fn gtk_flow_box_select_child(box_: *mut GtkFlowBox, child: *mut GtkFlowBoxChild); @@ -13391,14 +13391,14 @@ extern "C" { //========================================================================= // GtkFontDialog //========================================================================= - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_get_type() -> GType; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_new() -> *mut GtkFontDialog; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_choose_face( self_: *mut GtkFontDialog, parent: *mut GtkWindow, @@ -13407,15 +13407,15 @@ extern "C" { callback: gio::GAsyncReadyCallback, user_data: gpointer, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_choose_face_finish( self_: *mut GtkFontDialog, result: *mut gio::GAsyncResult, error: *mut *mut glib::GError, ) -> *mut pango::PangoFontFace; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_choose_family( self_: *mut GtkFontDialog, parent: *mut GtkWindow, @@ -13424,15 +13424,15 @@ extern "C" { callback: gio::GAsyncReadyCallback, user_data: gpointer, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_choose_family_finish( self_: *mut GtkFontDialog, result: *mut gio::GAsyncResult, error: *mut *mut glib::GError, ) -> *mut pango::PangoFontFamily; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_choose_font( self_: *mut GtkFontDialog, parent: *mut GtkWindow, @@ -13441,8 +13441,8 @@ extern "C" { callback: gio::GAsyncReadyCallback, user_data: gpointer, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_choose_font_and_features( self_: *mut GtkFontDialog, parent: *mut GtkWindow, @@ -13451,8 +13451,8 @@ extern "C" { callback: gio::GAsyncReadyCallback, user_data: gpointer, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_choose_font_and_features_finish( self_: *mut GtkFontDialog, result: *mut gio::GAsyncResult, @@ -13461,119 +13461,119 @@ extern "C" { language: *mut *mut pango::PangoLanguage, error: *mut *mut glib::GError, ) -> gboolean; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_choose_font_finish( self_: *mut GtkFontDialog, result: *mut gio::GAsyncResult, error: *mut *mut glib::GError, ) -> *mut pango::PangoFontDescription; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_get_filter(self_: *mut GtkFontDialog) -> *mut GtkFilter; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_get_font_map(self_: *mut GtkFontDialog) -> *mut pango::PangoFontMap; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_get_language(self_: *mut GtkFontDialog) -> *mut pango::PangoLanguage; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_get_modal(self_: *mut GtkFontDialog) -> gboolean; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_get_title(self_: *mut GtkFontDialog) -> *const c_char; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_set_filter(self_: *mut GtkFontDialog, filter: *mut GtkFilter); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_set_font_map( self_: *mut GtkFontDialog, fontmap: *mut pango::PangoFontMap, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_set_language( self_: *mut GtkFontDialog, language: *mut pango::PangoLanguage, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_set_modal(self_: *mut GtkFontDialog, modal: gboolean); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_set_title(self_: *mut GtkFontDialog, title: *const c_char); //========================================================================= // GtkFontDialogButton //========================================================================= - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_button_get_type() -> GType; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_button_new(dialog: *mut GtkFontDialog) -> *mut GtkWidget; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_button_get_dialog(self_: *mut GtkFontDialogButton) -> *mut GtkFontDialog; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_button_get_font_desc( self_: *mut GtkFontDialogButton, ) -> *mut pango::PangoFontDescription; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_button_get_font_features( self_: *mut GtkFontDialogButton, ) -> *const c_char; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_button_get_language( self_: *mut GtkFontDialogButton, ) -> *mut pango::PangoLanguage; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_button_get_level(self_: *mut GtkFontDialogButton) -> GtkFontLevel; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_button_get_use_font(self_: *mut GtkFontDialogButton) -> gboolean; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_button_get_use_size(self_: *mut GtkFontDialogButton) -> gboolean; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_button_set_dialog( self_: *mut GtkFontDialogButton, dialog: *mut GtkFontDialog, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_button_set_font_desc( self_: *mut GtkFontDialogButton, font_desc: *const pango::PangoFontDescription, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_button_set_font_features( self_: *mut GtkFontDialogButton, font_features: *const c_char, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_button_set_language( self_: *mut GtkFontDialogButton, language: *mut pango::PangoLanguage, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_button_set_level(self_: *mut GtkFontDialogButton, level: GtkFontLevel); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_button_set_use_font(self_: *mut GtkFontDialogButton, use_font: gboolean); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_font_dialog_button_set_use_size(self_: *mut GtkFontDialogButton, use_size: gboolean); //========================================================================= @@ -13760,11 +13760,11 @@ extern "C" { pub fn gtk_gesture_stylus_get_device_tool( gesture: *mut GtkGestureStylus, ) -> *mut gdk::GdkDeviceTool; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_gesture_stylus_get_stylus_only(gesture: *mut GtkGestureStylus) -> gboolean; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_gesture_stylus_set_stylus_only( gesture: *mut GtkGestureStylus, stylus_only: gboolean, @@ -13900,8 +13900,8 @@ extern "C" { pub fn gtk_grid_view_get_min_columns(self_: *mut GtkGridView) -> c_uint; pub fn gtk_grid_view_get_model(self_: *mut GtkGridView) -> *mut GtkSelectionModel; pub fn gtk_grid_view_get_single_click_activate(self_: *mut GtkGridView) -> gboolean; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_grid_view_get_tab_behavior(self_: *mut GtkGridView) -> GtkListTabBehavior; pub fn gtk_grid_view_set_enable_rubberband( self_: *mut GtkGridView, @@ -13915,8 +13915,8 @@ extern "C" { self_: *mut GtkGridView, single_click_activate: gboolean, ); - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_grid_view_set_tab_behavior( self_: *mut GtkGridView, tab_behavior: GtkListTabBehavior, @@ -13973,8 +13973,8 @@ extern "C" { text: *mut *mut c_char, cursor_index: *mut c_int, ) -> gboolean; - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn gtk_im_context_get_surrounding_with_selection( context: *mut GtkIMContext, text: *mut *mut c_char, @@ -13993,8 +13993,8 @@ extern "C" { len: c_int, cursor_index: c_int, ); - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn gtk_im_context_set_surrounding_with_selection( context: *mut GtkIMContext, text: *const c_char, @@ -14061,8 +14061,8 @@ extern "C" { pub fn gtk_icon_theme_get_resource_path(self_: *mut GtkIconTheme) -> *mut *mut c_char; pub fn gtk_icon_theme_get_search_path(self_: *mut GtkIconTheme) -> *mut *mut c_char; pub fn gtk_icon_theme_get_theme_name(self_: *mut GtkIconTheme) -> *mut c_char; - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn gtk_icon_theme_has_gicon(self_: *mut GtkIconTheme, gicon: *mut gio::GIcon) -> gboolean; pub fn gtk_icon_theme_has_icon(self_: *mut GtkIconTheme, icon_name: *const c_char) -> gboolean; pub fn gtk_icon_theme_lookup_by_gicon( @@ -14319,83 +14319,83 @@ extern "C" { //========================================================================= // GtkInscription //========================================================================= - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_get_type() -> GType; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_new(text: *const c_char) -> *mut GtkWidget; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_get_attributes(self_: *mut GtkInscription) -> *mut pango::PangoAttrList; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_get_min_chars(self_: *mut GtkInscription) -> c_uint; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_get_min_lines(self_: *mut GtkInscription) -> c_uint; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_get_nat_chars(self_: *mut GtkInscription) -> c_uint; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_get_nat_lines(self_: *mut GtkInscription) -> c_uint; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_get_text(self_: *mut GtkInscription) -> *const c_char; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_get_text_overflow(self_: *mut GtkInscription) -> GtkInscriptionOverflow; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_get_wrap_mode(self_: *mut GtkInscription) -> pango::PangoWrapMode; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_get_xalign(self_: *mut GtkInscription) -> c_float; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_get_yalign(self_: *mut GtkInscription) -> c_float; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_set_attributes( self_: *mut GtkInscription, attrs: *mut pango::PangoAttrList, ); - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_set_markup(self_: *mut GtkInscription, markup: *const c_char); - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_set_min_chars(self_: *mut GtkInscription, min_chars: c_uint); - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_set_min_lines(self_: *mut GtkInscription, min_lines: c_uint); - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_set_nat_chars(self_: *mut GtkInscription, nat_chars: c_uint); - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_set_nat_lines(self_: *mut GtkInscription, nat_lines: c_uint); - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_set_text(self_: *mut GtkInscription, text: *const c_char); - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_set_text_overflow( self_: *mut GtkInscription, overflow: GtkInscriptionOverflow, ); - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_set_wrap_mode( self_: *mut GtkInscription, wrap_mode: pango::PangoWrapMode, ); - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_set_xalign(self_: *mut GtkInscription, xalign: c_float); - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_inscription_set_yalign(self_: *mut GtkInscription, yalign: c_float); //========================================================================= @@ -14427,8 +14427,8 @@ extern "C" { pub fn gtk_label_get_max_width_chars(self_: *mut GtkLabel) -> c_int; pub fn gtk_label_get_mnemonic_keyval(self_: *mut GtkLabel) -> c_uint; pub fn gtk_label_get_mnemonic_widget(self_: *mut GtkLabel) -> *mut GtkWidget; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gtk_label_get_natural_wrap_mode(self_: *mut GtkLabel) -> GtkNaturalWrapMode; pub fn gtk_label_get_selectable(self_: *mut GtkLabel) -> gboolean; pub fn gtk_label_get_selection_bounds( @@ -14437,8 +14437,8 @@ extern "C" { end: *mut c_int, ) -> gboolean; pub fn gtk_label_get_single_line_mode(self_: *mut GtkLabel) -> gboolean; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_label_get_tabs(self_: *mut GtkLabel) -> *mut pango::PangoTabArray; pub fn gtk_label_get_text(self_: *mut GtkLabel) -> *const c_char; pub fn gtk_label_get_use_markup(self_: *mut GtkLabel) -> gboolean; @@ -14459,13 +14459,13 @@ extern "C" { pub fn gtk_label_set_markup_with_mnemonic(self_: *mut GtkLabel, str: *const c_char); pub fn gtk_label_set_max_width_chars(self_: *mut GtkLabel, n_chars: c_int); pub fn gtk_label_set_mnemonic_widget(self_: *mut GtkLabel, widget: *mut GtkWidget); - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gtk_label_set_natural_wrap_mode(self_: *mut GtkLabel, wrap_mode: GtkNaturalWrapMode); pub fn gtk_label_set_selectable(self_: *mut GtkLabel, setting: gboolean); pub fn gtk_label_set_single_line_mode(self_: *mut GtkLabel, single_line_mode: gboolean); - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_label_set_tabs(self_: *mut GtkLabel, tabs: *mut pango::PangoTabArray); pub fn gtk_label_set_text(self_: *mut GtkLabel, str: *const c_char); pub fn gtk_label_set_text_with_mnemonic(self_: *mut GtkLabel, str: *const c_char); @@ -14599,8 +14599,8 @@ extern "C" { pub fn gtk_list_box_invalidate_sort(box_: *mut GtkListBox); pub fn gtk_list_box_prepend(box_: *mut GtkListBox, child: *mut GtkWidget); pub fn gtk_list_box_remove(box_: *mut GtkListBox, child: *mut GtkWidget); - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_list_box_remove_all(box_: *mut GtkListBox); pub fn gtk_list_box_select_all(box_: *mut GtkListBox); pub fn gtk_list_box_select_row(box_: *mut GtkListBox, row: *mut GtkListBoxRow); @@ -14658,8 +14658,8 @@ extern "C" { pub fn gtk_list_item_get_type() -> GType; pub fn gtk_list_item_get_activatable(self_: *mut GtkListItem) -> gboolean; pub fn gtk_list_item_get_child(self_: *mut GtkListItem) -> *mut GtkWidget; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_list_item_get_focusable(self_: *mut GtkListItem) -> gboolean; pub fn gtk_list_item_get_item(self_: *mut GtkListItem) -> *mut gobject::GObject; pub fn gtk_list_item_get_position(self_: *mut GtkListItem) -> c_uint; @@ -14667,8 +14667,8 @@ extern "C" { pub fn gtk_list_item_get_selected(self_: *mut GtkListItem) -> gboolean; pub fn gtk_list_item_set_activatable(self_: *mut GtkListItem, activatable: gboolean); pub fn gtk_list_item_set_child(self_: *mut GtkListItem, child: *mut GtkWidget); - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_list_item_set_focusable(self_: *mut GtkListItem, focusable: gboolean); pub fn gtk_list_item_set_selectable(self_: *mut GtkListItem, selectable: gboolean); @@ -14767,8 +14767,8 @@ extern "C" { pub fn gtk_list_view_get_model(self_: *mut GtkListView) -> *mut GtkSelectionModel; pub fn gtk_list_view_get_show_separators(self_: *mut GtkListView) -> gboolean; pub fn gtk_list_view_get_single_click_activate(self_: *mut GtkListView) -> gboolean; - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_list_view_get_tab_behavior(self_: *mut GtkListView) -> GtkListTabBehavior; pub fn gtk_list_view_set_enable_rubberband( self_: *mut GtkListView, @@ -14781,8 +14781,8 @@ extern "C" { self_: *mut GtkListView, single_click_activate: gboolean, ); - #[cfg(any(feature = "v4_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_12")))] + #[cfg(any(feature = "v4_12", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gtk_list_view_set_tab_behavior( self_: *mut GtkListView, tab_behavior: GtkListTabBehavior, @@ -14897,11 +14897,11 @@ extern "C" { pub fn gtk_media_stream_set_muted(self_: *mut GtkMediaStream, muted: gboolean); pub fn gtk_media_stream_set_playing(self_: *mut GtkMediaStream, playing: gboolean); pub fn gtk_media_stream_set_volume(self_: *mut GtkMediaStream, volume: c_double); - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gtk_media_stream_stream_ended(self_: *mut GtkMediaStream); - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gtk_media_stream_stream_prepared( self_: *mut GtkMediaStream, has_audio: gboolean, @@ -14909,8 +14909,8 @@ extern "C" { seekable: gboolean, duration: i64, ); - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gtk_media_stream_stream_unprepared(self_: *mut GtkMediaStream); pub fn gtk_media_stream_unprepared(self_: *mut GtkMediaStream); pub fn gtk_media_stream_unrealize(self_: *mut GtkMediaStream, surface: *mut gdk::GdkSurface); @@ -14921,14 +14921,14 @@ extern "C" { //========================================================================= pub fn gtk_menu_button_get_type() -> GType; pub fn gtk_menu_button_new() -> *mut GtkWidget; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_menu_button_get_active(menu_button: *mut GtkMenuButton) -> gboolean; - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gtk_menu_button_get_always_show_arrow(menu_button: *mut GtkMenuButton) -> gboolean; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gtk_menu_button_get_child(menu_button: *mut GtkMenuButton) -> *mut GtkWidget; pub fn gtk_menu_button_get_direction(menu_button: *mut GtkMenuButton) -> GtkArrowType; pub fn gtk_menu_button_get_has_frame(menu_button: *mut GtkMenuButton) -> gboolean; @@ -14936,23 +14936,23 @@ extern "C" { pub fn gtk_menu_button_get_label(menu_button: *mut GtkMenuButton) -> *const c_char; pub fn gtk_menu_button_get_menu_model(menu_button: *mut GtkMenuButton) -> *mut gio::GMenuModel; pub fn gtk_menu_button_get_popover(menu_button: *mut GtkMenuButton) -> *mut GtkPopover; - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gtk_menu_button_get_primary(menu_button: *mut GtkMenuButton) -> gboolean; pub fn gtk_menu_button_get_use_underline(menu_button: *mut GtkMenuButton) -> gboolean; pub fn gtk_menu_button_popdown(menu_button: *mut GtkMenuButton); pub fn gtk_menu_button_popup(menu_button: *mut GtkMenuButton); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_menu_button_set_active(menu_button: *mut GtkMenuButton, active: gboolean); - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gtk_menu_button_set_always_show_arrow( menu_button: *mut GtkMenuButton, always_show_arrow: gboolean, ); - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gtk_menu_button_set_child(menu_button: *mut GtkMenuButton, child: *mut GtkWidget); pub fn gtk_menu_button_set_create_popup_func( menu_button: *mut GtkMenuButton, @@ -14969,8 +14969,8 @@ extern "C" { menu_model: *mut gio::GMenuModel, ); pub fn gtk_menu_button_set_popover(menu_button: *mut GtkMenuButton, popover: *mut GtkWidget); - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gtk_menu_button_set_primary(menu_button: *mut GtkMenuButton, primary: gboolean); pub fn gtk_menu_button_set_use_underline( menu_button: *mut GtkMenuButton, @@ -15486,11 +15486,11 @@ extern "C" { //========================================================================= // GtkPasswordEntryBuffer //========================================================================= - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gtk_password_entry_buffer_get_type() -> GType; - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gtk_password_entry_buffer_new() -> *mut GtkEntryBuffer; //========================================================================= @@ -15505,8 +15505,8 @@ extern "C" { pub fn gtk_picture_new_for_resource(resource_path: *const c_char) -> *mut GtkWidget; pub fn gtk_picture_get_alternative_text(self_: *mut GtkPicture) -> *const c_char; pub fn gtk_picture_get_can_shrink(self_: *mut GtkPicture) -> gboolean; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_picture_get_content_fit(self_: *mut GtkPicture) -> GtkContentFit; pub fn gtk_picture_get_file(self_: *mut GtkPicture) -> *mut gio::GFile; pub fn gtk_picture_get_keep_aspect_ratio(self_: *mut GtkPicture) -> gboolean; @@ -15516,8 +15516,8 @@ extern "C" { alternative_text: *const c_char, ); pub fn gtk_picture_set_can_shrink(self_: *mut GtkPicture, can_shrink: gboolean); - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_picture_set_content_fit(self_: *mut GtkPicture, content_fit: GtkContentFit); pub fn gtk_picture_set_file(self_: *mut GtkPicture, file: *mut gio::GFile); pub fn gtk_picture_set_filename(self_: *mut GtkPicture, filename: *const c_char); @@ -16274,8 +16274,8 @@ extern "C" { step: c_double, icons: *mut *const c_char, ) -> *mut GtkWidget; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_scale_button_get_active(button: *mut GtkScaleButton) -> gboolean; pub fn gtk_scale_button_get_adjustment(button: *mut GtkScaleButton) -> *mut GtkAdjustment; pub fn gtk_scale_button_get_minus_button(button: *mut GtkScaleButton) -> *mut GtkButton; @@ -16432,21 +16432,21 @@ extern "C" { pub fn gtk_search_entry_get_type() -> GType; pub fn gtk_search_entry_new() -> *mut GtkWidget; pub fn gtk_search_entry_get_key_capture_widget(entry: *mut GtkSearchEntry) -> *mut GtkWidget; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_search_entry_get_placeholder_text(entry: *mut GtkSearchEntry) -> *const c_char; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_search_entry_get_search_delay(entry: *mut GtkSearchEntry) -> c_uint; pub fn gtk_search_entry_set_key_capture_widget( entry: *mut GtkSearchEntry, widget: *mut GtkWidget, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_search_entry_set_placeholder_text(entry: *mut GtkSearchEntry, text: *const c_char); - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_search_entry_set_search_delay(entry: *mut GtkSearchEntry, delay: c_uint); //========================================================================= @@ -16764,8 +16764,8 @@ extern "C" { stops: *const gsk::GskColorStop, n_stops: size_t, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_snapshot_append_scaled_texture( snapshot: *mut GtkSnapshot, texture: *mut gdk::GdkTexture, @@ -16804,8 +16804,8 @@ extern "C" { bounds: *const graphene::graphene_rect_t, take_args: *mut glib::GBytes, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_snapshot_push_mask(snapshot: *mut GtkSnapshot, mask_mode: gsk::GskMaskMode); pub fn gtk_snapshot_push_opacity(snapshot: *mut GtkSnapshot, opacity: c_double); pub fn gtk_snapshot_push_repeat( @@ -17155,13 +17155,13 @@ extern "C" { //========================================================================= pub fn gtk_string_sorter_get_type() -> GType; pub fn gtk_string_sorter_new(expression: *mut GtkExpression) -> *mut GtkStringSorter; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_string_sorter_get_collation(self_: *mut GtkStringSorter) -> GtkCollation; pub fn gtk_string_sorter_get_expression(self_: *mut GtkStringSorter) -> *mut GtkExpression; pub fn gtk_string_sorter_get_ignore_case(self_: *mut GtkStringSorter) -> gboolean; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_string_sorter_set_collation(self_: *mut GtkStringSorter, collation: GtkCollation); pub fn gtk_string_sorter_set_expression( self_: *mut GtkStringSorter, @@ -17238,8 +17238,8 @@ extern "C" { pub fn gtk_text_get_type() -> GType; pub fn gtk_text_new() -> *mut GtkWidget; pub fn gtk_text_new_with_buffer(buffer: *mut GtkEntryBuffer) -> *mut GtkWidget; - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gtk_text_compute_cursor_extents( self_: *mut GtkText, position: size_t, @@ -17560,8 +17560,8 @@ extern "C" { //========================================================================= pub fn gtk_text_child_anchor_get_type() -> GType; pub fn gtk_text_child_anchor_new() -> *mut GtkTextChildAnchor; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gtk_text_child_anchor_new_with_replacement( character: *const c_char, ) -> *mut GtkTextChildAnchor; @@ -17702,8 +17702,8 @@ extern "C" { y: *mut c_int, height: *mut c_int, ); - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gtk_text_view_get_ltr_context(text_view: *mut GtkTextView) -> *mut pango::PangoContext; pub fn gtk_text_view_get_monospace(text_view: *mut GtkTextView) -> gboolean; pub fn gtk_text_view_get_overwrite(text_view: *mut GtkTextView) -> gboolean; @@ -17711,8 +17711,8 @@ extern "C" { pub fn gtk_text_view_get_pixels_below_lines(text_view: *mut GtkTextView) -> c_int; pub fn gtk_text_view_get_pixels_inside_wrap(text_view: *mut GtkTextView) -> c_int; pub fn gtk_text_view_get_right_margin(text_view: *mut GtkTextView) -> c_int; - #[cfg(any(feature = "v4_4", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] + #[cfg(any(feature = "v4_4", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gtk_text_view_get_rtl_context(text_view: *mut GtkTextView) -> *mut pango::PangoContext; pub fn gtk_text_view_get_tabs(text_view: *mut GtkTextView) -> *mut pango::PangoTabArray; pub fn gtk_text_view_get_top_margin(text_view: *mut GtkTextView) -> c_int; @@ -17844,32 +17844,32 @@ extern "C" { pub fn gtk_tree_expander_get_type() -> GType; pub fn gtk_tree_expander_new() -> *mut GtkWidget; pub fn gtk_tree_expander_get_child(self_: *mut GtkTreeExpander) -> *mut GtkWidget; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_tree_expander_get_hide_expander(self_: *mut GtkTreeExpander) -> gboolean; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_tree_expander_get_indent_for_depth(self_: *mut GtkTreeExpander) -> gboolean; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gtk_tree_expander_get_indent_for_icon(self_: *mut GtkTreeExpander) -> gboolean; pub fn gtk_tree_expander_get_item(self_: *mut GtkTreeExpander) -> *mut gobject::GObject; pub fn gtk_tree_expander_get_list_row(self_: *mut GtkTreeExpander) -> *mut GtkTreeListRow; pub fn gtk_tree_expander_set_child(self_: *mut GtkTreeExpander, child: *mut GtkWidget); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_tree_expander_set_hide_expander( self_: *mut GtkTreeExpander, hide_expander: gboolean, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_tree_expander_set_indent_for_depth( self_: *mut GtkTreeExpander, indent_for_depth: gboolean, ); - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gtk_tree_expander_set_indent_for_icon( self_: *mut GtkTreeExpander, indent_for_icon: gboolean, @@ -18640,17 +18640,17 @@ extern "C" { //========================================================================= // GtkUriLauncher //========================================================================= - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_uri_launcher_get_type() -> GType; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_uri_launcher_new(uri: *const c_char) -> *mut GtkUriLauncher; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_uri_launcher_get_uri(self_: *mut GtkUriLauncher) -> *const c_char; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_uri_launcher_launch( self_: *mut GtkUriLauncher, parent: *mut GtkWindow, @@ -18658,15 +18658,15 @@ extern "C" { callback: gio::GAsyncReadyCallback, user_data: gpointer, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_uri_launcher_launch_finish( self_: *mut GtkUriLauncher, result: *mut gio::GAsyncResult, error: *mut *mut glib::GError, ) -> gboolean; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_uri_launcher_set_uri(self_: *mut GtkUriLauncher, uri: *const c_char); //========================================================================= @@ -18775,8 +18775,8 @@ extern "C" { widget: *mut GtkWidget, text: *const c_char, ) -> *mut pango::PangoLayout; - #[cfg(any(feature = "v4_8", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_8")))] + #[cfg(any(feature = "v4_8", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_widget_dispose_template(widget: *mut GtkWidget, widget_type: GType); pub fn gtk_drag_check_threshold( widget: *mut GtkWidget, @@ -18795,8 +18795,8 @@ extern "C" { pub fn gtk_widget_get_can_target(widget: *mut GtkWidget) -> gboolean; pub fn gtk_widget_get_child_visible(widget: *mut GtkWidget) -> gboolean; pub fn gtk_widget_get_clipboard(widget: *mut GtkWidget) -> *mut gdk::GdkClipboard; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_widget_get_color(widget: *mut GtkWidget, color: *mut gdk::GdkRGBA); pub fn gtk_widget_get_css_classes(widget: *mut GtkWidget) -> *mut *mut c_char; pub fn gtk_widget_get_css_name(self_: *mut GtkWidget) -> *const c_char; @@ -19039,8 +19039,8 @@ extern "C" { pub fn gtk_window_get_focus(window: *mut GtkWindow) -> *mut GtkWidget; pub fn gtk_window_get_focus_visible(window: *mut GtkWindow) -> gboolean; pub fn gtk_window_get_group(window: *mut GtkWindow) -> *mut GtkWindowGroup; - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn gtk_window_get_handle_menubar_accel(window: *mut GtkWindow) -> gboolean; pub fn gtk_window_get_hide_on_close(window: *mut GtkWindow) -> gboolean; pub fn gtk_window_get_icon_name(window: *mut GtkWindow) -> *const c_char; @@ -19068,8 +19068,8 @@ extern "C" { pub fn gtk_window_set_display(window: *mut GtkWindow, display: *mut gdk::GdkDisplay); pub fn gtk_window_set_focus(window: *mut GtkWindow, focus: *mut GtkWidget); pub fn gtk_window_set_focus_visible(window: *mut GtkWindow, setting: gboolean); - #[cfg(any(feature = "v4_2", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_2")))] + #[cfg(any(feature = "v4_2", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn gtk_window_set_handle_menubar_accel( window: *mut GtkWindow, handle_menubar_accel: gboolean, @@ -19127,15 +19127,15 @@ extern "C" { // GtkAccessible //========================================================================= pub fn gtk_accessible_get_type() -> GType; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_accessible_get_accessible_parent(self_: *mut GtkAccessible) -> *mut GtkAccessible; pub fn gtk_accessible_get_accessible_role(self_: *mut GtkAccessible) -> GtkAccessibleRole; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_accessible_get_at_context(self_: *mut GtkAccessible) -> *mut GtkATContext; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_accessible_get_bounds( self_: *mut GtkAccessible, x: *mut c_int, @@ -19143,18 +19143,18 @@ extern "C" { width: *mut c_int, height: *mut c_int, ) -> gboolean; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_accessible_get_first_accessible_child( self_: *mut GtkAccessible, ) -> *mut GtkAccessible; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_accessible_get_next_accessible_sibling( self_: *mut GtkAccessible, ) -> *mut GtkAccessible; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_accessible_get_platform_state( self_: *mut GtkAccessible, state: GtkAccessiblePlatformState, @@ -19168,15 +19168,15 @@ extern "C" { relation: GtkAccessibleRelation, ); pub fn gtk_accessible_reset_state(self_: *mut GtkAccessible, state: GtkAccessibleState); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_accessible_set_accessible_parent( self_: *mut GtkAccessible, parent: *mut GtkAccessible, next_sibling: *mut GtkAccessible, ); - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_accessible_update_next_accessible_sibling( self_: *mut GtkAccessible, new_sibling: *mut GtkAccessible, @@ -19218,8 +19218,8 @@ extern "C" { //========================================================================= // GtkAccessibleRange //========================================================================= - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_accessible_range_get_type() -> GType; //========================================================================= @@ -19364,8 +19364,8 @@ extern "C" { object_class: *mut gobject::GObjectClass, first_prop: c_uint, ) -> c_uint; - #[cfg(any(feature = "v4_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_10")))] + #[cfg(any(feature = "v4_10", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_editable_delegate_get_accessible_platform_state( editable: *mut GtkEditable, state: GtkAccessiblePlatformState, @@ -19658,11 +19658,11 @@ extern "C" { //========================================================================= // GtkSymbolicPaintable //========================================================================= - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gtk_symbolic_paintable_get_type() -> GType; - #[cfg(any(feature = "v4_6", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_6")))] + #[cfg(any(feature = "v4_6", docsrs))] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] pub fn gtk_symbolic_paintable_snapshot_symbolic( paintable: *mut GtkSymbolicPaintable, snapshot: *mut gdk::GdkSnapshot, diff --git a/gtk4/sys/versions.txt b/gtk4/sys/versions.txt index bc0b4f74d727..c4950229ce37 100644 --- a/gtk4/sys/versions.txt +++ b/gtk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 8a280cee2cbb) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)