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
Manolo Gouy
680cb7dba9
Comments only: update the header part of the file
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12921 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-14 14:52:23 +00:00
Manolo Gouy
a4927c1d13
Fl_Scalable_Graphics_Driver::rect(): don't draw a rectangle if w or h is negative
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12920 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-13 07:42:44 +00:00
Manolo Gouy
10640df785
MacOS: move some code from file Fl_cocoa.mm to file Fl_Darwin_System_Driver.cxx - continued
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12919 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-12 17:03:26 +00:00
Manolo Gouy
aba87e8bb0
MacOS: move some code from file Fl_cocoa.mm to file Fl_Darwin_System_Driver.cxx
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12918 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-12 17:01:33 +00:00
Manolo Gouy
4c45bec127
MacOS: move some code from file Fl_cocoa.mm to file Fl_Cocoa_Window_Driver.cxx
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12917 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-12 16:59:03 +00:00
Manolo Gouy
6fd216d759
MacOS: move timer-related code from file Fl_cocoa.mm to file Fl_Cocoa_Screen_Driver.cxx
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12916 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-12 16:44:31 +00:00
Manolo Gouy
8b7f7c78b2
Remove public member function Fl_Window_Driver *Fl_Window::driver() so class Fl_Window_Driver is not in FLTK public API.
...
This function is replaced by static Fl_Window_Driver* Fl_Window_Driver::(const Fl_Window *win).
The purpose is to have class Fl_Window_Driver outside from FLTK ABI.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12915 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-12 09:36:36 +00:00
Manolo Gouy
5e785121e0
Mention new member functions Fl_Paged_Device::begin_job() and begin_page().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12914 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-11 06:37:50 +00:00
Manolo Gouy
1d8edbead1
Fix typo.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12913 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-11 06:25:35 +00:00
Manolo Gouy
bf04697a05
Comments only: describe the Inheritance diagram for classes Fl_Surface_Device and Fl_Graphics_Driver
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12912 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-10 09:55:29 +00:00
Manolo Gouy
a0d7addea8
Fix fl_overlay_rect() for MacOS platform when GUI is scaled.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12911 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-09 15:22:26 +00:00
Manolo Gouy
2b7aac129b
Rename Fl_Paged_Device::start_job() to begin_job() and Fl_Paged_Device::start_page() to begin_page().
...
The new function names begin_job() and begin_page() better match end_job() and end_page() with which
they must be used by pair.
The old names start_job() and start_page() are maintained for API compatibility with FLTK 1.3.x
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12910 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-09 14:16:35 +00:00
Manolo Gouy
8081899934
Remove a bunch of useless #include <FL/Fl_Printer.H> statements.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12909 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-09 12:27:38 +00:00
Greg Ercolano
28807a3fab
Added convenience method update_menubutton(),
...
which tries to keep the menu synchronized with the Fl_Input field,
assuming there's a match.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12908 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-07 21:24:06 +00:00
Manolo Gouy
4ede9cec29
New Fl_Image_Surface::rescale() class function and document equivalence between Fl_Offscreen-based and Fl_Image_Surface-based approaches.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12907 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-07 13:43:28 +00:00
Manolo Gouy
d2355dd53b
Documentation: in the programming manual, mention new class Fl_SVG_Image and member function Fl_Image::scale()?
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12906 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-07 10:24:19 +00:00
Manolo Gouy
c6109d9a18
Deprecate Fl_Image_Surface::highres_image() because Fl_Image_Surface::image() is enough now images are scalable.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12905 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-06 15:59:08 +00:00
Manolo Gouy
41eb376060
Make member function Fl_Image_Surface::get_offscreen_before_delete() be private.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12904 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-06 15:03:04 +00:00
Manolo Gouy
ccae86b291
Remove useless #include <FL/Fl_Shared_Image.H> following usage of the new Fl_Image::scale() member function.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12903 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-06 10:20:45 +00:00
Manolo Gouy
5c16dcb65b
Simplify Fl_XXX_Window_Driver::capture_titlebar_and_borders() using Fl_Image::scale().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12902 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-06 07:14:13 +00:00
Manolo Gouy
aab1b72af4
Improve fl_overlay_rect() when GUI is scaled.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12901 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-06 06:46:40 +00:00
Manolo Gouy
e6929834c7
Fix Fl_Screen_Driver::traverse_to_gl_subwindows() to support Fl_Widget_Surface::print_window_part().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12900 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-05 17:35:09 +00:00
Manolo Gouy
13b328e75a
Improve Fl_Screen_Driver::traverse_to_gl_subwindows(), still needs to be completed.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12899 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-05 10:59:27 +00:00
Manolo Gouy
eee5c5800c
Fix Fl_X11_Screen_Driver::read_win_rectangle() when GUI is scaled.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12898 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-05 10:22:55 +00:00
Manolo Gouy
c68328c2bf
Add checks for NULL pointer, just in case.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12897 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-05 08:30:34 +00:00
Manolo Gouy
733b4de91d
Simplify Fl_Gl_Device_Plugin::print() using the Fl_Image::scale() member function.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12896 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-04 16:06:08 +00:00
Manolo Gouy
a8054a719f
Documentation: improve doc of Fl_Widget_Surface::print_window_part() and Fl_Widget_Surface::printable_rect().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12895 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-04 15:44:23 +00:00
Manolo Gouy
20ccb6b7f2
Shorten the list of virtual member functions used to support Fl_Widget_Surface derived classes.
...
Change Fl_Cocoa_Screen_Driver::read_win_rectangle() so it captures only
from the current window and ignores its subwindows, as do other Fl_Screen_Driver derived classes.
Remove Fl_Cocoa_Printer_Driver::print_window_part() that is no longer necessary.
Remove Fl_Printer::print_widget() and Fl_Printer::print_window_part() that
are no longer necessary.
Stop Fl_Widget_Surface::print_window_part() from being virtual because its platform-independent
implementation should suffice.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12894 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-04 15:11:47 +00:00
Manolo Gouy
d4eeb75ac6
MacOS: improve fl_overlay_rect() when GUI scale factor = 1.7
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12893 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-04 08:25:45 +00:00
Manolo Gouy
7ef645a91f
Simplify fl_overlay_rect() using the Fl_Image::scale() member function.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12892 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-03 08:39:16 +00:00
Manolo Gouy
bd4679f8d4
Fix fl_overlay_rect() under X11 and Windows when GUI is scaled.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12891 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-03 08:37:58 +00:00
Manolo Gouy
5da16bbd36
Simplify Fl_Widget_Surface::print_window_part() using the new Fl_Image::scale() member function.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12890 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-02 10:39:34 +00:00
Manolo Gouy
b73ff860cc
Make virtual void Fl_Surface_Device::end_current_() have no argument because none is used.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12889 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-01 17:09:15 +00:00
Albrecht Schlosser
e70733b46f
fluid: update copyright year.
...
This is particularly useful for fluid/about_panel.{fl,cxx,h}.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12888 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-01 11:08:38 +00:00
Albrecht Schlosser
2e9ba0a10e
Update fluid (.fl) files.
...
src/Fl_Help_Dialog.fl: Add one missing declaration.
Other files: update (fluid -u) and update source (fluid -c).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12887 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-01 10:58:16 +00:00
Albrecht Schlosser
da68d85935
Add missing function fl_define_FL_ICON_LABEL() (STR #3468 ).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12886 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-01 09:37:03 +00:00
Manolo Gouy
599909135b
Extend documentation of fl_begin_offscreen()
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12885 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-30 09:25:52 +00:00
Albrecht Schlosser
4ad52ebaf7
Fix indentation.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12884 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-30 08:36:52 +00:00
Manolo Gouy
3d70c8c90f
Fl_WinAPI_System_Driver::paste() : fix handling of clipboard containing top-down DIB image.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12883 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-29 19:04:24 +00:00
Manolo Gouy
41b0245163
Fl_WinAPI_System_Driver::paste() : fix indentation only.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12882 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-29 17:28:57 +00:00
Manolo Gouy
6cdfd92247
Pasting image from clipboard: partial support of top-down DIB image (still needs completion)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12881 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-29 17:25:33 +00:00
Manolo Gouy
09f15fcac0
Slightly simplify examples/clipboard.cxx using Fl_Image::scale().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12880 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-29 16:29:13 +00:00
Manolo Gouy
7dba27a404
Fix Fl_WinAPI_System_Driver::paste() when clipboard contains GIF image
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12878 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-29 11:02:34 +00:00
Manolo Gouy
ba4559701f
Fix Fl_WinAPI_System_Driver::paste() when the clipboard contains an image as a DIB and for GUI scale support.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12877 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-29 07:35:06 +00:00
Manolo Gouy
929efec855
Expand the doc of class Fl_Graphics_Driver.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12876 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-27 16:50:27 +00:00
Manolo Gouy
cd3d1f9dd5
Documentation: complete doc of Fl_Image_Surface::offscreen()
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12875 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-26 12:11:26 +00:00
Manolo Gouy
9c389d34f9
Simplify API for Fl_Image_Surface::Fl_Image_Surface(int w, int h, int high_res, Fl_Offscreen off) with non-null offscreen.
...
The caller no longer needs to call Fl_Image_Surface::get_offscreen_before_delete() before object deletion,
because the object destructor knows the offscreen has not been created by the Fl_Image_Surface constructor.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12874 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-26 12:00:49 +00:00
Manolo Gouy
dd93cbd888
Fix Fl_WinAPI_System_Driver::paste() when clipboard contains an image and the GUI is scaled.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12873 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-26 11:51:28 +00:00
Manolo Gouy
069ab1b54f
Fix Fl_GDI_Graphics_Driver::copy_offscreen() when the destination surface is an Fl_Copy_Surface object.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12872 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-26 09:05:20 +00:00