Skip to content
doyousketch2 edited this page Sep 13, 2019 · 7 revisions

Additional module functions:

  • 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_windows

    same 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 current get

    fl.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 ) ==> bool
  • fl.option( s, b )
  • fl.open_uri( s ) ==> b
  • fl.inactive( iu ) ==> u
  • fl.contrast( iu, iu ) ==> u
  • fl.color_average( iu, iu ) ==> u
  • fl.lighter( iu ) ==> u
  • fl.darger( iu ) == u
  • fl.rgb_color( i [, i, i] ) ==> u
  • fl.get_color( ui ) ==> i, i, i
  • fl.set_color( ui, i, i, i )
  • fl.cursor( s, iu, iu )
  • fl.shortcut_label( isu ) ==> s
  • fl.alert( s )
  • fl.beep( ns )
  • fl.choice( s, ns, ns, ns ) ==> ns
  • fl.color_chooser( ns, ni, ni, ni, ni ) ==> nu
  • fl.dir_chooser( s, s, b ) == ns
  • fl.file_chooser( s, s, s, b ) ==> ns
  • fl.input( s, ns ) ==> ns
  • fl.message( s )
  • fl.password( s, ns ) ==> ns
  • fl.message_hotspot( b )
  • fl.message_hotspot() ==> b
  • fl.add_fd( i, f, nu )
  • fl.remove_fd( i, nu )

Clone this wiki locally