|
|
On Tue, 20 Jul 2021, 11:08 imm wrote:
On Tue, 20 Jul 2021, 09:47 Webb Hinton wrote:
Am I right that the only kind of non-rectangular clipping available in FLTK is FL:Window's set_shape() method?
Well, I guess that somewhat depends on what you're trying to achieve (and possibly on what you mean by rectangular too!)
For clipping within a window it may be possible to composite a series of overlapping rectangles to produce more complex outlines, for example (though not exactly smoothed curves!)
Also, many surfaces will allow you to define a stencil to draw through, which will clip to an arbitrary shape.
What is it that you are trying to achieve?
And, just to tie up with Manolo's comment, the approaches I suggest don't really have any "direct" support via fltk API, so will need some surface-specific coding, be that X11, Win32, Quartz, GL, etc... -- IanFrom my Fairphone FP3
--
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/CAGFM6dbtqCb7kTvudo%3DbXGPc4FN1cSbZaZvmy8fH-V3WMMZ%3Dkw%40mail.gmail.com.
[ Direct Link to Message ] | |
|
| |