getVisibleArea usage


#1

Hi Jules,

 

I'm currently using getVisibleArea in my code.

It's used in paint function so I can only draw the visible portion of a widget which is in a viewport.

Any idea how to replace it ?

 

Thanks,


#2

In the paint function you should just use Graphics::getClipBounds() and clipRegionIntersects().


#3

oki doki 

Thanks !