FreeBASIC bindings for the Fast Light Toolkit C
user-interface library.
Description
The inc/FLTK directory contains class-by-class declarations for FLTK widgets, windows, menus, images, text controls, file choosers, OpenGL windows, printing, and related helpers. Include the header for each class used by the program. The declarations use extern "c" and link the FLTK and C runtime libraries automatically.
A binding supplies declarations, not the FLTK implementation. The matching FLTK development library and its platform dependencies must be installed for the selected target. Some optional headers also require the corresponding FLTK forms, images, OpenGL, or Cairo component. The binding is intended for a compatible FLTK 1.3 C ABI; mixing headers and libraries from incompatible FLTK builds can fail at link time or corrupt objects at runtime.
Example
#include Once "FLTK/Fl_Window.bi"
#include Once "FLTK/Fl_Button.bi"
Dim As Fl_Window main_window = Fl_Window( 320, 120, "FreeBASIC FLTK" )
Dim As Fl_Button status_button = Fl_Button( 80, 40, 160, 30, "FLTK is ready" )
main_window.end_()
main_window.show()
Fl.run_()
Version
- Binding added during fbc 1.20.0 development
See also