"Fossies" - the Fresh Open Source Software Archive

Member "fltk-1.3.2/documentation/html/classFl__Roller.html" (9 Dec 2012, 11867 Bytes) of package /linux/misc/fltk-1.3.2-docs-html.tar.gz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. Alternatively you can here view or download the uninterpreted raw source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

FLTK 1.3.2
Fl_Roller Class Reference

The Fl_Roller widget is a "dolly" control commonly used to move 3D objects. More...

#include <Fl_Roller.H>

Inheritance diagram for Fl_Roller:
Fl_Valuator Fl_Widget

List of all members.

Public Member Functions

 Fl_Roller (int X, int Y, int W, int H, const char *L=0)
 Creates a new Fl_Roller widget using the given position, size, and label string.
int handle (int)
 Handles the specified event.

Protected Member Functions

void draw ()
 Draws the widget.

Detailed Description

The Fl_Roller widget is a "dolly" control commonly used to move 3D objects.

Fl_Roller.png

Constructor & Destructor Documentation

Fl_Roller::Fl_Roller ( int  X,
int  Y,
int  W,
int  H,
const char *  L = 0 
)

Creates a new Fl_Roller widget using the given position, size, and label string.

The default boxtype is FL_NO_BOX.

Inherited destructor destroys the valuator.


Member Function Documentation

void Fl_Roller::draw ( ) [protected, virtual]

Draws the widget.

Never call this function directly. FLTK will schedule redrawing whenever needed. If your widget must be redrawn as soon as possible, call redraw() instead.

Override this function to draw your own widgets.

If you ever need to call another widget's draw method from within your own draw() method, e.g. for an embedded scrollbar, you can do it (because draw() is virtual) like this:

        Fl_Widget *s = &scroll;         // scroll is an embedded Fl_Scrollbar
        s->draw();                      // calls Fl_Scrollbar::draw()

Implements Fl_Widget.

int Fl_Roller::handle ( int  event) [virtual]

Handles the specified event.

You normally don't call this method directly, but instead let FLTK do it when the user interacts with the widget.

When implemented in a widget, this function must return 0 if the widget does not use the event or 1 otherwise.

Most of the time, you want to call the inherited handle() method in your overridden method so that you don't short-circuit events that you don't handle. In this last case you should return the callee retval.

Parameters:
[in]eventthe kind of event received
Return values:
0if the event was not used or understood
1if the event was used and can be deleted
See also:
Fl_Event

Reimplemented from Fl_Widget.


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