Manolo Gouy
9d5fde73b6
Fixed uchar arguments of fl_rgb_color() calls.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10392 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-23 13:25:55 +00:00
Manolo Gouy
4db77674c3
Removed compilation warnings in fl_rgb_color() calls.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10390 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-23 11:08:16 +00:00
Manolo Gouy
69d5e00ce4
Fixed printing of window title bar buttons under Mac OS X 10.10
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10389 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-23 09:04:30 +00:00
Albrecht Schlosser
d24a6b2633
Move RGB image scaling algorithm methods in base class Fl_Image.
...
See also discussion in fltk.coredev of Sept 07, 2014 and later
with subject "Fixing the nearest-neighbour scaling".
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10377 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-14 11:53:51 +00:00
Manolo Gouy
a3845fc51d
Improved Fl_Paged_Device::print_window() when used on an Apple computer with a retina display:
...
the window tittle bar is printed at high resolution.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10372 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-11 14:33:43 +00:00
Manolo Gouy
6232a298f3
Fixed errors in fl_read_image() and Fl_Paged_Device::print_window_part()
...
when using Apple computers with retina displays.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10371 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-11 13:43:06 +00:00
Manolo Gouy
f1b2c92fce
STR#3093 continued: deleted the Fl_Shaped_Window class. Instead, added new member function Fl_Window::shape(Fl_Image*)
...
that gives a non-rectangular shape to a standard window. The benefit is that it works with Fl_Double_Window and Fl_Menu_Window as well.
It also works for free with Fl_Gl_Window on the X11 platform only.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-21 14:10:36 +00:00
Pierre Ossman
1c7409e0a1
Add methods to enable and disable the system's input methods.
...
This needs to be done from FLTK as it affects the window interaction,
which FLTK is largely responsible for.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10314 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-15 09:44:35 +00:00
Pierre Ossman
e145df2165
Add methods to intercept low level system events.
...
This gives applications the means to handle some low level
integration with the system that might otherwise not be possible
without modifying FLTK itself.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10310 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-15 09:17:56 +00:00
Manolo Gouy
eadd6e87f1
Removed several compilation warnings with OS X SDK 10.10
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10306 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-13 16:49:47 +00:00
Manolo Gouy
76418b352b
Allow compilation with SDK 10.10 and use new API to discover os version at runtime.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10305 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-13 14:29:53 +00:00
Manolo Gouy
6482acf15a
Allow compilation with SDK 10.10 and use new API to identify OS version at runtime.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10304 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-13 14:18:34 +00:00
Manolo Gouy
aecb3ac594
Fix for STR #3128
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10298 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-09 11:02:33 +00:00
Manolo Gouy
3e0bb410f8
Handle deprecation with Mac OS 10.9 of SetFrontProcess(), GetCurrentProcess(), GetFrontProcess(), SameProcess().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10288 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-07 20:30:46 +00:00
Manolo Gouy
8997131377
Added the Fl_Shaped_Window class to support windows of arbitrary shapes.
...
The new class is fully Doxygen-documented.
Added an example program (example/shapedwindow.cxx) that exercises the new class.
Modified all IDE-supporting files accordingly.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10255 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-27 11:55:57 +00:00
Manolo Gouy
a8d1251aaa
Mac OS: a borderless, non-modal window was not created properly.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10210 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-26 19:31:38 +00:00
Pierre Ossman
06ee4b9b14
Fix inverted logic. It's the even depth values that include alpha.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10199 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-17 11:13:55 +00:00
Pierre Ossman
332dc1b7ac
Add method to set any custom cursor, based on a Fl_RGB_Image object.
...
Also change our fallback cursors to use this method, so that fallback
cursors are handled in a platform independent manner. STR #2660 .
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10196 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-16 11:17:57 +00:00
Pierre Ossman
b4013ef602
Make sure that modal and non-modal windows are at a higher level
...
than "normal" windows. This is mostly necessary when full screen
windows are present as those are raised to a higher level in order
to obscure the dock and main menu.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10195 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-16 10:59:46 +00:00
Manolo Gouy
d55fac2243
After r.10119 calling Fl_Window::make_current() within a widget's draw function created errors.
...
This patch fixes that.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10194 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-15 18:45:32 +00:00
Pierre Ossman
5e9624286a
canBecomeMainWindow() is not absolutely necessary, but it makes
...
the window decorations behave better by properly graying out windows
that will have their input stolen by a modal one.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-11 14:12:29 +00:00
Pierre Ossman
0cfc2554c6
Support for full screen over multiple monitors.
...
The API follows that of EWMH, which gives you a good control
over which monitors to use.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10189 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-11 09:10:53 +00:00
Manolo Gouy
07dd8ba328
Added copy/paste from/to FLTK applications of graphical data.
...
Added Fl_Image_Surface class to draw into an Fl_Image object.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10159 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-23 16:47:21 +00:00
Manolo Gouy
b24f66109d
Fix STR#3063: compilation using Mac OS 10.4 (cont'd).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10129 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-04-27 15:48:18 +00:00
Manolo Gouy
6d3bb5f754
Fix STR#3063: compilation using Mac OS 10.4 (cont'd).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10128 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-04-27 14:14:23 +00:00
Manolo Gouy
fac0e9d43a
Mac OS: drawing to windows at each FLTK event loop is now done as normally with Cocoa, that is,
...
by the [NSView drawRect:] implementation. The system therefore has prepared before the
adequate graphics context for the window.
This introduces a limitation: it's not possible to call Fl::wait(), Fl::check()
nor Fl::ready() while in the draw() function of a widget. Use an idle callback instead.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10119 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-03-22 17:09:07 +00:00
Manolo Gouy
de7a79afd6
print_window():: make the test specific to a printer device.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10112 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-23 15:58:12 +00:00
Manolo Gouy
e19ea8eb33
Mac OS: have Fl_Paged_Device::print_window() support all devices.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10088 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-30 07:10:37 +00:00
Manolo Gouy
4eee9f1f63
Mac OS: handle possible NULL return after screen capture attempt.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10078 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-22 20:39:21 +00:00
Manolo Gouy
4d5e10097e
Mac OS: use the exact title bar font when printing window.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10077 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-21 14:04:43 +00:00
Manolo Gouy
c4576badb8
Mac OS: improved window printing when window title is longer than the window width.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10073 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-21 10:22:53 +00:00
Manolo Gouy
b4adb7c55d
Mac OS: drawing to screen is now performed by direct drawing to windows (drawing was done to views before).
...
This eliminates the necessity to lock/unlock views that was tricky to do properly because of interaction with
undocumented system-performed locks.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10068 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-19 10:00:37 +00:00
Manolo Gouy
d7cc67d2f1
Mac OS: put idle processing under an alloc/release pair of an NSAutoreleasePool.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10066 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-18 16:28:59 +00:00
Manolo Gouy
e543d2c763
Cleaner definition under Mac OS of the fl_default_cursor global variable that doesn't hide its type.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10048 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-07 15:31:28 +00:00
Manolo Gouy
c90f1904fa
Mac OS text input: fixed minor problem when typing cmd-key while there's marked text.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10037 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-20 18:29:02 +00:00
Manolo Gouy
c65852122c
Added informative comment to Fl_Paged_Device::print_window()
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10028 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-11 14:31:27 +00:00
Manolo Gouy
0e8f2f786b
Removed use of deprecated NSStringPboardType constant.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10025 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-10 12:07:09 +00:00
Manolo Gouy
b11af6e5e1
Simplified the code that supports application opening by dropping file onto icon.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10024 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-09 12:12:26 +00:00
Manolo Gouy
076de1c617
Improved window printing by using a vectorial font for the window title.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10023 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-08 16:16:24 +00:00
Manolo Gouy
1f6585c15a
The FLView object is now released just after the setContentView message is sent.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10022 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-11-30 21:50:00 +00:00
Manolo Gouy
05dd61d4ee
Fix STR#3010: Program can crash under Mac OS when a dialog window is closed
...
if the opening of this dialog window made the previous window to be redrawn.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10021 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-11-29 18:14:49 +00:00
Manolo Gouy
6b67e50cbe
Bracket calls to timer callbacks with fl_lock_function()/fl_unlock_function() as occurs under WIN32 and X11.
...
This was also missing in the FLTK 1.1 carbon version.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10019 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-11-13 15:49:48 +00:00
Manolo Gouy
1ad6b09de7
Fix mac-specific STR#2999. Use PostScript font name to ask the system for a font, and full font name
...
to display a font name.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10011 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-29 12:46:51 +00:00
Manolo Gouy
4827a696df
Modified Fl_Paged_Device::print_window() so it works with any kind of Fl_Paged_Device instance.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10007 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-23 14:39:14 +00:00
Manolo Gouy
ce0e298a8a
Removed some of the warnings mentioned in [fltk.coredev] New warnings with FLTK 1.3.x svn r9991
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9993 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-25 08:55:01 +00:00
Manolo Gouy
99f2010dce
Remove errors with the Apple LLVM version 4.2 compiler.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9991 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-24 16:25:29 +00:00
Manolo Gouy
1029debb66
Clarification of change in constant used for text-containing pasteboards across Mac OS versions.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-24 08:27:10 +00:00
Manolo Gouy
3d7d2938c7
Fixes the copy/paste implementation to run on many Mac OS versions.
...
Checked on 10.3, 10.5, 10.6 and 10.8
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9986 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-23 19:00:15 +00:00
Manolo Gouy
cedcc3f52e
Fixed implementation of paste with NSPasteboard that did not work well under Mac OS 10.5
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9985 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-23 15:01:54 +00:00
Manolo Gouy
3baf5e0d58
Implemented copy/paste with Cocoa's NSPasteboard instead of Core Foundation's Pasteboard Manager
...
which allows quite simpler code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9975 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-12 12:21:57 +00:00