Albrecht Schlosser
44bb080c0f
Remove friend declaration from Fl_Window.H (see STR 3354)
...
Although this was not strictly necessary I decided to implement the
proposed patch, but in a slightly different way.
This adds a static public method for internal use only but it wouldn't
do any harm if a user called it.
2023-11-17 16:55:37 +01:00
Greg Ercolano
38fc08c15f
Added clear(), some methods protected->public
...
New public methods:
void clear(void);
void clear(Fl_Color val);
old protected methods made public:
void clear_screen(bool scroll_to_hist=true); // ESC [ 2 J
void clear_screen_home(bool scroll_to_hist=true); // ESC [ H ESC [ 2 J
void cursor_home(void); // ESC [ 0 H
test/terminal modified to test these, and added separate tests
for both the API and ANSI code ways to do these ops.
2023-11-16 15:45:29 -08:00
Matthias Melcher
d1d38090fb
Fixes return type of Fl_Input_::dvalue()
2023-11-15 22:45:20 +01:00
Albrecht Schlosser
6f021d4830
CMake: Raise cmake_minimum_required from 3.12 to 3.15
...
Remove code that checks CMake versions lower than 3.15
2023-11-15 21:30:12 +01:00
Albrecht Schlosser
45fd145370
Remove mention of Fl_Simple_Terminal
2023-11-15 14:11:25 +01:00
ManoloFLTK
dd1c2fc843
Wayland: fix moving top-level window around with mouse
2023-11-15 11:48:45 +01:00
Greg Ercolano
605328e045
Added textcolor() and color(), doc fixes.
...
textcolor() needed for consistency, color() behavior documented.
Both added to the test/terminal app.
Elaborated on the special background "see through" color value + behavior,
tested with color() in test/terminal app.
2023-11-14 12:23:23 -08:00
Albrecht Schlosser
4b315d190c
Fix dependencies and whitespace issues
2023-11-14 18:14:48 +01:00
erco77
6842a43a31
Fl_Terminal widget ( #800 )
...
Pull Fl_Terminal widget from Greg's fork
2023-11-14 07:01:52 -08:00
ManoloFLTK
888dc5f5c5
Have libdecor-gtk implement the "GTK Shell" protocol
2023-11-12 19:13:35 +01:00
ManoloFLTK
768dcf2c11
Fix: Potential NULL pointer dereference in Fl_Image_Surface c'tor ( #834 )
2023-11-12 08:56:51 +01:00
ManoloFLTK
ce9ba4ba08
Remove unseless code in Fl_Wayland_Screen_Driver.cxx
2023-11-12 08:40:37 +01:00
ManoloFLTK
ff134f0081
Wayland: make fl_close_display() free more resources
2023-11-09 07:58:08 +01:00
ManoloFLTK
5989caf070
Wayland: fix crash in editor after return from switching user
2023-11-08 10:25:08 +01:00
ManoloFLTK
93b26e4d3b
Let Wayland FLTK client apps survive switching user
2023-11-08 09:18:30 +01:00
Matthias Melcher
214b133298
Fixes initial calculation of line number in Fl_Text_Display ( #830 )
2023-11-07 15:09:08 +01:00
Matthias Melcher
90d7737254
Fix buttons overlapping icon in message box ( #826 )
2023-11-07 14:28:22 +01:00
Matthias Melcher
d7768b76d0
FLUID: Adds template for tutorial.
...
Tutorial still to be written.
Also adds convenience methods to Fl_Input_
for getting and setting numeric values.
2023-11-07 14:28:22 +01:00
ManoloFLTK
8b31954d66
"hitting esc to close fltk app blows out the window manager" ( #821 )
2023-11-07 11:32:12 +01:00
ManoloFLTK
acc96cdf56
CHANGES.txt: add Fl_Grid, Fl_Window::maximize()
...
Also, remove stray virtual keyword.
2023-11-06 07:44:55 +01:00
ManoloFLTK
6a607c8282
maximize method for Fl_Window (macOS) ( #820 ) - cont'd
2023-11-06 00:05:18 +01:00
Matthias Melcher
f3b490134e
Fixes text input widget undo propagation.
...
If not handled, undo propagates to other random widgets,
and if none takes it, it is resent as a redo to all widgets.
2023-11-05 22:19:03 +01:00
ManoloFLTK
0ae927a00e
Add Fl_Window::maximize() and Fl_Window::un_maximize()
2023-11-05 19:42:55 +01:00
ManoloFLTK
d4d72cfdaf
Related to "FLTK doesn't work normal on platform of rockchip" ( #817 )
2023-11-03 22:10:01 +01:00
ManoloFLTK
eb3afb2033
Wayland copy: destroy data_source object before creating new one
2023-11-03 15:16:36 +01:00
ManoloFLTK
a3f4c62826
Wayland copy: destroy data_source object before creating new one
2023-11-03 13:12:32 +01:00
ManoloFLTK
c0c0ea18aa
Fix "fltk 1.4.x: hangs during paste in fluid code editor" ( #818 )
2023-11-03 12:50:18 +01:00
ManoloFLTK
040607b595
Minor change in Fl_Wayland_Graphics_Driver::copy_offscreen()
2023-11-02 09:08:16 +01:00
ManoloFLTK
914ee02c5f
Fix typos in documentation
2023-11-01 12:26:54 +01:00
Albrecht Schlosser
c47fd75bcd
Fix typos
2023-10-31 18:22:42 +01:00
ManoloFLTK
9a00f07c4f
Move the Fl_String class to the DriverDeveloper Doxygen group
2023-10-31 18:01:53 +01:00
ManoloFLTK
8b603b9f1b
Move private classes to the DriverDeveloper Doxygen group
...
Classes moved are
-Fl_Int_Vector
-Fl_Kdialog_Native_File_Chooser_Driver
-Fl_Zenity_Native_File_Chooser_Driver
2023-10-31 17:51:32 +01:00
ManoloFLTK
0e41ca820d
Remove 81615bb
causing GL window to blink when resizing on macOS ( #813 )
2023-10-31 16:52:59 +01:00
ManoloFLTK
99826a5fba
Minor simplification in Fl_X11_Window_Driver::flush_double(int)
2023-10-30 18:27:12 +01:00
Matthias Melcher
aab6afd32c
FLUID: Documentation and typos.
2023-10-27 16:09:06 +02:00
ManoloFLTK
06d12892f9
Fix "Wayland: Overlay windows look blurred" - cont'd ( #808 )
2023-10-25 15:20:34 +02:00
ManoloFLTK
35d8504263
Fix "Wayland: Overlay windows look blurred" - cont'd ( #808 )
2023-10-25 13:02:34 +02:00
ManoloFLTK
a5e8fbcca0
Fix "Wayland: Overlay windows look blurred" ( #808 )
2023-10-24 23:09:09 +02:00
ManoloFLTK
0636c0b3e6
Wayland: implement scale factor windows as popups - cont'd
2023-10-24 19:25:59 +02:00
Albrecht Schlosser
e391dc1bf9
Fix Fl_Flex::resize() and layout() ( #811 )
...
Remove "too optimistic optimization" in resize(). Resize must always
call layout() to recalculate widget positions.
2023-10-24 18:13:11 +02:00
Albrecht Schlosser
5a8a28cbb5
Remove test/debug statements from Fl_Table.cxx
2023-10-24 12:51:40 +02:00
ManoloFLTK
3868ea90bd
Wayland: implement scale factor windows as popups - cont'd
2023-10-24 09:43:23 +02:00
Matthias Melcher
b9758f564f
FLUID: Fixes two minor bugs
...
* Fl_Grid mixed up gap_ro_ vs. gap_col_ once
* Code formatting warning
2023-10-23 18:28:52 +02:00
ManoloFLTK
e0aae4401a
Use #ifdef FLTK_USE_SVG instead of #if FLTK_USE_SVG
2023-10-23 16:40:48 +02:00
ManoloFLTK
3307a1281f
Prepare Fl_Wayland_Screen_driver.cxx for removal of Fl_Int_Vector
2023-10-23 16:21:16 +02:00
ManoloFLTK
fa1f00cc46
Wayland: simpler implementation of transient scale factor windows
2023-10-23 15:00:34 +02:00
ManoloFLTK
234c153853
Avoid macOS 14 warning message when app is launched from command line
2023-10-23 12:13:29 +02:00
ManoloFLTK
39a157a7dd
Wayland: implement transient scale factor windows as popups
...
as discussed in issue #794 .
Also, fix for macOS the use of the FL_FOCUS event for these transient windows
2023-10-23 11:15:04 +02:00
Matthias Melcher
17baeceb7a
FLUID: Positioning grid cells intuitively.
...
User can now drag widgets from the toolbox into the grid
or use the context menu to add them into the corresponding
cell. If no position is indicated, now children are added at the
first free cell.
2023-10-23 01:36:55 +02:00
Albrecht Schlosser
1209e9dcd7
Make Fl_String and Fl_Int_Vector private ( #789 )
...
- add CMake option 'OPTION_USE_STD'
- add configure option '--enable-use_std'
- move FL/Fl_String.H to src/Fl_String.H
- move FL/Fl_Int_Vector.H to src/Fl_Int_Vector.H
- remove Fl_String from demo program examples/callbacks.cxx
- remove Fl_Int_Vector from public header FL/Fl_Table.H
- some methods of Fl_Table are no longer inline
- add CMake option OPTION_USE_STD to allow std::string in some
selected functions and methods
Experimental, may be removed before release:
- use either Fl_Int_Vector or std::vector in Fl_Table depending
on CMake OPTION_USE_STD or configure --enable-use_std
Move all fl_filename* functions that use Fl_String to fluid
Main changes in fluid:
- add fluid_filename.h and .cxx
- include "fluid_filename.h" rather than <FL/filename.H>
Update fl_input(), fl_password() and test/ask
- add maxchar parameter to fl_input() and fl_password()
- fl_input_str() and fl_password_str() are optional and return
std::string if enabled (FLTK_USE_STD)
2023-10-22 19:35:17 +02:00