Idiomatic equivalent of using cairo_surface_reference? #1704
-
|
I have a C codebase where I will sometimes call |
Beta Was this translation helpful? Give feedback.
Answered by
sdroege
Apr 21, 2025
Replies: 1 comment 1 reply
-
|
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
inklesspen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
clone()on surfaces is gives you a new reference viacairo_surface_reference(). It's not an independent reference though: it points to the same underlying surface, just like in C.