diff --git a/gsk4/sys/Gir.toml b/gsk4/sys/Gir.toml index 1296a9b1f42e..8b93fac54a35 100644 --- a/gsk4/sys/Gir.toml +++ b/gsk4/sys/Gir.toml @@ -25,7 +25,12 @@ cfg_condition = "feature = \"broadway\"" [[object.function]] pattern = "(new|get_type)" cfg_condition = "feature = \"broadway\"" - + +[[object]] +name = "Gsk.BroadwayRendererClass" +status = "generate" +cfg_condition = "feature = \"broadway\"" + [[object]] name = "Gsk.PathMeasure" status = "generate" @@ -38,3 +43,8 @@ cfg_condition = "feature = \"vulkan\"" [[object.function]] pattern = "(new|get_type)" cfg_condition = "feature = \"vulkan\"" + +[[object]] +name = "Gsk.VulkanRendererClass" +status = "generate" +cfg_condition = "feature = \"vulkan\"" diff --git a/gsk4/sys/src/lib.rs b/gsk4/sys/src/lib.rs index 0e2766e18591..d77d9aabfaa6 100644 --- a/gsk4/sys/src/lib.rs +++ b/gsk4/sys/src/lib.rs @@ -184,12 +184,16 @@ pub type GskPathForeachFunc = Option< >; // Records +#[cfg(feature = "broadway")] +#[cfg_attr(docsrs, doc(cfg(feature = "broadway")))] #[repr(C)] pub struct _GskBroadwayRendererClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } +#[cfg(feature = "broadway")] +#[cfg_attr(docsrs, doc(cfg(feature = "broadway")))] pub type GskBroadwayRendererClass = *mut _GskBroadwayRendererClass; #[repr(C)] @@ -393,12 +397,16 @@ impl ::std::fmt::Debug for GskTransform { } } +#[cfg(feature = "vulkan")] +#[cfg_attr(docsrs, doc(cfg(feature = "vulkan")))] #[repr(C)] pub struct _GskVulkanRendererClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } +#[cfg(feature = "vulkan")] +#[cfg_attr(docsrs, doc(cfg(feature = "vulkan")))] pub type GskVulkanRendererClass = *mut _GskVulkanRendererClass; // Classes