mirror of
https://github.com/fltk/fltk.git
synced 2026-05-31 13:55:38 +08:00
More FL_EXPORT fun...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2584 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+9
-9
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Adjuster.H,v 1.5.2.3.2.2 2002/08/09 01:09:48 easysw Exp $"
|
// "$Id: Fl_Adjuster.H,v 1.5.2.3.2.3 2002/08/14 16:49:37 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Adjuster widget header file for the Fast Light Tool Kit (FLTK).
|
// Adjuster widget header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -32,22 +32,22 @@
|
|||||||
#include "Fl_Valuator.H"
|
#include "Fl_Valuator.H"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class Fl_Adjuster : public Fl_Valuator {
|
class FL_EXPORT Fl_Adjuster : public Fl_Valuator {
|
||||||
int drag;
|
int drag;
|
||||||
int ix;
|
int ix;
|
||||||
int soft_;
|
int soft_;
|
||||||
protected:
|
protected:
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
FL_EXPORT int handle(int);
|
int handle(int);
|
||||||
FL_EXPORT void value_damage();
|
void value_damage();
|
||||||
public:
|
public:
|
||||||
FL_EXPORT Fl_Adjuster(int X,int Y,int W,int H,const char *l=0);
|
Fl_Adjuster(int X,int Y,int W,int H,const char *l=0);
|
||||||
FL_EXPORT void soft(int s) {soft_ = s;}
|
void soft(int s) {soft_ = s;}
|
||||||
FL_EXPORT int soft() const {return soft_;}
|
int soft() const {return soft_;}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Adjuster.H,v 1.5.2.3.2.2 2002/08/09 01:09:48 easysw Exp $".
|
// End of "$Id: Fl_Adjuster.H,v 1.5.2.3.2.3 2002/08/14 16:49:37 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+7
-7
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Box.H,v 1.5.2.4.2.3 2002/08/09 01:09:48 easysw Exp $"
|
// "$Id: Fl_Box.H,v 1.5.2.4.2.4 2002/08/14 16:49:37 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Box header file for the Fast Light Tool Kit (FLTK).
|
// Box header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -30,20 +30,20 @@
|
|||||||
#include "Fl_Widget.H"
|
#include "Fl_Widget.H"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class Fl_Box : public Fl_Widget {
|
class FL_EXPORT Fl_Box : public Fl_Widget {
|
||||||
protected:
|
protected:
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
public:
|
public:
|
||||||
FL_EXPORT Fl_Box(int X, int Y, int W, int H, const char *l=0)
|
Fl_Box(int X, int Y, int W, int H, const char *l=0)
|
||||||
: Fl_Widget(X,Y,W,H,l) {}
|
: Fl_Widget(X,Y,W,H,l) {}
|
||||||
FL_EXPORT Fl_Box(Fl_Boxtype b, int X, int Y, int W, int H, const char *l)
|
Fl_Box(Fl_Boxtype b, int X, int Y, int W, int H, const char *l)
|
||||||
: Fl_Widget(X,Y,W,H,l) {box(b);}
|
: Fl_Widget(X,Y,W,H,l) {box(b);}
|
||||||
|
|
||||||
virtual FL_EXPORT int handle(int);
|
virtual int handle(int);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Box.H,v 1.5.2.4.2.3 2002/08/09 01:09:48 easysw Exp $".
|
// End of "$Id: Fl_Box.H,v 1.5.2.4.2.4 2002/08/14 16:49:37 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+37
-37
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Browser.H,v 1.8.2.7.2.2 2002/01/01 15:11:27 easysw Exp $"
|
// "$Id: Fl_Browser.H,v 1.8.2.7.2.3 2002/08/14 16:49:37 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Browser header file for the Fast Light Tool Kit (FLTK).
|
// Browser header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
struct FL_BLINE;
|
struct FL_BLINE;
|
||||||
|
|
||||||
class Fl_Browser : public Fl_Browser_ {
|
class FL_EXPORT Fl_Browser : public Fl_Browser_ {
|
||||||
|
|
||||||
FL_BLINE *first; // the array of lines
|
FL_BLINE *first; // the array of lines
|
||||||
FL_BLINE *last;
|
FL_BLINE *last;
|
||||||
@@ -49,56 +49,56 @@ class Fl_Browser : public Fl_Browser_ {
|
|||||||
protected:
|
protected:
|
||||||
|
|
||||||
// required routines for Fl_Browser_ subclass:
|
// required routines for Fl_Browser_ subclass:
|
||||||
FL_EXPORT void* item_first() const ;
|
void* item_first() const ;
|
||||||
FL_EXPORT void* item_next(void*) const ;
|
void* item_next(void*) const ;
|
||||||
FL_EXPORT void* item_prev(void*) const ;
|
void* item_prev(void*) const ;
|
||||||
FL_EXPORT int item_selected(void*) const ;
|
int item_selected(void*) const ;
|
||||||
FL_EXPORT void item_select(void*, int);
|
void item_select(void*, int);
|
||||||
FL_EXPORT int item_height(void*) const ;
|
int item_height(void*) const ;
|
||||||
FL_EXPORT int item_width(void*) const ;
|
int item_width(void*) const ;
|
||||||
FL_EXPORT void item_draw(void*, int, int, int, int) const ;
|
void item_draw(void*, int, int, int, int) const ;
|
||||||
FL_EXPORT int full_height() const ;
|
int full_height() const ;
|
||||||
FL_EXPORT int incr_height() const ;
|
int incr_height() const ;
|
||||||
|
|
||||||
FL_EXPORT FL_BLINE* find_line(int) const ;
|
FL_BLINE* find_line(int) const ;
|
||||||
FL_EXPORT FL_BLINE* _remove(int) ;
|
FL_BLINE* _remove(int) ;
|
||||||
FL_EXPORT void insert(int, FL_BLINE*);
|
void insert(int, FL_BLINE*);
|
||||||
FL_EXPORT int lineno(void*) const ;
|
int lineno(void*) const ;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
FL_EXPORT void remove(int);
|
void remove(int);
|
||||||
FL_EXPORT void add(const char*, void* = 0);
|
void add(const char*, void* = 0);
|
||||||
FL_EXPORT void insert(int, const char*, void* = 0);
|
void insert(int, const char*, void* = 0);
|
||||||
FL_EXPORT void move(int to, int from);
|
void move(int to, int from);
|
||||||
FL_EXPORT int load(const char* filename);
|
int load(const char* filename);
|
||||||
FL_EXPORT void clear();
|
void clear();
|
||||||
|
|
||||||
int size() const {return lines;}
|
int size() const {return lines;}
|
||||||
|
|
||||||
FL_EXPORT int topline() const ;
|
int topline() const ;
|
||||||
enum Fl_Line_Position { TOP, BOTTOM, MIDDLE };
|
enum Fl_Line_Position { TOP, BOTTOM, MIDDLE };
|
||||||
FL_EXPORT void lineposition(int, Fl_Line_Position);
|
void lineposition(int, Fl_Line_Position);
|
||||||
void topline(int l) { lineposition(l, TOP); }
|
void topline(int l) { lineposition(l, TOP); }
|
||||||
void bottomline(int l) { lineposition(l, BOTTOM); }
|
void bottomline(int l) { lineposition(l, BOTTOM); }
|
||||||
void middleline(int l) { lineposition(l, MIDDLE); }
|
void middleline(int l) { lineposition(l, MIDDLE); }
|
||||||
|
|
||||||
FL_EXPORT int select(int, int=1);
|
int select(int, int=1);
|
||||||
FL_EXPORT int selected(int) const ;
|
int selected(int) const ;
|
||||||
FL_EXPORT void show(int n);
|
void show(int n);
|
||||||
void show() {Fl_Widget::show();}
|
void show() {Fl_Widget::show();}
|
||||||
FL_EXPORT void hide(int n);
|
void hide(int n);
|
||||||
void hide() {Fl_Widget::hide();}
|
void hide() {Fl_Widget::hide();}
|
||||||
FL_EXPORT int visible(int n) const ;
|
int visible(int n) const ;
|
||||||
|
|
||||||
FL_EXPORT int value() const ;
|
int value() const ;
|
||||||
void value(int v) {select(v);}
|
void value(int v) {select(v);}
|
||||||
FL_EXPORT const char* text(int) const ;
|
const char* text(int) const ;
|
||||||
FL_EXPORT void text(int, const char*);
|
void text(int, const char*);
|
||||||
FL_EXPORT void* data(int) const ;
|
void* data(int) const ;
|
||||||
FL_EXPORT void data(int, void* v);
|
void data(int, void* v);
|
||||||
|
|
||||||
FL_EXPORT Fl_Browser(int, int, int, int, const char* = 0);
|
Fl_Browser(int, int, int, int, const char* = 0);
|
||||||
~Fl_Browser() { clear(); }
|
~Fl_Browser() { clear(); }
|
||||||
|
|
||||||
char format_char() const {return format_char_;}
|
char format_char() const {return format_char_;}
|
||||||
@@ -117,11 +117,11 @@ public:
|
|||||||
|
|
||||||
// for back compatability only:
|
// for back compatability only:
|
||||||
void replace(int a, const char* b) {text(a, b);}
|
void replace(int a, const char* b) {text(a, b);}
|
||||||
FL_EXPORT void display(int, int=1);
|
void display(int, int=1);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Browser.H,v 1.8.2.7.2.2 2002/01/01 15:11:27 easysw Exp $".
|
// End of "$Id: Fl_Browser.H,v 1.8.2.7.2.3 2002/08/14 16:49:37 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+40
-40
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Browser_.H,v 1.6.2.4.2.2 2002/01/01 15:11:27 easysw Exp $"
|
// "$Id: Fl_Browser_.H,v 1.6.2.4.2.3 2002/08/14 16:49:37 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Common browser header file for the Fast Light Tool Kit (FLTK).
|
// Common browser header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
#define FL_HOLD_BROWSER 2
|
#define FL_HOLD_BROWSER 2
|
||||||
#define FL_MULTI_BROWSER 3
|
#define FL_MULTI_BROWSER 3
|
||||||
|
|
||||||
class Fl_Browser_ : public Fl_Group {
|
class FL_EXPORT Fl_Browser_ : public Fl_Group {
|
||||||
int position_; // where user wants it scrolled to
|
int position_; // where user wants it scrolled to
|
||||||
int real_position_; // the current vertical scrolling position
|
int real_position_; // the current vertical scrolling position
|
||||||
int hposition_; // where user wants it panned to
|
int hposition_; // where user wants it panned to
|
||||||
@@ -60,61 +60,61 @@ class Fl_Browser_ : public Fl_Group {
|
|||||||
|
|
||||||
static int scrollbar_width_;
|
static int scrollbar_width_;
|
||||||
|
|
||||||
FL_EXPORT void update_top();
|
void update_top();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
// All of the following must be supplied by the subclass:
|
// All of the following must be supplied by the subclass:
|
||||||
virtual FL_EXPORT void *item_first() const = 0;
|
virtual void *item_first() const = 0;
|
||||||
virtual FL_EXPORT void *item_next(void *) const = 0;
|
virtual void *item_next(void *) const = 0;
|
||||||
virtual FL_EXPORT void *item_prev(void *) const = 0;
|
virtual void *item_prev(void *) const = 0;
|
||||||
virtual FL_EXPORT int item_height(void *) const = 0;
|
virtual int item_height(void *) const = 0;
|
||||||
virtual FL_EXPORT int item_width(void *) const = 0;
|
virtual int item_width(void *) const = 0;
|
||||||
virtual FL_EXPORT int item_quick_height(void *) const ;
|
virtual int item_quick_height(void *) const ;
|
||||||
virtual FL_EXPORT void item_draw(void *,int,int,int,int) const = 0;
|
virtual void item_draw(void *,int,int,int,int) const = 0;
|
||||||
// you don't have to provide these but it may help speed it up:
|
// you don't have to provide these but it may help speed it up:
|
||||||
virtual FL_EXPORT int full_width() const ; // current width of all items
|
virtual int full_width() const ; // current width of all items
|
||||||
virtual FL_EXPORT int full_height() const ; // current height of all items
|
virtual int full_height() const ; // current height of all items
|
||||||
virtual FL_EXPORT int incr_height() const ; // average height of an item
|
virtual int incr_height() const ; // average height of an item
|
||||||
// These only need to be done by subclass if you want a multi-browser:
|
// These only need to be done by subclass if you want a multi-browser:
|
||||||
virtual FL_EXPORT void item_select(void *,int=1);
|
virtual void item_select(void *,int=1);
|
||||||
virtual FL_EXPORT int item_selected(void *) const ;
|
virtual int item_selected(void *) const ;
|
||||||
|
|
||||||
// things the subclass may want to call:
|
// things the subclass may want to call:
|
||||||
FL_EXPORT void *top() const {return top_;}
|
void *top() const {return top_;}
|
||||||
FL_EXPORT void *selection() const {return selection_;}
|
void *selection() const {return selection_;}
|
||||||
FL_EXPORT void new_list(); // completely clobber all data, as though list replaced
|
void new_list(); // completely clobber all data, as though list replaced
|
||||||
FL_EXPORT void deleting(void *a); // get rid of any pointers to a
|
void deleting(void *a); // get rid of any pointers to a
|
||||||
FL_EXPORT void replacing(void *a,void *b); // change a pointers to b
|
void replacing(void *a,void *b); // change a pointers to b
|
||||||
FL_EXPORT void inserting(void *a,void *b); // insert a before b
|
void inserting(void *a,void *b); // insert a before b
|
||||||
FL_EXPORT int displayed(void *) const ; // true if this line is visible
|
int displayed(void *) const ; // true if this line is visible
|
||||||
FL_EXPORT void redraw_line(void *); // minimal update, no change in size
|
void redraw_line(void *); // minimal update, no change in size
|
||||||
FL_EXPORT void redraw_lines() {damage(FL_DAMAGE_SCROLL);} // redraw all of them
|
void redraw_lines() {damage(FL_DAMAGE_SCROLL);} // redraw all of them
|
||||||
FL_EXPORT void bbox(int&,int&,int&,int&) const;
|
void bbox(int&,int&,int&,int&) const;
|
||||||
FL_EXPORT int leftedge() const; // x position after scrollbar & border
|
int leftedge() const; // x position after scrollbar & border
|
||||||
FL_EXPORT void *find_item(int my); // item under mouse
|
void *find_item(int my); // item under mouse
|
||||||
FL_EXPORT void draw(int,int,int,int);
|
void draw(int,int,int,int);
|
||||||
FL_EXPORT int handle(int,int,int,int,int);
|
int handle(int,int,int,int,int);
|
||||||
|
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
FL_EXPORT Fl_Browser_(int,int,int,int,const char * = 0);
|
Fl_Browser_(int,int,int,int,const char * = 0);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
Fl_Scrollbar scrollbar; // Vertical scrollbar
|
Fl_Scrollbar scrollbar; // Vertical scrollbar
|
||||||
Fl_Scrollbar hscrollbar; // Horizontal scrollbar
|
Fl_Scrollbar hscrollbar; // Horizontal scrollbar
|
||||||
|
|
||||||
FL_EXPORT int handle(int);
|
int handle(int);
|
||||||
FL_EXPORT void resize(int,int,int,int);
|
void resize(int,int,int,int);
|
||||||
|
|
||||||
FL_EXPORT int select(void *,int=1,int docallbacks=0);
|
int select(void *,int=1,int docallbacks=0);
|
||||||
FL_EXPORT int select_only(void *,int docallbacks=0);
|
int select_only(void *,int docallbacks=0);
|
||||||
FL_EXPORT int deselect(int docallbacks=0);
|
int deselect(int docallbacks=0);
|
||||||
int position() const {return position_;}
|
int position() const {return position_;}
|
||||||
int hposition() const {return hposition_;}
|
int hposition() const {return hposition_;}
|
||||||
FL_EXPORT void position(int); // scroll to here
|
void position(int); // scroll to here
|
||||||
FL_EXPORT void hposition(int); // pan to here
|
void hposition(int); // pan to here
|
||||||
FL_EXPORT void display(void*); // scroll so this item is shown
|
void display(void*); // scroll so this item is shown
|
||||||
|
|
||||||
uchar has_scrollbar() const {return has_scrollbar_;}
|
uchar has_scrollbar() const {return has_scrollbar_;}
|
||||||
void has_scrollbar(uchar i) {has_scrollbar_ = i;}
|
void has_scrollbar(uchar i) {has_scrollbar_ = i;}
|
||||||
@@ -147,5 +147,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Browser_.H,v 1.6.2.4.2.2 2002/01/01 15:11:27 easysw Exp $".
|
// End of "$Id: Fl_Browser_.H,v 1.6.2.4.2.3 2002/08/14 16:49:37 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+8
-8
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Button.H,v 1.5.2.3.2.3 2002/01/01 15:11:27 easysw Exp $"
|
// "$Id: Fl_Button.H,v 1.5.2.3.2.4 2002/08/14 16:49:37 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Button header file for the Fast Light Tool Kit (FLTK).
|
// Button header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
extern FL_EXPORT int fl_old_shortcut(const char*);
|
extern FL_EXPORT int fl_old_shortcut(const char*);
|
||||||
|
|
||||||
class Fl_Button : public Fl_Widget {
|
class FL_EXPORT Fl_Button : public Fl_Widget {
|
||||||
|
|
||||||
int shortcut_;
|
int shortcut_;
|
||||||
char value_;
|
char value_;
|
||||||
@@ -47,17 +47,17 @@ class Fl_Button : public Fl_Widget {
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
virtual FL_EXPORT void draw();
|
virtual void draw();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
virtual FL_EXPORT int handle(int);
|
virtual int handle(int);
|
||||||
FL_EXPORT Fl_Button(int,int,int,int,const char * = 0);
|
Fl_Button(int,int,int,int,const char * = 0);
|
||||||
FL_EXPORT int value(int);
|
int value(int);
|
||||||
char value() const {return value_;}
|
char value() const {return value_;}
|
||||||
int set() {return value(1);}
|
int set() {return value(1);}
|
||||||
int clear() {return value(0);}
|
int clear() {return value(0);}
|
||||||
FL_EXPORT void setonly(); // this should only be called on FL_RADIO_BUTTONs
|
void setonly(); // this should only be called on FL_RADIO_BUTTONs
|
||||||
int shortcut() const {return shortcut_;}
|
int shortcut() const {return shortcut_;}
|
||||||
void shortcut(int s) {shortcut_ = s;}
|
void shortcut(int s) {shortcut_ = s;}
|
||||||
Fl_Boxtype down_box() const {return (Fl_Boxtype)down_box_;}
|
Fl_Boxtype down_box() const {return (Fl_Boxtype)down_box_;}
|
||||||
@@ -72,5 +72,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Button.H,v 1.5.2.3.2.3 2002/01/01 15:11:27 easysw Exp $".
|
// End of "$Id: Fl_Button.H,v 1.5.2.3.2.4 2002/08/14 16:49:37 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+11
-11
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Chart.H,v 1.6.2.3.2.2 2002/01/01 15:11:27 easysw Exp $"
|
// "$Id: Fl_Chart.H,v 1.6.2.3.2.3 2002/08/14 16:49:37 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Forms chart header file for the Fast Light Tool Kit (FLTK).
|
// Forms chart header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -50,7 +50,7 @@ struct FL_CHART_ENTRY {
|
|||||||
char str[FL_CHART_LABEL_MAX+1];
|
char str[FL_CHART_LABEL_MAX+1];
|
||||||
};
|
};
|
||||||
|
|
||||||
class Fl_Chart : public Fl_Widget {
|
class FL_EXPORT Fl_Chart : public Fl_Widget {
|
||||||
int numb;
|
int numb;
|
||||||
int maxnumb;
|
int maxnumb;
|
||||||
int sizenumb;
|
int sizenumb;
|
||||||
@@ -60,18 +60,18 @@ class Fl_Chart : public Fl_Widget {
|
|||||||
uchar textfont_,textsize_;
|
uchar textfont_,textsize_;
|
||||||
unsigned textcolor_;
|
unsigned textcolor_;
|
||||||
protected:
|
protected:
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
public:
|
public:
|
||||||
FL_EXPORT Fl_Chart(int,int,int,int,const char * = 0);
|
Fl_Chart(int,int,int,int,const char * = 0);
|
||||||
FL_EXPORT void clear();
|
void clear();
|
||||||
FL_EXPORT void add(double, const char * =0, unsigned=0);
|
void add(double, const char * =0, unsigned=0);
|
||||||
FL_EXPORT void insert(int, double, const char * =0, unsigned=0);
|
void insert(int, double, const char * =0, unsigned=0);
|
||||||
FL_EXPORT void replace(int, double, const char * =0, unsigned=0);
|
void replace(int, double, const char * =0, unsigned=0);
|
||||||
void bounds(double *a,double *b) const {*a = min; *b = max;}
|
void bounds(double *a,double *b) const {*a = min; *b = max;}
|
||||||
FL_EXPORT void bounds(double a,double b);
|
void bounds(double a,double b);
|
||||||
int size() const {return numb;}
|
int size() const {return numb;}
|
||||||
int maxsize() const {return maxnumb;}
|
int maxsize() const {return maxnumb;}
|
||||||
FL_EXPORT void maxsize(int);
|
void maxsize(int);
|
||||||
Fl_Font textfont() const {return (Fl_Font)textfont_;}
|
Fl_Font textfont() const {return (Fl_Font)textfont_;}
|
||||||
void textfont(uchar s) {textfont_ = s;}
|
void textfont(uchar s) {textfont_ = s;}
|
||||||
uchar textsize() const {return textsize_;}
|
uchar textsize() const {return textsize_;}
|
||||||
@@ -85,5 +85,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Chart.H,v 1.6.2.3.2.2 2002/01/01 15:11:27 easysw Exp $".
|
// End of "$Id: Fl_Chart.H,v 1.6.2.3.2.3 2002/08/14 16:49:37 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+23
-23
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Check_Browser.H,v 1.1.2.3 2002/01/01 15:11:27 easysw Exp $"
|
// "$Id: Fl_Check_Browser.H,v 1.1.2.4 2002/08/14 16:49:37 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Fl_Check_Browser header file for the Fast Light Tool Kit (FLTK).
|
// Fl_Check_Browser header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -29,17 +29,17 @@
|
|||||||
#include "Fl.H"
|
#include "Fl.H"
|
||||||
#include "Fl_Browser_.H"
|
#include "Fl_Browser_.H"
|
||||||
|
|
||||||
class Fl_Check_Browser : public Fl_Browser_ {
|
class FL_EXPORT Fl_Check_Browser : public Fl_Browser_ {
|
||||||
/* required routines for Fl_Browser_ subclass: */
|
/* required routines for Fl_Browser_ subclass: */
|
||||||
|
|
||||||
FL_EXPORT void *item_first() const;
|
void *item_first() const;
|
||||||
FL_EXPORT void *item_next(void *) const;
|
void *item_next(void *) const;
|
||||||
FL_EXPORT void *item_prev(void *) const;
|
void *item_prev(void *) const;
|
||||||
FL_EXPORT int item_height(void *) const;
|
int item_height(void *) const;
|
||||||
FL_EXPORT int item_width(void *) const;
|
int item_width(void *) const;
|
||||||
FL_EXPORT void item_draw(void *, int, int, int, int) const;
|
void item_draw(void *, int, int, int, int) const;
|
||||||
FL_EXPORT void item_select(void *, int);
|
void item_select(void *, int);
|
||||||
FL_EXPORT int item_selected(void *) const;
|
int item_selected(void *) const;
|
||||||
|
|
||||||
/* private data */
|
/* private data */
|
||||||
|
|
||||||
@@ -61,31 +61,31 @@ class Fl_Check_Browser : public Fl_Browser_ {
|
|||||||
int cached_item;
|
int cached_item;
|
||||||
int nitems_;
|
int nitems_;
|
||||||
int nchecked_;
|
int nchecked_;
|
||||||
FL_EXPORT cb_item *find_item(int) const;
|
cb_item *find_item(int) const;
|
||||||
FL_EXPORT int lineno(cb_item *) const;
|
int lineno(cb_item *) const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
FL_EXPORT Fl_Check_Browser(int x, int y, int w, int h, const char *l = 0);
|
Fl_Check_Browser(int x, int y, int w, int h, const char *l = 0);
|
||||||
|
|
||||||
FL_EXPORT int add(char *s); // add an (unchecked) item
|
int add(char *s); // add an (unchecked) item
|
||||||
FL_EXPORT int add(char *s, int b); // add an item and set checked
|
int add(char *s, int b); // add an item and set checked
|
||||||
// both return the new nitems()
|
// both return the new nitems()
|
||||||
FL_EXPORT void clear(); // delete all items
|
void clear(); // delete all items
|
||||||
int nitems() const { return nitems_; }
|
int nitems() const { return nitems_; }
|
||||||
int nchecked() const { return nchecked_; }
|
int nchecked() const { return nchecked_; }
|
||||||
FL_EXPORT int checked(int item) const;
|
int checked(int item) const;
|
||||||
FL_EXPORT void checked(int item, int b);
|
void checked(int item, int b);
|
||||||
void set_checked(int item) { checked(item, 1); }
|
void set_checked(int item) { checked(item, 1); }
|
||||||
FL_EXPORT void check_all();
|
void check_all();
|
||||||
FL_EXPORT void check_none();
|
void check_none();
|
||||||
FL_EXPORT int value() const; // currently selected item
|
int value() const; // currently selected item
|
||||||
FL_EXPORT char *text(int item) const; // returns pointer to internal buffer
|
char *text(int item) const; // returns pointer to internal buffer
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // Fl_Check_Browser_H
|
#endif // Fl_Check_Browser_H
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Check_Browser.H,v 1.1.2.3 2002/01/01 15:11:27 easysw Exp $".
|
// End of "$Id: Fl_Check_Browser.H,v 1.1.2.4 2002/08/14 16:49:37 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Check_Button.H,v 1.5.2.3.2.1 2002/01/01 15:11:27 easysw Exp $"
|
// "$Id: Fl_Check_Button.H,v 1.5.2.3.2.2 2002/08/14 16:49:37 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Check button header file for the Fast Light Tool Kit (FLTK).
|
// Check button header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -28,13 +28,13 @@
|
|||||||
|
|
||||||
#include "Fl_Light_Button.H"
|
#include "Fl_Light_Button.H"
|
||||||
|
|
||||||
class Fl_Check_Button : public Fl_Light_Button {
|
class FL_EXPORT Fl_Check_Button : public Fl_Light_Button {
|
||||||
public:
|
public:
|
||||||
FL_EXPORT Fl_Check_Button(int x,int y,int w,int h,const char *l = 0);
|
Fl_Check_Button(int x,int y,int w,int h,const char *l = 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Check_Button.H,v 1.5.2.3.2.1 2002/01/01 15:11:27 easysw Exp $".
|
// End of "$Id: Fl_Check_Button.H,v 1.5.2.3.2.2 2002/08/14 16:49:37 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+8
-8
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Choice.H,v 1.5.2.3.2.1 2002/01/01 15:11:27 easysw Exp $"
|
// "$Id: Fl_Choice.H,v 1.5.2.3.2.2 2002/08/14 16:49:37 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Choice header file for the Fast Light Tool Kit (FLTK).
|
// Choice header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -28,18 +28,18 @@
|
|||||||
|
|
||||||
#include "Fl_Menu_.H"
|
#include "Fl_Menu_.H"
|
||||||
|
|
||||||
class Fl_Choice : public Fl_Menu_ {
|
class FL_EXPORT Fl_Choice : public Fl_Menu_ {
|
||||||
protected:
|
protected:
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
public:
|
public:
|
||||||
FL_EXPORT int handle(int);
|
int handle(int);
|
||||||
FL_EXPORT Fl_Choice(int,int,int,int,const char * = 0);
|
Fl_Choice(int,int,int,int,const char * = 0);
|
||||||
FL_EXPORT int value(int i);
|
int value(int i);
|
||||||
FL_EXPORT int value() const {return Fl_Menu_::value();}
|
int value() const {return Fl_Menu_::value();}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Choice.H,v 1.5.2.3.2.1 2002/01/01 15:11:27 easysw Exp $".
|
// End of "$Id: Fl_Choice.H,v 1.5.2.3.2.2 2002/08/14 16:49:37 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+15
-15
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Clock.H,v 1.6.2.4.2.1 2002/01/01 15:11:27 easysw Exp $"
|
// "$Id: Fl_Clock.H,v 1.6.2.4.2.2 2002/08/14 16:49:37 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Clock header file for the Fast Light Tool Kit (FLTK).
|
// Clock header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -38,17 +38,17 @@
|
|||||||
|
|
||||||
// a Fl_Clock_Output can be used to display a program-supplied time:
|
// a Fl_Clock_Output can be used to display a program-supplied time:
|
||||||
|
|
||||||
class Fl_Clock_Output : public Fl_Widget {
|
class FL_EXPORT Fl_Clock_Output : public Fl_Widget {
|
||||||
int hour_, minute_, second_;
|
int hour_, minute_, second_;
|
||||||
ulong value_;
|
ulong value_;
|
||||||
FL_EXPORT void drawhands(Fl_Color,Fl_Color); // part of draw
|
void drawhands(Fl_Color,Fl_Color); // part of draw
|
||||||
protected:
|
protected:
|
||||||
FL_EXPORT void draw(int, int, int, int);
|
void draw(int, int, int, int);
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
public:
|
public:
|
||||||
FL_EXPORT Fl_Clock_Output(int x,int y,int w,int h, const char *l = 0);
|
Fl_Clock_Output(int x,int y,int w,int h, const char *l = 0);
|
||||||
FL_EXPORT void value(ulong v); // set to this Unix time
|
void value(ulong v); // set to this Unix time
|
||||||
FL_EXPORT void value(int,int,int); // set hour, minute, second
|
void value(int,int,int); // set hour, minute, second
|
||||||
ulong value() const {return value_;}
|
ulong value() const {return value_;}
|
||||||
int hour() const {return hour_;}
|
int hour() const {return hour_;}
|
||||||
int minute() const {return minute_;}
|
int minute() const {return minute_;}
|
||||||
@@ -57,17 +57,17 @@ public:
|
|||||||
|
|
||||||
// a Fl_Clock displays the current time always by using a timeout:
|
// a Fl_Clock displays the current time always by using a timeout:
|
||||||
|
|
||||||
class Fl_Clock : public Fl_Clock_Output {
|
class FL_EXPORT Fl_Clock : public Fl_Clock_Output {
|
||||||
public:
|
public:
|
||||||
FL_EXPORT int handle(int);
|
int handle(int);
|
||||||
FL_EXPORT void update();
|
void update();
|
||||||
FL_EXPORT Fl_Clock(int x,int y,int w,int h, const char *l = 0);
|
Fl_Clock(int x,int y,int w,int h, const char *l = 0);
|
||||||
FL_EXPORT Fl_Clock(uchar t,int x,int y,int w,int h, const char *l);
|
Fl_Clock(uchar t,int x,int y,int w,int h, const char *l);
|
||||||
FL_EXPORT ~Fl_Clock();
|
~Fl_Clock();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Clock.H,v 1.6.2.4.2.1 2002/01/01 15:11:27 easysw Exp $".
|
// End of "$Id: Fl_Clock.H,v 1.6.2.4.2.2 2002/08/14 16:49:37 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+21
-21
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Color_Chooser.H,v 1.5.2.4.2.2 2002/01/01 15:11:27 easysw Exp $"
|
// "$Id: Fl_Color_Chooser.H,v 1.5.2.4.2.3 2002/08/14 16:49:37 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Color chooser header file for the Fast Light Tool Kit (FLTK).
|
// Color chooser header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -36,35 +36,35 @@
|
|||||||
#include <FL/Fl_Choice.H>
|
#include <FL/Fl_Choice.H>
|
||||||
#include <FL/Fl_Value_Input.H>
|
#include <FL/Fl_Value_Input.H>
|
||||||
|
|
||||||
class Flcc_HueBox : public Fl_Widget {
|
class FL_EXPORT Flcc_HueBox : public Fl_Widget {
|
||||||
int px, py;
|
int px, py;
|
||||||
protected:
|
protected:
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
FL_EXPORT int handle_key(int);
|
int handle_key(int);
|
||||||
public:
|
public:
|
||||||
FL_EXPORT int handle(int);
|
int handle(int);
|
||||||
Flcc_HueBox(int X, int Y, int W, int H) : Fl_Widget(X,Y,W,H) {
|
Flcc_HueBox(int X, int Y, int W, int H) : Fl_Widget(X,Y,W,H) {
|
||||||
px = py = 0;}
|
px = py = 0;}
|
||||||
};
|
};
|
||||||
|
|
||||||
class Flcc_ValueBox : public Fl_Widget {
|
class FL_EXPORT Flcc_ValueBox : public Fl_Widget {
|
||||||
int py;
|
int py;
|
||||||
protected:
|
protected:
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
FL_EXPORT int handle_key(int);
|
int handle_key(int);
|
||||||
public:
|
public:
|
||||||
FL_EXPORT int handle(int);
|
int handle(int);
|
||||||
Flcc_ValueBox(int X, int Y, int W, int H) : Fl_Widget(X,Y,W,H) {
|
Flcc_ValueBox(int X, int Y, int W, int H) : Fl_Widget(X,Y,W,H) {
|
||||||
py = 0;}
|
py = 0;}
|
||||||
};
|
};
|
||||||
|
|
||||||
class Flcc_Value_Input : public Fl_Value_Input {
|
class FL_EXPORT Flcc_Value_Input : public Fl_Value_Input {
|
||||||
public:
|
public:
|
||||||
FL_EXPORT int format(char*);
|
int format(char*);
|
||||||
Flcc_Value_Input(int X, int Y, int W, int H) : Fl_Value_Input(X,Y,W,H) {}
|
Flcc_Value_Input(int X, int Y, int W, int H) : Fl_Value_Input(X,Y,W,H) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class Fl_Color_Chooser : public Fl_Group {
|
class FL_EXPORT Fl_Color_Chooser : public Fl_Group {
|
||||||
Flcc_HueBox huebox;
|
Flcc_HueBox huebox;
|
||||||
Flcc_ValueBox valuebox;
|
Flcc_ValueBox valuebox;
|
||||||
Fl_Choice choice;
|
Fl_Choice choice;
|
||||||
@@ -74,9 +74,9 @@ class Fl_Color_Chooser : public Fl_Group {
|
|||||||
Fl_Box resize_box;
|
Fl_Box resize_box;
|
||||||
double hue_, saturation_, value_;
|
double hue_, saturation_, value_;
|
||||||
double r_, g_, b_;
|
double r_, g_, b_;
|
||||||
FL_EXPORT void set_valuators();
|
void set_valuators();
|
||||||
static FL_EXPORT void rgb_cb(Fl_Widget*, void*);
|
static void rgb_cb(Fl_Widget*, void*);
|
||||||
static FL_EXPORT void mode_cb(Fl_Widget*, void*);
|
static void mode_cb(Fl_Widget*, void*);
|
||||||
public:
|
public:
|
||||||
int mode() {return choice.value();}
|
int mode() {return choice.value();}
|
||||||
double hue() const {return hue_;}
|
double hue() const {return hue_;}
|
||||||
@@ -85,11 +85,11 @@ public:
|
|||||||
double r() const {return r_;}
|
double r() const {return r_;}
|
||||||
double g() const {return g_;}
|
double g() const {return g_;}
|
||||||
double b() const {return b_;}
|
double b() const {return b_;}
|
||||||
FL_EXPORT int hsv(double,double,double);
|
int hsv(double,double,double);
|
||||||
FL_EXPORT int rgb(double,double,double);
|
int rgb(double,double,double);
|
||||||
static FL_EXPORT void hsv2rgb(double, double, double,double&,double&,double&);
|
static void hsv2rgb(double, double, double,double&,double&,double&);
|
||||||
static FL_EXPORT void rgb2hsv(double, double, double,double&,double&,double&);
|
static void rgb2hsv(double, double, double,double&,double&,double&);
|
||||||
FL_EXPORT Fl_Color_Chooser(int,int,int,int,const char* = 0);
|
Fl_Color_Chooser(int,int,int,int,const char* = 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
FL_EXPORT int fl_color_chooser(const char* name, double& r, double& g, double& b);
|
FL_EXPORT int fl_color_chooser(const char* name, double& r, double& g, double& b);
|
||||||
@@ -98,5 +98,5 @@ FL_EXPORT int fl_color_chooser(const char* name, uchar& r, uchar& g, uchar& b);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Color_Chooser.H,v 1.5.2.4.2.2 2002/01/01 15:11:27 easysw Exp $".
|
// End of "$Id: Fl_Color_Chooser.H,v 1.5.2.4.2.3 2002/08/14 16:49:37 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+10
-10
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Counter.H,v 1.5.2.3.2.2 2002/01/01 15:11:27 easysw Exp $"
|
// "$Id: Fl_Counter.H,v 1.5.2.3.2.3 2002/08/14 16:49:37 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Counter header file for the Fast Light Tool Kit (FLTK).
|
// Counter header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -36,25 +36,25 @@
|
|||||||
#define FL_NORMAL_COUNTER 0
|
#define FL_NORMAL_COUNTER 0
|
||||||
#define FL_SIMPLE_COUNTER 1
|
#define FL_SIMPLE_COUNTER 1
|
||||||
|
|
||||||
class Fl_Counter : public Fl_Valuator {
|
class FL_EXPORT Fl_Counter : public Fl_Valuator {
|
||||||
|
|
||||||
uchar textfont_, textsize_;
|
uchar textfont_, textsize_;
|
||||||
unsigned textcolor_;
|
unsigned textcolor_;
|
||||||
double lstep_;
|
double lstep_;
|
||||||
uchar mouseobj;
|
uchar mouseobj;
|
||||||
static FL_EXPORT void repeat_callback(void *);
|
static void repeat_callback(void *);
|
||||||
FL_EXPORT int calc_mouseobj();
|
int calc_mouseobj();
|
||||||
FL_EXPORT void increment_cb();
|
void increment_cb();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
FL_EXPORT int handle(int);
|
int handle(int);
|
||||||
FL_EXPORT Fl_Counter(int,int,int,int,const char * = 0);
|
Fl_Counter(int,int,int,int,const char * = 0);
|
||||||
FL_EXPORT ~Fl_Counter();
|
~Fl_Counter();
|
||||||
void lstep(double a) {lstep_ = a;}
|
void lstep(double a) {lstep_ = a;}
|
||||||
void step(double a,double b) {Fl_Valuator::step(a); lstep_ = b;}
|
void step(double a,double b) {Fl_Valuator::step(a); lstep_ = b;}
|
||||||
void step(double a) {Fl_Valuator::step(a);}
|
void step(double a) {Fl_Valuator::step(a);}
|
||||||
@@ -70,5 +70,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Counter.H,v 1.5.2.3.2.2 2002/01/01 15:11:27 easysw Exp $".
|
// End of "$Id: Fl_Counter.H,v 1.5.2.3.2.3 2002/08/14 16:49:37 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+8
-8
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Dial.H,v 1.7.2.3.2.1 2002/01/01 15:11:27 easysw Exp $"
|
// "$Id: Fl_Dial.H,v 1.7.2.3.2.2 2002/08/14 16:49:37 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Dial header file for the Fast Light Tool Kit (FLTK).
|
// Dial header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -35,21 +35,21 @@
|
|||||||
#define FL_LINE_DIAL 1
|
#define FL_LINE_DIAL 1
|
||||||
#define FL_FILL_DIAL 2
|
#define FL_FILL_DIAL 2
|
||||||
|
|
||||||
class Fl_Dial : public Fl_Valuator {
|
class FL_EXPORT Fl_Dial : public Fl_Valuator {
|
||||||
|
|
||||||
short a1,a2;
|
short a1,a2;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
// these allow subclasses to put the dial in a smaller area:
|
// these allow subclasses to put the dial in a smaller area:
|
||||||
FL_EXPORT void draw(int, int, int, int);
|
void draw(int, int, int, int);
|
||||||
FL_EXPORT int handle(int, int, int, int, int);
|
int handle(int, int, int, int, int);
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
FL_EXPORT int handle(int);
|
int handle(int);
|
||||||
FL_EXPORT Fl_Dial(int x,int y,int w,int h, const char *l = 0);
|
Fl_Dial(int x,int y,int w,int h, const char *l = 0);
|
||||||
short angle1() const {return a1;}
|
short angle1() const {return a1;}
|
||||||
void angle1(short a) {a1 = a;}
|
void angle1(short a) {a1 = a;}
|
||||||
short angle2() const {return a2;}
|
short angle2() const {return a2;}
|
||||||
@@ -61,5 +61,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Dial.H,v 1.7.2.3.2.1 2002/01/01 15:11:27 easysw Exp $".
|
// End of "$Id: Fl_Dial.H,v 1.7.2.3.2.2 2002/08/14 16:49:37 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Double_Window.H,v 1.7.2.3.2.2 2002/01/01 15:11:27 easysw Exp $"
|
// "$Id: Fl_Double_Window.H,v 1.7.2.3.2.3 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Double-buffered window header file for the Fast Light Tool Kit (FLTK).
|
// Double-buffered window header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -28,17 +28,17 @@
|
|||||||
|
|
||||||
#include "Fl_Window.H"
|
#include "Fl_Window.H"
|
||||||
|
|
||||||
class Fl_Double_Window : public Fl_Window {
|
class FL_EXPORT Fl_Double_Window : public Fl_Window {
|
||||||
protected:
|
protected:
|
||||||
FL_EXPORT void flush(int eraseoverlay);
|
void flush(int eraseoverlay);
|
||||||
char force_doublebuffering_; // force db, even if the OS already buffers windows (overlays need that on MacOS and Windows2000)
|
char force_doublebuffering_; // force db, even if the OS already buffers windows (overlays need that on MacOS and Windows2000)
|
||||||
public:
|
public:
|
||||||
FL_EXPORT void show();
|
void show();
|
||||||
void show(int a, char **b) {Fl_Window::show(a,b);}
|
void show(int a, char **b) {Fl_Window::show(a,b);}
|
||||||
FL_EXPORT void flush();
|
void flush();
|
||||||
FL_EXPORT void resize(int,int,int,int);
|
void resize(int,int,int,int);
|
||||||
FL_EXPORT void hide();
|
void hide();
|
||||||
FL_EXPORT ~Fl_Double_Window();
|
~Fl_Double_Window();
|
||||||
Fl_Double_Window(int W, int H, const char *l = 0)
|
Fl_Double_Window(int W, int H, const char *l = 0)
|
||||||
: Fl_Window(W,H,l), force_doublebuffering_(0) {}
|
: Fl_Window(W,H,l), force_doublebuffering_(0) {}
|
||||||
Fl_Double_Window(int X, int Y, int W, int H, const char *l = 0)
|
Fl_Double_Window(int X, int Y, int W, int H, const char *l = 0)
|
||||||
@@ -48,5 +48,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Double_Window.H,v 1.7.2.3.2.2 2002/01/01 15:11:27 easysw Exp $".
|
// End of "$Id: Fl_Double_Window.H,v 1.7.2.3.2.3 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_File_Browser.H,v 1.1.2.3 2002/05/02 14:31:10 easysw Exp $"
|
// "$Id: Fl_File_Browser.H,v 1.1.2.4 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// FileBrowser definitions.
|
// FileBrowser definitions.
|
||||||
//
|
//
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
// Fl_File_Browser class...
|
// Fl_File_Browser class...
|
||||||
//
|
//
|
||||||
|
|
||||||
class Fl_File_Browser : public Fl_Browser
|
class FL_EXPORT Fl_File_Browser : public Fl_Browser
|
||||||
{
|
{
|
||||||
int filetype_;
|
int filetype_;
|
||||||
const char *directory_;
|
const char *directory_;
|
||||||
@@ -55,15 +55,15 @@ class Fl_File_Browser : public Fl_Browser
|
|||||||
public:
|
public:
|
||||||
enum { FILES, DIRECTORIES };
|
enum { FILES, DIRECTORIES };
|
||||||
|
|
||||||
FL_EXPORT Fl_File_Browser(int, int, int, int, const char * = 0);
|
Fl_File_Browser(int, int, int, int, const char * = 0);
|
||||||
|
|
||||||
uchar iconsize() const { return (iconsize_); };
|
uchar iconsize() const { return (iconsize_); };
|
||||||
void iconsize(uchar s) { iconsize_ = s; redraw(); };
|
void iconsize(uchar s) { iconsize_ = s; redraw(); };
|
||||||
|
|
||||||
FL_EXPORT void filter(const char *pattern);
|
void filter(const char *pattern);
|
||||||
const char *filter() const { return (pattern_); };
|
const char *filter() const { return (pattern_); };
|
||||||
|
|
||||||
FL_EXPORT int load(const char *directory, Fl_File_Sort_F *sort = fl_numericsort);
|
int load(const char *directory, Fl_File_Sort_F *sort = fl_numericsort);
|
||||||
|
|
||||||
uchar textsize() const { return (Fl_Browser::textsize()); };
|
uchar textsize() const { return (Fl_Browser::textsize()); };
|
||||||
void textsize(uchar s) { Fl_Browser::textsize(s); iconsize_ = 3 * s / 2; };
|
void textsize(uchar s) { Fl_Browser::textsize(s); iconsize_ = 3 * s / 2; };
|
||||||
@@ -75,5 +75,5 @@ public:
|
|||||||
#endif // !_Fl_File_Browser_H_
|
#endif // !_Fl_File_Browser_H_
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_File_Browser.H,v 1.1.2.3 2002/05/02 14:31:10 easysw Exp $".
|
// End of "$Id: Fl_File_Browser.H,v 1.1.2.4 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+15
-15
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_File_Icon.H,v 1.1.2.6 2002/05/10 00:18:37 easysw Exp $"
|
// "$Id: Fl_File_Icon.H,v 1.1.2.7 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Fl_File_Icon definitions.
|
// Fl_File_Icon definitions.
|
||||||
//
|
//
|
||||||
@@ -44,9 +44,9 @@
|
|||||||
// Fl_File_Icon class...
|
// Fl_File_Icon class...
|
||||||
//
|
//
|
||||||
|
|
||||||
class Fl_File_Icon //// Icon data
|
class FL_EXPORT Fl_File_Icon //// Icon data
|
||||||
{
|
{
|
||||||
FL_EXPORT static Fl_File_Icon *first_; // Pointer to first icon/filetype
|
static Fl_File_Icon *first_; // Pointer to first icon/filetype
|
||||||
Fl_File_Icon *next_; // Pointer to next icon/filetype
|
Fl_File_Icon *next_; // Pointer to next icon/filetype
|
||||||
const char *pattern_; // Pattern string
|
const char *pattern_; // Pattern string
|
||||||
int type_; // Match only if directory or file?
|
int type_; // Match only if directory or file?
|
||||||
@@ -77,10 +77,10 @@ class Fl_File_Icon //// Icon data
|
|||||||
VERTEX // Followed by scaled X,Y
|
VERTEX // Followed by scaled X,Y
|
||||||
};
|
};
|
||||||
|
|
||||||
FL_EXPORT Fl_File_Icon(const char *p, int t, int nd = 0, short *d = 0);
|
Fl_File_Icon(const char *p, int t, int nd = 0, short *d = 0);
|
||||||
FL_EXPORT ~Fl_File_Icon();
|
~Fl_File_Icon();
|
||||||
|
|
||||||
FL_EXPORT short *add(short d);
|
short *add(short d);
|
||||||
short *add_color(Fl_Color c)
|
short *add_color(Fl_Color c)
|
||||||
{ short *d = add(COLOR); add(c >> 16); add(c); return (d); }
|
{ short *d = add(COLOR); add(c >> 16); add(c); return (d); }
|
||||||
short *add_vertex(int x, int y)
|
short *add_vertex(int x, int y)
|
||||||
@@ -89,25 +89,25 @@ class Fl_File_Icon //// Icon data
|
|||||||
{ short *d = add(VERTEX); add((int)(x * 10000.0));
|
{ short *d = add(VERTEX); add((int)(x * 10000.0));
|
||||||
add((int)(y * 10000.0)); return (d); }
|
add((int)(y * 10000.0)); return (d); }
|
||||||
void clear() { num_data_ = 0; }
|
void clear() { num_data_ = 0; }
|
||||||
FL_EXPORT void draw(int x, int y, int w, int h, Fl_Color ic, int active = 1);
|
void draw(int x, int y, int w, int h, Fl_Color ic, int active = 1);
|
||||||
FL_EXPORT void label(Fl_Widget *w);
|
void label(Fl_Widget *w);
|
||||||
FL_EXPORT static void labeltype(const Fl_Label *o, int x, int y, int w, int h, Fl_Align a);
|
static void labeltype(const Fl_Label *o, int x, int y, int w, int h, Fl_Align a);
|
||||||
FL_EXPORT void load(const char *f);
|
void load(const char *f);
|
||||||
FL_EXPORT int load_fti(const char *fti);
|
int load_fti(const char *fti);
|
||||||
FL_EXPORT int load_image(const char *i);
|
int load_image(const char *i);
|
||||||
Fl_File_Icon *next() { return (next_); }
|
Fl_File_Icon *next() { return (next_); }
|
||||||
const char *pattern() { return (pattern_); }
|
const char *pattern() { return (pattern_); }
|
||||||
int size() { return (num_data_); }
|
int size() { return (num_data_); }
|
||||||
int type() { return (type_); }
|
int type() { return (type_); }
|
||||||
short *value() { return (data_); }
|
short *value() { return (data_); }
|
||||||
|
|
||||||
FL_EXPORT static Fl_File_Icon *find(const char *filename, int filetype = ANY);
|
static Fl_File_Icon *find(const char *filename, int filetype = ANY);
|
||||||
static Fl_File_Icon *first() { return (first_); }
|
static Fl_File_Icon *first() { return (first_); }
|
||||||
FL_EXPORT static void load_system_icons(void);
|
static void load_system_icons(void);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // !_Fl_Fl_File_Icon_H_
|
#endif // !_Fl_Fl_File_Icon_H_
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_File_Icon.H,v 1.1.2.6 2002/05/10 00:18:37 easysw Exp $".
|
// End of "$Id: Fl_File_Icon.H,v 1.1.2.7 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+8
-8
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_File_Input.H,v 1.1.2.1 2002/04/30 21:50:16 easysw Exp $"
|
// "$Id: Fl_File_Input.H,v 1.1.2.2 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// File_Input header file for the Fast Light Tool Kit (FLTK).
|
// File_Input header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
# include <FL/Fl_Input.H>
|
# include <FL/Fl_Input.H>
|
||||||
|
|
||||||
|
|
||||||
class Fl_File_Input : public Fl_Input
|
class FL_EXPORT Fl_File_Input : public Fl_Input
|
||||||
{
|
{
|
||||||
Fl_Color errorcolor_;
|
Fl_Color errorcolor_;
|
||||||
char ok_entry_;
|
char ok_entry_;
|
||||||
@@ -44,17 +44,17 @@ class Fl_File_Input : public Fl_Input
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
FL_EXPORT Fl_File_Input(int,int,int,int,const char *t=0);
|
Fl_File_Input(int,int,int,int,const char *t=0);
|
||||||
|
|
||||||
FL_EXPORT virtual int handle(int);
|
virtual int handle(int);
|
||||||
FL_EXPORT virtual void draw();
|
virtual void draw();
|
||||||
|
|
||||||
Fl_Boxtype down_box() const { return (Fl_Boxtype)down_box_; }
|
Fl_Boxtype down_box() const { return (Fl_Boxtype)down_box_; }
|
||||||
void down_box(Fl_Boxtype b) { down_box_ = b; }
|
void down_box(Fl_Boxtype b) { down_box_ = b; }
|
||||||
Fl_Color errorcolor() const { return errorcolor_; }
|
Fl_Color errorcolor() const { return errorcolor_; }
|
||||||
void errorcolor(Fl_Color c) { errorcolor_ = c; }
|
void errorcolor(Fl_Color c) { errorcolor_ = c; }
|
||||||
FL_EXPORT int value(const char*);
|
int value(const char*);
|
||||||
FL_EXPORT int value(const char*, int);
|
int value(const char*, int);
|
||||||
const char *value() { return Fl_Input_::value(); }
|
const char *value() { return Fl_Input_::value(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -62,5 +62,5 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_File_Input.H,v 1.1.2.1 2002/04/30 21:50:16 easysw Exp $".
|
// End of "$Id: Fl_File_Input.H,v 1.1.2.2 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+6
-6
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_FormsBitmap.H,v 1.5.2.3.2.1 2002/01/01 15:11:27 easysw Exp $"
|
// "$Id: Fl_FormsBitmap.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Forms bitmap header file for the Fast Light Tool Kit (FLTK).
|
// Forms bitmap header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -28,13 +28,13 @@
|
|||||||
|
|
||||||
#include "Fl_Bitmap.H"
|
#include "Fl_Bitmap.H"
|
||||||
|
|
||||||
class Fl_FormsBitmap : public Fl_Widget {
|
class FL_EXPORT Fl_FormsBitmap : public Fl_Widget {
|
||||||
Fl_Bitmap *b;
|
Fl_Bitmap *b;
|
||||||
protected:
|
protected:
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
public:
|
public:
|
||||||
FL_EXPORT Fl_FormsBitmap(Fl_Boxtype, int, int, int, int, const char * = 0);
|
Fl_FormsBitmap(Fl_Boxtype, int, int, int, int, const char * = 0);
|
||||||
FL_EXPORT void set(int W, int H, const uchar *bits);
|
void set(int W, int H, const uchar *bits);
|
||||||
void bitmap(Fl_Bitmap *B) {b = B;}
|
void bitmap(Fl_Bitmap *B) {b = B;}
|
||||||
Fl_Bitmap *bitmap() const {return b;}
|
Fl_Bitmap *bitmap() const {return b;}
|
||||||
};
|
};
|
||||||
@@ -42,5 +42,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_FormsBitmap.H,v 1.5.2.3.2.1 2002/01/01 15:11:27 easysw Exp $".
|
// End of "$Id: Fl_FormsBitmap.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+6
-6
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_FormsPixmap.H,v 1.5.2.3.2.1 2002/01/01 15:11:27 easysw Exp $"
|
// "$Id: Fl_FormsPixmap.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Forms pixmap header file for the Fast Light Tool Kit (FLTK).
|
// Forms pixmap header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -28,13 +28,13 @@
|
|||||||
|
|
||||||
#include "Fl_Pixmap.H"
|
#include "Fl_Pixmap.H"
|
||||||
|
|
||||||
class Fl_FormsPixmap : public Fl_Widget {
|
class FL_EXPORT Fl_FormsPixmap : public Fl_Widget {
|
||||||
Fl_Pixmap *b;
|
Fl_Pixmap *b;
|
||||||
protected:
|
protected:
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
public:
|
public:
|
||||||
FL_EXPORT Fl_FormsPixmap(Fl_Boxtype, int, int, int, int, const char * = 0);
|
Fl_FormsPixmap(Fl_Boxtype, int, int, int, int, const char * = 0);
|
||||||
FL_EXPORT void set(/*const*/char * const * bits);
|
void set(/*const*/char * const * bits);
|
||||||
void Pixmap(Fl_Pixmap *B) {b = B;}
|
void Pixmap(Fl_Pixmap *B) {b = B;}
|
||||||
Fl_Pixmap *Pixmap() const {return b;}
|
Fl_Pixmap *Pixmap() const {return b;}
|
||||||
};
|
};
|
||||||
@@ -42,5 +42,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_FormsPixmap.H,v 1.5.2.3.2.1 2002/01/01 15:11:27 easysw Exp $".
|
// End of "$Id: Fl_FormsPixmap.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+8
-8
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Free.H,v 1.5.2.4.2.1 2002/01/01 15:11:27 easysw Exp $"
|
// "$Id: Fl_Free.H,v 1.5.2.4.2.2 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Forms free header file for the Fast Light Tool Kit (FLTK).
|
// Forms free header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -38,15 +38,15 @@
|
|||||||
|
|
||||||
typedef int (*FL_HANDLEPTR)(Fl_Widget *, int , float, float, char);
|
typedef int (*FL_HANDLEPTR)(Fl_Widget *, int , float, float, char);
|
||||||
|
|
||||||
class Fl_Free : public Fl_Widget {
|
class FL_EXPORT Fl_Free : public Fl_Widget {
|
||||||
FL_HANDLEPTR hfunc;
|
FL_HANDLEPTR hfunc;
|
||||||
static FL_EXPORT void step(void *);
|
static void step(void *);
|
||||||
protected:
|
protected:
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
public:
|
public:
|
||||||
FL_EXPORT int handle(int);
|
int handle(int);
|
||||||
FL_EXPORT Fl_Free(uchar t,int x,int y,int w,int h,const char *l,FL_HANDLEPTR hdl);
|
Fl_Free(uchar t,int x,int y,int w,int h,const char *l,FL_HANDLEPTR hdl);
|
||||||
FL_EXPORT ~Fl_Free();
|
~Fl_Free();
|
||||||
};
|
};
|
||||||
|
|
||||||
// old event names for compatability:
|
// old event names for compatability:
|
||||||
@@ -60,5 +60,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Free.H,v 1.5.2.4.2.1 2002/01/01 15:11:27 easysw Exp $".
|
// End of "$Id: Fl_Free.H,v 1.5.2.4.2.2 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+22
-22
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Gl_Window.H,v 1.7.2.5.2.2 2002/08/09 03:17:29 easysw Exp $"
|
// "$Id: Fl_Gl_Window.H,v 1.7.2.5.2.3 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// OpenGL header file for the Fast Light Tool Kit (FLTK).
|
// OpenGL header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -33,7 +33,7 @@ typedef void* GLContext; // actually a GLXContext or HGLDC
|
|||||||
|
|
||||||
class Fl_Gl_Choice; // structure to hold result of glXChooseVisual
|
class Fl_Gl_Choice; // structure to hold result of glXChooseVisual
|
||||||
|
|
||||||
class Fl_Gl_Window : public Fl_Window {
|
class FL_EXPORT Fl_Gl_Window : public Fl_Window {
|
||||||
|
|
||||||
int mode_;
|
int mode_;
|
||||||
const int *alist;
|
const int *alist;
|
||||||
@@ -41,27 +41,27 @@ class Fl_Gl_Window : public Fl_Window {
|
|||||||
GLContext context_;
|
GLContext context_;
|
||||||
char valid_;
|
char valid_;
|
||||||
char damage1_; // damage() of back buffer
|
char damage1_; // damage() of back buffer
|
||||||
virtual FL_EXPORT void draw_overlay();
|
virtual void draw_overlay();
|
||||||
FL_EXPORT void init();
|
void init();
|
||||||
|
|
||||||
void *overlay;
|
void *overlay;
|
||||||
FL_EXPORT void make_overlay();
|
void make_overlay();
|
||||||
friend class _Fl_Gl_Overlay;
|
friend class _Fl_Gl_Overlay;
|
||||||
|
|
||||||
static FL_EXPORT int can_do(int, const int *);
|
static int can_do(int, const int *);
|
||||||
FL_EXPORT int mode(int, const int *);
|
int mode(int, const int *);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
FL_EXPORT void show();
|
void show();
|
||||||
void show(int a, char **b) {Fl_Window::show(a,b);}
|
void show(int a, char **b) {Fl_Window::show(a,b);}
|
||||||
FL_EXPORT void flush();
|
void flush();
|
||||||
FL_EXPORT void hide();
|
void hide();
|
||||||
FL_EXPORT void resize(int,int,int,int);
|
void resize(int,int,int,int);
|
||||||
|
|
||||||
char valid() const {return valid_;}
|
char valid() const {return valid_;}
|
||||||
void valid(char v) {valid_ = v;}
|
void valid(char v) {valid_ = v;}
|
||||||
FL_EXPORT void invalidate();
|
void invalidate();
|
||||||
|
|
||||||
static int can_do(int m) {return can_do(m,0);}
|
static int can_do(int m) {return can_do(m,0);}
|
||||||
static int can_do(const int *m) {return can_do(0, m);}
|
static int can_do(const int *m) {return can_do(0, m);}
|
||||||
@@ -71,17 +71,17 @@ public:
|
|||||||
int mode(const int *a) {return mode(0, a);}
|
int mode(const int *a) {return mode(0, a);}
|
||||||
|
|
||||||
void* context() const {return context_;}
|
void* context() const {return context_;}
|
||||||
FL_EXPORT void context(void*, int destroy_flag = 0);
|
void context(void*, int destroy_flag = 0);
|
||||||
FL_EXPORT void make_current();
|
void make_current();
|
||||||
FL_EXPORT void swap_buffers();
|
void swap_buffers();
|
||||||
FL_EXPORT void ortho();
|
void ortho();
|
||||||
|
|
||||||
FL_EXPORT int can_do_overlay();
|
int can_do_overlay();
|
||||||
FL_EXPORT void redraw_overlay();
|
void redraw_overlay();
|
||||||
FL_EXPORT void hide_overlay();
|
void hide_overlay();
|
||||||
FL_EXPORT void make_overlay_current();
|
void make_overlay_current();
|
||||||
|
|
||||||
FL_EXPORT ~Fl_Gl_Window();
|
~Fl_Gl_Window();
|
||||||
Fl_Gl_Window(int W, int H, const char *l=0) : Fl_Window(W,H,l) {init();}
|
Fl_Gl_Window(int W, int H, const char *l=0) : Fl_Window(W,H,l) {init();}
|
||||||
Fl_Gl_Window(int X, int Y, int W, int H, const char *l=0)
|
Fl_Gl_Window(int X, int Y, int W, int H, const char *l=0)
|
||||||
: Fl_Window(X,Y,W,H,l) {init();}
|
: Fl_Window(X,Y,W,H,l) {init();}
|
||||||
@@ -90,5 +90,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Gl_Window.H,v 1.7.2.5.2.2 2002/08/09 03:17:29 easysw Exp $".
|
// End of "$Id: Fl_Gl_Window.H,v 1.7.2.5.2.3 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+10
-10
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Input.H,v 1.5.2.3.2.1 2002/01/01 15:11:27 easysw Exp $"
|
// "$Id: Fl_Input.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Input header file for the Fast Light Tool Kit (FLTK).
|
// Input header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -28,19 +28,19 @@
|
|||||||
|
|
||||||
#include "Fl_Input_.H"
|
#include "Fl_Input_.H"
|
||||||
|
|
||||||
class Fl_Input : public Fl_Input_ {
|
class FL_EXPORT Fl_Input : public Fl_Input_ {
|
||||||
FL_EXPORT int handle_key();
|
int handle_key();
|
||||||
FL_EXPORT int shift_position(int p);
|
int shift_position(int p);
|
||||||
FL_EXPORT int shift_up_down_position(int p);
|
int shift_up_down_position(int p);
|
||||||
FL_EXPORT void handle_mouse(int keepmark=0);
|
void handle_mouse(int keepmark=0);
|
||||||
public:
|
public:
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
FL_EXPORT int handle(int);
|
int handle(int);
|
||||||
FL_EXPORT Fl_Input(int,int,int,int,const char * = 0);
|
Fl_Input(int,int,int,int,const char * = 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Input.H,v 1.5.2.3.2.1 2002/01/01 15:11:27 easysw Exp $".
|
// End of "$Id: Fl_Input.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+30
-30
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Input_.H,v 1.6.2.4.2.5 2002/07/23 16:28:18 easysw Exp $"
|
// "$Id: Fl_Input_.H,v 1.6.2.4.2.6 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Input base class header file for the Fast Light Tool Kit (FLTK).
|
// Input base class header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
#define FL_MULTILINE_INPUT_WRAP (FL_MULTILINE_INPUT | FL_INPUT_WRAP)
|
#define FL_MULTILINE_INPUT_WRAP (FL_MULTILINE_INPUT | FL_INPUT_WRAP)
|
||||||
#define FL_MULTILINE_OUTPUT_WRAP (FL_MULTILINE_INPUT | FL_INPUT_READONLY | FL_INPUT_WRAP)
|
#define FL_MULTILINE_OUTPUT_WRAP (FL_MULTILINE_INPUT | FL_INPUT_READONLY | FL_INPUT_WRAP)
|
||||||
|
|
||||||
class Fl_Input_ : public Fl_Widget {
|
class FL_EXPORT Fl_Input_ : public Fl_Widget {
|
||||||
|
|
||||||
const char* value_;
|
const char* value_;
|
||||||
char* buffer;
|
char* buffer;
|
||||||
@@ -63,39 +63,39 @@ class Fl_Input_ : public Fl_Widget {
|
|||||||
unsigned textcolor_;
|
unsigned textcolor_;
|
||||||
unsigned cursor_color_;
|
unsigned cursor_color_;
|
||||||
|
|
||||||
FL_EXPORT const char* expand(const char*, char*) const;
|
const char* expand(const char*, char*) const;
|
||||||
FL_EXPORT double expandpos(const char*, const char*, const char*, int*) const;
|
double expandpos(const char*, const char*, const char*, int*) const;
|
||||||
FL_EXPORT void minimal_update(int, int);
|
void minimal_update(int, int);
|
||||||
FL_EXPORT void minimal_update(int p);
|
void minimal_update(int p);
|
||||||
FL_EXPORT void put_in_buffer(int newsize);
|
void put_in_buffer(int newsize);
|
||||||
|
|
||||||
FL_EXPORT void setfont() const;
|
void setfont() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
FL_EXPORT int word_start(int i) const;
|
int word_start(int i) const;
|
||||||
FL_EXPORT int word_end(int i) const;
|
int word_end(int i) const;
|
||||||
FL_EXPORT int line_start(int i) const;
|
int line_start(int i) const;
|
||||||
FL_EXPORT int line_end(int i) const;
|
int line_end(int i) const;
|
||||||
FL_EXPORT void drawtext(int, int, int, int);
|
void drawtext(int, int, int, int);
|
||||||
FL_EXPORT int up_down_position(int, int keepmark=0);
|
int up_down_position(int, int keepmark=0);
|
||||||
FL_EXPORT void handle_mouse(int, int, int, int, int keepmark=0);
|
void handle_mouse(int, int, int, int, int keepmark=0);
|
||||||
FL_EXPORT int handletext(int e, int, int, int, int);
|
int handletext(int e, int, int, int, int);
|
||||||
FL_EXPORT void maybe_do_callback();
|
void maybe_do_callback();
|
||||||
int xscroll() const {return xscroll_;}
|
int xscroll() const {return xscroll_;}
|
||||||
int yscroll() const {return yscroll_;}
|
int yscroll() const {return yscroll_;}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
FL_EXPORT void resize(int, int, int, int);
|
void resize(int, int, int, int);
|
||||||
|
|
||||||
FL_EXPORT Fl_Input_(int, int, int, int, const char* = 0);
|
Fl_Input_(int, int, int, int, const char* = 0);
|
||||||
FL_EXPORT ~Fl_Input_();
|
~Fl_Input_();
|
||||||
|
|
||||||
FL_EXPORT int value(const char*);
|
int value(const char*);
|
||||||
FL_EXPORT int value(const char*, int);
|
int value(const char*, int);
|
||||||
FL_EXPORT int static_value(const char*);
|
int static_value(const char*);
|
||||||
FL_EXPORT int static_value(const char*, int);
|
int static_value(const char*, int);
|
||||||
const char* value() const {return value_;}
|
const char* value() const {return value_;}
|
||||||
char index(int i) const {return value_[i];}
|
char index(int i) const {return value_[i];}
|
||||||
int size() const {return size_;}
|
int size() const {return size_;}
|
||||||
@@ -104,17 +104,17 @@ public:
|
|||||||
|
|
||||||
int position() const {return position_;}
|
int position() const {return position_;}
|
||||||
int mark() const {return mark_;}
|
int mark() const {return mark_;}
|
||||||
FL_EXPORT int position(int p, int m);
|
int position(int p, int m);
|
||||||
int position(int p) {return position(p, p);}
|
int position(int p) {return position(p, p);}
|
||||||
int mark(int m) {return position(position(), m);}
|
int mark(int m) {return position(position(), m);}
|
||||||
FL_EXPORT int replace(int, int, const char*, int=0);
|
int replace(int, int, const char*, int=0);
|
||||||
int cut() {return replace(position(), mark(), 0);}
|
int cut() {return replace(position(), mark(), 0);}
|
||||||
int cut(int n) {return replace(position(), position()+n, 0);}
|
int cut(int n) {return replace(position(), position()+n, 0);}
|
||||||
int cut(int a, int b) {return replace(a, b, 0);}
|
int cut(int a, int b) {return replace(a, b, 0);}
|
||||||
int insert(const char* t, int l=0){return replace(position_, mark_, t, l);}
|
int insert(const char* t, int l=0){return replace(position_, mark_, t, l);}
|
||||||
FL_EXPORT int copy(int clipboard);
|
int copy(int clipboard);
|
||||||
FL_EXPORT int undo();
|
int undo();
|
||||||
FL_EXPORT int copy_cuts();
|
int copy_cuts();
|
||||||
|
|
||||||
Fl_Font textfont() const {return (Fl_Font)textfont_;}
|
Fl_Font textfont() const {return (Fl_Font)textfont_;}
|
||||||
void textfont(uchar s) {textfont_ = s;}
|
void textfont(uchar s) {textfont_ = s;}
|
||||||
@@ -138,5 +138,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Input_.H,v 1.6.2.4.2.5 2002/07/23 16:28:18 easysw Exp $".
|
// End of "$Id: Fl_Input_.H,v 1.6.2.4.2.6 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Light_Button.H,v 1.5.2.3.2.1 2002/01/01 15:11:27 easysw Exp $"
|
// "$Id: Fl_Light_Button.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Lighted button header file for the Fast Light Tool Kit (FLTK).
|
// Lighted button header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -28,16 +28,16 @@
|
|||||||
|
|
||||||
#include "Fl_Button.H"
|
#include "Fl_Button.H"
|
||||||
|
|
||||||
class Fl_Light_Button : public Fl_Button {
|
class FL_EXPORT Fl_Light_Button : public Fl_Button {
|
||||||
protected:
|
protected:
|
||||||
virtual FL_EXPORT void draw();
|
virtual void draw();
|
||||||
public:
|
public:
|
||||||
virtual FL_EXPORT int handle(int);
|
virtual int handle(int);
|
||||||
FL_EXPORT Fl_Light_Button(int x,int y,int w,int h,const char *l = 0);
|
Fl_Light_Button(int x,int y,int w,int h,const char *l = 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Light_Button.H,v 1.5.2.3.2.1 2002/01/01 15:11:27 easysw Exp $".
|
// End of "$Id: Fl_Light_Button.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+16
-16
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Menu_.H,v 1.7.2.4.2.3 2002/08/09 01:09:48 easysw Exp $"
|
// "$Id: Fl_Menu_.H,v 1.7.2.4.2.4 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Menu base class header file for the Fast Light Tool Kit (FLTK).
|
// Menu base class header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#include "Fl_Menu_Item.H"
|
#include "Fl_Menu_Item.H"
|
||||||
|
|
||||||
class Fl_Menu_ : public Fl_Widget {
|
class FL_EXPORT Fl_Menu_ : public Fl_Widget {
|
||||||
|
|
||||||
Fl_Menu_Item *menu_;
|
Fl_Menu_Item *menu_;
|
||||||
const Fl_Menu_Item *value_;
|
const Fl_Menu_Item *value_;
|
||||||
@@ -45,32 +45,32 @@ protected:
|
|||||||
unsigned textcolor_;
|
unsigned textcolor_;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FL_EXPORT const Fl_Menu_Item* picked(const Fl_Menu_Item*);
|
const Fl_Menu_Item* picked(const Fl_Menu_Item*);
|
||||||
|
|
||||||
FL_EXPORT Fl_Menu_(int,int,int,int,const char * =0);
|
Fl_Menu_(int,int,int,int,const char * =0);
|
||||||
FL_EXPORT ~Fl_Menu_();
|
~Fl_Menu_();
|
||||||
|
|
||||||
const Fl_Menu_Item* test_shortcut() {return picked(menu()->test_shortcut());}
|
const Fl_Menu_Item* test_shortcut() {return picked(menu()->test_shortcut());}
|
||||||
FL_EXPORT void global();
|
void global();
|
||||||
|
|
||||||
const Fl_Menu_Item *menu() const {return menu_;}
|
const Fl_Menu_Item *menu() const {return menu_;}
|
||||||
FL_EXPORT void menu(const Fl_Menu_Item *m);
|
void menu(const Fl_Menu_Item *m);
|
||||||
FL_EXPORT void copy(const Fl_Menu_Item *m, void* user_data = 0);
|
void copy(const Fl_Menu_Item *m, void* user_data = 0);
|
||||||
FL_EXPORT int add(const char*, int shortcut, Fl_Callback*, void* = 0, int = 0);
|
int add(const char*, int shortcut, Fl_Callback*, void* = 0, int = 0);
|
||||||
int add(const char* a, const char* b, Fl_Callback* c,
|
int add(const char* a, const char* b, Fl_Callback* c,
|
||||||
void* d = 0, int e = 0) {return add(a,fl_old_shortcut(b),c,d,e);}
|
void* d = 0, int e = 0) {return add(a,fl_old_shortcut(b),c,d,e);}
|
||||||
FL_EXPORT int size() const ;
|
int size() const ;
|
||||||
FL_EXPORT void clear();
|
void clear();
|
||||||
FL_EXPORT int add(const char *);
|
int add(const char *);
|
||||||
FL_EXPORT void replace(int,const char *);
|
void replace(int,const char *);
|
||||||
FL_EXPORT void remove(int);
|
void remove(int);
|
||||||
void shortcut(int i, int s) {menu_[i].shortcut(s);}
|
void shortcut(int i, int s) {menu_[i].shortcut(s);}
|
||||||
void mode(int i,int fl) {menu_[i].flags = fl;}
|
void mode(int i,int fl) {menu_[i].flags = fl;}
|
||||||
int mode(int i) const {return menu_[i].flags;}
|
int mode(int i) const {return menu_[i].flags;}
|
||||||
|
|
||||||
const Fl_Menu_Item *mvalue() const {return value_;}
|
const Fl_Menu_Item *mvalue() const {return value_;}
|
||||||
int value() const {return value_-menu_;}
|
int value() const {return value_-menu_;}
|
||||||
FL_EXPORT int value(const Fl_Menu_Item*);
|
int value(const Fl_Menu_Item*);
|
||||||
int value(int i) {return value(menu_+i);}
|
int value(int i) {return value(menu_+i);}
|
||||||
const char *text() const {return value_ ? value_->text : 0;}
|
const char *text() const {return value_ ? value_->text : 0;}
|
||||||
const char *text(int i) const {return menu_[i].text;}
|
const char *text(int i) const {return menu_[i].text;}
|
||||||
@@ -93,5 +93,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Menu_.H,v 1.7.2.4.2.3 2002/08/09 01:09:48 easysw Exp $".
|
// End of "$Id: Fl_Menu_.H,v 1.7.2.4.2.4 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+5
-5
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Menu_Bar.H,v 1.5.2.4.2.2 2002/08/09 01:09:48 easysw Exp $"
|
// "$Id: Fl_Menu_Bar.H,v 1.5.2.4.2.3 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Menu bar header file for the Fast Light Tool Kit (FLTK).
|
// Menu bar header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -28,11 +28,11 @@
|
|||||||
|
|
||||||
#include "Fl_Menu_.H"
|
#include "Fl_Menu_.H"
|
||||||
|
|
||||||
class Fl_Menu_Bar : public Fl_Menu_ {
|
class FL_EXPORT Fl_Menu_Bar : public Fl_Menu_ {
|
||||||
protected:
|
protected:
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
public:
|
public:
|
||||||
FL_EXPORT int handle(int);
|
int handle(int);
|
||||||
Fl_Menu_Bar(int X, int Y, int W, int H,const char *l=0)
|
Fl_Menu_Bar(int X, int Y, int W, int H,const char *l=0)
|
||||||
: Fl_Menu_(X,Y,W,H,l) {}
|
: Fl_Menu_(X,Y,W,H,l) {}
|
||||||
};
|
};
|
||||||
@@ -40,5 +40,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Menu_Bar.H,v 1.5.2.4.2.2 2002/08/09 01:09:48 easysw Exp $".
|
// End of "$Id: Fl_Menu_Bar.H,v 1.5.2.4.2.3 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+7
-7
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Menu_Button.H,v 1.5.2.3.2.1 2002/01/01 15:11:28 easysw Exp $"
|
// "$Id: Fl_Menu_Button.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Menu button header file for the Fast Light Tool Kit (FLTK).
|
// Menu button header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -28,19 +28,19 @@
|
|||||||
|
|
||||||
#include "Fl_Menu_.H"
|
#include "Fl_Menu_.H"
|
||||||
|
|
||||||
class Fl_Menu_Button : public Fl_Menu_ {
|
class FL_EXPORT Fl_Menu_Button : public Fl_Menu_ {
|
||||||
protected:
|
protected:
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
public:
|
public:
|
||||||
// values for type:
|
// values for type:
|
||||||
enum {POPUP1 = 1, POPUP2, POPUP12, POPUP3, POPUP13, POPUP23, POPUP123};
|
enum {POPUP1 = 1, POPUP2, POPUP12, POPUP3, POPUP13, POPUP23, POPUP123};
|
||||||
FL_EXPORT int handle(int);
|
int handle(int);
|
||||||
FL_EXPORT const Fl_Menu_Item* popup();
|
const Fl_Menu_Item* popup();
|
||||||
FL_EXPORT Fl_Menu_Button(int,int,int,int,const char * =0);
|
Fl_Menu_Button(int,int,int,int,const char * =0);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Menu_Button.H,v 1.5.2.3.2.1 2002/01/01 15:11:28 easysw Exp $".
|
// End of "$Id: Fl_Menu_Button.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+13
-13
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Menu_Item.H,v 1.5.2.4.2.5 2002/08/01 02:02:03 easysw Exp $"
|
// "$Id: Fl_Menu_Item.H,v 1.5.2.4.2.6 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Menu item header file for the Fast Light Tool Kit (FLTK).
|
// Menu item header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -49,7 +49,7 @@ extern FL_EXPORT int fl_old_shortcut(const char*);
|
|||||||
|
|
||||||
class Fl_Menu_;
|
class Fl_Menu_;
|
||||||
|
|
||||||
struct Fl_Menu_Item {
|
struct FL_EXPORT Fl_Menu_Item {
|
||||||
const char *text; // label()
|
const char *text; // label()
|
||||||
int shortcut_;
|
int shortcut_;
|
||||||
Fl_Callback *callback_;
|
Fl_Callback *callback_;
|
||||||
@@ -61,7 +61,7 @@ struct Fl_Menu_Item {
|
|||||||
unsigned labelcolor_;
|
unsigned labelcolor_;
|
||||||
|
|
||||||
// advance N items, skipping submenus:
|
// advance N items, skipping submenus:
|
||||||
FL_EXPORT const Fl_Menu_Item *next(int=1) const;
|
const Fl_Menu_Item *next(int=1) const;
|
||||||
Fl_Menu_Item *next(int i=1) {
|
Fl_Menu_Item *next(int i=1) {
|
||||||
return (Fl_Menu_Item*)(((const Fl_Menu_Item*)this)->next(i));}
|
return (Fl_Menu_Item*)(((const Fl_Menu_Item*)this)->next(i));}
|
||||||
|
|
||||||
@@ -94,7 +94,7 @@ struct Fl_Menu_Item {
|
|||||||
int value() const {return flags&FL_MENU_VALUE;}
|
int value() const {return flags&FL_MENU_VALUE;}
|
||||||
void set() {flags |= FL_MENU_VALUE;}
|
void set() {flags |= FL_MENU_VALUE;}
|
||||||
void clear() {flags &= ~FL_MENU_VALUE;}
|
void clear() {flags &= ~FL_MENU_VALUE;}
|
||||||
FL_EXPORT void setonly();
|
void setonly();
|
||||||
int visible() const {return !(flags&FL_MENU_INVISIBLE);}
|
int visible() const {return !(flags&FL_MENU_INVISIBLE);}
|
||||||
void show() {flags &= ~FL_MENU_INVISIBLE;}
|
void show() {flags &= ~FL_MENU_INVISIBLE;}
|
||||||
void hide() {flags |= FL_MENU_INVISIBLE;}
|
void hide() {flags |= FL_MENU_INVISIBLE;}
|
||||||
@@ -108,23 +108,23 @@ struct Fl_Menu_Item {
|
|||||||
void image(Fl_Image& a) {a.label(this);}
|
void image(Fl_Image& a) {a.label(this);}
|
||||||
|
|
||||||
// used by menubar:
|
// used by menubar:
|
||||||
FL_EXPORT int measure(int* h, const Fl_Menu_*) const;
|
int measure(int* h, const Fl_Menu_*) const;
|
||||||
FL_EXPORT void draw(int x, int y, int w, int h, const Fl_Menu_*, int t=0) const;
|
void draw(int x, int y, int w, int h, const Fl_Menu_*, int t=0) const;
|
||||||
|
|
||||||
// popup menus without using an Fl_Menu_ widget:
|
// popup menus without using an Fl_Menu_ widget:
|
||||||
FL_EXPORT const Fl_Menu_Item* popup(
|
const Fl_Menu_Item* popup(
|
||||||
int X, int Y,
|
int X, int Y,
|
||||||
const char *title = 0,
|
const char *title = 0,
|
||||||
const Fl_Menu_Item* picked=0,
|
const Fl_Menu_Item* picked=0,
|
||||||
const Fl_Menu_* = 0) const;
|
const Fl_Menu_* = 0) const;
|
||||||
FL_EXPORT const Fl_Menu_Item* pulldown(
|
const Fl_Menu_Item* pulldown(
|
||||||
int X, int Y, int W, int H,
|
int X, int Y, int W, int H,
|
||||||
const Fl_Menu_Item* picked = 0,
|
const Fl_Menu_Item* picked = 0,
|
||||||
const Fl_Menu_* = 0,
|
const Fl_Menu_* = 0,
|
||||||
const Fl_Menu_Item* title = 0,
|
const Fl_Menu_Item* title = 0,
|
||||||
int menubar=0) const;
|
int menubar=0) const;
|
||||||
FL_EXPORT const Fl_Menu_Item* test_shortcut() const;
|
const Fl_Menu_Item* test_shortcut() const;
|
||||||
FL_EXPORT const Fl_Menu_Item* find_shortcut(int *ip=0) const;
|
const Fl_Menu_Item* find_shortcut(int *ip=0) const;
|
||||||
|
|
||||||
void do_callback(Fl_Widget* o) const {callback_(o, user_data_);}
|
void do_callback(Fl_Widget* o) const {callback_(o, user_data_);}
|
||||||
void do_callback(Fl_Widget* o,void* arg) const {callback_(o, arg);}
|
void do_callback(Fl_Widget* o,void* arg) const {callback_(o, arg);}
|
||||||
@@ -134,11 +134,11 @@ struct Fl_Menu_Item {
|
|||||||
int checked() const {return flags&FL_MENU_VALUE;}
|
int checked() const {return flags&FL_MENU_VALUE;}
|
||||||
void check() {flags |= FL_MENU_VALUE;}
|
void check() {flags |= FL_MENU_VALUE;}
|
||||||
void uncheck() {flags &= ~FL_MENU_VALUE;}
|
void uncheck() {flags &= ~FL_MENU_VALUE;}
|
||||||
FL_EXPORT int add(const char*, int shortcut, Fl_Callback*, void* =0, int = 0);
|
int add(const char*, int shortcut, Fl_Callback*, void* =0, int = 0);
|
||||||
int add(const char*a, const char* b, Fl_Callback* c,
|
int add(const char*a, const char* b, Fl_Callback* c,
|
||||||
void* d = 0, int e = 0) {
|
void* d = 0, int e = 0) {
|
||||||
return add(a,fl_old_shortcut(b),c,d,e);}
|
return add(a,fl_old_shortcut(b),c,d,e);}
|
||||||
FL_EXPORT int size() const ;
|
int size() const ;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef Fl_Menu_Item Fl_Menu; // back compatability
|
typedef Fl_Menu_Item Fl_Menu; // back compatability
|
||||||
@@ -159,5 +159,5 @@ enum { // back-compatability enum:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Menu_Item.H,v 1.5.2.4.2.5 2002/08/01 02:02:03 easysw Exp $".
|
// End of "$Id: Fl_Menu_Item.H,v 1.5.2.4.2.6 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+8
-8
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Menu_Window.H,v 1.5.2.3.2.2 2002/01/07 18:47:27 easysw Exp $"
|
// "$Id: Fl_Menu_Window.H,v 1.5.2.3.2.3 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Menu window header file for the Fast Light Tool Kit (FLTK).
|
// Menu window header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -28,17 +28,17 @@
|
|||||||
|
|
||||||
#include "Fl_Single_Window.H"
|
#include "Fl_Single_Window.H"
|
||||||
|
|
||||||
class Fl_Menu_Window : public Fl_Single_Window {
|
class FL_EXPORT Fl_Menu_Window : public Fl_Single_Window {
|
||||||
enum {NO_OVERLAY = 128};
|
enum {NO_OVERLAY = 128};
|
||||||
public:
|
public:
|
||||||
FL_EXPORT void show();
|
void show();
|
||||||
FL_EXPORT void erase();
|
void erase();
|
||||||
FL_EXPORT void flush();
|
void flush();
|
||||||
FL_EXPORT void hide();
|
void hide();
|
||||||
int overlay() {return !(flags()&NO_OVERLAY);}
|
int overlay() {return !(flags()&NO_OVERLAY);}
|
||||||
void set_overlay() {clear_flag(NO_OVERLAY);}
|
void set_overlay() {clear_flag(NO_OVERLAY);}
|
||||||
void clear_overlay() {set_flag(NO_OVERLAY);}
|
void clear_overlay() {set_flag(NO_OVERLAY);}
|
||||||
FL_EXPORT ~Fl_Menu_Window();
|
~Fl_Menu_Window();
|
||||||
Fl_Menu_Window(int W, int H, const char *l = 0)
|
Fl_Menu_Window(int W, int H, const char *l = 0)
|
||||||
: Fl_Single_Window(W,H,l) { image(0); }
|
: Fl_Single_Window(W,H,l) { image(0); }
|
||||||
Fl_Menu_Window(int X, int Y, int W, int H, const char *l = 0)
|
Fl_Menu_Window(int X, int Y, int W, int H, const char *l = 0)
|
||||||
@@ -48,5 +48,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Menu_Window.H,v 1.5.2.3.2.2 2002/01/07 18:47:27 easysw Exp $".
|
// End of "$Id: Fl_Menu_Window.H,v 1.5.2.3.2.3 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+5
-5
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Multi_Label.H,v 1.5.2.3.2.1 2002/01/01 15:11:28 easysw Exp $"
|
// "$Id: Fl_Multi_Label.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Multi-label header file for the Fast Light Tool Kit (FLTK).
|
// Multi-label header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -29,17 +29,17 @@
|
|||||||
class Fl_Widget;
|
class Fl_Widget;
|
||||||
struct Fl_Menu_Item;
|
struct Fl_Menu_Item;
|
||||||
|
|
||||||
struct Fl_Multi_Label {
|
struct FL_EXPORT Fl_Multi_Label {
|
||||||
const char* labela;
|
const char* labela;
|
||||||
const char* labelb;
|
const char* labelb;
|
||||||
uchar typea;
|
uchar typea;
|
||||||
uchar typeb;
|
uchar typeb;
|
||||||
FL_EXPORT void label(Fl_Widget*);
|
void label(Fl_Widget*);
|
||||||
FL_EXPORT void label(Fl_Menu_Item*);
|
void label(Fl_Menu_Item*);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Multi_Label.H,v 1.5.2.3.2.1 2002/01/01 15:11:28 easysw Exp $".
|
// End of "$Id: Fl_Multi_Label.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+11
-11
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Overlay_Window.H,v 1.5.2.3.2.3 2002/01/07 18:47:27 easysw Exp $"
|
// "$Id: Fl_Overlay_Window.H,v 1.5.2.3.2.4 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Overlay window header file for the Fast Light Tool Kit (FLTK).
|
// Overlay window header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -28,18 +28,18 @@
|
|||||||
|
|
||||||
#include "Fl_Double_Window.H"
|
#include "Fl_Double_Window.H"
|
||||||
|
|
||||||
class Fl_Overlay_Window : public Fl_Double_Window {
|
class FL_EXPORT Fl_Overlay_Window : public Fl_Double_Window {
|
||||||
friend class _Fl_Overlay;
|
friend class _Fl_Overlay;
|
||||||
virtual FL_EXPORT void draw_overlay() = 0;
|
virtual void draw_overlay() = 0;
|
||||||
Fl_Window *overlay_;
|
Fl_Window *overlay_;
|
||||||
public:
|
public:
|
||||||
FL_EXPORT void show();
|
void show();
|
||||||
FL_EXPORT void flush();
|
void flush();
|
||||||
FL_EXPORT void hide();
|
void hide();
|
||||||
FL_EXPORT void resize(int,int,int,int);
|
void resize(int,int,int,int);
|
||||||
FL_EXPORT ~Fl_Overlay_Window();
|
~Fl_Overlay_Window();
|
||||||
FL_EXPORT int can_do_overlay();
|
int can_do_overlay();
|
||||||
FL_EXPORT void redraw_overlay();
|
void redraw_overlay();
|
||||||
Fl_Overlay_Window(int W, int H, const char *l=0)
|
Fl_Overlay_Window(int W, int H, const char *l=0)
|
||||||
: Fl_Double_Window(W,H,l) {overlay_ = 0; force_doublebuffering_=1; image(0); }
|
: Fl_Double_Window(W,H,l) {overlay_ = 0; force_doublebuffering_=1; image(0); }
|
||||||
Fl_Overlay_Window(int X, int Y, int W, int H, const char *l=0)
|
Fl_Overlay_Window(int X, int Y, int W, int H, const char *l=0)
|
||||||
@@ -50,5 +50,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Overlay_Window.H,v 1.5.2.3.2.3 2002/01/07 18:47:27 easysw Exp $".
|
// End of "$Id: Fl_Overlay_Window.H,v 1.5.2.3.2.4 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+5
-5
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Pack.H,v 1.5.2.3.2.1 2002/01/01 15:11:28 easysw Exp $"
|
// "$Id: Fl_Pack.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Pack header file for the Fast Light Tool Kit (FLTK).
|
// Pack header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -28,15 +28,15 @@
|
|||||||
|
|
||||||
#include <FL/Fl_Group.H>
|
#include <FL/Fl_Group.H>
|
||||||
|
|
||||||
class Fl_Pack : public Fl_Group {
|
class FL_EXPORT Fl_Pack : public Fl_Group {
|
||||||
int spacing_;
|
int spacing_;
|
||||||
public:
|
public:
|
||||||
enum { // values for type(int)
|
enum { // values for type(int)
|
||||||
VERTICAL = 0,
|
VERTICAL = 0,
|
||||||
HORIZONTAL = 1
|
HORIZONTAL = 1
|
||||||
};
|
};
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
FL_EXPORT Fl_Pack(int x,int y,int w ,int h,const char *l = 0);
|
Fl_Pack(int x,int y,int w ,int h,const char *l = 0);
|
||||||
int spacing() const {return spacing_;}
|
int spacing() const {return spacing_;}
|
||||||
void spacing(int i) {spacing_ = i;}
|
void spacing(int i) {spacing_ = i;}
|
||||||
uchar horizontal() const {return type();}
|
uchar horizontal() const {return type();}
|
||||||
@@ -45,5 +45,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Pack.H,v 1.5.2.3.2.1 2002/01/01 15:11:28 easysw Exp $".
|
// End of "$Id: Fl_Pack.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+13
-13
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Positioner.H,v 1.5.2.3.2.1 2002/01/01 15:11:28 easysw Exp $"
|
// "$Id: Fl_Positioner.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Positioner header file for the Fast Light Tool Kit (FLTK).
|
// Positioner header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
#include "Fl_Widget.H"
|
#include "Fl_Widget.H"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class Fl_Positioner : public Fl_Widget {
|
class FL_EXPORT Fl_Positioner : public Fl_Widget {
|
||||||
|
|
||||||
double xmin, ymin;
|
double xmin, ymin;
|
||||||
double xmax, ymax;
|
double xmax, ymax;
|
||||||
@@ -40,25 +40,25 @@ class Fl_Positioner : public Fl_Widget {
|
|||||||
protected:
|
protected:
|
||||||
|
|
||||||
// these allow subclasses to put the dial in a smaller area:
|
// these allow subclasses to put the dial in a smaller area:
|
||||||
FL_EXPORT void draw(int, int, int, int);
|
void draw(int, int, int, int);
|
||||||
FL_EXPORT int handle(int, int, int, int, int);
|
int handle(int, int, int, int, int);
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
FL_EXPORT int handle(int);
|
int handle(int);
|
||||||
FL_EXPORT Fl_Positioner(int x,int y,int w,int h, const char *l=0);
|
Fl_Positioner(int x,int y,int w,int h, const char *l=0);
|
||||||
double xvalue() const {return xvalue_;}
|
double xvalue() const {return xvalue_;}
|
||||||
double yvalue() const {return yvalue_;}
|
double yvalue() const {return yvalue_;}
|
||||||
FL_EXPORT int xvalue(double);
|
int xvalue(double);
|
||||||
FL_EXPORT int yvalue(double);
|
int yvalue(double);
|
||||||
FL_EXPORT int value(double,double);
|
int value(double,double);
|
||||||
FL_EXPORT void xbounds(double, double);
|
void xbounds(double, double);
|
||||||
double xminimum() const {return xmin;}
|
double xminimum() const {return xmin;}
|
||||||
void xminimum(double a) {xbounds(a,xmax);}
|
void xminimum(double a) {xbounds(a,xmax);}
|
||||||
double xmaximum() const {return xmax;}
|
double xmaximum() const {return xmax;}
|
||||||
void xmaximum(double a) {xbounds(xmin,a);}
|
void xmaximum(double a) {xbounds(xmin,a);}
|
||||||
FL_EXPORT void ybounds(double, double);
|
void ybounds(double, double);
|
||||||
double yminimum() const {return ymin;}
|
double yminimum() const {return ymin;}
|
||||||
void yminimum(double a) {ybounds(a,ymax);}
|
void yminimum(double a) {ybounds(a,ymax);}
|
||||||
double ymaximum() const {return ymax;}
|
double ymaximum() const {return ymax;}
|
||||||
@@ -71,5 +71,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Positioner.H,v 1.5.2.3.2.1 2002/01/01 15:11:28 easysw Exp $".
|
// End of "$Id: Fl_Positioner.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+5
-5
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Progress.H,v 1.1.2.3 2002/04/18 20:37:29 easysw Exp $"
|
// "$Id: Fl_Progress.H,v 1.1.2.4 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Progress bar widget definitions.
|
// Progress bar widget definitions.
|
||||||
//
|
//
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
// Progress class...
|
// Progress class...
|
||||||
//
|
//
|
||||||
|
|
||||||
class Fl_Progress : public Fl_Widget
|
class FL_EXPORT Fl_Progress : public Fl_Widget
|
||||||
{
|
{
|
||||||
float value_,
|
float value_,
|
||||||
minimum_,
|
minimum_,
|
||||||
@@ -45,11 +45,11 @@ class Fl_Progress : public Fl_Widget
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
FL_EXPORT virtual void draw();
|
virtual void draw();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
FL_EXPORT Fl_Progress(int x, int y, int w, int h, const char *l = 0);
|
Fl_Progress(int x, int y, int w, int h, const char *l = 0);
|
||||||
|
|
||||||
void maximum(float v) { maximum_ = v; redraw(); }
|
void maximum(float v) { maximum_ = v; redraw(); }
|
||||||
float maximum() const { return (maximum_); }
|
float maximum() const { return (maximum_); }
|
||||||
@@ -64,5 +64,5 @@ class Fl_Progress : public Fl_Widget
|
|||||||
#endif // !_Fl_Progress_H_
|
#endif // !_Fl_Progress_H_
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Progress.H,v 1.1.2.3 2002/04/18 20:37:29 easysw Exp $".
|
// End of "$Id: Fl_Progress.H,v 1.1.2.4 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Repeat_Button.H,v 1.5.2.5.2.2 2002/08/09 03:17:29 easysw Exp $"
|
// "$Id: Fl_Repeat_Button.H,v 1.5.2.5.2.3 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Repeat button header file for the Fast Light Tool Kit (FLTK).
|
// Repeat button header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -28,10 +28,10 @@
|
|||||||
#include "Fl.H"
|
#include "Fl.H"
|
||||||
#include "Fl_Button.H"
|
#include "Fl_Button.H"
|
||||||
|
|
||||||
class Fl_Repeat_Button : public Fl_Button {
|
class FL_EXPORT Fl_Repeat_Button : public Fl_Button {
|
||||||
static FL_EXPORT void repeat_callback(void *);
|
static void repeat_callback(void *);
|
||||||
public:
|
public:
|
||||||
FL_EXPORT int handle(int);
|
int handle(int);
|
||||||
Fl_Repeat_Button(int X,int Y,int W,int H,const char *l=0)
|
Fl_Repeat_Button(int X,int Y,int W,int H,const char *l=0)
|
||||||
: Fl_Button(X,Y,W,H,l) {}
|
: Fl_Button(X,Y,W,H,l) {}
|
||||||
void deactivate() {
|
void deactivate() {
|
||||||
@@ -43,5 +43,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Repeat_Button.H,v 1.5.2.5.2.2 2002/08/09 03:17:29 easysw Exp $".
|
// End of "$Id: Fl_Repeat_Button.H,v 1.5.2.5.2.3 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Return_Button.H,v 1.5.2.3.2.2 2002/08/09 01:09:48 easysw Exp $"
|
// "$Id: Fl_Return_Button.H,v 1.5.2.3.2.3 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Return button header file for the Fast Light Tool Kit (FLTK).
|
// Return button header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -27,11 +27,11 @@
|
|||||||
#define Fl_Return_Button_H
|
#define Fl_Return_Button_H
|
||||||
#include "Fl_Button.H"
|
#include "Fl_Button.H"
|
||||||
|
|
||||||
class Fl_Return_Button : public Fl_Button {
|
class FL_EXPORT Fl_Return_Button : public Fl_Button {
|
||||||
protected:
|
protected:
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
public:
|
public:
|
||||||
FL_EXPORT int handle(int);
|
int handle(int);
|
||||||
Fl_Return_Button(int X, int Y, int W, int H,const char *l=0)
|
Fl_Return_Button(int X, int Y, int W, int H,const char *l=0)
|
||||||
: Fl_Button(X,Y,W,H,l) {}
|
: Fl_Button(X,Y,W,H,l) {}
|
||||||
};
|
};
|
||||||
@@ -39,5 +39,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Return_Button.H,v 1.5.2.3.2.2 2002/08/09 01:09:48 easysw Exp $".
|
// End of "$Id: Fl_Return_Button.H,v 1.5.2.3.2.3 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+6
-6
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Roller.H,v 1.5.2.4.2.1 2002/01/01 15:11:28 easysw Exp $"
|
// "$Id: Fl_Roller.H,v 1.5.2.4.2.2 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Roller header file for the Fast Light Tool Kit (FLTK).
|
// Roller header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -30,16 +30,16 @@
|
|||||||
#include "Fl_Valuator.H"
|
#include "Fl_Valuator.H"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class Fl_Roller : public Fl_Valuator {
|
class FL_EXPORT Fl_Roller : public Fl_Valuator {
|
||||||
protected:
|
protected:
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
public:
|
public:
|
||||||
FL_EXPORT int handle(int);
|
int handle(int);
|
||||||
FL_EXPORT Fl_Roller(int X,int Y,int W,int H,const char* L=0);
|
Fl_Roller(int X,int Y,int W,int H,const char* L=0);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Roller.H,v 1.5.2.4.2.1 2002/01/01 15:11:28 easysw Exp $".
|
// End of "$Id: Fl_Roller.H,v 1.5.2.4.2.2 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Round_Button.H,v 1.5.2.3.2.1 2002/01/01 15:11:28 easysw Exp $"
|
// "$Id: Fl_Round_Button.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Round button header file for the Fast Light Tool Kit (FLTK).
|
// Round button header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -28,13 +28,13 @@
|
|||||||
|
|
||||||
#include "Fl_Light_Button.H"
|
#include "Fl_Light_Button.H"
|
||||||
|
|
||||||
class Fl_Round_Button : public Fl_Light_Button {
|
class FL_EXPORT Fl_Round_Button : public Fl_Light_Button {
|
||||||
public:
|
public:
|
||||||
FL_EXPORT Fl_Round_Button(int x,int y,int w,int h,const char *l = 0);
|
Fl_Round_Button(int x,int y,int w,int h,const char *l = 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Round_Button.H,v 1.5.2.3.2.1 2002/01/01 15:11:28 easysw Exp $".
|
// End of "$Id: Fl_Round_Button.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+13
-13
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Scroll.H,v 1.5.2.3.2.1 2002/01/01 15:11:28 easysw Exp $"
|
// "$Id: Fl_Scroll.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Scroll header file for the Fast Light Tool Kit (FLTK).
|
// Scroll header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -29,30 +29,30 @@
|
|||||||
#include "Fl_Group.H"
|
#include "Fl_Group.H"
|
||||||
#include "Fl_Scrollbar.H"
|
#include "Fl_Scrollbar.H"
|
||||||
|
|
||||||
class Fl_Scroll : public Fl_Group {
|
class FL_EXPORT Fl_Scroll : public Fl_Group {
|
||||||
|
|
||||||
int xposition_, yposition_;
|
int xposition_, yposition_;
|
||||||
int width_, height_;
|
int width_, height_;
|
||||||
int oldx, oldy;
|
int oldx, oldy;
|
||||||
static FL_EXPORT void hscrollbar_cb(Fl_Widget*, void*);
|
static void hscrollbar_cb(Fl_Widget*, void*);
|
||||||
static FL_EXPORT void scrollbar_cb(Fl_Widget*, void*);
|
static void scrollbar_cb(Fl_Widget*, void*);
|
||||||
FL_EXPORT void fix_scrollbar_order();
|
void fix_scrollbar_order();
|
||||||
static FL_EXPORT void draw_clip(void*,int,int,int,int);
|
static void draw_clip(void*,int,int,int,int);
|
||||||
FL_EXPORT void bbox(int&,int&,int&,int&);
|
void bbox(int&,int&,int&,int&);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
Fl_Scrollbar scrollbar;
|
Fl_Scrollbar scrollbar;
|
||||||
Fl_Scrollbar hscrollbar;
|
Fl_Scrollbar hscrollbar;
|
||||||
|
|
||||||
FL_EXPORT void resize(int,int,int,int);
|
void resize(int,int,int,int);
|
||||||
FL_EXPORT int handle(int);
|
int handle(int);
|
||||||
|
|
||||||
FL_EXPORT Fl_Scroll(int X,int Y,int W,int H,const char*l=0);
|
Fl_Scroll(int X,int Y,int W,int H,const char*l=0);
|
||||||
|
|
||||||
enum { // values for type()
|
enum { // values for type()
|
||||||
HORIZONTAL = 1,
|
HORIZONTAL = 1,
|
||||||
@@ -66,11 +66,11 @@ public:
|
|||||||
|
|
||||||
int xposition() const {return xposition_;}
|
int xposition() const {return xposition_;}
|
||||||
int yposition() const {return yposition_;}
|
int yposition() const {return yposition_;}
|
||||||
FL_EXPORT void position(int, int);
|
void position(int, int);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Scroll.H,v 1.5.2.3.2.1 2002/01/01 15:11:28 easysw Exp $".
|
// End of "$Id: Fl_Scroll.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Single_Window.H,v 1.5.2.3.2.1 2002/01/01 15:11:28 easysw Exp $"
|
// "$Id: Fl_Single_Window.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Single-buffered window header file for the Fast Light Tool Kit (FLTK).
|
// Single-buffered window header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -28,11 +28,11 @@
|
|||||||
|
|
||||||
#include "Fl_Window.H"
|
#include "Fl_Window.H"
|
||||||
|
|
||||||
class Fl_Single_Window : public Fl_Window {
|
class FL_EXPORT Fl_Single_Window : public Fl_Window {
|
||||||
public:
|
public:
|
||||||
FL_EXPORT void show();
|
void show();
|
||||||
void show(int a, char **b) {Fl_Window::show(a,b);}
|
void show(int a, char **b) {Fl_Window::show(a,b);}
|
||||||
FL_EXPORT void flush();
|
void flush();
|
||||||
Fl_Single_Window(int W, int H, const char *l=0)
|
Fl_Single_Window(int W, int H, const char *l=0)
|
||||||
: Fl_Window(W,H,l) {}
|
: Fl_Window(W,H,l) {}
|
||||||
Fl_Single_Window(int X, int Y, int W, int H, const char *l=0)
|
Fl_Single_Window(int X, int Y, int W, int H, const char *l=0)
|
||||||
@@ -43,5 +43,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Single_Window.H,v 1.5.2.3.2.1 2002/01/01 15:11:28 easysw Exp $".
|
// End of "$Id: Fl_Single_Window.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Sys_Menu_Bar.H,v 1.1.2.2 2002/01/01 15:11:28 easysw Exp $"
|
// "$Id: Fl_Sys_Menu_Bar.H,v 1.1.2.3 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// MacOS system menu bar header file for the Fast Light Tool Kit (FLTK).
|
// MacOS system menu bar header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -28,19 +28,19 @@
|
|||||||
|
|
||||||
#include "Fl_Menu_Bar.H"
|
#include "Fl_Menu_Bar.H"
|
||||||
|
|
||||||
class Fl_Sys_Menu_Bar : public Fl_Menu_Bar {
|
class FL_EXPORT Fl_Sys_Menu_Bar : public Fl_Menu_Bar {
|
||||||
protected:
|
protected:
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
public:
|
public:
|
||||||
//FL_EXPORT int handle(int);
|
//int handle(int);
|
||||||
Fl_Sys_Menu_Bar(int x,int y,int w,int h,const char *l=0)
|
Fl_Sys_Menu_Bar(int x,int y,int w,int h,const char *l=0)
|
||||||
: Fl_Menu_Bar(x,y,w,h,l) {}
|
: Fl_Menu_Bar(x,y,w,h,l) {}
|
||||||
FL_EXPORT void menu(const Fl_Menu_Item *m);
|
void menu(const Fl_Menu_Item *m);
|
||||||
// FL_EXPORT Fl_Menu_Item* picked(const Fl_Menu_Item* v);
|
// Fl_Menu_Item* picked(const Fl_Menu_Item* v);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Sys_Menu_Bar.H,v 1.1.2.2 2002/01/01 15:11:28 easysw Exp $".
|
// End of "$Id: Fl_Sys_Menu_Bar.H,v 1.1.2.3 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+13
-13
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Tabs.H,v 1.5.2.4.2.1 2002/01/01 15:11:28 easysw Exp $"
|
// "$Id: Fl_Tabs.H,v 1.5.2.4.2.2 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Tab header file for the Fast Light Tool Kit (FLTK).
|
// Tab header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -28,27 +28,27 @@
|
|||||||
|
|
||||||
#include "Fl_Group.H"
|
#include "Fl_Group.H"
|
||||||
|
|
||||||
class Fl_Tabs : public Fl_Group {
|
class FL_EXPORT Fl_Tabs : public Fl_Group {
|
||||||
Fl_Widget *value_;
|
Fl_Widget *value_;
|
||||||
Fl_Widget *push_;
|
Fl_Widget *push_;
|
||||||
FL_EXPORT int tab_positions(int*, int*);
|
int tab_positions(int*, int*);
|
||||||
FL_EXPORT int tab_height();
|
int tab_height();
|
||||||
FL_EXPORT void draw_tab(int x1, int x2, int W, int H, Fl_Widget* o, int sel=0);
|
void draw_tab(int x1, int x2, int W, int H, Fl_Widget* o, int sel=0);
|
||||||
protected:
|
protected:
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FL_EXPORT int handle(int);
|
int handle(int);
|
||||||
FL_EXPORT Fl_Widget *value();
|
Fl_Widget *value();
|
||||||
FL_EXPORT int value(Fl_Widget *);
|
int value(Fl_Widget *);
|
||||||
Fl_Widget *push() const {return push_;}
|
Fl_Widget *push() const {return push_;}
|
||||||
FL_EXPORT int push(Fl_Widget *);
|
int push(Fl_Widget *);
|
||||||
FL_EXPORT Fl_Tabs(int,int,int,int,const char * = 0);
|
Fl_Tabs(int,int,int,int,const char * = 0);
|
||||||
FL_EXPORT Fl_Widget *which(int event_x, int event_y);
|
Fl_Widget *which(int event_x, int event_y);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Tabs.H,v 1.5.2.4.2.1 2002/01/01 15:11:28 easysw Exp $".
|
// End of "$Id: Fl_Tabs.H,v 1.5.2.4.2.2 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+55
-55
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Text_Display.H,v 1.4.2.10 2002/08/09 03:17:29 easysw Exp $"
|
// "$Id: Fl_Text_Display.H,v 1.4.2.11 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Header file for Fl_Text_Display class.
|
// Header file for Fl_Text_Display class.
|
||||||
//
|
//
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
#include "Fl_Scrollbar.H"
|
#include "Fl_Scrollbar.H"
|
||||||
#include "Fl_Text_Buffer.H"
|
#include "Fl_Text_Buffer.H"
|
||||||
|
|
||||||
class Fl_Text_Display: public Fl_Group {
|
class FL_EXPORT Fl_Text_Display: public Fl_Group {
|
||||||
public:
|
public:
|
||||||
enum {
|
enum {
|
||||||
NORMAL_CURSOR, CARET_CURSOR, DIM_CURSOR,
|
NORMAL_CURSOR, CARET_CURSOR, DIM_CURSOR,
|
||||||
@@ -62,37 +62,37 @@ class Fl_Text_Display: public Fl_Group {
|
|||||||
ATTR_HIDDEN = 2
|
ATTR_HIDDEN = 2
|
||||||
};
|
};
|
||||||
|
|
||||||
struct FL_EXPORT Style_Table_Entry {
|
struct Style_Table_Entry {
|
||||||
Fl_Color color;
|
Fl_Color color;
|
||||||
Fl_Font font;
|
Fl_Font font;
|
||||||
int size;
|
int size;
|
||||||
unsigned attr;
|
unsigned attr;
|
||||||
};
|
};
|
||||||
|
|
||||||
FL_EXPORT Fl_Text_Display(int X, int Y, int W, int H, const char *l = 0);
|
Fl_Text_Display(int X, int Y, int W, int H, const char *l = 0);
|
||||||
FL_EXPORT ~Fl_Text_Display();
|
~Fl_Text_Display();
|
||||||
|
|
||||||
FL_EXPORT virtual int handle(int e);
|
virtual int handle(int e);
|
||||||
FL_EXPORT void buffer(Fl_Text_Buffer* buf);
|
void buffer(Fl_Text_Buffer* buf);
|
||||||
void buffer(Fl_Text_Buffer& buf) { buffer(&buf); }
|
void buffer(Fl_Text_Buffer& buf) { buffer(&buf); }
|
||||||
Fl_Text_Buffer* buffer() { return mBuffer; }
|
Fl_Text_Buffer* buffer() { return mBuffer; }
|
||||||
FL_EXPORT void redisplay_range(int start, int end);
|
void redisplay_range(int start, int end);
|
||||||
FL_EXPORT void scroll(int topLineNum, int horizOffset);
|
void scroll(int topLineNum, int horizOffset);
|
||||||
FL_EXPORT void insert(const char* text);
|
void insert(const char* text);
|
||||||
FL_EXPORT void overstrike(const char* text);
|
void overstrike(const char* text);
|
||||||
FL_EXPORT void insert_position(int newPos);
|
void insert_position(int newPos);
|
||||||
int insert_position() { return mCursorPos; }
|
int insert_position() { return mCursorPos; }
|
||||||
FL_EXPORT int in_selection(int x, int y);
|
int in_selection(int x, int y);
|
||||||
FL_EXPORT void show_insert_position();
|
void show_insert_position();
|
||||||
FL_EXPORT int move_right();
|
int move_right();
|
||||||
FL_EXPORT int move_left();
|
int move_left();
|
||||||
FL_EXPORT int move_up();
|
int move_up();
|
||||||
FL_EXPORT int move_down();
|
int move_down();
|
||||||
FL_EXPORT void next_word(void);
|
void next_word(void);
|
||||||
FL_EXPORT void previous_word(void);
|
void previous_word(void);
|
||||||
FL_EXPORT void show_cursor(int b = 1);
|
void show_cursor(int b = 1);
|
||||||
void hide_cursor() { show_cursor(0); }
|
void hide_cursor() { show_cursor(0); }
|
||||||
FL_EXPORT void cursor_style(int style);
|
void cursor_style(int style);
|
||||||
int scrollbar_width() { return scrollbar_width_; }
|
int scrollbar_width() { return scrollbar_width_; }
|
||||||
Fl_Align scrollbar_align() { return scrollbar_align_; }
|
Fl_Align scrollbar_align() { return scrollbar_align_; }
|
||||||
void scrollbar_width(int W) { scrollbar_width_ = W; }
|
void scrollbar_width(int W) { scrollbar_width_ = W; }
|
||||||
@@ -101,13 +101,13 @@ class Fl_Text_Display: public Fl_Group {
|
|||||||
int word_end(int pos) { return buffer()->word_end(pos); }
|
int word_end(int pos) { return buffer()->word_end(pos); }
|
||||||
|
|
||||||
|
|
||||||
FL_EXPORT void highlight_data(Fl_Text_Buffer *styleBuffer,
|
void highlight_data(Fl_Text_Buffer *styleBuffer,
|
||||||
const Style_Table_Entry *styleTable,
|
const Style_Table_Entry *styleTable,
|
||||||
int nStyles, char unfinishedStyle,
|
int nStyles, char unfinishedStyle,
|
||||||
Unfinished_Style_Cb unfinishedHighlightCB,
|
Unfinished_Style_Cb unfinishedHighlightCB,
|
||||||
void *cbArg);
|
void *cbArg);
|
||||||
|
|
||||||
FL_EXPORT int position_style(int lineStartPos, int lineLen, int lineIndex,
|
int position_style(int lineStartPos, int lineLen, int lineIndex,
|
||||||
int dispIndex);
|
int dispIndex);
|
||||||
|
|
||||||
Fl_Font textfont() const {return (Fl_Font)textfont_;}
|
Fl_Font textfont() const {return (Fl_Font)textfont_;}
|
||||||
@@ -117,7 +117,7 @@ class Fl_Text_Display: public Fl_Group {
|
|||||||
Fl_Color textcolor() const {return (Fl_Color)textcolor_;}
|
Fl_Color textcolor() const {return (Fl_Color)textcolor_;}
|
||||||
void textcolor(unsigned n) {textcolor_ = n;}
|
void textcolor(unsigned n) {textcolor_ = n;}
|
||||||
|
|
||||||
FL_EXPORT virtual void resize(int X, int Y, int W, int H);
|
virtual void resize(int X, int Y, int W, int H);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Most (all?) of this stuff should only be called from resize() or
|
// Most (all?) of this stuff should only be called from resize() or
|
||||||
@@ -125,54 +125,54 @@ class Fl_Text_Display: public Fl_Group {
|
|||||||
// Anything with "vline" indicates thats it deals with currently
|
// Anything with "vline" indicates thats it deals with currently
|
||||||
// visible lines.
|
// visible lines.
|
||||||
|
|
||||||
FL_EXPORT virtual void draw();
|
virtual void draw();
|
||||||
FL_EXPORT void draw_text(int X, int Y, int W, int H);
|
void draw_text(int X, int Y, int W, int H);
|
||||||
FL_EXPORT void draw_range(int start, int end);
|
void draw_range(int start, int end);
|
||||||
FL_EXPORT void draw_cursor(int, int);
|
void draw_cursor(int, int);
|
||||||
|
|
||||||
FL_EXPORT void draw_string(int style, int x, int y, int toX, const char *string,
|
void draw_string(int style, int x, int y, int toX, const char *string,
|
||||||
int nChars);
|
int nChars);
|
||||||
|
|
||||||
FL_EXPORT void draw_vline(int visLineNum, int leftClip, int rightClip,
|
void draw_vline(int visLineNum, int leftClip, int rightClip,
|
||||||
int leftCharIndex, int rightCharIndex);
|
int leftCharIndex, int rightCharIndex);
|
||||||
|
|
||||||
FL_EXPORT void clear_rect(int style, int x, int y, int width, int height);
|
void clear_rect(int style, int x, int y, int width, int height);
|
||||||
FL_EXPORT void display_insert();
|
void display_insert();
|
||||||
|
|
||||||
FL_EXPORT void offset_line_starts(int newTopLineNum);
|
void offset_line_starts(int newTopLineNum);
|
||||||
|
|
||||||
FL_EXPORT void calc_line_starts(int startLine, int endLine);
|
void calc_line_starts(int startLine, int endLine);
|
||||||
|
|
||||||
FL_EXPORT void update_line_starts(int pos, int charsInserted, int charsDeleted,
|
void update_line_starts(int pos, int charsInserted, int charsDeleted,
|
||||||
int linesInserted, int linesDeleted, int *scrolled);
|
int linesInserted, int linesDeleted, int *scrolled);
|
||||||
|
|
||||||
FL_EXPORT void calc_last_char();
|
void calc_last_char();
|
||||||
|
|
||||||
FL_EXPORT int position_to_line( int pos, int* lineNum );
|
int position_to_line( int pos, int* lineNum );
|
||||||
FL_EXPORT int string_width(const char* string, int length, int style);
|
int string_width(const char* string, int length, int style);
|
||||||
|
|
||||||
FL_EXPORT static void buffer_modified_cb(int pos, int nInserted, int nDeleted,
|
static void buffer_modified_cb(int pos, int nInserted, int nDeleted,
|
||||||
int nRestyled, const char* deletedText,
|
int nRestyled, const char* deletedText,
|
||||||
void* cbArg);
|
void* cbArg);
|
||||||
|
|
||||||
FL_EXPORT static void h_scrollbar_cb(Fl_Scrollbar* w, Fl_Text_Display* d);
|
static void h_scrollbar_cb(Fl_Scrollbar* w, Fl_Text_Display* d);
|
||||||
FL_EXPORT static void v_scrollbar_cb( Fl_Scrollbar* w, Fl_Text_Display* d);
|
static void v_scrollbar_cb( Fl_Scrollbar* w, Fl_Text_Display* d);
|
||||||
FL_EXPORT void update_v_scrollbar();
|
void update_v_scrollbar();
|
||||||
FL_EXPORT void update_h_scrollbar();
|
void update_h_scrollbar();
|
||||||
FL_EXPORT int measure_vline(int visLineNum);
|
int measure_vline(int visLineNum);
|
||||||
FL_EXPORT int longest_vline();
|
int longest_vline();
|
||||||
FL_EXPORT int empty_vlines();
|
int empty_vlines();
|
||||||
FL_EXPORT int vline_length(int visLineNum);
|
int vline_length(int visLineNum);
|
||||||
FL_EXPORT int xy_to_position(int x, int y, int PosType = CHARACTER_POS);
|
int xy_to_position(int x, int y, int PosType = CHARACTER_POS);
|
||||||
|
|
||||||
FL_EXPORT void xy_to_rowcol(int x, int y, int* row, int* column,
|
void xy_to_rowcol(int x, int y, int* row, int* column,
|
||||||
int PosType = CHARACTER_POS);
|
int PosType = CHARACTER_POS);
|
||||||
|
|
||||||
FL_EXPORT int position_to_xy(int pos, int* x, int* y);
|
int position_to_xy(int pos, int* x, int* y);
|
||||||
FL_EXPORT int position_to_linecol(int pos, int* lineNum, int* column);
|
int position_to_linecol(int pos, int* lineNum, int* column);
|
||||||
FL_EXPORT void scroll_(int topLineNum, int horizOffset);
|
void scroll_(int topLineNum, int horizOffset);
|
||||||
|
|
||||||
FL_EXPORT void extend_range_for_styles(int* start, int* end);
|
void extend_range_for_styles(int* start, int* end);
|
||||||
|
|
||||||
|
|
||||||
int damage_range1_start, damage_range1_end;
|
int damage_range1_start, damage_range1_end;
|
||||||
@@ -243,5 +243,5 @@ class Fl_Text_Display: public Fl_Group {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Text_Display.H,v 1.4.2.10 2002/08/09 03:17:29 easysw Exp $".
|
// End of "$Id: Fl_Text_Display.H,v 1.4.2.11 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+35
-35
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Text_Editor.H,v 1.1.2.3 2002/01/01 15:11:28 easysw Exp $"
|
// "$Id: Fl_Text_Editor.H,v 1.1.2.4 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Header file for Fl_Text_Editor class.
|
// Header file for Fl_Text_Editor class.
|
||||||
//
|
//
|
||||||
@@ -34,73 +34,73 @@
|
|||||||
// key will match in any state
|
// key will match in any state
|
||||||
#define FL_TEXT_EDITOR_ANY_STATE (-1L)
|
#define FL_TEXT_EDITOR_ANY_STATE (-1L)
|
||||||
|
|
||||||
class Fl_Text_Editor : public Fl_Text_Display {
|
class FL_EXPORT Fl_Text_Editor : public Fl_Text_Display {
|
||||||
public:
|
public:
|
||||||
typedef int (*Key_Func)(int key, Fl_Text_Editor* editor);
|
typedef int (*Key_Func)(int key, Fl_Text_Editor* editor);
|
||||||
|
|
||||||
struct FL_EXPORT Key_Binding {
|
struct Key_Binding {
|
||||||
int key;
|
int key;
|
||||||
int state;
|
int state;
|
||||||
Key_Func function;
|
Key_Func function;
|
||||||
Key_Binding* next;
|
Key_Binding* next;
|
||||||
};
|
};
|
||||||
|
|
||||||
FL_EXPORT Fl_Text_Editor(int X, int Y, int W, int H, const char* l = 0);
|
Fl_Text_Editor(int X, int Y, int W, int H, const char* l = 0);
|
||||||
~Fl_Text_Editor() { remove_all_key_bindings(); }
|
~Fl_Text_Editor() { remove_all_key_bindings(); }
|
||||||
FL_EXPORT virtual int handle(int e);
|
virtual int handle(int e);
|
||||||
void insert_mode(int b) { insert_mode_ = b; }
|
void insert_mode(int b) { insert_mode_ = b; }
|
||||||
int insert_mode() { return insert_mode_; }
|
int insert_mode() { return insert_mode_; }
|
||||||
|
|
||||||
FL_EXPORT void add_key_binding(int key, int state, Key_Func f, Key_Binding** list);
|
void add_key_binding(int key, int state, Key_Func f, Key_Binding** list);
|
||||||
void add_key_binding(int key, int state, Key_Func f)
|
void add_key_binding(int key, int state, Key_Func f)
|
||||||
{ add_key_binding(key, state, f, &key_bindings); }
|
{ add_key_binding(key, state, f, &key_bindings); }
|
||||||
FL_EXPORT void remove_key_binding(int key, int state, Key_Binding** list);
|
void remove_key_binding(int key, int state, Key_Binding** list);
|
||||||
void remove_key_binding(int key, int state)
|
void remove_key_binding(int key, int state)
|
||||||
{ remove_key_binding(key, state, &key_bindings); }
|
{ remove_key_binding(key, state, &key_bindings); }
|
||||||
FL_EXPORT void remove_all_key_bindings(Key_Binding** list);
|
void remove_all_key_bindings(Key_Binding** list);
|
||||||
void remove_all_key_bindings() { remove_all_key_bindings(&key_bindings); }
|
void remove_all_key_bindings() { remove_all_key_bindings(&key_bindings); }
|
||||||
FL_EXPORT void add_default_key_bindings(Key_Binding** list);
|
void add_default_key_bindings(Key_Binding** list);
|
||||||
FL_EXPORT Key_Func bound_key_function(int key, int state, Key_Binding* list);
|
Key_Func bound_key_function(int key, int state, Key_Binding* list);
|
||||||
Key_Func bound_key_function(int key, int state)
|
Key_Func bound_key_function(int key, int state)
|
||||||
{ return bound_key_function(key, state, key_bindings); }
|
{ return bound_key_function(key, state, key_bindings); }
|
||||||
void default_key_function(Key_Func f) { default_key_function_ = f; }
|
void default_key_function(Key_Func f) { default_key_function_ = f; }
|
||||||
|
|
||||||
// functions for the built in default bindings
|
// functions for the built in default bindings
|
||||||
FL_EXPORT static int kf_default(int c, Fl_Text_Editor* e);
|
static int kf_default(int c, Fl_Text_Editor* e);
|
||||||
FL_EXPORT static int kf_ignore(int c, Fl_Text_Editor* e);
|
static int kf_ignore(int c, Fl_Text_Editor* e);
|
||||||
FL_EXPORT static int kf_backspace(int c, Fl_Text_Editor* e);
|
static int kf_backspace(int c, Fl_Text_Editor* e);
|
||||||
FL_EXPORT static int kf_enter(int c, Fl_Text_Editor* e);
|
static int kf_enter(int c, Fl_Text_Editor* e);
|
||||||
FL_EXPORT static int kf_move(int c, Fl_Text_Editor* e);
|
static int kf_move(int c, Fl_Text_Editor* e);
|
||||||
FL_EXPORT static int kf_shift_move(int c, Fl_Text_Editor* e);
|
static int kf_shift_move(int c, Fl_Text_Editor* e);
|
||||||
FL_EXPORT static int kf_ctrl_move(int c, Fl_Text_Editor* e);
|
static int kf_ctrl_move(int c, Fl_Text_Editor* e);
|
||||||
FL_EXPORT static int kf_c_s_move(int c, Fl_Text_Editor* e);
|
static int kf_c_s_move(int c, Fl_Text_Editor* e);
|
||||||
FL_EXPORT static int kf_home(int, Fl_Text_Editor* e);
|
static int kf_home(int, Fl_Text_Editor* e);
|
||||||
FL_EXPORT static int kf_end(int c, Fl_Text_Editor* e);
|
static int kf_end(int c, Fl_Text_Editor* e);
|
||||||
FL_EXPORT static int kf_left(int c, Fl_Text_Editor* e);
|
static int kf_left(int c, Fl_Text_Editor* e);
|
||||||
FL_EXPORT static int kf_up(int c, Fl_Text_Editor* e);
|
static int kf_up(int c, Fl_Text_Editor* e);
|
||||||
FL_EXPORT static int kf_right(int c, Fl_Text_Editor* e);
|
static int kf_right(int c, Fl_Text_Editor* e);
|
||||||
FL_EXPORT static int kf_down(int c, Fl_Text_Editor* e);
|
static int kf_down(int c, Fl_Text_Editor* e);
|
||||||
FL_EXPORT static int kf_page_up(int c, Fl_Text_Editor* e);
|
static int kf_page_up(int c, Fl_Text_Editor* e);
|
||||||
FL_EXPORT static int kf_page_down(int c, Fl_Text_Editor* e);
|
static int kf_page_down(int c, Fl_Text_Editor* e);
|
||||||
FL_EXPORT static int kf_insert(int c, Fl_Text_Editor* e);
|
static int kf_insert(int c, Fl_Text_Editor* e);
|
||||||
FL_EXPORT static int kf_delete(int c, Fl_Text_Editor* e);
|
static int kf_delete(int c, Fl_Text_Editor* e);
|
||||||
FL_EXPORT static int kf_copy(int c, Fl_Text_Editor* e);
|
static int kf_copy(int c, Fl_Text_Editor* e);
|
||||||
FL_EXPORT static int kf_cut(int c, Fl_Text_Editor* e);
|
static int kf_cut(int c, Fl_Text_Editor* e);
|
||||||
FL_EXPORT static int kf_paste(int c, Fl_Text_Editor* e);
|
static int kf_paste(int c, Fl_Text_Editor* e);
|
||||||
FL_EXPORT static int kf_select_all(int c, Fl_Text_Editor* e);
|
static int kf_select_all(int c, Fl_Text_Editor* e);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
FL_EXPORT int handle_key();
|
int handle_key();
|
||||||
|
|
||||||
int insert_mode_;
|
int insert_mode_;
|
||||||
Key_Binding* key_bindings;
|
Key_Binding* key_bindings;
|
||||||
FL_EXPORT static Key_Binding* global_key_bindings;
|
static Key_Binding* global_key_bindings;
|
||||||
Key_Func default_key_function_;
|
Key_Func default_key_function_;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Text_Editor.H,v 1.1.2.3 2002/01/01 15:11:28 easysw Exp $".
|
// End of "$Id: Fl_Text_Editor.H,v 1.1.2.4 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|||||||
+6
-6
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Tile.H,v 1.6.2.3.2.1 2002/01/01 15:11:28 easysw Exp $"
|
// "$Id: Fl_Tile.H,v 1.6.2.3.2.2 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Tile header file for the Fast Light Tool Kit (FLTK).
|
// Tile header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -28,16 +28,16 @@
|
|||||||
|
|
||||||
#include "Fl_Group.H"
|
#include "Fl_Group.H"
|
||||||
|
|
||||||
class Fl_Tile : public Fl_Group {
|
class FL_EXPORT Fl_Tile : public Fl_Group {
|
||||||
public:
|
public:
|
||||||
FL_EXPORT int handle(int);
|
int handle(int);
|
||||||
Fl_Tile(int X,int Y,int W,int H,const char*l=0) : Fl_Group(X,Y,W,H,l) {}
|
Fl_Tile(int X,int Y,int W,int H,const char*l=0) : Fl_Group(X,Y,W,H,l) {}
|
||||||
FL_EXPORT void resize(int, int, int, int);
|
void resize(int, int, int, int);
|
||||||
FL_EXPORT void position(int, int, int, int);
|
void position(int, int, int, int);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Tile.H,v 1.6.2.3.2.1 2002/01/01 15:11:28 easysw Exp $".
|
// End of "$Id: Fl_Tile.H,v 1.6.2.3.2.2 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+11
-11
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Timer.H,v 1.5.2.3.2.1 2002/01/01 15:11:28 easysw Exp $"
|
// "$Id: Fl_Timer.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Timer header file for the Fast Light Tool Kit (FLTK).
|
// Timer header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -35,29 +35,29 @@
|
|||||||
#define FL_VALUE_TIMER 1
|
#define FL_VALUE_TIMER 1
|
||||||
#define FL_HIDDEN_TIMER 2
|
#define FL_HIDDEN_TIMER 2
|
||||||
|
|
||||||
class Fl_Timer : public Fl_Widget {
|
class FL_EXPORT Fl_Timer : public Fl_Widget {
|
||||||
static FL_EXPORT void stepcb(void *);
|
static void stepcb(void *);
|
||||||
FL_EXPORT void step();
|
void step();
|
||||||
char on, direction_;
|
char on, direction_;
|
||||||
double delay, total;
|
double delay, total;
|
||||||
long lastsec,lastusec;
|
long lastsec,lastusec;
|
||||||
protected:
|
protected:
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
public:
|
public:
|
||||||
FL_EXPORT int handle(int);
|
int handle(int);
|
||||||
FL_EXPORT Fl_Timer(uchar t,int x,int y,int w,int h, const char *l);
|
Fl_Timer(uchar t,int x,int y,int w,int h, const char *l);
|
||||||
FL_EXPORT ~Fl_Timer();
|
~Fl_Timer();
|
||||||
FL_EXPORT void value(double);
|
void value(double);
|
||||||
double value() const {return delay>0.0?delay:0.0;}
|
double value() const {return delay>0.0?delay:0.0;}
|
||||||
char direction() const {return direction_;}
|
char direction() const {return direction_;}
|
||||||
void direction(char d) {direction_ = d;}
|
void direction(char d) {direction_ = d;}
|
||||||
char suspended() const {return !on;}
|
char suspended() const {return !on;}
|
||||||
FL_EXPORT void suspended(char d);
|
void suspended(char d);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Timer.H,v 1.5.2.3.2.1 2002/01/01 15:11:28 easysw Exp $".
|
// End of "$Id: Fl_Timer.H,v 1.5.2.3.2.2 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|||||||
+9
-9
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Value_Input.H,v 1.5.2.3.2.3 2002/08/09 01:09:48 easysw Exp $"
|
// "$Id: Fl_Value_Input.H,v 1.5.2.3.2.4 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Value input header file for the Fast Light Tool Kit (FLTK).
|
// Value input header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -29,18 +29,18 @@
|
|||||||
#include "Fl_Valuator.H"
|
#include "Fl_Valuator.H"
|
||||||
#include "Fl_Input.H"
|
#include "Fl_Input.H"
|
||||||
|
|
||||||
class Fl_Value_Input : public Fl_Valuator {
|
class FL_EXPORT Fl_Value_Input : public Fl_Valuator {
|
||||||
public:
|
public:
|
||||||
Fl_Input input;
|
Fl_Input input;
|
||||||
private:
|
private:
|
||||||
char soft_;
|
char soft_;
|
||||||
static FL_EXPORT void input_cb(Fl_Widget*,void*);
|
static void input_cb(Fl_Widget*,void*);
|
||||||
virtual FL_EXPORT void value_damage(); // cause damage() due to value() changing
|
virtual void value_damage(); // cause damage() due to value() changing
|
||||||
public:
|
public:
|
||||||
FL_EXPORT int handle(int);
|
int handle(int);
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
FL_EXPORT void resize(int,int,int,int);
|
void resize(int,int,int,int);
|
||||||
FL_EXPORT Fl_Value_Input(int x,int y,int w,int h,const char *l=0);
|
Fl_Value_Input(int x,int y,int w,int h,const char *l=0);
|
||||||
|
|
||||||
void soft(char s) {soft_ = s;}
|
void soft(char s) {soft_ = s;}
|
||||||
char soft() const {return soft_;}
|
char soft() const {return soft_;}
|
||||||
@@ -59,5 +59,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Value_Input.H,v 1.5.2.3.2.3 2002/08/09 01:09:48 easysw Exp $".
|
// End of "$Id: Fl_Value_Input.H,v 1.5.2.3.2.4 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Value_Output.H,v 1.5.2.3.2.3 2002/08/09 03:17:29 easysw Exp $"
|
// "$Id: Fl_Value_Output.H,v 1.5.2.3.2.4 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Value output header file for the Fast Light Tool Kit (FLTK).
|
// Value output header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -30,13 +30,13 @@
|
|||||||
#include "Fl_Valuator.H"
|
#include "Fl_Valuator.H"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class Fl_Value_Output : public Fl_Valuator {
|
class FL_EXPORT Fl_Value_Output : public Fl_Valuator {
|
||||||
uchar textfont_, textsize_, soft_;
|
uchar textfont_, textsize_, soft_;
|
||||||
unsigned textcolor_;
|
unsigned textcolor_;
|
||||||
public:
|
public:
|
||||||
FL_EXPORT int handle(int);
|
int handle(int);
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
FL_EXPORT Fl_Value_Output(int x,int y,int w,int h,const char *l=0);
|
Fl_Value_Output(int x,int y,int w,int h,const char *l=0);
|
||||||
|
|
||||||
void soft(uchar s) {soft_ = s;}
|
void soft(uchar s) {soft_ = s;}
|
||||||
uchar soft() const {return soft_;}
|
uchar soft() const {return soft_;}
|
||||||
@@ -52,5 +52,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Value_Output.H,v 1.5.2.3.2.3 2002/08/09 03:17:29 easysw Exp $".
|
// End of "$Id: Fl_Value_Output.H,v 1.5.2.3.2.4 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Value_Slider.H,v 1.5.2.3.2.2 2002/01/01 15:11:28 easysw Exp $"
|
// "$Id: Fl_Value_Slider.H,v 1.5.2.3.2.3 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Value slider header file for the Fast Light Tool Kit (FLTK).
|
// Value slider header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -28,13 +28,13 @@
|
|||||||
|
|
||||||
#include "Fl_Slider.H"
|
#include "Fl_Slider.H"
|
||||||
|
|
||||||
class Fl_Value_Slider : public Fl_Slider {
|
class FL_EXPORT Fl_Value_Slider : public Fl_Slider {
|
||||||
uchar textfont_, textsize_;
|
uchar textfont_, textsize_;
|
||||||
unsigned textcolor_;
|
unsigned textcolor_;
|
||||||
public:
|
public:
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
FL_EXPORT int handle(int);
|
int handle(int);
|
||||||
FL_EXPORT Fl_Value_Slider(int x,int y,int w,int h, const char *l = 0);
|
Fl_Value_Slider(int x,int y,int w,int h, const char *l = 0);
|
||||||
Fl_Font textfont() const {return (Fl_Font)textfont_;}
|
Fl_Font textfont() const {return (Fl_Font)textfont_;}
|
||||||
void textfont(uchar s) {textfont_ = s;}
|
void textfont(uchar s) {textfont_ = s;}
|
||||||
uchar textsize() const {return textsize_;}
|
uchar textsize() const {return textsize_;}
|
||||||
@@ -46,5 +46,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Value_Slider.H,v 1.5.2.3.2.2 2002/01/01 15:11:28 easysw Exp $".
|
// End of "$Id: Fl_Value_Slider.H,v 1.5.2.3.2.3 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+5
-5
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: forms.H,v 1.7.2.7.2.5 2002/08/09 03:17:29 easysw Exp $"
|
// "$Id: forms.H,v 1.7.2.7.2.6 2002/08/14 16:49:38 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Forms emulation header file for the Fast Light Tool Kit (FLTK).
|
// Forms emulation header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -807,10 +807,10 @@ inline void fl_set_slider_precision(Fl_Widget* o, int i) {
|
|||||||
// filter function!
|
// filter function!
|
||||||
|
|
||||||
// The forms text object was the same as an Fl_Box except it inverted the
|
// The forms text object was the same as an Fl_Box except it inverted the
|
||||||
// meaning of FL_ALIGN_INSIDE. Implementation in forms.C
|
// meaning of FL_ALIGN_INSIDE. Implementation in forms.cxx
|
||||||
class Fl_FormsText : public Fl_Widget {
|
class FL_EXPORT Fl_FormsText : public Fl_Widget {
|
||||||
protected:
|
protected:
|
||||||
FL_EXPORT void draw();
|
void draw();
|
||||||
public:
|
public:
|
||||||
Fl_FormsText(Fl_Boxtype b, int X, int Y, int W, int H, const char* l=0)
|
Fl_FormsText(Fl_Boxtype b, int X, int Y, int W, int H, const char* l=0)
|
||||||
: Fl_Widget(X,Y,W,H,l) {box(b); align(FL_ALIGN_LEFT);}
|
: Fl_Widget(X,Y,W,H,l) {box(b); align(FL_ALIGN_LEFT);}
|
||||||
@@ -838,5 +838,5 @@ inline void fl_draw() {Fl::flush();}
|
|||||||
#endif /* define __FORMS_H__ */
|
#endif /* define __FORMS_H__ */
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: forms.H,v 1.7.2.7.2.5 2002/08/09 03:17:29 easysw Exp $".
|
// End of "$Id: forms.H,v 1.7.2.7.2.6 2002/08/14 16:49:38 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user