Commit Graph

6979 Commits

Author SHA1 Message Date
Manolo Gouy
a8d32c57d6 Remove src/drivers/XXX/Fl_XXX_Image_Surface.H files that are no longer useful.
Their content is now in src/drivers/XXX/Fl_XXX_Image_Surface.cxx

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11372 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 16:56:57 +00:00
Manolo Gouy
8711cf8be9 (hopefully) Final driver-based rewriting of the Fl_Image_Surface class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11371 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 16:48:33 +00:00
Manolo Gouy
f8bd5f3046 Fix potential memory error in Mac OS code to print window titlebars.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11369 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 05:51:11 +00:00
Manolo Gouy
1179b53b0c Implement Fl_PostScript_Graphics_Driver::has_feature(driver_feature mask)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11368 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 05:11:05 +00:00
Albrecht Schlosser
55735c7930 Fix Windows build error (fluid: undefined symbol fl_clip_region()).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11367 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 00:39:40 +00:00
Albrecht Schlosser
dfb09b2095 Fix #include <config.h>.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11366 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-18 21:53:31 +00:00
Albrecht Schlosser
84ef7615d7 Fix potential crash in take_focus() (Linux).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11365 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-18 21:48:23 +00:00
Manolo Gouy
fa9a33eaee Beginning of Albrecht's plan for Fl_Window and Fl_Window_Driver classes.
Still unclear whether the implementation of the flush() functions follows the plan.
The Fl_Printer class is fully rewritten under the driver model.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11364 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-18 18:20:11 +00:00
Greg Ercolano
3e0e68bb59 More carry from r11173 to porting..
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11363 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-14 17:25:06 +00:00
Greg Ercolano
91e747bbda Carrying over r11173 fix to the new 1.3 porting branch.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11362 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-14 17:20:59 +00:00
Greg Ercolano
aeaf3b1586 Carrying fix from 1.3-current (r11177) to the new porting branch.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11361 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-14 17:09:46 +00:00
Matthias Melcher
5c3c42f464 Extended double buffering fix to Android
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11360 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-13 23:03:42 +00:00
Matthias Melcher
b496d18b85 Fixed 'flush()' code for single, double, and overlay buffering
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11359 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-13 22:16:37 +00:00
Matthias Melcher
30756ae350 Window functions to retrieve more detailed window type
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11358 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-13 15:31:26 +00:00
Matthias Melcher
5953f5a695 Quick fix for Fluid on X11. MSWindows version broken due to missing Fl_Printer::Helper::Helper
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11357 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-12 23:44:57 +00:00
Matthias Melcher
e6631a0f7f Moved the Fl_Window::decorated_*() functions teh Window_Driver
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-12 22:24:20 +00:00
Matthias Melcher
4643f3e98c PicoSDL: added crude event handling.
Clipped vs. unclipped drawing issues!

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11355 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-12 18:05:10 +00:00
Albrecht Schlosser
c1fe316855 Add localization of modifier key names in shortcut labels.
Modifier key names like Alt, Shift, Ctrl, Meta can now be localized by
setting global string pointers. See documentation of fl_shortcut_label().

Port branch-1.3, svn r 11321.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11354 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-12 17:44:24 +00:00
Matthias Melcher
3b14342388 Add Android Touch events.
"test/button" works now.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11353 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-12 17:34:13 +00:00
Matthias Melcher
823a6cc2ad Android "Hello" compiles and runs!
http://matthiasm.com/andoidFLTK.jpg

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11351 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-11 22:01:55 +00:00
Manolo Gouy
f11fe83e5e Rewrite of Fl_Printer under the driver model - first step
Next step will involve moving code to new, platform-specific files.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11350 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-11 20:32:48 +00:00
Matthias Melcher
bd844a2abc Android version compiles, links, launches, and receives commands.
Still need to implement window creation and drawing.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11349 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-11 17:12:21 +00:00
Manolo Gouy
75d66680cb Fix small problem in win->wait_for_expose() for a window that has subwindows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11348 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-11 15:10:46 +00:00
Manolo Gouy
28f24b1b6f Remove a few #include <FL/x.H> from public FLTK headers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11347 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-11 09:28:56 +00:00
Manolo Gouy
408d0672a4 Rewrite Fl_Window::wait_for_expose() using the window driver approach.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11346 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-11 08:31:36 +00:00
Manolo Gouy
2952c530b8 Rewrite capture of window decorations using the window driver approach.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11345 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-11 07:07:42 +00:00
Matthias Melcher
914248bbf0 Android version compiles and links. Won't run yet.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11344 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-11 01:01:58 +00:00
Matthias Melcher
ac1932eaa7 (incomplete) Add files required to compile for Android via Pico driver.
Don't get your hopes up just yet: this code does compile, but it doesn't fully link yet. If you like to test this, install the Android SDK and NDK, set the usual environment variables, then change into the "Android" direktory and run "mk". It will currently fail at the linker stage.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11343 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-11 00:19:27 +00:00
Manolo Gouy
31fcd84ca9 Rewrite all window icon-related Fl_Window API with the window driver approach.
It seems this allows not to #include <windows.h> in the public header files.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11342 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 22:26:40 +00:00
Manolo Gouy
7098924b82 Add code to delete Fl_WinAPI_Window_Driver object.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11341 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 18:45:50 +00:00
Manolo Gouy
9bffd04b3a Remove useless Fl_Cocoa_Window_Driver::todelete_ member
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11340 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 18:39:01 +00:00
Manolo Gouy
1d7ce6ad41 Add deletion code for Fl_X11_Window_Driver object
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11339 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 18:33:05 +00:00
Manolo Gouy
11d3888fc2 Remove useless #niclude directive
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11338 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 17:27:23 +00:00
Manolo Gouy
5411b20fb8 Deleted because use f the window driver mechanism.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11337 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 17:22:26 +00:00
Manolo Gouy
d4768073fa Implement non-rectangular windows using the Window Driver mechanism.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 17:19:34 +00:00
Manolo Gouy
79f79d292c Remove redundant recursion (as suggested in [fltk.coredev] [porting] Remove redundant recursion)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11335 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 16:07:24 +00:00
Manolo Gouy
2d5dbc3925 Add necessary #include directive
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11334 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 13:22:29 +00:00
Manolo Gouy
7260f919a0 Rename header files with .H extension
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11333 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 10:18:57 +00:00
Manolo Gouy
9e86a2c1a5 Rename header files with .H extension
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11332 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 10:18:12 +00:00
Manolo Gouy
18747277a9 Add necessary test for non-null pointer.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11331 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-09 17:19:50 +00:00
Manolo Gouy
18098db3ae Fix freeze of Fl_Native_File_Chooser occurring under Mac OS + X11 when printing to .ps file
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11330 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-09 16:17:36 +00:00
Manolo Gouy
d4577f0d0a Simplify Fl_OpenGL_Display_Device::capture_gl_rectangle() under Mac OS.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11328 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-09 11:40:13 +00:00
Manolo Gouy
fc3adbd7cb Rewrite Fl_Gl_Device_Plugin.cxx in a platform-independent way.
The platform-specific code lands in src/Drivers/OpenGL/Fl_OpenGL_Display_Device.cxx
and the FL_PORTING clause should be compilable.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11327 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-09 10:30:29 +00:00
Manolo Gouy
309213bfae Simpler code for capture of OpenGL windows: the pixel array is converted to top-to-bottom earlier.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11326 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-09 06:59:12 +00:00
Manolo Gouy
0b751e8175 Rewrite Fl_Gl_Device_Plugin::print() without any platform-specific code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-08 22:22:03 +00:00
Manolo Gouy
459b0d1d07 Restore high resolution support.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11324 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-08 22:19:57 +00:00
Manolo Gouy
6f590b9a13 Simpler method to retain printed image data in memory until it is effectively used.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11323 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-08 22:18:59 +00:00
Matthias Melcher
548ac7a623 A few more Pico fixes. Tests with single buffered windows render well for those parts that are implemented.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11320 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-08 16:08:34 +00:00
Matthias Melcher
58eb525366 Compiling test/colbrowser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11319 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-08 15:49:45 +00:00
Albrecht Schlosser
bcb756da38 Improve documentation of Fl_Valuator class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11318 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-08 13:51:01 +00:00