summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2015-07-22It's possible to transmit an Fl_Shared_Image to Fl_Window::shape(const ↵Manolo Gouy
Fl_Image*) at no cost. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10809 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-22Prevent common dialogs, e.g., fl_alert(), from changing the currently active ↵Manolo Gouy
Fl_Group. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10808 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-21Fix window resizing of common dialogs under certain rare conditions.Albrecht Schlosser
The modified test program test/ask.cxx showed a problem that the active dialog window was resized when fl_message_icon() was called while it was open, because this call makeform() which resized the window. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10806 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-21Selected text is now displayed using a color that contrasts with the ↵Manolo Gouy
background color (This commit is in the interest of allowing the release of FLTK 1.3.4 not to be delayed). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10804 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-21Under Mac OS 10.11 beta, fl_xyline(init,int,int) and fl_yxline(init,int,int) ↵Manolo Gouy
produce bizarre graphics just after processing a mouse or keyboard event (they are OK in other cases). We fix that by filling a rectangle instead of stroking along a line (and hope the public 10.11 will have fixed that). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10803 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-20Prepare for Mac OS 10.11 'El Capitan':Manolo Gouy
- avoid double redraw after window deminiaturization - make sure that a new window appears on screen during the Fl_X::make() call git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10801 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-19Make sure the window is drawn when Fl_X::make() is calledManolo Gouy
(necessary with Mac OS 10.11). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10800 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-18Fix and improve Fl_Table docs, fix some other typos.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10799 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-18Restore compilability with Mac OS SDK 10.3 and aboveManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10798 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-17Remove unnecessary include file (STR #3133).Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10797 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-17Allow compilation with early Mac OS SDKsManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10796 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-17Fix wrong data type in Windows function override (STR #3232).Albrecht Schlosser
This patch uses the correct data type (as defined by Windows / msn) but does not fix the Cygwin linker problem. Unfortunately. This issue may be a Cygwin problem and should be reported to Cygwin. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10795 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-17Fix compilation errors with Mac OS 10.11 that no longer acceptsManolo Gouy
enum CGLineCap but wants CGLineCap as type name. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10794 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-17Comment for a change that appeared in Mac OS 10.11Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10793 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-16Correctly handle Unicode's 'Variation selectors' where a Unicode codepointManolo Gouy
modifies the glyph used to draw the previous Unicode codepoint. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10792 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-15Mac OS: The 'variation selectors' of Unicode change the glyph associated to ↵Manolo Gouy
the preceding unicode character. This defeats the procedure FLTK uses to compute text widths (precomputing the width of each used character) because the width of character n is not unique and potentially depends on character n+1. Therefore, we now remove variation selectors from the input string before drawing it. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10791 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-15Preparing for Mac OS 10.11 'El Capitan':Manolo Gouy
change in rect_to_NSBitmapImageRep(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10790 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-13Prepare for Mac OS 10.11 "El Capitan"Manolo Gouy
Screen captures produce ARGB data (instead of RGBA until 10.10) so access to the raw image data takes now this into account. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10789 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-11Improved Fl_Window::make_current() that now creates a new NSGraphicsContext ↵Manolo Gouy
only when drawing is not done through the standard event loop. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10784 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-09Update fluid .fl files and generated code - remove trailing white space.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10783 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-09Fix box background drawing for deactivated widgets (STR #2907).Albrecht Schlosser
Two new static methods have been introduced: - Fl::box_color(Fl_Color c) returns the bg color dependent on the widget's state (inactive_r()). - Fl::set_box_color(Fl_Color c) sets the correct bg color dependent on the widget's state by calling fl_color(Fl::box_color(c)). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10781 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-30Define NSInteger in FL/mac.H when needed, so it's available to all source files.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10779 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-29Fixes STR#3236; stops errors about "NSInteger was not declared" on OSX 10.4.xGreg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10778 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-28Directly draw windows without forcing the system to send the -[NSView ↵Manolo Gouy
drawRect:] message because this slowed window drawing under Mac OS 10.10 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10777 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-28Add documentation of Fl_Scroll::resize(...), fix some more Fl_Scroll docs.Albrecht Schlosser
As noticed in fltk.general, documentation of Fl_Scroll::resize() did not exist, hence the documentation shown was that of the parent class Fl_Group, which was definitely wrong. Some more minor documentation fixes have also been applied. No code changes. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10776 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-27Fix button label clipping (STR #3237).Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10775 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-27Prevent sending (FL_SHORTCUT) events to inactive widgets (STR #3216).Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10774 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-23Fixes STR 3234Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10773 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-22Indentation fix.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10772 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-21Fix Fl_Pixmap (background) drawing to respect the clip region (STR #3206).Albrecht Schlosser
STR title: (Re-)drawing artefacts with scheme plastic after STR 3059. It turned out that drawing a pixmap could enlarge the clip region if the intersection of the clip region and the pixmap was not a single rectangle. Hence drawing the background pixmap would draw outside the clip region and leave artefacts when a widget was drawn on top of it. See STR #3206. Thanks to Manolo who had the idea and provided a patch to draw into the individual rectangles of a multi-rectangle clip region. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10771 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-17Fix and adjust documentation, remove trailing white space.Albrecht Schlosser
This is a comment/white space only commit to prepare for following code changes in a later commit. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10767 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-16Rework of fl_utf8 to fix up some build issues on Win32.Ian MacArthur
Also take a stab at progressing the documentation of the UTF8 helper methods, as started by Albrecht. Hope the stuff I have added makes sense! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10761 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-15Fix code indenting, remove dead code, improve documentation.Albrecht Schlosser
There was still old (dead) code that had been deactivated by '#if 0'. This code had been obsoleted by other functions, so it was time to remove the dead parts of the code. Many functions were not documented at all. I tried to add documentation, but I ran out of time. Todo: there are still some undocumented functions in src/fl_utf8.cxx. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10760 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-15Fix spelling errors and improve documentation.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10759 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-15Fix documentation. Make links an enumeration so they are displayed correctly.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10758 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-15Fixed non-ASCII characters in Doxygen comment so they are UTF-8 encoded.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10756 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-15Fix fl_nonspacing(), explain what non-spacing characters are (STR #3159).Albrecht Schlosser
I also edited the mentioned README file to eliminate the most obvious error(s). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10754 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-15Fix documentation and make platform specific code better distinguishable.Albrecht Schlosser
This commit doesn't change any code (comments only). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10753 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-14Minor documentation fixes.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10751 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-12Mac OS: computing a method's address once is enough.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10750 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-11Fixed Doxygen doc of Fl_Native_File_Chooser::USE_FILTER_EXT option.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10749 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-11Removed Doxygen warning.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10748 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-10Mac OS: remove 5 compilation warnings of this kind:Manolo Gouy
warning: comparison of function 'CGDataConsumerCreateWithCFData' not equal to a null pointer is always true note: prefix with the address-of operator to silence this warning git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10747 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-08Fixed typo in Doxygen doc of Fl_RGB_Image constructor.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10744 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-07Fixed typos in the constructors of Fl_JPEG_Image.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10743 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-07Fixed typos in doc of Fl_JPEG_Image constructors.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10742 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-07Fixed the doc of the Fl_JPEG_Image constructors mentioning the purpose of ↵Manolo Gouy
Fl_Image::fail(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10741 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-05-30Mac OS: allow using fl_color(r,g,b) without drawing context.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10739 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-05-24Moved docs for fail() from prototype in Fl_Image.H -> implementation in ↵Greg Ercolano
Fl_Image.cxx. Also added coded example to assist app programmers in usage. (Matt: feel free to modify the example code as needed) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10734 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-05-23STR #2873: new function Fl_Image::fail() that returns 0, ERR_NO_IMAGE, ↵Matthias Melcher
ERR_FORMAT, or ERR_FILE_ACCESS to make life easier when loading images. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10732 ea41ed52-d2ee-0310-a9c1-e6b18d33e121