Matthias Melcher
b6be421a1f
Added safety when calling Text_Display methods
...
- before assigning a buffer (Github #845 )
- also fixed a warning form unused arg in Fl_Terminal
2023-11-23 15:16:34 +01:00
Matthias Melcher
de2dd0cddf
Adds zero size check in Fl_Tile::on_move
2023-11-23 00:03:35 +01:00
Matthias Melcher
f8d915cfe6
Fixes warning in Fl_Tile by Doxygen
2023-11-22 22:17:35 +01:00
Matthias Melcher
c961f84086
Fixes warning and errors.
2023-11-22 14:51:59 +01:00
Matthias Melcher
81e26b9089
Adding size range settings to Fl_Tile, initial commit.
...
- some documentation missing
- Fl_Tile::resize() not satisfying yet
- minimums work, maximums currently ignored
- 0 size children may make program hang
2023-11-22 14:45:13 +01:00
Greg Ercolano
9383f172a8
Fl_Terminal docs: Added some tables
2023-11-21 14:41:15 -08:00
Greg Ercolano
c568056244
Added output_translate(): controls lf -> crlf translation
2023-11-21 11:24:27 -08:00
Greg Ercolano
11e6fb5911
Fl::check() docs fix: example indented
2023-11-20 13:36:55 -08:00
Greg Ercolano
7c95aa7c79
Change Fl_Terminal default color() 0x0 -> FL_BLACK
2023-11-20 13:33:08 -08:00
Greg Ercolano
6252131017
Solve issue 837, doc some protected methods.
2023-11-20 09:26:40 -08:00
ManoloFLTK
eb9dd202b2
Fix Fl_Wayland_Image_Surface_Driver c'tor
2023-11-20 10:56:36 +01:00
Greg Ercolano
bc8b186398
Doc all pub/prot members, remove unused, add todo
...
- Made sure all public+protected members are documented.
- Reclassified some private -> protected:
> vscroll_width()
- Removed signatures for unimplemented (non-existant) methods:
> u8c_cursor(void)
> history_use(int,bool)
> cursor_h()
- Reclassified some protected -> private:
> x_to_glob_col()
> xy_to_glob_rowcol()
> is_hist_ring_row()
> is_disp_ring_row()
> handle_ctrl()
> is_printable()
> is_ctrl()
..etc..
> handle_selection_autoscroll()
> handle_selection()
> is_redraw_style
- Add todo for ESC 7 and ESC 8
- Small code formatting mods
- Small typos
2023-11-19 22:46:04 -08:00
Albrecht Schlosser
7e8994c4a2
Windows/MSVC: Fix wide char commandline handling ( #840 )
...
Windows programs (subsystem:windows, not Windows console programs)
compiled with Visual Studio need a WinMain entry point. The commandline
arguments handled by this function are now properly converted to UTF-8
before the standard main() entry point is called.
This applies only to Visual Studio! Note that some build systems like
MinGW and/or MSYS2 may still have issues with some Unicode (non-ASCII)
commandline arguments.
2023-11-19 19:08:53 +01:00
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