Author: | James Dean Palmer |
---|---|
Version: | 1.0.0 |
Source: | example.h |
Base classes: | Fl_Widget |
This is a hypothetical widget class for ScanDoc that tests various ScanDoc features.
static const bool normalize;
- True if values should be normalized.
char* tip;
- A "tip" that should be associated with this widget.
static int value_assignments;
- Total value assignments made.
Fl_ScanDoc_Widget(int x, int y, int w, int h, char *l);
- The ScanDoc widget constructor.
- Parameters
x The x coordinate for this widget. y The y coordinate for this widget. w The width for this widget. h The height for this widget. l The label for this widget.
int value();
- Get the value associated with this widget.
- Return Value
- The value of this widget, or -1 if no value has been set.
void value(int v);
- Set the value associated with this widget.
- Parameters
v The value that should be associated with this widget.
Fl_ScanDoc_Widget* scandoc_factory();
- A factory function to generate ScanDoc widgets.
- Return Value
- The last Fl_ScanDoc_Widget generated by the factory.