How Can I implement a Gtk.Widget snapshot func #1231
Answered
by
badcel
heloonihao
asked this question in
Q&A
|
i see gtk blog https://blog.gtk.org/2020/04/24/custom-widgets-in-gtk-4-drawing/ says :"To implement a widget that does some custom drawing, you need to implement the snapshot() function that creates the render nodes for your drawing" , it have same way in gir.core? |
Answered by
badcel
Apr 11, 2025
Replies: 3 comments 1 reply
|
Do you have some minimal sample using some APIs? You can check available APIs on the GirCore homepage too. |
1 reply
|
I think this involves overriding the snapshot() virtual function for a Gtk.Widget subclass, so it would be related to #182 ? |
0 replies
|
If overriding a virtual method is necessary then it is not yet supported like @cameronwhite pointed out. |
0 replies
Answer selected by
heloonihao
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If overriding a virtual method is necessary then it is not yet supported like @cameronwhite pointed out.