@@ -333,12 +333,18 @@ pub trait SnapshotExt: IsA<Snapshot> + sealed::Sealed + 'static {
333
333
}
334
334
}
335
335
336
- //#[cfg(feature = "v4_14")]
337
- //#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
338
- //#[doc(alias = "gtk_snapshot_push_fill")]
339
- //fn push_fill(&self, path: /*Ignored*/&gsk::Path, fill_rule: /*Ignored*/gsk::FillRule) {
340
- // unsafe { TODO: call ffi:gtk_snapshot_push_fill() }
341
- //}
336
+ #[ cfg( feature = "v4_14" ) ]
337
+ #[ cfg_attr( docsrs, doc( cfg( feature = "v4_14" ) ) ) ]
338
+ #[ doc( alias = "gtk_snapshot_push_fill" ) ]
339
+ fn push_fill ( & self , path : & gsk:: Path , fill_rule : gsk:: FillRule ) {
340
+ unsafe {
341
+ ffi:: gtk_snapshot_push_fill (
342
+ self . as_ref ( ) . to_glib_none ( ) . 0 ,
343
+ path. to_glib_none ( ) . 0 ,
344
+ fill_rule. into_glib ( ) ,
345
+ ) ;
346
+ }
347
+ }
342
348
343
349
#[ doc( alias = "gtk_snapshot_push_gl_shader" ) ]
344
350
fn push_gl_shader (
@@ -406,12 +412,18 @@ pub trait SnapshotExt: IsA<Snapshot> + sealed::Sealed + 'static {
406
412
}
407
413
}
408
414
409
- //#[cfg(feature = "v4_14")]
410
- //#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
411
- //#[doc(alias = "gtk_snapshot_push_stroke")]
412
- //fn push_stroke(&self, path: /*Ignored*/&gsk::Path, stroke: /*Ignored*/&gsk::Stroke) {
413
- // unsafe { TODO: call ffi:gtk_snapshot_push_stroke() }
414
- //}
415
+ #[ cfg( feature = "v4_14" ) ]
416
+ #[ cfg_attr( docsrs, doc( cfg( feature = "v4_14" ) ) ) ]
417
+ #[ doc( alias = "gtk_snapshot_push_stroke" ) ]
418
+ fn push_stroke ( & self , path : & gsk:: Path , stroke : & gsk:: Stroke ) {
419
+ unsafe {
420
+ ffi:: gtk_snapshot_push_stroke (
421
+ self . as_ref ( ) . to_glib_none ( ) . 0 ,
422
+ path. to_glib_none ( ) . 0 ,
423
+ stroke. to_glib_none ( ) . 0 ,
424
+ ) ;
425
+ }
426
+ }
415
427
416
428
#[ cfg_attr( feature = "v4_10" , deprecated = "Since 4.10" ) ]
417
429
#[ allow( deprecated) ]
0 commit comments