I find a need for a draw_focus() method that takes an Fl_Color as an argument.
There are cases where the background color of the focus box is not the widget's 
color().

One such case is Fl_Tree, where items can each have a different background color
(eg. the selection color)

Unless I'm missing something, Fl::draw_focus() as it stands only assumes
the widget's color().

I'd like to suggest a second call that has the color as an option,
an the current call be a wrapper for the new call, eg:

    // NEW METHOD
    void Fl_Widget::draw_focus(.. Fl_Color C, ..) {
      ..
    }
    // CURRENT METHOD
    void Fl_Widget::draw_focus(..) {
      draw_focus(.. color(), ..);
    }
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to