fltk::Divider Class Reference

Inheritance diagram for fltk::Divider:

Inheritance graph
Collaboration diagram for fltk::Divider:

Collaboration graph
List of all members.

Public Member Functions

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

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

fltk::Divider::Divider  ) 

Unlike other widgets the constructor does not take any dimensions, since it is assummed the container widget will size this correctly.

Member Function Documentation

void fltk::Divider::draw  )  [virtual]

Fltk calls this virtual function to draw the widget, after setting up the graphics (current window, xy translation, etc) so that any drawing functions will go into this widget.

User code should not call this! You probably want to call redraw().

The default version calls draw_box() and draw_label(), thus drawing the box() to fill the widget and putting the label() and image() inside it to fill it, unless the align() flags are set to put it outside.

Information on how to write your own version is here.

Reimplemented from fltk::Widget.

Reimplemented in fltk::ToolDivider.

int fltk::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.

void fltk::Divider::layout  )  [virtual]

Resizes to a 2x2 square

Reimplemented from fltk::Widget.

Reimplemented in fltk::ToolDivider.

Tue Jun 27 02:19:46 2006. FLTK Dock is copyright © 2006 by MD. Z. Hossain