Re: [fltk.development] [RFE]STR#2076:Patchforfl_text_extentsmechanism in fltk-1.3.x

2009-02-16 Thread MacArthur, Ian (SELEX GALILEO, UK)
(1) your indents are not completely according to the coding standard: usually the doxygen comments are also indented, and the new Oh - OK, I didn't know that. fl_gc code looks as if it has indents of 4. Ah, sorry, that'll be wrong tab settings on my editor I suspect... (2) When we

Re: [fltk.development] [RFE]STR#2076:Patchforfl_text_extentsmechanism in fltk-1.3.x

2009-02-16 Thread Albrecht Schlosser
MacArthur, Ian (SELEX GALILEO, UK) wrote: Also - would it be worthwhile pointing to the similar-but-different fl_measure (and perhaps fl_width, fl_height) too? I think so, especially if you write something in the text about the differences. However, mentioning it in the text would (IMHO)

Re: [fltk.development] [RFE] STR #2076:Patchforfl_text_extentsmechanism in fltk-1.3.x

2009-02-15 Thread Ian MacArthur
Well - I've tried to add the comments as outlined... Here's hoping. Comments, advice, feedback welcome... -- Ian ___ fltk-dev mailing list fltk-dev@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-dev

Re: [fltk.development] [RFE] STR #2076: Patchforfl_text_extentsmechanism in fltk-1.3.x

2009-02-14 Thread imacarthur
On 10 Feb 2009, at 20:07, Albrecht Schlosser wrote: In this special case however I'm not sure _where_ to put the docs: They should be there, where the implementation is: inline methods in the header file, other methods in the .cxx file. But here we have three different implementations in

Re: [fltk.development] [RFE] STR #2076:Patchforfl_text_extentsmechanism in fltk-1.3.x

2009-02-11 Thread MacArthur, Ian (SELEX GALILEO, UK)
Indeed - I can write the words, and generate a screenshot, but have no idea how to get them into the docs... Writing the doxygen docs is not that difficult. There are enough examples, and there are some hints in the developer section of the docs. In this special case however I'm

Re: [fltk.development] [RFE] STR #2076: Patchforfl_text_extentsmechanism in fltk-1.3.x

2009-02-10 Thread Albrecht Schlosser
MacArthur, Ian (SELEX GALILEO, UK) wrote: Indeed - I can write the words, and generate a screenshot, but have no idea how to get them into the docs... Writing the doxygen docs is not that difficult. There are enough examples, and there are some hints in the developer section of the docs. In

Re: [fltk.development] [RFE]STR#2076:Patchforfl_text_extentsmechanism in fltk-1.3.x

2008-12-12 Thread MacArthur, Ian (SELEX GALILEO, UK)
Interesting.. if I gather the gist of the patch correctly, it looks like the change is to avoid having the void function return() a function that returns a void. Which seems to compile OK with 'g++ -Wall' on my linux systems, eg. no compile errors for this:

Re: [fltk.development] [RFE]STR#2076:Patchforfl_text_extentsmechanism in fltk-1.3.x

2008-12-12 Thread Fabien Costantini
Interesting.. if I gather the gist of the patch correctly, it looks like the change is to avoid having the void function return() a function that returns a void. =20 Which seems to compile OK with 'g++ -Wall' on my linux systems, eg. no compile errors for this: =20

Re: [fltk.development] [RFE] STR#2076:Patchforfl_text_extentsmechanism in fltk-1.3.x

2008-12-11 Thread Fabien Costantini
I'm sort of wondering which compiler variants do/don't=20 allow that style of usage... =20 Me too. Which compiler did _not_ like it? This one complained: $ gcc -v Reading specs from d:/MinGW/bin/../lib/gcc/mingw32/3.4.2/specs VC6 is not happy too, and has another problem compiling

Re: [fltk.development] [RFE]STR#2076:Patchforfl_text_extentsmechanism in fltk-1.3.x

2008-12-11 Thread Greg Ercolano
Fabien Costantini wrote: Yes I'm afraid I do, look at the diff file below needed for fixing current svn ... - if (c) return fl_text_extents(c, strlen(c), dx, dy, w, h); [..] + if (c) fl_text_extents(c, strlen(c), dx, dy, w, h); Interesting.. if I gather the gist of the patch

Re: [fltk.development] [RFE] STR #2076: Patchforfl_text_extentsmechanism in fltk-1.3.x

2008-12-02 Thread MacArthur, Ian (SELEX GALILEO, UK)
I'll apply the following patch shortly (compiled okay on my cygwin box with gcc 3.4.4). Index: src/fl_font_win32.cxx === --- src/fl_font_win32.cxx (revision 6534) +++ src/fl_font_win32.cxx (working copy) @@

Re: [fltk.development] [RFE] STR#2076:Patchforfl_text_extentsmechanism in fltk-1.3.x

2008-12-02 Thread MacArthur, Ian (SELEX GALILEO, UK)
FWIW, I had a quick look and it compiled ok on vc2005, too. Fabien Thanks Fabien, I do think it is odd though - it seems that some iterations of gcc/mingw permit this style, others do not, and now you report that vc2005 is OK with it... Still, I guess we need to code safely though! Cheers,

Re: [fltk.development] [RFE] STR #2076:Patchforfl_text_extentsmechanism in fltk-1.3.x

2008-12-02 Thread MacArthur, Ian (SELEX GALILEO, UK)
I'm sort of wondering which compiler variants do/don't allow that style of usage... Me too. Which compiler did _not_ like it? This one complained: $ gcc -v Reading specs from d:/MinGW/bin/../lib/gcc/mingw32/3.4.2/specs SELEX Sensors and Airborne Systems Limited Registered Office:

Re: [fltk.development] [RFE] STR #2076:Patchforfl_text_extentsmechanism in fltk-1.3.x

2008-12-02 Thread Fabien Costantini
FWIW, I had a quick look and it compiled ok on vc2005, too. Fabien One question; did the previous version compile OK for you? I'm sort of wondering which compiler variants do/don't allow that style of usage... Cheers, --=20 Ian ___ fltk-dev