문제

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?

도움이 되었습니까?

해결책

First get the DrawWindow of the DrawingArea using the function widgetGetDrawWindow, then call drawWindowClear with the DrawWindow as the argument.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top