// Fl_Light_Button.C // Subclass of Fl_Button where the "box" indicates whether it is // pushed or not, and the "down box" is drawn small and square on // the left to indicate the current state. // The default down_box of zero draws a rectangle designed to look // just like Flame's buttons. #include #include #include void Fl_Light_Button::draw() { if (box()) draw_box(this==Fl::pushed() ? down(box()) : box(), color()); Fl_Color col = value() ? selection_color() : color(); int d = h()/6; int W = w()