How to load background of GtkGLArea on a Cairo Surface in Gtk 4.12?
Can someone tell me, how to load the background of a GtkGLArea on a Cairo surface? For the gtk version 4.8.3, I did it this way–
How to take screenshot in gtk4?
I am trying to take a screenshot of the root window in gtk4. This is how I do it in gtk3–
How to move a shape on cairo surface by GtkEventControllerScroll (scroll event)?
I am trying to move a shape(circle) on GtkDrawingArea by scroll event(GtkEventControllerScroll). I tried the following code, but it is not working. I tried to move it only horizontally. The default horizontal position is 10, how to change value up and down by scroll event?? Can anyone check it?
How to rotate cairo circle (volume button) on mouse motion event in gtk4?
I’m trying to create a Volume (Cairo circle) button in gtk4. which can be rotate by mouse motion event. By clicking anywhere on the button and rotating it, the value 1-100 will be output. Tried a lot, maybe it’s beyond my knowledge.