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.


Member Function Documentation

void Divider::draw ( void  ) [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.

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.

void Divider::layout ( ) [virtual]

Resizes to a 2x2 square

Reimplemented from fltk::Widget.


The documentation for this class was generated from the following files: