Greg Ercolano
9e4c207e27
Added example images for Fl_[Hold/Multi]_Browser
2019-07-26 13:32:18 -07:00
Greg Ercolano
a51012db9b
Modified indent + bracing for author's example code
2019-07-26 12:18:52 -07:00
Greg Ercolano
c03583a8bc
Add small code example, moved widget screenshot higher on doc page
2019-07-26 12:14:49 -07:00
ManoloFLTK
8c7b7eea4b
Fl_Copy_Surface: more detailed Doxygen description.
2019-07-20 08:59:15 +02:00
Albrecht Schlosser
42b8cb7bb8
Add method Fl_Menu_::menu_end() (STR 3523)
...
This method can be called after all menu modifications to make sure
the menu() array is relocated (copied from the internal working area)
to a private place owned by the Fl_Menu_ instance.
menu_end() is now called in Fl_Menu_Button::popup() to make sure
the menu array is in private storage.
This fixes STR 3523 w/o user code changes. Calling menu_end() is
in most cases optional.
Todo: call menu_end() where useful (or necessary), e.g. in
Fl_Choice, Fl_Menu_Bar, etc. ?
2019-06-27 16:04:03 +02:00
Greg Ercolano
fe08c686be
Last commit typo: latex docs fix
2019-06-06 11:14:08 -07:00
Greg Ercolano
bca3ae0b17
Added example for mac Application -> Preferences
2019-06-06 11:09:29 -07:00
ManoloFLTK
a471c67f67
Add default argument values to reimplementations of Fl_Widget_Surface::draw_decorated_window
2019-05-25 18:39:26 +02:00
ManoloFLTK
fce4923212
Merge remote-tracking branch 'origin/master'
2019-05-25 11:59:48 +02:00
ManoloFLTK
0d3a374396
Call virtual member Fl_Surface_Device::end_current() when necessary
...
Rename member function Fl_Surface_Device::end_current_() to end_current(),
set it protected, and make it called by the destructor of all classes
derived from Fl_Surface_Device that re-implement end_current().
This way, end_current() runs equally if Fl_Surface_Device()::pop_current()
is called before or after the drawing surface is deleted.
2019-05-25 11:59:16 +02:00
Albrecht Schlosser
f711bb7cfc
Fix version of removal of deprecated method
...
Removal of methods breaks the ABI, hence we need to wait until 1.5.0
2019-05-25 11:32:37 +02:00
ManoloFLTK
bf50352afe
Remove Fl_Copy_Surface_Driver::draw_decorated_window() that is unnecessary
2019-05-24 14:05:41 +02:00
ManoloFLTK
46fa9d2625
Fix Doxygen comment badly processed by Doxygen 1.8.15
2019-05-22 21:45:12 +02:00
ManoloFLTK
b2c027fa83
Implement Fl_Quartz_Copy_Surface_Driver::draw_decorated_window()
...
The window title is copied in vectorial form when the titlebar is layer-backed.
2019-05-22 21:33:02 +02:00
Albrecht Schlosser
5df7a7678a
Document Fl_File_Input::errorcolor() as deprecated
...
Fl_File_Input::errorcolor() and Fl_File_Input::errorcolor(Fl_Color)
have not been used anywhere. Marked as deprecated.
2019-05-15 18:31:46 +02:00
Albrecht Schlosser
c4a755bdf8
Fix some links in documentation
...
Particularly to Doxygen docs and NEdit which appears to have moved
to sourceforge (according to Wikipedia), see
https://en.wikipedia.org/wiki/NEdit
Note: nedit.org exists but shows some non-English text.
2019-05-15 17:16:11 +02:00
ManoloFLTK
874ccfe645
Fix Doxygen doc of Fl_Window::border(int) and border()
2019-05-09 10:49:03 +02:00
ManoloFLTK
172063b2ad
macOS: yet simpler implementation of window resize and rescale.
2019-04-28 15:31:02 +02:00
ManoloFLTK
0067952e1a
Correct typo in Doxygen doc
2019-04-14 19:10:08 +02:00
ManoloFLTK
52f4aa5546
Doxygen doc: rewording for more clarity.
2019-04-14 19:07:14 +02:00
ManoloFLTK
bb5ef3b1d0
Doxygen: rewording for more clarity.
2019-04-14 09:54:55 +02:00
ManoloFLTK
0f6cbd1cda
Doxygen: rewording for more clarity.
2019-04-14 09:27:41 +02:00
ManoloFLTK
a65d7818be
More explicit short doc of Fl_Multi_Label.
2019-04-14 08:57:17 +02:00
ManoloFLTK
5ad95da98e
Further Doxygen doc about OpenGL and HighDPI.
2019-04-13 08:32:35 +02:00
ManoloFLTK
f55729ed32
Doxygen: describe better support for OpenGL on HighDPI displays.
2019-04-12 18:47:42 +02:00
ManoloFLTK
4abaeba539
Doxygen: make explanation of how PostScript text works always visible.
2019-04-12 11:29:08 +02:00
ManoloFLTK
1280370fc8
Move Doxygen comments next to member function bodies.
2019-04-12 10:36:02 +02:00
ManoloFLTK
d50d0a3069
Remove function body from Fl_Widget_Surface class declaration.
2019-04-12 10:32:46 +02:00
ManoloFLTK
cb7dbc34d7
Make member function Fl_Surface_Device::driver(Fl_Graphics_Driver*) protected.
2019-04-10 15:20:00 +02:00
ManoloFLTK
7a0bebb22f
New virtual member function bool Fl_Surface_Device::is_current()
2019-04-10 13:14:04 +02:00
ManoloFLTK
8286e37b18
Add public function Fl_RGB_Image *fl_capture_window_part()
...
In the context of HighDPI screens, the API of function fl_read_image()
is inadequate because a rectangle of size WxH drawing units
of a window may contain many more than W*H pixels.
Function fl_capture_window_part() returns an Fl_RGB_Image
object whose drawing size matches the size of the rectangle
and whose data size matches the, possibly larger, size in pixels
of the corresponding area of the mapped window.
2019-04-09 18:50:18 +02:00
ManoloFLTK
c66caf5dce
Simpler implementation of Fl_Cocoa_Window_Driver::resize()
2019-04-07 09:09:33 +02:00
ManoloFLTK
e3e195a09c
Use \deprecated Doxygen command where necessary
2019-03-26 13:57:41 +01:00
ManoloFLTK
4324acc6f6
Avoid "unused argument" compiler warnings with -Wextra after #include <fl_draw.H>
2019-03-12 10:55:01 +01:00
ManoloFLTK
21c0134931
New member function const Fl_Image* Fl_Window::shape() replaces int Fl_Window::is_shaped()
...
The new function allows to get the window's shaping image
and delete it after use, if appropriate.
2019-02-23 10:21:27 +01:00
Albrecht Schlosser
79af685c28
Fix typos
2019-02-09 21:21:48 +01:00
ManoloFLTK
65916c106e
Remove Fl_Image::as_rgb_image() virtual member function.
...
It's not used in the library, so its utility remains to be proven.
2019-02-06 17:22:28 +01:00
Matthias Melcher
0cac8d52e3
Fl_Roller can now be controlled via the mouse wheel (STR #3120 ).
2019-02-04 23:12:02 +01:00
Matthias Melcher
017754453e
Typo
2019-02-03 00:49:03 +01:00
Matthias Melcher
2be4d720ab
Tooltips hide by themselves after 12 seconds (STR #2584 ).
2019-02-02 23:56:45 +01:00
Matthias Melcher
c97990e517
Removed all shadow lint in header files (STR #2714 ).
2019-02-02 22:29:53 +01:00
Matthias Melcher
5cd9f6fb80
STR #3323 : glutAddMenuEntry now has a const label argument
2019-02-02 22:16:16 +01:00
Matthias Melcher
30733d2d8d
Added Fl_Input_::append() method (STR #2953 ).
2019-02-02 22:04:15 +01:00
Matthias Melcher
452a410a3e
STR #2714 : remove new shadow lint for MacOS
2019-02-02 17:47:55 +01:00
Matthias Melcher
76668c7cc1
Made Fl_Check_Browser::swap_item public.
2019-02-02 16:28:18 +01:00
Matthias Melcher
e06c09fa25
Fixed missing item handling in Fl_Chekc_Browser (STR #3480 ).
2019-02-02 16:24:10 +01:00
Matthias Melcher
2ce406ab42
Fl_Help_Dialog::load() now returns an error code (STR #3429 )
2019-02-02 01:10:24 +01:00
Matthias Melcher
a5d55f2e2d
STR #3386 : Interface to set maximum width of spinner text field.
2019-02-01 18:58:43 +01:00
Greg Ercolano
4f8e07a0cd
Doxygen mods for new FL_TREE_SELECT_SINGLE_DRAGGABLE flag
...
o Added mention of drag+drop / FL_TREE_SELECT_SINGLE_DRAGGABLE
to list of features on main Fl_Tree doxygen page.
o Whitespace mods to FL_TREE_SELECT_* to fix doxygen 1.8.5
whitespace sensitivity that was causing single sentence
to break into two when spanning multiple "///>" comments
for last item in an enum (doesn't end in ",")
2019-01-23 16:01:06 -08:00
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
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
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
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
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
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
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
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
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
54b697cd49
Reorganise access to the value of the GUI scaling factor with public getter and protected, virtual setter member functions.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12858 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-19 10:39:46 +00:00
Manolo Gouy
d375918a5e
Documentation: place Doxygen doc next to function implementation
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12857 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-19 08:43:19 +00:00
Manolo Gouy
15e3f4b2d2
Simplify the implementation of printing of Fl_Pixmap images under Windows.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12851 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-18 15:03:51 +00:00
Manolo Gouy
c5ab11bbec
Comments only: extend "Implementation note about image drawing" to describe the mask_bitmap virtual member function.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-16 13:21:54 +00:00
Manolo Gouy
26aabc91e1
Remove virtual member Fl_GraphicsDriver::mask_bitmap(char **) and its re-implementations.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12843 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-16 13:00:29 +00:00
Manolo Gouy
9b01ff63e7
Remove Fl_PostScript_Graphics_Driver::mask_bitmap(char **) that is useless.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12842 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-16 10:43:28 +00:00
Manolo Gouy
e85fd31f54
Comments only: complete "Implementation note about image drawing" about how to destroy cached images.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12841 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-16 08:03:16 +00:00
Manolo Gouy
f089bd6445
Remove useless re-implementation of this virtual member function.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12839 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-16 07:56:52 +00:00
Manolo Gouy
ecc1f90506
Comments only: extend the description of how Fl_Graphics_Driver derived classes support image classes.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12838 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-15 06:44:50 +00:00
Manolo Gouy
25d39c1b57
Remove useless 'friend' statements from class Fl_Graphics_Driver
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12836 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-14 15:26:42 +00:00
Manolo Gouy
82e70fae04
Comments only: more extensive explanation of how virtual member functions of Fl_Graphics_Driver can support image drawing.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12835 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-14 15:10:59 +00:00
Manolo Gouy
bfac5462be
Remove Fl_Pixmap::prepare() and Fl_Bitmap::prepare() that were used only once.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12834 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-14 13:37:47 +00:00
Manolo Gouy
2abe8bd413
Homogenise and simplify the API of Fl_Graphics_Driver::cache(image-type *) virtual member functions.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12833 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-13 13:22:15 +00:00
Manolo Gouy
e440b8859f
Simplify code for image drawing by PostScript graphics driver.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12832 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-13 11:50:20 +00:00
Manolo Gouy
178343b2ee
Image drawing: simplify the code organisation to better support Fl_Image::scale() - continued
...
This completes changes introduced at r.12828.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12829 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-12 14:54:53 +00:00
Manolo Gouy
16705ef734
Image drawing: simplify the code organisation to better support Fl_Image::scale().
...
Graphics drivers now use up to 6 virtual member functions to support Fl_Image
drawing in the context of GUI and image rescaling :
virtual void draw_pixmap(Fl_Pixmap *pxm, int XP, int YP, int WP, int HP, int cx, int cy)
virtual void draw_bitmap(Fl_Bitmap *bm, int XP, int YP, int WP, int HP, int cx, int cy)
virtual void draw_rgb(Fl_RGB_Image *rgb, int XP, int YP, int WP, int HP, int cx, int cy)
and
virtual void draw_fixed(Fl_Pixmap *pxm, int XP, int YP, int WP, int HP, int cx, int cy)
virtual void draw_fixed(Fl_Bitmap *bm, int XP, int YP, int WP, int HP, int cx, int cy)
virtual void draw_fixed(Fl_RGB_Image *rgb, int XP, int YP, int WP, int HP, int cx, int cy)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12828 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-12 13:07:00 +00:00
Albrecht Schlosser
efc3ec1b7b
Remove unnecessary dependency on FL/Fl_Rect.H.
...
Fl_Rect.H is no longer included by Fl_Group.H to avoid unnecessary
dependencies on Fl_Rect.H. Currently it is only needed to access the
array returned by the protected method bounds().
Also clarified documentation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12827 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-12 12:58:10 +00:00
Albrecht Schlosser
e71fc7e4c3
Document Fl_Rect::r() and b() to be outside the rectangle.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12825 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-10 18:41:34 +00:00
Greg Ercolano
c7080e826e
General description: mention how to move items around
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12824 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-10 18:37:18 +00:00
Greg Ercolano
e4916d617e
Added mention of the new Fl::menu_linespacing() in the Fl_Menu_ docs.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12816 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-31 17:29:23 +00:00
Greg Ercolano
309d9a61b9
Added Fl::menu_linespacing() to solve STR# 2927.
...
Method name follows Fl_Tree::linespacing().
Implemented similarly to Fl::scrollbar_size(), since its use crosses Fl_Menu_Item and 'menuwindow' classes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12815 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-31 17:17:37 +00:00
Manolo Gouy
458d063643
Image classes: memorise the width and the height of the cached form of the image to support GUI scaling
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12811 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-28 13:00:12 +00:00
Matthias Melcher
3b7e1a5ec6
Android: Draws Fl_Bitmap.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12807 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-26 21:28:18 +00:00
Matthias Melcher
e8818e968c
Android: Widgets can now request the on-screen keyboard when they get focus. This may fail if visible_focus is disabled.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12804 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-26 15:33:22 +00:00
Manolo Gouy
77cc7b147a
Documentation: give more detail for Fl_Image::w(int W) and Fl_Image::h(int H)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12802 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-26 08:20:17 +00:00
Matthias Melcher
fada3a8291
Android: Rough, verz rough kezboard handling.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12794 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-24 17:08:25 +00:00
Manolo Gouy
b8a50851fd
Fix Fl_Image::copy() and its versions for derived image classes following the introduction of Fl_Image::scale()
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12786 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-23 17:03:24 +00:00
Manolo Gouy
9f9631e685
Rename Fl_Image::pixel_w() and pixel_h() to Fl_Image::data_w() and data_h().
...
The docs of class Fl_Image and of Fl_Image::scale() are beefed up.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12784 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-22 16:38:38 +00:00
Matthias Melcher
0b8116ff72
Android: Implemented vector drawing and polygons.
...
Started to implement arc and pie drawing
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12783 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-22 15:27:02 +00:00
Manolo Gouy
916b44e361
New member function Fl_Image::scale(int width, int height) to set the FLTK size of an image.
...
Each image has now two sizes implemented as follows:
- the pixel size is stored in private members pixel_w_ and pixel_h_
with public accessors pixel_w() and pixel_h()
- the FLTK size is stored in private members w_ and h_ and read by w() and h()
- when the image is constructed, the two sizes have the same value
- the protected w(int) and h(int) member functions set both FLTK and pixel sizes.
- the public scale(int, int) member function is essentially nothing but
set the FLTK size and don't change the pixel size.
- when the image is drawn, its FLTK size determines how big it is drawn, its pixel
size determines how much data are available to draw it.
FLTK 1.3.4 with FL_ABI_VERSION=10304 contained an equivalent member function
but only for the Fl_Shared_Image class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12776 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-19 17:43:18 +00:00
Albrecht Schlosser
6dbe7ca8ed
Fix a doxygen warning, update copyright.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12773 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-18 15:25:08 +00:00
Matthias Melcher
67f0018dca
Removed warning for Android. Fixed "FIXME" in Fl_Tooltip. Removed tab characters.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12748 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-15 09:34:20 +00:00
Matthias Melcher
ac04494e91
Android: fixed Fl_Rect.H commit.
...
Cleaned up some driver code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12743 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-12 20:54:27 +00:00
Matthias Melcher
b0a514366e
Android: added support for Fl::add_timeout() and friends.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12742 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-12 20:10:49 +00:00
Matthias Melcher
1b52ead802
Android: Reinstated working simple cliping functionality based on an
...
improved Fl_Rect_Region class instead of Fl_Rect. Commented out
complex clipping.
Android lib and apps now use C++11 because they can (and I like it).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12741 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-12 12:57:28 +00:00
Manolo Gouy
371cfd1476
Make Fl_Graphics_Driver constructor protected, as it was in FLTK 1.3.x
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12740 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-12 09:42:45 +00:00
Matthias Melcher
88ce4aec17
Android: Made Fl_Rect virtual. Maybe a bad idea?
...
Also, added rectangular clipping which works.
Expanding now to a more complex clipping scheme to make multiple
windows work.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12739 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-11 22:00:59 +00:00
Manolo Gouy
d8d04bf772
Documentation: homogenize to 'scale factor' and 'drawing unit'
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12737 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-11 14:49:09 +00:00
Matthias Melcher
5591ba811a
Android: adding and fixing to the graphics clipping code
...
Android has no classic window manager, so FLTK has to
make sure that popup windows, dialog boxes and multi
window interfaces work as expectd.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12729 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-10 13:17:41 +00:00