Commit Graph

10615 Commits

Author SHA1 Message Date
Matthias Melcher
f8a3278776 FLUID: emulated RTTI for all types
Complete type hierarchy in Fl_Types doc
Window now derives correctly from Group
Menu Items now correctly (functionally in FLUID) derived form Button
Menu Buttons have a better hierarchy
Fixing two possible crash bugs where Input_Choice was assumed to be a Menu_
Hoping I have not degraded the original code!
2023-07-19 17:45:28 +02:00
Albrecht Schlosser
9ee8cdc727 Fix textcolor of transient scale display (#756)
Make background color and text (label) color of the transient scale
display consistent with tooltip colors.
2023-07-19 16:17:51 +02:00
Matthias Melcher
aeedd18316 FLUID fixes wrong type IDs and more cleanup 2023-07-19 15:06:25 +02:00
Albrecht Schlosser
069a6b430b Enable compilation with VS 2022 and clang (#752)
Ensure that <stdint.h> is included in Visual Studio 2010 and later
(_MSC_VER >= 1600).
2023-07-19 14:25:14 +02:00
Albrecht Schlosser
1e890ea4e4 Fix libpng compilation warning (#757)
According to the reported issue this warning appears when using
gcc 13.1.0 (rev7, MinGW-W64).

it's very likely a new warning and a false positive because the
buffer is used as an output parameter, but anyway.
2023-07-19 13:48:43 +02:00
Matthias Melcher
d331a697ed FLUID: text fixes 2023-07-18 15:30:07 +02:00
Matthias Melcher
4f7a3f384f FLUID correct inheritance, formatting, factory floor cleaning 2023-07-18 15:21:14 +02:00
Matthias Melcher
2279f85824 FLUID: restores g++98 compatibility
I want enum classes, sigh.
2023-07-17 20:41:04 +02:00
Matthias Melcher
9bdc7139da FLUID: better initial sizes for buttons and windows 2023-07-17 20:21:04 +02:00
Matthias Melcher
9794d200b3 FLUID: emulating RTTI and fixing type dependencies (Buttons) 2023-07-17 18:32:13 +02:00
Matthias Melcher
80ad543963 FLUID: using symbols instead of integers 2023-07-17 15:56:05 +02:00
Matthias Melcher
4d94a08bd2 FLUID: fix window visibility across project file update 2023-07-17 12:56:35 +02:00
ManoloFLTK
4dffa31520 Documentation: add detail about primary monitor 2023-07-15 08:41:57 +02:00
Matthias Melcher
5d69828ed0 FLUID: fixes all overlapping widgets in all .fl files
Also fixes an issue with multiple use of the same variable
for different types of i18n.
2023-07-14 23:42:17 +02:00
Matthias Melcher
b2eb664586 FLUID File Format Documentation Fixes 2023-07-14 19:16:55 +02:00
Matthias Melcher
92a1cacd62 FLUID: File Format Fault Fixes. 2023-07-14 18:46:59 +02:00
Matthias Melcher
f8ebde4da4 Documentation: screenshot updates 2023-07-14 18:10:17 +02:00
Albrecht Schlosser
1259275316 Keep sending FL_DRAG until all mouse buttons are released
The old version would send FL_MOVE events after dragging with more
than one mouse buttons pressed, as soon as the first button was
released.

The new version sends FL_DRAG until the last mouse button is released
and then FL_MOVE, as usual.

This change affects dragging only if more than one mouse button is
pushed and held while dragging. The order of pushing and releasing
mouse buttons does not affect the behavior.
2023-07-14 18:02:17 +02:00
ManoloFLTK
f8d0b591ab Documentation: correct spelling errors 2023-07-14 18:00:34 +02:00
Matthias Melcher
4d3e1032ea FLUID formatting and comments 2023-07-14 15:17:14 +02:00
ManoloFLTK
d9df40f99d Documentation: details about how to position a window in screens 2023-07-13 18:22:59 +02:00
ManoloFLTK
6f05af3c12 Wayland: add control of targeted screen by fullscreen windows 2023-07-13 18:19:01 +02:00
Albrecht Schlosser
580a531ef5 Clamp input values of Fl_Color_Chooser (#749)
Note: this may be somewhat confusing if the user enters out-of-range
values manually because they are overwritten immediately with valid
input but the effects seen in issue #749 are IMHO worse.
2023-07-13 14:34:25 +02:00
Albrecht Schlosser
03913f32e0 Display mouse button state in test/handle_events.cxx demo
See fltk.general, thread "Is handling simultaneous Left-click and
  Right-click drags supported?" from Jul 12, 2023

Status: FL_DRAG operation is terminated when one mouse button is
  released, even if more than one button is actually down. Subsequent
  mouse movement is reported as FL_MOVE rather than FL_DRAG, this is
  under investigation.
2023-07-12 19:32:02 +02:00
Albrecht Schlosser
44840af076 Wayland: keep mouse button state across push/release events
Notes:

(1) Fl::e_state holds the current state of all mouse buttons which is
    returned by Fl::event_buttons() - "plural form".

(2) Fl::e_keysym holds the "key" of the current event which can be a
    mouse button, returned by Fl::event_button() - "singular form".
2023-07-12 18:49:01 +02:00
Albrecht Schlosser
858c3cad86 Fix Wayland FL_RELEASE events reporting wrong button
... in Fl::event_button().

This can be seen when two buttons have been pressed simultaneously
and then released (see test/handle_events.cxx).
2023-07-12 18:05:07 +02:00
Matthias Melcher
11dc28c321 FLUDI documentation updates 2023-07-12 15:27:52 +02:00
Matthias Melcher
9826b345ac corrects default popup menu box type for Fl_Choice (#748) 2023-07-12 13:18:48 +02:00
Matthias Melcher
c2cce9cba8 FLUID: typo 2023-07-11 23:21:37 +02:00
Matthias Melcher
2e9c1a5097 FLUID adding hatch pattern to overlapping widgets 2023-07-11 23:13:55 +02:00
Matthias Melcher
71088b7fe2 FLUID mark project change when changing window visibility 2023-07-11 14:27:58 +02:00
Matthias Melcher
676bad861a FLUID source files sorting improved 2023-07-10 17:07:34 +02:00
ManoloFLTK
c47cbf4402 More detailed documentation of Fl::screen_xywh() 2023-07-10 09:18:26 +02:00
ManoloFLTK
4d2d3cf76d Documentation: explain how to refresh GUI while printing 2023-07-09 12:59:54 +02:00
ManoloFLTK
3a777eed58 Describe cmake option OPTION_ALLOW_GTK_PLUGIN 2023-07-09 08:29:58 +02:00
Mohammed Alyousef
d939375a52 Update CMakeLists.txt 2023-07-09 08:11:42 +02:00
ManoloFLTK
18befa5e81 Add details to documentation of Fl_Wayland_Gl_Window_Driver::swap_buffers() 2023-07-08 09:23:38 +02:00
ManoloFLTK
3d03a5426b Improve documentation of Fl::screen_num(int x, int y) 2023-07-07 15:11:26 +02:00
Matthias Melcher
6fbc7ad86e FLUID #739: emit User Code late for Window and Widget Class 2023-07-03 17:19:37 +02:00
Albrecht Schlosser
66bf6ea346 Clarify documentation of Fl_Window::size_range()
Document typical (recommended) usage and platform specific behavior.
2023-06-28 16:01:15 +02:00
ManoloFLTK
69cb274415 Documentation: beef-up the OpenGL section of wayland.dox 2023-06-28 11:12:57 +02:00
ManoloFLTK
0b6dcd14d9 Documentation: add a few updates to intro.dox 2023-06-28 09:35:25 +02:00
ManoloFLTK
8bb29e823c Have Fl_Wayland_Window_Driver use Fl::add_check() when adequate 2023-06-28 08:47:21 +02:00
ManoloFLTK
f5879ae228 Slight simplification of Fl_Wayland_Gl_Window_Driver::swap_buffers()
Also, reorder members of class Fl_Wayland_Gl_Window_Driver
2023-06-27 09:05:46 +02:00
ManoloFLTK
81615bbe0b Fix Fl_Cocoa_Gl_Window_Driver::resize()
The additional [NSOpenGLContext flushBuffer] messages appear necessary when an Fl_Tile contains
2 or more GL subwindows.
2023-06-26 15:00:52 +02:00
ManoloFLTK
5196d66825 Wayland: improve mapping and hiding of GL (subs)windows 2023-06-24 09:23:01 +02:00
ManoloFLTK
38381ef544 Slightly simpler Fl_Wayland_Window_Driver::hide() 2023-06-23 10:03:30 +02:00
ManoloFLTK
eca471eee6 Wayland.dox: add a few more detailed explanations 2023-06-21 21:05:47 +02:00
ManoloFLTK
c43cf2f192 Wayland: improve support of multi-display setups 2023-06-19 17:48:37 +02:00
ManoloFLTK
742af8a31a Wayland: fix menutitle windows with scaled, multiple display 2023-06-13 14:39:03 +02:00