Commit Graph

9692 Commits

Author SHA1 Message Date
ManoloFLTK
e8461a6191 Document Fl::set_font(Fl_Font, const char *) with platform-specific details. 2022-03-10 19:06:46 +01:00
ManoloFLTK
5b26d2b203 Fix for issue #404 about Fl::get_key(int). 2022-03-10 16:06:04 +01:00
ManoloFLTK
d5c47132ef Documentation: Wayland is for LINUX not for UNIX. 2022-03-10 15:30:11 +01:00
ManoloFLTK
9d869d73c1 Begin documenting the Wayland platform, new in FLTK version 1.4 2022-03-10 15:05:26 +01:00
ManoloFLTK
9e4c7aa77c Restore building for X11 platform + Pango (issue #405). 2022-03-10 09:09:29 +01:00
Albrecht Schlosser
345e04c083 CMake: Fix OpenGL3 examples libglew link order (#226) 2022-03-09 22:38:05 +01:00
ManoloFLTK
1e68edddc0 Add safety check in Fl_Wayland_Window_Driver::label(). 2022-03-09 17:04:59 +01:00
ManoloFLTK
4eb5816918 Fix changing decorated window title. 2022-03-09 16:57:55 +01:00
Greg Ercolano
6d3071b859 Small doc improvements for Fl_Tree_Item. 2022-03-09 06:12:42 -08:00
ManoloFLTK
f97fbffa7b Move all font stuff to Fl_Cairo_Graphics_Driver from Fl_Wayland_Graphics_Driver. 2022-03-09 08:46:49 +01:00
ManoloFLTK
e3f67b8e56 Add necessary call to Fl_Cairo_Graphics_Driver::needs_commit_tag(). 2022-03-09 08:33:49 +01:00
Albrecht Schlosser
af9cffc2db Fix doxygen warning 2022-03-08 16:00:46 +01:00
ManoloFLTK
5b1d1e2470 Some reformatting and fix else reach in Fl_Cairo_Graphics_Driver::transformed_vertex. 2022-03-08 09:30:32 +01:00
Albrecht Schlosser
53b40f4138 Improve documentation on Fl_Menu_Item's and related methods (#332)
See discussion on GitHub Issue #332.

Summary: don't change FLTK code but document what to do and not to do.
2022-03-07 18:28:32 +01:00
Albrecht Schlosser
fbf7a347ec CMake/MinGW/MSYS2: fix building examples with libglew32 (#226)
CMake/resources.cmake: add NAMES option to find_library

examples/CMakeLists.txt: fix linking libGLEW/libglew32
2022-03-07 15:05:07 +01:00
ManoloFLTK
9e7f49f56f Add missing member initialisation in Fl_Cairo_Graphics_Driver constructor. 2022-03-07 08:34:49 +01:00
ManoloFLTK
f8db18597a Complete class Fl_Cairo_Graphics_Driver using Fl_Wayland_Graphics_Driver 2022-03-06 19:47:06 +01:00
Albrecht Schlosser
272bc2560c Fix MSVC compiler warning
warning C4099: 'Fl_Menu_Item': type name first seen using 'struct'
  now seen using 'class'
2022-03-05 16:05:31 +01:00
Albrecht Schlosser
5ebb76050b Fix size_range() - continued (issue #392)
- fix window size of GL windows as reported for test/glpuzzle.cxx
- fix window not resizing on ctrl/+/- (X11 only)

Unfortunately the previous commit "optimized" a necessary X11 message
away. This is now fixed.

Fixes #392.
2022-03-05 15:50:49 +01:00
ManoloFLTK
c2c7795614 Rename Fl_wayland.cxx to fl_wayland_clipboard_dnd.cxx 2022-03-05 12:28:21 +01:00
ManoloFLTK
f5ad1d2545 Wayland: fix configure-based build 2022-03-05 10:18:11 +01:00
ManoloFLTK
c4ffbf9d8c Restore statement erroneously commented out. 2022-03-05 08:58:55 +01:00
ManoloFLTK
f66c142bbe Wayland: activate min window size to get feedback about impact on users 2022-03-05 08:35:33 +01:00
ManoloFLTK
6216165dec Add the Wayland platform to FLTK 1.4 - continued. 2022-03-04 16:58:20 +01:00
ManoloFLTK
d4e21963b5 Add build-wayland step to continuous integration. 2022-03-04 15:55:49 +01:00
ManoloFLTK
3718effc43 Add the Wayland platform to FLTK 1.4 2022-03-04 15:41:00 +01:00
Albrecht Schlosser
a773fdc44b Fix whitespace, update dependencies and fluid files 2022-03-03 17:20:24 +01:00
ManoloFLTK
d8cb8ec916 Fix for issue #401. No longer attempt to transiently inactivate the maximize button.
This inactivation works with some window managers, but not with KDE or xfce.
It's probably an issue of these WM rather than of FLTK.
2022-03-03 09:46:37 +01:00
Albrecht Schlosser
47154602dd Simplify internal Fl_WinAPI_Window_Driver::fake_X_wm() method
Add optional arguments 'style' and 'styleEx' to fake_X_wm().

Remove static function fake_X_wm_style() and include its code in the
Window driver method Fl_WinAPI_Window_Driver::fake_X_wm(). This
removes some calls and function arguments.
2022-03-01 13:45:51 +01:00
Albrecht Schlosser
091712bea8 Fix default size_range() calculation (issue #392, STR 3352) 2022-03-01 13:45:51 +01:00
ManoloFLTK
d4ceb20ad3 macOS: add how to install autoconf without brew 2022-02-27 21:32:07 +01:00
Albrecht Schlosser
fcf89b580e Fix Visual Studio build warnings in OpenGL graphics driver 2022-02-26 19:48:47 +01:00
Albrecht Schlosser
7810cda145 Fix Visual Studio build warnings 2022-02-26 18:19:43 +01:00
Albrecht Schlosser
e092b562ba Documentation: remove duplicate color name 2022-02-24 19:41:07 +01:00
Albrecht Schlosser
cdd1933661 X11: Disable "boxcheat" hack
For details see comment in src/Fl_x.cxx: this "Hack to speed up
bg box drawing" is now disabled for several reasons. The code
is still available if the macro ENABLE_BOXCHEAT is defined.
2022-02-22 19:55:11 +01:00
Albrecht Schlosser
406f2c33f4 Update dependencies 2022-02-21 20:44:04 +01:00
Albrecht Schlosser
84c06419bc Remove obsolete/disabled "boxcheat" code
Windows platform: Remove comments about obsolete code and one
exported declaration of the variable 'fl_background_pixel' which
is used only on the X11 platform.

X11 platform: Remove comments.

Other platforms: not affected.
2022-02-21 20:38:33 +01:00
Albrecht Schlosser
570a05a33c Fix compiler warning [-Wunused-but-set-variable] 2022-02-21 16:51:20 +01:00
Kevin Routley
2de8f8579c
DOC: Provide a link to the "FLTK Standard Box Types" image (#397)
* Provide a link to the "FLTK standard box types" image

The doc for Box Types has the text "see figure 1" which does not exist! [It is figure 5.3 in PDF, no number in HTML].

This change provides a hyperlink which allows the reader to actually navigate to the cited figure.

Confirmed to work as desired in HTML; I don't have LATEX so cannot confirm the PDF.

* Add figure title "Standard Box Types" (#397)

Co-authored-by: Albrecht Schlosser <albrechts.fltk@online.de>
2022-02-21 16:42:08 +01:00
Matthias Melcher
72fe8c6035
Fluid: no grid on window resizing. (#399) 2022-02-20 22:03:39 +01:00
Matthias Melcher
a878e253ad
Fluid: fixed missing return value (#398)
...and possible devision by zero
2022-02-20 21:15:58 +01:00
Albrecht Schlosser
fd8170525b Fix typos and copyright 2022-02-19 12:55:06 +01:00
Albrecht Schlosser
ec974ce6b8 Update copyright year of documentation 2022-02-16 14:51:00 +01:00
Albrecht Schlosser
1cdd669dc6 Fix "fl_message_icon() regression" (#395)
Some attributes of the default message icon had not been copied to
the new Fl_Message class when opening a new dialog.

Clarify documentation about supported icon attributes.
2022-02-16 14:50:50 +01:00
Matthias Melcher
390095392b Adding comments to recent Fluid changes. 2022-02-14 13:20:34 +01:00
Matthias Melcher
8c3778e13f
Better Fluid Widget dimension controls (#394)
* Size and position widgets can evaluate basic math.

* Allowing x, y, w, and h as variables for formulas.

Also supporting 'i' as a counting index when selecting multiple
widgets, so setting Y: to i*25+10 arranges all selected widgets
vertically.

* Additional variables cx, etc. for children box

cx, cy, cw, ch
2022-02-13 22:01:16 +01:00
Kevin Routley
f196ffbb52
Fix documentation error in Fl_Tabs (#391) 2022-02-13 12:40:48 +01:00
Matthias Melcher
c9b44064d2
Fluid: adding feature: Functions can also be "local". (#390)
Before, Functions could only be "static" (keyword static is added)
or "global" (prototype is added). This is harmful if the function or
method was declared elsewhere. "local" solves that.
2022-02-13 00:54:44 +01:00
silverduner
52bfbbc2fa
expose position(int, int), x(), y(), w() and h() from Fl_File_Chooser (#80)
* expose position(int, int), x(), y(), w() and h() from Fl_File_Chooser for positioning

* exposed size() and resize() in Fl_File_Chooser.
2022-02-12 20:46:12 +01:00
Matthias Melcher
62daf00a9e Fixed Fluid Alignment panel i18n to none. 2022-02-11 16:00:37 +01:00