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

How to raise a window using fltk-rs

I am trying to "raise" (draw "on top" of other overlapping windows and possibly make "active") a specific window in response to an event. The official FLTK documentation seems to say that the Fl_Window::show() method is the way to do this. However,…
d2718
  • 175
  • 8
1
vote
1 answer

How to handle the lifetimes of two fltk buttons that toggle eachother?

I'm trying to create two buttons (btn1, btn2) handling events (simple 'push' aka 'onclick'), they should disable each other let mut btn1 = button::Button::new(100, 100, 100, 50, "BTN1"); let mut btn2 = button::Button::new(300, 100, 150, 50,…
fewrandom
  • 312
  • 1
  • 9
1
vote
1 answer

C++ multiple inheritance problem using FLTK

i've a problem drawing basic shape with fltk. I've made 2 classes'Rectangle' and 'Circle' that show normally. Then i've created a third class that inherit from 'Rectangle' and 'Circle' called 'RectangleAndCircle' : //declaration in…
1
vote
1 answer

testing for a package version set using custom cmake version variable

I'm linking to FLTK in my project using CMake and want to make sure that if anyone else tries to do so on their machine that they have the latest version (1.3.7). The normal way in CMake to do this is find_package(FLTK 1.3.7 REQUIRED) However this…
user3353819
  • 911
  • 2
  • 8
  • 21
1
vote
2 answers

Why a Widget class uses pointers as data members?

I'm working through "Programming Principles and Practice", and I don't understand why this Widget class uses pointers as data members. The book's explanations is this: Note that our Widget keeps track of its FLTK widget and the Window with which it…
Theodore
  • 179
  • 12
1
vote
4 answers

Do I have to delete pointers to widgets in FLTK?

So I have the following code: int main(int, char **) { auto wptr = new Fl_Double_Window{640,480}; wptr->show(); Fl::run(); return 0; } > valgrind --leak-check=full -s ./run ==13685== Memcheck, a memory error detector ==13685==…
Sam
  • 19
  • 3
1
vote
1 answer

fltk: failed to resolve GlutWindow

I'm trying to follow example of fltk application which uses openGl, but the build is not functioning: let app = app::App::default(); let mut win = window::GlutWindow::default().with_size(800,…
1
vote
2 answers

FLTK on Visual Studio 2019 x64, "Cannot open include file: 'dirent.h': No such file or directory

I am using the FLTK library in Visual Studio Community 2019 and building my application for x86 works fine. Now, I would like to build it for x64. However, I am getting the error "Cannot open include file: 'dirent.h': No such file or…
t.r.hogenkamp
  • 73
  • 2
  • 7
1
vote
0 answers

how to compile and run a program that uses fltk?

I have a simple little program (nominated hello_fltk.cpp), (I use Ubuntu), that I attach below: #include #include #include int main(int argc, char **argv) { const…
Ale
  • 11
  • 2
1
vote
1 answer

Remove Underline under FLTK Menu Options

I'm creating a MenuBar in FLTK, and can't figure out how to remove the little underlines under each menu category. What setting controls this?
ANimator120
  • 2,556
  • 1
  • 20
  • 52
1
vote
1 answer

Rounded Corner for FLTK-Window

Many modern applications feature rounded corners for their windows, see Photoshop, which has rounded corners in the top left and right. I was wondering if there is any way to implement rounded corners in FLTK. Right now, when I set my window's…
ANimator120
  • 2,556
  • 1
  • 20
  • 52
1
vote
0 answers

Understanding Widget Damage in FLTK

Because I'm unsatisfied with the styling of fltk's built in Scroll group, I would like to create my own scroll group component , with similar functionality. Reading over the source code for FL_Scroll, I gather that the process of "masking out"…
ANimator120
  • 2,556
  • 1
  • 20
  • 52
1
vote
1 answer

FLTK Group minimum size

With FLTK (version 1.4.0), is it possible to set minimum size for an Fl_Group widget? Either explicitly or automatically so that it wouldn't resize smaller than needed to display all its children? The Fl_Window class has method size_range which…
scrutari
  • 1,378
  • 2
  • 17
  • 33
1
vote
1 answer

C++ Errror: "FL/Fl_xyz_Button.H: No such file or directory" in Fltk?

I'm new to C++ and Fltk. Guys this code is working fine: #include #include #include #include int main(int argc, char **argv) { Fl_Window *window = new Fl_Window(800, 400); Fl_Box…
Shihab
  • 94
  • 10
1
vote
2 answers

How to fix memory leaks in simplest FLTK programm?

I've got a problem with memory in C++ program with FLTK. In this first case: #include #include enum { win_w = 640, win_h = 480, btn_w = 80, btn_h = 30 }; int main() { Fl_Window *window = new…
Bogdasar
  • 181
  • 1
  • 1
  • 9