We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f7e2aec + c345668 commit a635857Copy full SHA for a635857
glib-macros/src/shared_boxed_derive.rs
@@ -274,5 +274,15 @@ pub fn impl_shared_boxed(input: &syn::DeriveInput) -> proc_macro2::TokenStream {
274
}
275
276
277
+
278
+ impl #crate_ident::HasParamSpec for #name {
279
+ type ParamSpec = #crate_ident::ParamSpecBoxed;
280
+ type SetValue = Self;
281
+ type BuilderFn = fn(&str) -> #crate_ident::ParamSpecBoxedBuilder<Self>;
282
283
+ fn param_spec_builder() -> Self::BuilderFn {
284
+ |name| Self::ParamSpec::builder(name)
285
+ }
286
287
288
0 commit comments