cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Fl::add_idle function
Fl::add_idle function
Jan 21, 2015 at 9:27am UTC
Kubani
(267)
Hello all,
For some reason I need to use of Fl::add_idle function. This site introduces it but doesn't offer an example of how to use it.
http://www.fltk.org/documentation.php/doc-1.1/Fl.html#Fl.add_idle
May you please offer simplest example of it?
Last edited on
Jan 21, 2015 at 9:28am UTC
Jan 21, 2015 at 10:16am UTC
MiiNiPaa
(8886)
simplest example
1
2
3
4
5
6
void
callback(
void
*) {
//do something
}
//...
add_idle(callback);
Jan 21, 2015 at 12:32pm UTC
Kubani
(267)
Thanks for the reply but apparently
add_idle
gets two arguments.
Jan 21, 2015 at 12:35pm UTC
MiiNiPaa
(8886)
Second one is optional. Just like in other fucntions. As documentation states, it is passed to callback function when it is invoked.
Jan 21, 2015 at 12:41pm UTC
Kubani
(267)
OK. Thanks again.
Topic archived. No new replies allowed.