FLTK logo

[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: Rounded Frames/Draw Rounded Rectangle Webb Hinton Jul 20, 2021  
  Am I right that the only kind of non-rectangular clipping available in FLTK is FL:Window's set_shape() method?

On Friday, July 16, 2021 at 11:08:08 PM UTC-4 Webb Hinton wrote:
Why not expose fl_rounded_box's rbox(int fill, int x, int y, int h) function in the draw module? Seems like a handy function to have, though I think it would be improved by adding parameter for setting the radius of the corners. 

Additionally, what are options does FLTK provide for clipping contents to a rounded frame?  I know we can clip to a rectangular area, but could we use fl_clip_region() for this as well? The later seems like overkill. 



--
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/ca11e68a-eed3-4769-9a76-07289d1b30f2n%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'.