From: Amit S <am...@sm...> - 2012-11-13 07:34:55
|
Hi, I am trying to find if there is any method to programmatically refresh the widget or screen to force redraw the canvas ? I am using Elementary widgets for my application. Please suggest the API for refreshing the widgets. Regards, Amit S |
From: Carsten H. (T. R. <ra...@ra...> - 2012-11-13 07:56:39
|
On Tue, 13 Nov 2012 13:04:29 +0530 Amit S <am...@sm...> said: > Hi, > > I am trying to find if there is any method to programmatically refresh the > widget or screen to force redraw the canvas ? > > I am using Elementary widgets for my application. > > Please suggest the API for refreshing the widgets. > > Regards, > Amit S why do you need to do this? rendering is automatic when your mainloop enters idle (has finished processing all timers, animators, events etc. and is about to sleep or fetch more events). al things that have changed will be updated at this point automatically. if they havent changed, nothing will be done and no rendering is done. there is no need to force a refresh (except for very rare cases - eg you are doing benchmarks and trying to benchamrk redraw times). -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ra...@ra... |