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

How to use QtCreator to statically link FLTK libraries

I am using Qt Creator (Qt 5.0.3 on Ubuntu 14) for a normal c++ project where I am using FLTK libraries. i want to link FLTK statically to my executable. How do I do that using Qt Creator( I am not using any of Qt libraries, just a normal c++ project…
jeff
  • 684
  • 1
  • 11
  • 30
2
votes
1 answer

C++ fill color in shapes using FLTK doesn't work for circles

I installed FLTK 1.3.X from fltk.org on my visual studio 2012 compiler and use PPP book for C++ programming (this). My problem is about filling a Shape in. For example please observe this code: #include using namespace…
zhiar
  • 113
  • 9
2
votes
2 answers

VS 2013's Compiler doesn't see FLTK library but VS's IntelliSense does for project Garland's QSlim

All is in title: In VS 2013 I included FLTK library with adding "C:\fltk-1.3.2" in Include Directories and "C:\fltk-1.3.2\lib" in Library Directories and when I include #include in my code, IntelliSense recognize the FL's files, but VS's…
moth
  • 345
  • 1
  • 13
2
votes
3 answers

C++ FLTK, creating a rounded box

The problem says: Draw a box with rounded corners. Define a class Box, consisting of four lines and four arcs. So I wrote the below code for that exercise: #include Simple_window win(Point(100,100), 600,400,…
zhiar
  • 113
  • 9
2
votes
1 answer

Having trouble injecting keyboard events to FLTK

I have a system with no keyboard. I can connect a keyboard, but ultimately the inputs come from a custom keypad which is not a HID device, it sends serial data which I can interpret and decode to determine if the user pressed Up, Down, Left, Right,…
RTM
  • 31
  • 4
2
votes
2 answers

FLTK compile error with gcc

I am trying to compile my first FLTK file. First I compiled it by gcc with -lfltk option, and I got this error: /usr/bin/ld: /tmp/ccX7sPxQ.o: undefined reference to symbol '__gxx_personality_v0@@CXXABI_1.3' /usr/lib/x86_64-linux-gnu/libstdc++.so.6:…
Jiho Noh
  • 581
  • 4
  • 7
2
votes
1 answer

FLTK filled polygon

I am using FLTK to create a GUI and I have to draw onto the screen some polygons (shapes). From their documentation of fl_complex_polygon: Start and end drawing a convex filled polygon. The problem? The polygon is not filled, but only the stroke is…
XCS
  • 27,244
  • 26
  • 101
  • 151
2
votes
1 answer

FLTK version 1.3.2, Visual studio 2012 and the first example of Stroustrup's PPP book

PLEASE, just look at each step that I want to do and if any step is wrong just tell me to revise it. 1- Now I have the MS VS 2012 compiler on my C:\ drive, (C:\Program Files\Microsoft Visual Studio 11.0). 2- I went to fltk website and downloaded the…
abbasi
  • 121
  • 1
  • 10
2
votes
2 answers

Installing and working with FLTK on Visual Studio 2012

My machine in Windows 7 32-bit and my compiler for C++ is Visual Studio 2012 so first I downloaded FLTK from here (http://www.stroustrup.com/Programming/FLTK/) and then I did the works as follows has wanted me: I. Unzip the downloaded file and open…
abbasi
  • 121
  • 1
  • 10
2
votes
2 answers

Stroupstrup Graphics Library Errors

I'm new to C++ and in my Intro to programming design and concepts class we're now on graphics. I've been able to make programs with just FLTK's library but we have to use Bjarne's library such as GUI.h, Graph.h, Simple_window.h, Point.h. A simple…
user2205853
  • 121
  • 1
  • 2
2
votes
1 answer

FLTK, wxWidgets, GTK - light, easy and portable

I know that it isn't first topic when somebody considering different GUI libraries. But I have a few specific questions and needs that "the others" didn't have. (As usual) I'm novice programmer, learning C++ now (finishing thinking in c++) and my…
user2046193
  • 47
  • 2
  • 7
2
votes
1 answer

force FLTK to redraw without event Handles

I'm using Fltk to render openGL graphs. currently I'm debugging a global array which is sorted by a heapsort function. My purpose is to see after each swap of elements in the heapsort function a graphical swap of elements. but I don't want to catch…
dhein
  • 6,431
  • 4
  • 42
  • 74
2
votes
3 answers

Cross Platform Entry Function That Doesn't Show Console

I'm using a cross platform GUI library (FLTK) to make some GUI with, I'm not using the Win32 API. I want this program to run on a Windows, Linux and Mac OS. I don't really get how cross platform mumbo jumbo works (look at my account name), but I…
Name
  • 2,037
  • 3
  • 19
  • 28
2
votes
1 answer

How to configure the chinese support in my software?

I am using FLTK to implement the user interface of my application. To implement the chinese support I am using the font wenquanyi. However when this font is configured the roman characters are displayed in a ugly way, and the roman numbers are…
2
votes
1 answer

FLTK simple animation

I can successfully compiled and run the Hello World code. Now I want to do something like animation. I first create a rectangle class to implement draw() from Fl::widget class myRect: public Fl_Widget { private: Fl_Color color; void draw(){ …
Cory Lee
  • 185
  • 1
  • 2
  • 8