Albrecht Schlosser
8ba982ae37
Fix Cairo callback drawing (needs flush)
...
This commit adds a cairo_surface flush after calling the draw callback.
This fixes the test/cairo_test demo program under Windows.
At least under Windows the Cairo callback used in Fl_Cairo_Window
didn't draw anything with current Windows 10, MinGW (32-bit) and
Cairo 1.15.12 for Windows. It worked well under Linux though. Anyway,
the flush should do no harm.
2019-01-12 15:54:57 +01:00
Manolo Gouy
b027da8322
Document global variable fl_sys_menu_bar - continued.
2019-01-02 19:41:44 +01:00
Manolo Gouy
e118532c72
Document global variable fl_sys_menu_bar - continued.
2018-12-31 16:37:36 +01:00
Manolo Gouy
ca8c5feb16
Document global variable fl_sys_menu_bar.
2018-12-31 16:03:46 +01:00
Matthias Melcher
bf48acdbe5
Adding documentation for '@N', inactive color.
2018-12-29 02:16:40 +01:00
Matthias Melcher
95ab1dd73e
Fixing STR #2901 , wrongly escaping the formatting character code in Fl_Browser.
2018-12-29 02:03:49 +01:00
ManoloFLTK
f9228e55b3
Better Doxygen explanation of the use of Fl::paste().
2018-12-05 14:53:27 +01:00
ManoloFLTK
05e3df582e
Avoid 2 errors sent by Doxygen 1.8.14
2018-12-05 12:43:50 +01:00
ManoloFLTK
3bcb1256bb
New static member function: Fl_Device_Plugin *Fl_Device_Plugin::opengl_plugin()
2018-12-05 11:04:58 +01:00
ManoloFLTK
d2870d6f7d
Define useful implementations of Fl_Graphics_Driver::push_no_clip() and pop_clip().
2018-12-04 15:11:03 +01:00
ManoloFLTK
b985b884f8
Give a meaningful default implementation to a few more member functions of class Fl_Graphics_Driver.
2018-12-04 12:57:32 +01:00
Manolo Gouy
c33d3c6aaa
Remove unused arguments from the Fl_Device_Plugin::print() member function.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13141 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-30 09:01:12 +00:00
Manolo Gouy
b511f6a7a4
Use the Fl_Gl_Device_Plugin mechanism to simplify the construction of a layer-backed GL window.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13140 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-29 17:50:55 +00:00
Manolo Gouy
46f08f6d21
Documentation: reveal where the Fl_Preferences text files are located on each platform.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13136 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-27 12:41:39 +00:00
Albrecht Schlosser
75b6cee6cc
Document that Fl_Widget::GROUP_RELATIVE bit is not used.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13073 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-10-19 16:50:57 +00:00
Manolo Gouy
b79f3ed1f2
Prepare for support of MacOS 10.14 Mojave.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13067 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-10-16 09:28:25 +00:00
Albrecht Schlosser
86b0756e15
Update dependencies and fluid files, fix typos.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13036 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-30 10:41:16 +00:00
Manolo Gouy
b3b29632fb
Doc only: better doc of recently added events: FL_SCREEN_CONFIGURATION_CHANGED, FL_FULLSCREEN,...
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13035 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-30 08:31:53 +00:00
Manolo Gouy
153b175d90
Better doc for using OpenGL version 3.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13023 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-21 07:45:32 +00:00
Manolo Gouy
a3529e7c3f
Improved documentation related to access to OpenGL 3 under X11 platform.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13022 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-20 15:56:39 +00:00
Manolo Gouy
a9e2a78bb0
Improve the documentation of scaling factor-related operations.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13013 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-09 11:51:38 +00:00
Manolo Gouy
cd399d9898
Support for GUI scaling: add API to get/set the scaling factor value.
...
Also, define an FLTK event triggered when the scaling is changed and an option
to disable the transient window showing the new scaling factor.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13011 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-08 20:08:10 +00:00
Albrecht Schlosser
fb0f940c51
Update doxygen files to fix broken PDF generation.
...
Note: PDF generation "worked" with the previous configuration up to
doxygen 1.8.6 on my "old" Ubuntu 14.04 system but did no longer work
with doxygen 1.8.7 - 1.8.13 (the latter on Ubuntu 18.04).
Tests showed that 1.8.14 is seriously broken and git:master (aka 1.8.15,
but not yet released as of today) is not usable as well. Hopefully there
will be some doxygen fixes in the future.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13010 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-07 09:01:32 +00:00
Greg Ercolano
205570d134
Fl_Tree documentation fixes for html/pdf, doxygen 1.8.5
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13008 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-06 18:04:46 +00:00
Manolo Gouy
a4194a40ab
Have the Doxygen doc of fl_draw_pixmap() show the default value of the last argument.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13005 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-04 16:42:32 +00:00
Albrecht Schlosser
bf19362179
Add missing Fl_Cairo_Window constructors (STR #3160 ).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12993 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-07-27 09:05:12 +00:00
Manolo Gouy
99cf1dd858
Make Fl_Graphics_Driver::newMainGraphicsDriver() public rather than private.
...
An FLTK app may be interested in calling it.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12991 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-07-10 10:51:02 +00:00
Manolo Gouy
87d186d68c
Remove useless 'friend' statements from declaration of class Fl_Image_Surface
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12982 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-27 12:00:40 +00:00
Manolo Gouy
73613f8c2f
Use #include <FL/platform_types.h> to define type Fl_Offscreen
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12981 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-27 11:09:13 +00:00
Manolo Gouy
51389ca460
Add examples/SVG_File_Surface.cxx and refer to it in the doc of class Fl_Surface_Device
...
This example code shows how to subclass Fl_Surface_Device and Fl_Graphics_Driver to
endow FLTK with a new kind of graphics output.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12980 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-27 09:27:04 +00:00
Manolo Gouy
3199e3331b
Move Fl_Gl_Window_Driver.H from FL/ to src/
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12977 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-26 14:23:51 +00:00
Manolo Gouy
7046e99f96
Move Fl_System_Driver.H from FL/ to src/
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12976 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-26 14:12:43 +00:00
Manolo Gouy
26cb08badb
Move Fl_Screen_Driver.H from FL/ to src/
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12975 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-26 14:04:09 +00:00
Manolo Gouy
7ebe8e21b0
Move Fl_Window_Driver.H from FL/ to src/
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12974 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-26 13:43:18 +00:00
Manolo Gouy
82c7a1baa7
Move Fl_Sys_Menu_Bar_Driver.H from FL/ to src/
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12972 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-26 07:38:54 +00:00
Matthias Melcher
b8e97d7c28
Doxygen only: fixed all block comments starting with an asterisk to space-only, fixed doxygen keywords prepended with @ to use a backward slash instead. No code was changed.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12970 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-23 20:50:22 +00:00
Matthias Melcher
b1598dc703
Removed macro FL_PORTING, as it has been more confusing than helpful.
...
The original intention of FL_PORTING was to mark all places in the
source code where changes are required to port FLTK to a new platform.
Thanks to the driver system, this approach has become somewhat
misleading, so I removed all references.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12969 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-23 17:04:18 +00:00
Matthias Melcher
a9fd08ff5a
Doxygen: created Group to document drivers, disabled by default
...
Uncomment `ENABLED_SECTIONS += DriverDev` in documentation/Doxyfile.in
to enable driver documentation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12968 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-23 16:47:40 +00:00
Albrecht Schlosser
ec0ac46aa8
Move platform specific shortcut code to platform drivers.
...
Tested on Windows and Linux (not tested on MacOS/Android).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12951 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-20 15:52:58 +00:00
Manolo Gouy
32b35e62d2
Turn static function Fl_Graphics_Driver * Fl_Graphics_Driver::newMainGraphicsDriver() private.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12943 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-15 07:42:17 +00:00
Manolo Gouy
bfac49015c
Fix for STR#3475: X11 platform, re-use current screen scaling factor when processing a screen reconfiguration event.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12939 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-08 11:31:30 +00:00
Manolo Gouy
f3971319b9
MacOS: have Fl_OpenGL_Display_Device::capture_gl_rectangle() capture also the overlay of GL windows.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12938 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-30 20:20:47 +00:00
Manolo Gouy
8ef4035b6d
Replace Fl_Paged_Device::newPrinterDriver() by Fl_Printer::newPrinterDriver().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12937 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-25 06:54:03 +00:00
Manolo Gouy
bbd5514691
Rewrite static function Fl_Image_Surface::rescale(Fl_Image_Surface*&) as member function Fl_Image_Surface::rescale().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12936 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-25 04:36:49 +00:00
Greg Ercolano
b721f519ac
Added separate diagram for fl_arc(x,y,r,a1,a2) (very different from fl_arc(x,y,w,h,a1,a2))
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12935 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-24 19:48:41 +00:00
Greg Ercolano
2694217d76
Extra refs for fl_pie/fl_arc diagrams..
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12934 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-24 18:02:55 +00:00
Manolo Gouy
c886fe9c33
Add documentation for Fl::reset_marked_text() and Fl::insertion_point_location().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12930 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-24 10:58:47 +00:00
Manolo Gouy
f90450ad05
Make static member function Fl_Window_Driver* Fl_Window_Driver::driver(const Fl_Window *) inline.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12928 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-23 16:42:43 +00:00
Manolo Gouy
ce71c4b679
Add Fl::screen_scale(int) function to get the scaling factor value of a screen.
...
This allows to keep class Fl_Screen_Driver away from the public API.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12926 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-22 17:00:27 +00:00
Manolo Gouy
509c5be0d5
Remove useless #include directives.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12922 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-14 14:58:21 +00:00