FLTK logo

Re: [fltk.general] Re: Rounded Frames/Draw Rounded Rectangle

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: Re: Rounded Frames/Draw Rounded Rectangle imm Jul 20, 2021  
 
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...
-- 
Ian
From 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 ]
 
     
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'.