fltk::Divider Class Reference

Inherits fltk::Widget.

List of all members.

Public Member Functions

 Divider ()
void draw ()
int handle (int)
void layout ()


Detailed Description

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.

Constructor & Destructor Documentation

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::OUTPUT, and fltk::Widget::set_flag().


Member Function Documentation

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.


Wed Jun 17 08:58:24 2009. FLTK ©2007 Bill Spitzak and others.
Permission is granted to reproduce this manual or any portion for any purpose, provided this copyright and permission notice are preserved.