First get the DrawWindow of the DrawingArea using the function widgetGetDrawWindow, then call drawWindowClear with the DrawWindow as the argument.
Clearing a drawArea in haskell GTK
-
03-08-2022 - |
Question
I'm making a game using gtk/cairo in haskell, and I'm looking for a way to completely clear the drawing area (a widget of type drawingArea). When a widget resizes for instance, the drawing area is cleared automatically. I'm looking for a way to clear it manually.
Any suggestions?
La solution
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow