Questions tagged [fltk]

FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and Mac OS X.

FLTK provides modern GUI functionality without the bloat and supports 3D graphics via OpenGL and its built-in GLUT emulation.

FLTK is designed to be small and modular enough to be statically linked, but works fine as a shared library. FLTK also includes an excellent UI builder called FLUID that can be used to create applications in minutes.

FLTK is provided under the terms of the GNU Library Public License, Version 2 with exceptions that allow for static linking, a fact that makes it attractive to anyone who wants to use it in proprietary applications.

NOTE:The platforms listed in the excerpt are not the only platforms FLTK works on, but you may see them as the only supported platforms (by the FLTK development team). FLTK is known to work on eComStation, QNX, AIX, IRIX, OpenVMS, and literally any platform with X Window System.

483 questions
1
vote
2 answers

Setting up FLTK on windows with CMake

I'm trying to setup FLTK to build on windows with CMake with the Windows SDK. So far here's what I've accomplished so far: > svn co http://svn.easysw.com/public/fltk/fltk/branches/branch-1.3/ fltk-1.3 > cmake CMakeLists.txt…
Josh
  • 6,046
  • 11
  • 52
  • 83
1
vote
1 answer

FLTK Modal Windows

I have an FLTK program that has a base GUI and occasionally pops up a window for notifications (a custom function that is very similar to the win32 function "MessageBox"). The window is created when the program starts, and remains hidden for most of…
Woodrow Douglass
  • 2,605
  • 3
  • 25
  • 41
1
vote
1 answer

Can I change a FL_Window's caption other than in a constructor argument?

MainWindow::MainWindow(int w, int h, const string& c) : Fl_Window(w, h, c.c_str()) // Don't call constructor over here { script.load_file(WIN_CONFIG_SCRIPT); int width = script.get_global_int("width"); int height =…
ApprenticeHacker
  • 21,351
  • 27
  • 103
  • 153
1
vote
1 answer

Can anyone demonstrate fl_filename_list?

I can't figure out how to use the fl_filename_list function in the FL/filename.h module. I also cannot find any good examples or tutorial on the internet. Can anyone provide a good example?
ApprenticeHacker
  • 21,351
  • 27
  • 103
  • 153
1
vote
1 answer

How to use Fl::awake in the FLTK Library

I would like to use the Fl::awake(callback) function to call functions from my main loop in an FLTK program. I am calling Fl::awake from a child thread, it returns 1 (success), but my function never gets called. I am calling Fl::wait() in a loop in…
Woodrow Douglass
  • 2,605
  • 3
  • 25
  • 41
1
vote
2 answers

How is Form automatically added to the Window?

I am trying to learn Rust and Fltk gui library. I see a small gui application example here which works perfectly. Following is the main fn: fn main() { let a = app::App::default().with_scheme(app::Scheme::Gtk); let mut win =…
rnso
  • 23,686
  • 25
  • 112
  • 234
1
vote
1 answer

What is the Rust way of spreading events throughout the application

I'm using ftlk UI library to show window and bind some actins on it. But this question isn't ftlk specific. What would be the right way of triggering actions on other structs from the UI Window? Example code below let mut window: DoubleWindow =…
Lukas
  • 391
  • 4
  • 11
1
vote
2 answers

Create a closable tab in FLTK

So I'm new to using FLTK in C++ and I'm learning the widgets. There is a class called Fl_Tabs that creates a new tab, using the label of the widget inserted into it. However this tab label is not able to be interacted with. I want the user to be…
Cryos
  • 35
  • 7
1
vote
0 answers

RUST + fltk-rs || Problem with calling method from Button callback

I am currently working on University project in Rust. Goal is to build a game with GUI. Therefore I am trying to implement simple board game using fltk library. I've created struct called Grid to memorize board state using 2d vector matrix, inside…
1
vote
1 answer

Error when building FLTK: Configure could not find required X11 libraries

I am having trouble getting FLTK set up. I am currently using windows and trying to built it with msys2. Whenever I try to configure it with ./configure I get this error: configure: error: Configure could not find required X11 libraries,…
duck
  • 58
  • 6
1
vote
1 answer

How to display databases values with fltk widgets

I'm developing an application - written in rust, that registers items in a database, but I'm having trouble showing the data in a way that is visually good, I tried to use the Browser widget but it's not visually appealing. I have a struct Items…
user19796577
1
vote
1 answer

FLTK - Why fl_width function returns -1 for the length of a char array on a Linux machine?

I am using the fl_width function to create widgets whose size depends on their label (e.g., some Fl_Box). In the documentation for this function one reads FL_EXPORT double fl_width (const char *txt) Returns the typographical width of a…
Eddymage
  • 1,008
  • 1
  • 7
  • 22
1
vote
1 answer

How can I remove the title bar / undecorate the window in FLTK on Linux?

I have been doing some things with FLTK on Linux lately, and now I've wondered how I can remove the title bar / undecorate the window. The target Operating System is Linux, but it would be preferrable if it runs on wayland as well as on xorg.
lorhof1
  • 25
  • 1
  • 4
1
vote
0 answers

Has Anyone Successfully Embedded a Matplotlib Graph Inside An FLTKHS GUI?

I am new to both FLTKHS and the Haskell matplotlib library, so please forgive if question is dumb. FLTK is C++ under the hood. matlplotlib is Python under the hood. It seems to me that passing a handle for the graph into the GUI frame might not work…
James Strieter
  • 775
  • 3
  • 10
1
vote
2 answers

Using fprintf at a C++ code

I have an odd problem. When I try to compile the code below, it works without a failure as expected: #include #include int main(){ FILE *f = fopen("trystl.geo","w"); fprintf(f,"Merge \"trystl.stl\";"); …
Emre Turkoz
  • 868
  • 1
  • 23
  • 33