-
Notifications
You must be signed in to change notification settings - Fork 5
Functions
doyousketch2 edited this page Sep 13, 2019
·
7 revisions
-
fl.run() ==> int exit_status( 0 on successful exit )
( supposedly non-zero on errors, but FLTK calls exit directly instead ) fl.wait( *int seconds ) ==> bool visible_windows-
fl.check() ==> bool visible_windowssame as fl.wait(0) calling during a big calculation will keep screen updated
-
fl.args( table )parse command line switches
-
fl.get_system_colors()read user preference colors from system and use them
to call Fl::foreground(), Fl::background(), and Fl::background2() -
fl.scheme() ==> *str currentgetfl.scheme( *str current )set-
"none"default, resembles Win (95/98/Me/NT/2000) and old GTK/KDE -
"base"same as "none" -
"plastic"inspired by Aqua on Mac OS X -
"gtk+"inspired by Red Hat Bluecurve theme -
"gleam"inspired by Clearlooks Glossy scheme
-
-
fl.redraw()redraw all widgets
fl.option( str ) ==> boolfl.option( s, b )fl.open_uri( s ) ==> bfl.inactive( iu ) ==> ufl.contrast( iu, iu ) ==> ufl.color_average( iu, iu ) ==> ufl.lighter( iu ) ==> ufl.darger( iu ) == ufl.rgb_color( i [, i, i] ) ==> ufl.get_color( ui ) ==> i, i, ifl.set_color( ui, i, i, i )fl.cursor( s, iu, iu )fl.shortcut_label( isu ) ==> sfl.alert( s )fl.beep( ns )fl.choice( s, ns, ns, ns ) ==> nsfl.color_chooser( ns, ni, ni, ni, ni ) ==> nufl.dir_chooser( s, s, b ) == nsfl.file_chooser( s, s, s, b ) ==> nsfl.input( s, ns ) ==> nsfl.message( s )fl.password( s, ns ) ==> nsfl.message_hotspot( b )fl.message_hotspot() ==> bfl.add_fd( i, f, nu )fl.remove_fd( i, nu )