On Wednesday, 26 May 2021 at 03:01:35 UTC+1 fmeg... wrote:
I noticed that some drawing functions do not care about the current transform. I think fl_pie() is one of them. A fl_translate() call before it does not seem to affect the origin so i think will follow your method here by adding xo and yo to the parameters.
Yes - this is documented, https://www.fltk.org/doc-1.3/drawing.html#ssect_Fast so if you use the "fast" drawing methods they may or may not honour the transformation (it's platform and implementation dependent...) so best not to use the transformation in that case.
the "complex" shapes https://www.fltk.org/doc-1.3/drawing.html#ssect_Complex should honour the transformation in all cases, but will be a bit slower to render in most circumstances (though probably not enough to matter unless the scene is very involved.)
I did not know about the FLUID part so i will definitely explore that.
Will check out Greg's widget too. sure there is a lot to learn there
Or do what I do, which is check Greg's examples first, in case he already has one that does what I need...
Also, as a side note, the posting style around here is *not* to top-post. So please post below, with replies interleaved with the citations to which they refer, and preferably trimmed to remove any extraneous clutter, so as to keep the conversation as clear as possible.
Thanks.