Inherits fltk::Widget.
Public Member Functions | |
Divider () | |
void | draw () |
int | handle (int) |
void | layout () |
This widget is designed to go into Menu and Browser widgets and draw an inset horizontal line across them. It has the OUTPUT flag set so the user cannot choose it.
Divider::Divider | ( | ) |
Unlike other widgets the constructor does not take any dimensions, since it is assummed the container widget will size this correctly.
References fltk::ALIGN_INSIDE, fltk::ALIGN_LEFT, fltk::Item::default_style, fltk::OUTPUT, and fltk::Widget::set_flag().
void Divider::layout | ( | ) | [virtual] |
Resizes to a 2x2 square
Reimplemented from fltk::Widget.
References fltk::Rectangle::h(), and fltk::Rectangle::w().
int Divider::handle | ( | int | ) | [virtual] |
Returns 0 always. Items do not accept any events. Any results of clicking on them is handled by the parent Menu or Browser.
Reimplemented from fltk::Widget.