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
1 answer

Difference between an FLTK Double Window and a FLTK Single Window

I'm confused about the difference between and FLTK Single Window and and FLTK Double Window. In the FLTK 1.4.0 documentation for a double window, we get this description: The Fl_Double_Window provides a double-buffered window. If possible this will…
ANimator120
  • 2,556
  • 1
  • 20
  • 52
1
vote
0 answers

How do I get Bjarne Stoustroup's simple graphics program to work in VS2019?

I'm currently reading Bjarne Stroustrup's 'Principles and Practice using C++ 2nd edition' and I just started chapter 12. But I can't seem to get this code running. #include "Simple_window.h" // get access to our window library #include "Graph.h" //…
Jamie
  • 11
  • 2
1
vote
1 answer

Can not compile graphics code that should work from chapter 12 of Bjarne stroustrup's Programming Principles and practice

Hello members of stack overflow! I am hoping someone who has been where I am can point me in the right direction. I am currently learning C++ and working on the graphics exercises found in chapter 12 but I cannot seem to get code that should work to…
Dara
  • 11
  • 2
1
vote
0 answers

Drawing gnuplot graph inside OpenGL window

I am working on simulating the motion of an object and representing it with OpenGL. The moving object is displayed in subwindow 1 of an fltk window. I would like to show real time graphs of some physical quantities next to it, in subwindow 2. For…
Jatos
  • 333
  • 2
  • 13
1
vote
0 answers

Drawing gnuplot graph inside fltk window

I am writing a program which draws an object in 3D using a window opened with fltk .Though I really would want to add into the same window (aside the 3D object) some gnuplot's graphs because they are more beautiful than the OpenGl's ones. Is that…
Jatos
  • 333
  • 2
  • 13
1
vote
1 answer

Compiling a file which uses fltk and OpenGL with g++ gives error on MacOs

I am trying to compile 2 .cpp files which use OpenGL and fltk on MacOs . On a device using linux (Fedora ) I use the command : g++-9 -std=c++17 window.cpp prova.cpp -o test -lfltk -lGL -lglut -lGLU -lfltk_gl and everything works well . On Mac_Os…
Jatos
  • 333
  • 2
  • 13
1
vote
0 answers

Configure error when installing FLTK library

I'm using Windows with Mingw, installed on path C:\mingw-w64 I installed Msys2 on C:\msys64 Now I want to install FLTK 1.4 following the guidelines from here: https://github.com/fltk/fltk/blob/master/README.Windows.txt But at the configure command I…
Theodore
  • 179
  • 12
1
vote
3 answers

FLTK library with Visual Studio Code

I'm trying to install FLTK library for Chapter 12 from Programming Principles and Practice, but the build command is not recognized. What should I do? Thanks! PS D:\3. Programming\C++\GUI\fltk-1.3.5> make make : The term 'make' is not recognized as…
Theodore
  • 179
  • 12
1
vote
1 answer

Drawing widgets on existing sdl_opengl context

Is there any actively developed open-source (GPL is fine) library that can draw widgets such as buttons, menus, etc on an existing SDL/OpenGL context? I have heard of FLTK, but it appears that it creates its own window and its own OpenGL context to…
Sudarshan S
  • 1,235
  • 2
  • 16
  • 25
1
vote
2 answers

Why can't I define a object of class(which inherited another class) outside the main function?

I am currently working with VS15 using the fltk library. When I try to create an object of my class (which inherits Fl_Double_Window) outside the main function the program…
Xeron
  • 11
  • 3
1
vote
0 answers

Linker error when trying to build files from Bjarne Stroustrup PPP2 Graphics Chapters

When I try to build my code in Visual Studio code with MinGW, I get a linker error. I am currently reading the graphics chapters from Bjarne Stroustrup's "Principles and Practice Using C++, 2nd edition" and trying to get the necessary files to work.…
user13606245
1
vote
1 answer

How can I get the value of a widget the exact moment a button is clicked FLTK

The goal is to be able to get the value of a widget such as FL_Input when I click my button. One way I could do this is by using events and classes. Such as #include #include #include #include…
1
vote
1 answer

Which static library should I link when using wingdi.h?

Recently I've tried FLTK. After I compiled the source code, I want to create a tiny application using FLTK. However, after I tried to complie it, g++ said: C:\Program Files…
Soha
  • 47
  • 1
  • 8
1
vote
2 answers

How can I tab away from a Fl_Button in FLTK?

I have a custom class, CustomButton that extends Fl_Button. On my screen there are a bunch of Fl_Input and CustomButton widgets that I want to be able to navigate between using a tab keypress. Tabbing between input fields works fine, but once a…
1
vote
4 answers

How can I compile a fltk program using g++ in Ubuntu?

How can I compile a fltk program using g++ in Ubuntu? Straight-forward question. I've been searching for and trying many things for a couple hours now. Some of the examples I have seen require X11R6, but I can only find X11 on my computer. If anyone…
Sterling
  • 3,835
  • 14
  • 48
  • 73