FLTK logo

[fltk.general] Re: Which origin does FLTK draw function use ? Widget or Window?

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Which origin does FLTK draw function use ? Widget or Window? Ian MacArthur May 26, 2021  
 
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.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/70dc8fe8-a1be-46a3-806c-1cca23bdcefan%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.