Regarding the recent "Re: Make child widget doesn't erase borders ?",
it seems it would maybe help folks if Fl_Group had an easy way for
to let the user easily turn on clipping for the group's children.

>From that thread:

        It definitely was harder than I thought to get a group
        to clip its children, without doing a fancy low level draw().

        Might be useful if Fl_Group had two new methods:

                clip(flag): enable/disable clipping. If enabled, by default
                it would clip to the widget's own xywh, so a group could
                be a child of a window, and children would clip within that
                region.

                clip(x,y,w,h): set the actual clip region for drawing
                children, so it can be smaller than xywh. If set, it would
                enable an fl_push/pop_clip around the draw_children() call.

        This would allow the API to easily support the opposite of an Fl_Scroll
        without the user having to derive a custom widget from Fl_Group.

        Not sure if there's hidden complexities there or not.. seems easy.
        resizing() would have to adjust the clip region (if set) similarly.
        Would hopefully only add a simple if() overhead to apps that don't
        need clipping.
        
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to