Manolo Gouy
b079e52ada
Mention that class Fl_Gl_Window now uses cocoa rather than the deprecated AGL on the Mac OS X platform.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10524 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-19 13:00:53 +00:00
Manolo Gouy
c9782669c0
Ignore text input methods when the focus is to an Fl_Gl_Window.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10523 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-19 12:27:37 +00:00
Manolo Gouy
365c1524c0
Fix possible crash when calling Fl_Window::resize() on a non-mapped sub-window.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10522 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-16 10:28:36 +00:00
Manolo Gouy
7ad5091dbc
Corrected one comment and added one.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10521 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-16 07:24:11 +00:00
Manolo Gouy
af42e3cd5f
Fixed Fl_Window::resize() on Mac OS because program-generated resize did not work
...
with new true subwindows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10520 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-15 21:57:27 +00:00
Manolo Gouy
790fc0ce02
Some indentation cleaning.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10519 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-14 15:10:16 +00:00
Manolo Gouy
ae9ea6b51f
When CGBitmapContextCreate() is used with null 5th argument, it is necessary
...
to use CGBitmapContextGetBytesPerRow().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10518 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-14 14:21:01 +00:00
Manolo Gouy
bc8a7037eb
Avoid compilation warnings appearing with SDK 10.5
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10517 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-14 13:29:05 +00:00
Manolo Gouy
d7e4831dbe
A public header file must not use a preprocessor variable such as MAC_OS_X_VERSION_10_7
...
because it is only defined internally to FLTK.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10516 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-14 10:23:24 +00:00
Manolo Gouy
56fd2fc9f9
Fl_Paged_Device::print_window() now uses the CALayer class to print in one step
...
all of the window title bar, when the program is linked with OS X 10.10.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10515 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-13 16:36:04 +00:00
Greg Ercolano
25aa484f5e
Prevent tooltips from opening if window recently iconized.
...
Fixes STR #3157 .
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10514 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-11 04:21:08 +00:00
Greg Ercolano
c732a4d635
Documentation clarification for all menu oriented widgets
...
regarding callbacks.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10513 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-10 22:05:15 +00:00
Greg Ercolano
8fe94273ff
Small doc mods to Fl_Menu_Bar to clarify how callbacks
...
are invoked. (STR #3172 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10512 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-10 17:58:54 +00:00
Greg Ercolano
5cfa1ac706
Improvements to Fl_Menu_ docs regarding how callbacks are invoked.
...
In response to misinterpretation raised in STR #3172 .
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10511 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-10 17:46:10 +00:00
Manolo Gouy
335212dacb
Better implementation of Fl_Paged_Device::print_window() for Mac OS X Yosemite:
...
title bar buttons are drawn by the system instead of emulated by FLTK.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10510 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-09 17:28:19 +00:00
Manolo Gouy
4ba65cb993
Don not assume that Fl_X::resolution_scaling_factor() returns either 1 or 2.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10509 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-06 10:22:41 +00:00
Greg Ercolano
e14b04e6cb
Docs only: fixed example code indenting.
...
(Firefox doesn't properly display tabs in preformatted html)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10508 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-04 18:41:37 +00:00
Manolo Gouy
7f7e84b696
Simplified Fl_X::flush() for GL windows.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10507 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-04 14:41:50 +00:00
Greg Ercolano
8862df4950
Added docs to Fl_Event referencing use of fl_eventnames[] and FL/names.h
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10506 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-28 21:09:30 +00:00
Ian MacArthur
b2462e9adb
Fix typo in Fl_cocoa.mm if the ABI was set to 10304 or greater.
...
Seems ot be compiling OK again now.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10505 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-21 18:03:03 +00:00
Manolo Gouy
27b3376bf4
Remove the link error sometimes caused by class Fl_XFont_On_Demand not exported from libfltk.so but called
...
by function gl_font() of file src/gl_draw.cxx (X11-specific).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10504 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-21 10:11:18 +00:00
Manolo Gouy
1a6790b219
Added documentation about the new support for high resolution OpenGL graphics
...
on Apple retina displays.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10503 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-20 16:52:48 +00:00
Manolo Gouy
006d86b7e9
Removed the Xcode3 directory altogether because Xcode3 is very old
...
and because Xcode3 opens very well the Xcode4 ide anyway.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10502 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-20 15:04:40 +00:00
Manolo Gouy
09230a9878
Removed compilation warning when compiling fluid/file.cxx on apple.
...
Also, added explanatory comment of the purpose of a GNUC-specific
attribute in FL/fl_ask.H
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10501 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-20 15:00:27 +00:00
Manolo Gouy
a60e5400e2
Function imgProviderReleaseData() is made apple-specific.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10500 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-20 14:41:02 +00:00
Manolo Gouy
36c2877a60
Removed use of AGL framework
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10499 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-20 08:09:03 +00:00
Manolo Gouy
f3a84c0ee5
Changed OpenGL support for the Mac OS X platform: use cocoa instead of deprecated AGL.
...
All changes are mac-specific, except a very minor change in file src/gl_draw.cxx
where string drawing wrongly claimed to support @symbol, not possible
because symbols are drawn using non-GL primitives.
Unchanged application code can use the new FLTK code.
In addition, the new code allows mac applications to draw OpenGL scenes
at high resolution on so-called 'retina' displays, but this requires some
support from app code. They must call, before opening GL windows,
Fl::use_high_resolution(1);
and change their glViewport() calls as follows
glViewport(0, 0, pxel_w(), pixel_h());
This uses 2 new member functions of the Fl_Gl_Window class,
pixel_w() and pixel_h() returning the window dimensions in pixel
units, that is, twice the w() and h() when the window is mapped
on a retina display.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10498 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-20 07:19:23 +00:00
Greg Ercolano
a7dc3ea9e2
Fix problem with *horiz* dot pattern alignment,
...
optimized draw loop, fixed indent.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10497 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-19 05:55:08 +00:00
Greg Ercolano
67341668f8
Optimize drawing loop, fix indent.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10496 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-19 05:48:50 +00:00
Manolo Gouy
ea279f9354
Avoid double window redraw after deminiaturization.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10495 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-19 04:53:01 +00:00
Greg Ercolano
bcc7dc8b6f
Fixes STR #3169 , comment #8 .
...
Prevents warnings from OSX 10.9.x clang compiler.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10494 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-19 03:50:09 +00:00
Greg Ercolano
889a8a6d42
Fixes STR #3169 , comments #4 , #5 and #7 .
...
Prevents warnings from the OSX 10.9.x clang compiler.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10493 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-19 03:47:32 +00:00
Greg Ercolano
cdee5e204f
Fixes STR #3169 , comment #3 .
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10492 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-19 03:41:45 +00:00
Greg Ercolano
2ca381c281
Unused functions makePath() and makePathForFile() removed. (STR#3169)
...
Albrecht adds in comment #3 : "These have been replaced by fl_make_path()
and fl_make_path_for_file() in src/fl_utf8.cxx."
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10491 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-19 03:30:27 +00:00
Manolo Gouy
f2cba934cb
Restores compilation with SDK’s before 10.7, erroneously broken in a recent commit.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10490 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-18 17:32:08 +00:00
Manolo Gouy
d8ddb7b511
Removed compilation warning for unused variable.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10489 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-18 08:27:28 +00:00
Manolo Gouy
2db56a389d
Removed useless member function window_pixel_size().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10488 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-18 07:13:56 +00:00
Manolo Gouy
1f5b8d3aad
The new subRect_ member is better private (FLTK_ABI_VERSION >= 10304 only).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10487 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-18 06:40:50 +00:00
Manolo Gouy
15d497ebdf
Apple-only changes to restore a layout of the Fl_X class identical to that in FLTK 1.3.3.
...
With true subwindows, several members of Fl_X became useless.
This change recycle two of them for new uses:
- Fl_Region subRegion is used as a pointer to a CGRect
- Fl_X *xidChildren is used to indicate the resolution of the display
containing a window
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10486 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-17 09:04:01 +00:00
Manolo Gouy
00dd28afa4
Completed support of retina displays for Fl_Paged_Device::print_window_part().
...
Case with high resolution parent window and low resolution GL window is now directly processed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10485 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-12 17:12:11 +00:00
Manolo Gouy
e230a34cfd
It is necessary to compute Fl_X::mapped_to_retina after the window is mapped
...
because the windowDidMove notification is not always sent.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10484 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-11 22:25:31 +00:00
Manolo Gouy
bf07d892a3
Fix case when show() of a subwindow whose parent is not shown yet.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10483 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-11 20:34:47 +00:00
Manolo Gouy
879a8fbabf
Propagate Fl_X::mapped_to_retina value from parent to subwindows.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10482 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-11 20:09:55 +00:00
Manolo Gouy
68a577e1f6
Improved handling of high resolution ("retina") displays.
...
The new field bool Fl_X::mapped_to_retina is updated when needed, that is, when the window is moved.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10481 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-11 16:54:30 +00:00
Manolo Gouy
2d0670104b
Removed one use of dynamic_cast.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10480 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-11 13:28:23 +00:00
Manolo Gouy
84af5805df
Removed statement that became incorrect with true Mac OS X subwindows.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10479 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-09 11:15:12 +00:00
Manolo Gouy
c082c78805
Removed subwindow-specific code that is no longer needed with true subwindows.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10478 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-07 07:24:32 +00:00
Manolo Gouy
f1c7d674d2
Improved processing of retina displays: replace [NSWindow backingScaleFactor] that is not recommended.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10477 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-05 17:18:19 +00:00
Ian MacArthur
596fd2784a
Extend advanced.dox multithreading to add additional caveats
...
about the use of show() and hide() from child threads, based
on issues reported in fltk.general with tooltip windows
causing issues.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10476 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-01 10:42:41 +00:00
Manolo Gouy
0fdb271a78
Make sure that subwindows won’t leak out of their parent window
...
even if they have coordinates that would provoke it.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10475 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-30 12:34:21 +00:00