Matthias Melcher
626ecbfca0
Android: specific event for Android. Use Fl::add_system_handler() and Fl::event(), for example: FL_ANDROID_EVENT_LOW_MEMORY
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12720 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-07 23:01:50 +00:00
Matthias Melcher
2e5b983f4b
Android: moved all Android code from the main app into the driver system. All non-driver-FLTK code and main app are now Android-free.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12719 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-07 22:12:34 +00:00
Matthias Melcher
f058d3a99c
Android: using wait_for_expose to sync screen and windows
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12718 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-07 21:07:35 +00:00
Matthias Melcher
dcc10a6a0a
Android: improvements to Fl:flush() implementation. Initial draw, no wasted draw cycles.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12717 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-07 16:29:31 +00:00
Manolo Gouy
2df5cb850a
Comments: update comment of class Fl_Scalable_Graphics_Driver to indicate what platforms use it.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12716 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-07 11:55:38 +00:00
Manolo Gouy
358bdf577e
MacOS: add more detail to the doc of global variable fl_mac_os_version
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12715 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-07 10:12:50 +00:00
Matthias Melcher
93c59c914e
Android: yet another name for the .bat file
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12714 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-06 20:26:44 +00:00
Manolo Gouy
e94dd318be
Windows: complete support for GUI rescaling.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12713 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-06 13:03:24 +00:00
Matthias Melcher
1e96cc6b2f
Android: moved include files as well
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12712 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-05 23:27:31 +00:00
Matthias Melcher
3ed5e71da7
Android: moved to IDE directory.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12711 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-05 23:17:51 +00:00
Matthias Melcher
b47db80af3
Android: drawing behaves nice enough. Fl::flush seems to bring the expected results, although optimization is required at some point.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12710 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-05 22:57:33 +00:00
Matthias Melcher
8c51282770
Android: more cleanup. Trying to solve the problem of undefined screen buffer content. Moved gradlew.bat into gradlew.zip to make some svn's happy.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12709 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-05 21:26:51 +00:00
Matthias Melcher
900457f0b4
Android: beautified the Fl_Android_Application interface.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12708 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-04 13:22:52 +00:00
Matthias Melcher
774503e35b
Android: reorganizing
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12707 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-03 14:37:53 +00:00
Matthias Melcher
b57199097a
Android: case of .h and .H
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12706 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-03 14:11:58 +00:00
Matthias Melcher
6ba638f5d6
Android: need more source files
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12705 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-03 14:05:18 +00:00
Matthias Melcher
8bb4ab025d
Android: removed crud from original sample code
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12704 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-02 22:46:47 +00:00
Matthias Melcher
5365d9f716
Android: minor simplifications
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12703 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-02 20:57:02 +00:00
Albrecht Schlosser
4b00b0f320
Set svn properties on new Android source files.
...
The Android example files in directory Android/... are not touched.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12702 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-02 20:16:51 +00:00
Matthias Melcher
b9dac8f6f6
Android: should build and run
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12701 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-02 20:12:55 +00:00
Matthias Melcher
e8a2c4621a
Android: added missing file.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12700 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-02 20:06:31 +00:00
Matthias Melcher
42555053a1
More Android changes.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12699 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-02 20:03:04 +00:00
Matthias Melcher
b2da1fcbaf
Fixing Android CMake files
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12698 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-02 17:36:15 +00:00
Matthias Melcher
ca98f4b70c
Updated Android README
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12697 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-02 17:26:30 +00:00
Matthias Melcher
abbd7b9918
CMake rules to integrate Android drivers.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12696 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-02 16:35:59 +00:00
Matthias Melcher
b19efed409
Adding crude Android native screen driver
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12695 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-02 16:34:43 +00:00
Matthias Melcher
9e29ea8a00
Commiting Android sample project structure
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12694 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-02 16:30:45 +00:00
Matthias Melcher
f01eb0ec25
Removing obsolete Android stuff
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12693 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-02 16:07:23 +00:00
Albrecht Schlosser
5c2d98a5fc
CMake + configure: improve generation of fltk-config.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12692 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-25 19:25:45 +00:00
Albrecht Schlosser
0e60b49b52
Update dependencies.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12691 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-25 19:24:45 +00:00
Manolo Gouy
ba5106e758
Replace calls to Fl_Surface_Device::set_current() by calls to Fl_Surface_Device::push_current()
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12690 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-25 16:54:21 +00:00
Albrecht Schlosser
ff64d09cf7
Remove obsolete -DUSE_OPENGL32 from configure and fltk-config.
...
This definition was introduced in svn r6657 (STR #2147 ) but never used.
The new driver model in FLTK 1.4 makes it (the intention described in
STR #2147 ) even more obsolete.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12689 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-25 14:40:05 +00:00
Manolo Gouy
7049da0445
Documentation: make code examples use Fl_Surface_Device::push_current()/pop_current()
...
instead of the deprecated Fl_Surface_Device::set_current().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12688 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-25 06:53:34 +00:00
Albrecht Schlosser
c9d4df288c
CMake: fix fltk-config generation for MacOS.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12687 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-24 13:44:06 +00:00
Albrecht Schlosser
7d1488507d
CMake: Fix fltk-config for Windows and Unix/Linux.
...
This update ought to work with
fltk-config [--use-images] [--use-gl] --compile <c source file>
on both Windows and Unix/Linux when built with CMake. It was tested
under Windows and Linux using fltk-config directly from the build tree,
but it should work as well after installation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12686 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-23 19:41:52 +00:00
Manolo Gouy
a0863e393a
Document that fl_mac_set_about() is deprecated, MacOS-specific and replaced by cross-platform Fl_Sys_Menu_Bar::about().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12685 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-22 17:04:37 +00:00
Manolo Gouy
9dce38099a
Make forms_timer.cxx platform-independent calling virtual function Fl_System_Driver::gettime().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12684 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-22 06:00:28 +00:00
Manolo Gouy
7aaaf59e15
Remove "#ifdef _WIN32" that made this source file break the separation between platform-independent and -dependent files.
...
Several other platform-independent source files (e.g., Fl_Browser.cxx, Fl_Group.cxx) use malloc/realloc/free without
including a special header file for the Windows platform. Thus, Fl_Table.cxx can just be likewise.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12683 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-21 06:56:21 +00:00
Manolo Gouy
fb7d2b770d
Remove unnecessary #ifdef _WIN32
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12682 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-20 12:48:48 +00:00
Manolo Gouy
31848b8565
MacOS: correct handling of window tabbing/untabbing together with GUI rescaling.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12681 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-20 12:09:32 +00:00
Manolo Gouy
06b925964d
Remove Fl::run_also_windowless() and FL::wait_also_windowless() from planned public FLTK 1.4 API.
...
These were introduced at r12647, that is, during development of the 1.4 API.
These functions provided windowless support only on the MacOS platform,
where this can be obtained without those functions.
Windowless support on other platforms would require changing the event
loop. There's no evidence from STR's there's a demand for windowless mode
on other platforms.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12680 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-20 09:08:38 +00:00
Manolo Gouy
78183fb45b
Don't use FLTK's way to support HighDPI screens when the app has set a DPI awareness through a manifest - cont'd.
...
It's also necessary to prevent FLTK from rescaling windows moved between screens with different DPI's.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12678 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-19 10:18:55 +00:00
Manolo Gouy
288d61a953
Don't use FLTK's way to support HighDPI screens when the app has set a DPI awareness through a manifest.
...
FLTK reads during fl_open_display() the scaling factor of each screen and uses that to transform
FLTK units into screen units. This change avoids this reading if the app declared to be DPI-aware
though a manifest, a symptom that the app supports HighDPI independently from FLTK.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12677 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-18 16:58:38 +00:00
Albrecht Schlosser
6721ba67eb
CMake: fix generated fltk-config for Windows (partially).
...
This makes 'fltk-config --compile' work with simple test applications
like hello.cxx etc.
It may not yet work with other options though, particularly with
--use-gl or --use-images, but it's an improvement.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12676 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-18 12:31:16 +00:00
Albrecht Schlosser
50f351e5a5
CMake: fix debug macro for CMake versions before 3.4.
...
Note: string(APPEND ...) was introduced in CMake 3.4.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12675 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-18 11:25:51 +00:00
Manolo Gouy
a401c6c038
Fix Fl_Cocoa_Window_Driver::size_range() to make it support GUI rescaling.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12674 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-18 08:04:57 +00:00
Manolo Gouy
3266594e91
Fix 2 typos.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12673 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-17 13:58:47 +00:00
Manolo Gouy
b6c790a93f
Slight documentation fix for class Fl_Sys_Menu_Bar.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12672 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-17 08:28:51 +00:00
Manolo Gouy
1884ebf501
Documentation: fix inconsistency in doc of Fl::wait(double).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12671 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-17 08:00:54 +00:00
Manolo Gouy
5bf7e5ece7
Fix Fl_Cocoa_Screen_Driver::screen_work_area() when the GUI is scaled - continued.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12670 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-16 17:12:23 +00:00