Is there a way to have an handle(FL_EVENT) for visible/invisible or a clipping callback? FL_SHOW/FL_HIDE seem to be called only when the widget is actually hidden.
I am re-writing the FLU file requester and one thing I would like to do is to start and stop the thumbnail creation only for visible files in the Window. That is, clipped files outside the viewport, they would cancel their video threading requests while images still in the viewing area would look for thumbnails. This is needed as previewing some files likes OpenUSD files can be expensive even in a thread.
On Fri, 10 May 2024, 20:56 Gonzalo wrote:
Is there a way to have an handle(FL_EVENT) for visible/invisible or a
clipping callback? FL_SHOW/FL_HIDE seem to be called only when the
widget is actually hidden.
I forgot to thank you Ian and Albrecht for your guidance. Creating my own group widget and calling fl_not_clipped() was exactly the trick to get it working.
FLTK is great!
El 12/5/24 a las 13:33, imm escribió:
On Fri, 10 May 2024, 20:56 Gonzalo wrote:
Is there a way to have an handle(FL_EVENT) for visible/invisible or a
clipping callback? FL_SHOW/FL_HIDE seem to be called only when the
widget is actually hidden.I forgot to thank you Ian and Albrecht for your guidance.
Creating my own group widget and calling fl_not_clipped() was exactly the trick to get it working.
FLTK is great!
I forgot to thank you Ian and Albrecht for your guidance. Creating my own group widget and calling fl_not_clipped() was exactly the trick to get it working.
FLTK is great!