mirror of
https://github.com/fltk/fltk.git
synced 2026-05-23 07:46:09 +08:00
Updated headers to support WIN32 and OS/2 DLLs.
Updated VC++ project files. Removed dummymain.c (no longer needed). git-svn-id: file:///fltk/svn/fltk/trunk@278 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+33
-16
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Enumerations.H,v 1.11 1999/01/25 20:43:03 mike Exp $"
|
||||
// "$Id: Enumerations.H,v 1.12 1999/02/16 21:59:33 mike Exp $"
|
||||
//
|
||||
// Enumerations for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -26,6 +26,23 @@
|
||||
#ifndef Fl_Enumerations_H
|
||||
#define Fl_Enumerations_H
|
||||
|
||||
//
|
||||
// The following is only used when building DLLs under WIN32 or OS/2...
|
||||
//
|
||||
|
||||
#if defined(WIN32) || defined(__EMX__)
|
||||
# ifdef FL_DLL
|
||||
# define FL_EXPORT __declspec(dllexport)
|
||||
# define FL_IMPORT __declspec(dllimport)
|
||||
# else
|
||||
# define FL_EXPORT __declspec(dllimport)
|
||||
# define FL_IMPORT __declspec(dllexport)
|
||||
# endif /* FL_DLL */
|
||||
#else
|
||||
# define FL_EXPORT
|
||||
# define FL_IMPORT
|
||||
#endif /* WIN32 || __EMX__ */
|
||||
|
||||
//
|
||||
// The FLTK version number; this is changed slightly from the beta versions
|
||||
// because the old "const double" definition would not allow for conditional
|
||||
@@ -148,23 +165,23 @@ enum Fl_Boxtype { // boxtypes (if you change these you must fix fl_boxtype.C):
|
||||
_FL_OVAL_FRAME, _FL_OFLAT_BOX,
|
||||
FL_FREE_BOXTYPE
|
||||
};
|
||||
extern Fl_Boxtype define_FL_ROUND_UP_BOX();
|
||||
extern FL_EXPORT Fl_Boxtype define_FL_ROUND_UP_BOX();
|
||||
#define FL_ROUND_UP_BOX define_FL_ROUND_UP_BOX()
|
||||
#define FL_ROUND_DOWN_BOX (Fl_Boxtype)(define_FL_ROUND_UP_BOX()+1)
|
||||
extern Fl_Boxtype define_FL_SHADOW_BOX();
|
||||
extern FL_EXPORT Fl_Boxtype define_FL_SHADOW_BOX();
|
||||
#define FL_SHADOW_BOX define_FL_SHADOW_BOX()
|
||||
#define FL_SHADOW_FRAME (Fl_Boxtype)(define_FL_SHADOW_BOX()+2)
|
||||
extern Fl_Boxtype define_FL_ROUNDED_BOX();
|
||||
extern FL_EXPORT Fl_Boxtype define_FL_ROUNDED_BOX();
|
||||
#define FL_ROUNDED_BOX define_FL_ROUNDED_BOX()
|
||||
#define FL_ROUNDED_FRAME (Fl_Boxtype)(define_FL_ROUNDED_BOX()+2)
|
||||
extern Fl_Boxtype define_FL_RFLAT_BOX();
|
||||
extern FL_EXPORT Fl_Boxtype define_FL_RFLAT_BOX();
|
||||
#define FL_RFLAT_BOX define_FL_RFLAT_BOX()
|
||||
extern Fl_Boxtype define_FL_RSHADOW_BOX();
|
||||
extern FL_EXPORT Fl_Boxtype define_FL_RSHADOW_BOX();
|
||||
#define FL_RSHADOW_BOX define_FL_RSHADOW_BOX()
|
||||
extern Fl_Boxtype define_FL_DIAMOND_BOX();
|
||||
extern FL_EXPORT Fl_Boxtype define_FL_DIAMOND_BOX();
|
||||
#define FL_DIAMOND_UP_BOX define_FL_DIAMOND_BOX()
|
||||
#define FL_DIAMOND_DOWN_BOX (Fl_Boxtype)(define_FL_DIAMOND_BOX()+1)
|
||||
extern Fl_Boxtype define_FL_OVAL_BOX();
|
||||
extern FL_EXPORT Fl_Boxtype define_FL_OVAL_BOX();
|
||||
#define FL_OVAL_BOX define_FL_OVAL_BOX()
|
||||
#define FL_OSHADOW_BOX (Fl_Boxtype)(define_FL_OVAL_BOX()+1)
|
||||
#define FL_OVAL_FRAME (Fl_Boxtype)(define_FL_OVAL_BOX()+2)
|
||||
@@ -193,13 +210,13 @@ enum Fl_Labeltype { // labeltypes:
|
||||
_FL_MULTI_LABEL,
|
||||
FL_FREE_LABELTYPE
|
||||
};
|
||||
extern Fl_Labeltype define_FL_SYMBOL_LABEL();
|
||||
extern Fl_Labeltype FL_EXPORT define_FL_SYMBOL_LABEL();
|
||||
#define FL_SYMBOL_LABEL define_FL_SYMBOL_LABEL()
|
||||
extern Fl_Labeltype define_FL_SHADOW_LABEL();
|
||||
extern Fl_Labeltype FL_EXPORT define_FL_SHADOW_LABEL();
|
||||
#define FL_SHADOW_LABEL define_FL_SHADOW_LABEL()
|
||||
extern Fl_Labeltype define_FL_ENGRAVED_LABEL();
|
||||
extern Fl_Labeltype FL_EXPORT define_FL_ENGRAVED_LABEL();
|
||||
#define FL_ENGRAVED_LABEL define_FL_ENGRAVED_LABEL()
|
||||
extern Fl_Labeltype define_FL_EMBOSSED_LABEL();
|
||||
extern Fl_Labeltype FL_EXPORT define_FL_EMBOSSED_LABEL();
|
||||
#define FL_EMBOSSED_LABEL define_FL_EMBOSSED_LABEL()
|
||||
|
||||
enum Fl_Align { // align() values
|
||||
@@ -277,9 +294,9 @@ enum Fl_Color { // standard colors
|
||||
FL_COLOR_CUBE = 56
|
||||
};
|
||||
|
||||
Fl_Color inactive(Fl_Color c);
|
||||
Fl_Color contrast(Fl_Color fg, Fl_Color bg);
|
||||
Fl_Color fl_color_average(Fl_Color c1, Fl_Color c2, float weight);
|
||||
FL_EXPORT Fl_Color inactive(Fl_Color c);
|
||||
FL_EXPORT Fl_Color contrast(Fl_Color fg, Fl_Color bg);
|
||||
FL_EXPORT Fl_Color fl_color_average(Fl_Color c1, Fl_Color c2, float weight);
|
||||
inline Fl_Color fl_lighter(Fl_Color c) { return fl_color_average(c, FL_WHITE, .67f); }
|
||||
inline Fl_Color fl_darker(Fl_Color c) { return fl_color_average(c, FL_BLACK, .67f); }
|
||||
|
||||
@@ -351,5 +368,5 @@ enum Fl_Damage {
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Enumerations.H,v 1.11 1999/01/25 20:43:03 mike Exp $".
|
||||
// End of "$Id: Enumerations.H,v 1.12 1999/02/16 21:59:33 mike Exp $".
|
||||
//
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl.H,v 1.5 1999/02/03 08:43:29 bill Exp $"
|
||||
// "$Id: Fl.H,v 1.6 1999/02/16 21:59:34 mike Exp $"
|
||||
//
|
||||
// Main header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -43,161 +43,161 @@ class Fl {
|
||||
|
||||
public: // should be private!
|
||||
|
||||
static int e_x,e_y,e_x_root,e_y_root;
|
||||
static int e_state;
|
||||
static int e_clicks;
|
||||
static int e_is_click;
|
||||
static int e_keysym;
|
||||
static char* e_text;
|
||||
static int e_length;
|
||||
static Fl_Widget* belowmouse_;
|
||||
static Fl_Widget* pushed_;
|
||||
static Fl_Widget* focus_;
|
||||
static int damage_;
|
||||
static Fl_Widget* selection_owner_;
|
||||
static Fl_Window* modal_;
|
||||
static Fl_Window* grab_;
|
||||
static FL_EXPORT int e_x,e_y,e_x_root,e_y_root;
|
||||
static FL_EXPORT int e_state;
|
||||
static FL_EXPORT int e_clicks;
|
||||
static FL_EXPORT int e_is_click;
|
||||
static FL_EXPORT int e_keysym;
|
||||
static FL_EXPORT char* e_text;
|
||||
static FL_EXPORT int e_length;
|
||||
static FL_EXPORT Fl_Widget* belowmouse_;
|
||||
static FL_EXPORT Fl_Widget* pushed_;
|
||||
static FL_EXPORT Fl_Widget* focus_;
|
||||
static FL_EXPORT int damage_;
|
||||
static FL_EXPORT Fl_Widget* selection_owner_;
|
||||
static FL_EXPORT Fl_Window* modal_;
|
||||
static FL_EXPORT Fl_Window* grab_;
|
||||
|
||||
static void damage(int x) {damage_ = x;}
|
||||
|
||||
static void (*idle)();
|
||||
static FL_EXPORT void (*idle)();
|
||||
|
||||
public:
|
||||
|
||||
// argument parsers:
|
||||
static int arg(int, char**, int&);
|
||||
static int args(int, char**, int&, int (*)(int,char**,int&) = 0);
|
||||
static const char* const help;
|
||||
static void args(int, char**);
|
||||
static FL_EXPORT int arg(int, char**, int&);
|
||||
static FL_EXPORT int args(int, char**, int&, int (*)(int,char**,int&) = 0);
|
||||
static FL_EXPORT const char* const help;
|
||||
static FL_EXPORT void args(int, char**);
|
||||
|
||||
// things called by initialization:
|
||||
static void display(const char*);
|
||||
static int visual(int);
|
||||
static int gl_visual(int, int *alist=0);
|
||||
static void own_colormap();
|
||||
static void get_system_colors();
|
||||
static void foreground(uchar, uchar, uchar);
|
||||
static void background(uchar, uchar, uchar);
|
||||
static void background2(uchar, uchar, uchar);
|
||||
static FL_EXPORT void display(const char*);
|
||||
static FL_EXPORT int visual(int);
|
||||
static FL_EXPORT int gl_visual(int, int *alist=0);
|
||||
static FL_EXPORT void own_colormap();
|
||||
static FL_EXPORT void get_system_colors();
|
||||
static FL_EXPORT void foreground(uchar, uchar, uchar);
|
||||
static FL_EXPORT void background(uchar, uchar, uchar);
|
||||
static FL_EXPORT void background2(uchar, uchar, uchar);
|
||||
|
||||
// execution:
|
||||
static int wait();
|
||||
static double wait(double time);
|
||||
static int check();
|
||||
static int ready();
|
||||
static int run();
|
||||
static Fl_Widget* readqueue();
|
||||
static void add_timeout(double t,void (*cb)(void*),void* = 0);
|
||||
static void remove_timeout(void (*cb)(void*), void* = 0);
|
||||
static void add_fd(int fd, int when, void (*cb)(int, void*), void* = 0);
|
||||
static void add_fd(int fd, void (*cb)(int, void*), void* = 0);
|
||||
static void remove_fd(int);
|
||||
static void add_idle(void (*cb)(void*), void* = 0);
|
||||
static void remove_idle(void (*cb)(void*), void* = 0);
|
||||
static int damage() {return damage_;}
|
||||
static void redraw();
|
||||
static void flush();
|
||||
static void (*warning)(const char*, ...);
|
||||
static void (*error)(const char*, ...);
|
||||
static void (*fatal)(const char*, ...);
|
||||
static Fl_Window* first_window();
|
||||
static Fl_Window* next_window(const Fl_Window*);
|
||||
static Fl_Window* modal() {return modal_;}
|
||||
static Fl_Window* grab() {return grab_;}
|
||||
static void grab(Fl_Window*);
|
||||
static FL_EXPORT int wait();
|
||||
static FL_EXPORT double wait(double time);
|
||||
static FL_EXPORT int check();
|
||||
static FL_EXPORT int ready();
|
||||
static FL_EXPORT int run();
|
||||
static FL_EXPORT Fl_Widget* readqueue();
|
||||
static FL_EXPORT void add_timeout(double t,void (*cb)(void*),void* = 0);
|
||||
static FL_EXPORT void remove_timeout(void (*cb)(void*), void* = 0);
|
||||
static FL_EXPORT void add_fd(int fd, int when, void (*cb)(int, void*), void* = 0);
|
||||
static FL_EXPORT void add_fd(int fd, void (*cb)(int, void*), void* = 0);
|
||||
static FL_EXPORT void remove_fd(int);
|
||||
static FL_EXPORT void add_idle(void (*cb)(void*), void* = 0);
|
||||
static FL_EXPORT void remove_idle(void (*cb)(void*), void* = 0);
|
||||
static FL_EXPORT int damage() {return damage_;}
|
||||
static FL_EXPORT void redraw();
|
||||
static FL_EXPORT void flush();
|
||||
static FL_EXPORT void (*warning)(const char*, ...);
|
||||
static FL_EXPORT void (*error)(const char*, ...);
|
||||
static FL_EXPORT void (*fatal)(const char*, ...);
|
||||
static FL_EXPORT Fl_Window* first_window();
|
||||
static FL_EXPORT Fl_Window* next_window(const Fl_Window*);
|
||||
static FL_EXPORT Fl_Window* modal() {return modal_;}
|
||||
static FL_EXPORT Fl_Window* grab() {return grab_;}
|
||||
static FL_EXPORT void grab(Fl_Window*);
|
||||
|
||||
// event information:
|
||||
static int event_x() {return e_x;}
|
||||
static int event_y() {return e_y;}
|
||||
static int event_x_root() {return e_x_root;}
|
||||
static int event_y_root() {return e_y_root;}
|
||||
static void get_mouse(int &,int &);
|
||||
static int event_clicks() {return e_clicks;}
|
||||
static void event_clicks(int i) {e_clicks = i;}
|
||||
static int event_is_click() {return e_is_click;}
|
||||
static void event_is_click(int i) {e_is_click = i;} // only 0 works!
|
||||
static int event_button() {return e_keysym-FL_Button;}
|
||||
static int event_state() {return e_state;}
|
||||
static int event_state(int i) {return e_state&i;}
|
||||
static int event_key() {return e_keysym;}
|
||||
static int event_key(int);
|
||||
static int get_key(int);
|
||||
static const char* event_text() {return e_text;}
|
||||
static int event_length() {return e_length;}
|
||||
static int event_inside(int,int,int,int);
|
||||
static int event_inside(const Fl_Widget*);
|
||||
static int test_shortcut(int);
|
||||
static FL_EXPORT int event_x() {return e_x;}
|
||||
static FL_EXPORT int event_y() {return e_y;}
|
||||
static FL_EXPORT int event_x_root() {return e_x_root;}
|
||||
static FL_EXPORT int event_y_root() {return e_y_root;}
|
||||
static FL_EXPORT void get_mouse(int &,int &);
|
||||
static FL_EXPORT int event_clicks() {return e_clicks;}
|
||||
static FL_EXPORT void event_clicks(int i) {e_clicks = i;}
|
||||
static FL_EXPORT int event_is_click() {return e_is_click;}
|
||||
static FL_EXPORT void event_is_click(int i) {e_is_click = i;} // only 0 works!
|
||||
static FL_EXPORT int event_button() {return e_keysym-FL_Button;}
|
||||
static FL_EXPORT int event_state() {return e_state;}
|
||||
static FL_EXPORT int event_state(int i) {return e_state&i;}
|
||||
static FL_EXPORT int event_key() {return e_keysym;}
|
||||
static FL_EXPORT int event_key(int);
|
||||
static FL_EXPORT int get_key(int);
|
||||
static FL_EXPORT const char* event_text() {return e_text;}
|
||||
static FL_EXPORT int event_length() {return e_length;}
|
||||
static FL_EXPORT int event_inside(int,int,int,int);
|
||||
static FL_EXPORT int event_inside(const Fl_Widget*);
|
||||
static FL_EXPORT int test_shortcut(int);
|
||||
|
||||
// event destinations:
|
||||
static int handle(int, Fl_Window*);
|
||||
static Fl_Widget* belowmouse() {return belowmouse_;}
|
||||
static void belowmouse(Fl_Widget*);
|
||||
static Fl_Widget* pushed() {return pushed_;}
|
||||
static void pushed(Fl_Widget*);
|
||||
static Fl_Widget* focus() {return focus_;}
|
||||
static void focus(Fl_Widget*);
|
||||
static void add_handler(int (*h)(int));
|
||||
static FL_EXPORT int handle(int, Fl_Window*);
|
||||
static FL_EXPORT Fl_Widget* belowmouse() {return belowmouse_;}
|
||||
static FL_EXPORT void belowmouse(Fl_Widget*);
|
||||
static FL_EXPORT Fl_Widget* pushed() {return pushed_;}
|
||||
static FL_EXPORT void pushed(Fl_Widget*);
|
||||
static FL_EXPORT Fl_Widget* focus() {return focus_;}
|
||||
static FL_EXPORT void focus(Fl_Widget*);
|
||||
static FL_EXPORT void add_handler(int (*h)(int));
|
||||
|
||||
// cut/paste:
|
||||
static Fl_Widget* selection_owner() {return selection_owner_;}
|
||||
static void selection_owner(Fl_Widget*);
|
||||
static void selection(Fl_Widget &owner, const char* stuff, int len);
|
||||
static void paste(Fl_Widget &receiver);
|
||||
static FL_EXPORT Fl_Widget* selection_owner() {return selection_owner_;}
|
||||
static FL_EXPORT void selection_owner(Fl_Widget*);
|
||||
static FL_EXPORT void selection(Fl_Widget &owner, const char* stuff, int len);
|
||||
static FL_EXPORT void paste(Fl_Widget &receiver);
|
||||
|
||||
// screen size:
|
||||
static int x() {return 0;}
|
||||
static int y() {return 0;}
|
||||
static int w();
|
||||
static int h();
|
||||
static FL_EXPORT int x() {return 0;}
|
||||
static FL_EXPORT int y() {return 0;}
|
||||
static FL_EXPORT int w();
|
||||
static FL_EXPORT int h();
|
||||
|
||||
// color map:
|
||||
static void set_color(Fl_Color, uchar, uchar, uchar);
|
||||
static void set_color(Fl_Color, unsigned);
|
||||
static unsigned get_color(Fl_Color);
|
||||
static void get_color(Fl_Color, uchar&, uchar&, uchar&);
|
||||
static void free_color(Fl_Color, int overlay = 0);
|
||||
static FL_EXPORT void set_color(Fl_Color, uchar, uchar, uchar);
|
||||
static FL_EXPORT void set_color(Fl_Color, unsigned);
|
||||
static FL_EXPORT unsigned get_color(Fl_Color);
|
||||
static FL_EXPORT void get_color(Fl_Color, uchar&, uchar&, uchar&);
|
||||
static FL_EXPORT void free_color(Fl_Color, int overlay = 0);
|
||||
|
||||
// fonts:
|
||||
static const char* get_font(Fl_Font);
|
||||
static const char* get_font_name(Fl_Font, int* attributes = 0);
|
||||
static int get_font_sizes(Fl_Font, int*& sizep);
|
||||
static void set_font(Fl_Font, const char*);
|
||||
static void set_font(Fl_Font, Fl_Font);
|
||||
static Fl_Font set_fonts(const char* = 0);
|
||||
static FL_EXPORT const char* get_font(Fl_Font);
|
||||
static FL_EXPORT const char* get_font_name(Fl_Font, int* attributes = 0);
|
||||
static FL_EXPORT int get_font_sizes(Fl_Font, int*& sizep);
|
||||
static FL_EXPORT void set_font(Fl_Font, const char*);
|
||||
static FL_EXPORT void set_font(Fl_Font, Fl_Font);
|
||||
static FL_EXPORT Fl_Font set_fonts(const char* = 0);
|
||||
|
||||
// labeltypes:
|
||||
static void set_labeltype(Fl_Labeltype,Fl_Label_Draw_F*,Fl_Label_Measure_F*);
|
||||
static void set_labeltype(Fl_Labeltype, Fl_Labeltype from);
|
||||
static void enable_symbols();
|
||||
static FL_EXPORT void set_labeltype(Fl_Labeltype,Fl_Label_Draw_F*,Fl_Label_Measure_F*);
|
||||
static FL_EXPORT void set_labeltype(Fl_Labeltype, Fl_Labeltype from);
|
||||
static FL_EXPORT void enable_symbols();
|
||||
|
||||
// boxtypes:
|
||||
static void set_boxtype(Fl_Boxtype, Fl_Box_Draw_F*,uchar,uchar,uchar,uchar);
|
||||
static void set_boxtype(Fl_Boxtype, Fl_Boxtype from);
|
||||
static int box_dx(Fl_Boxtype);
|
||||
static int box_dy(Fl_Boxtype);
|
||||
static int box_dw(Fl_Boxtype);
|
||||
static int box_dh(Fl_Boxtype);
|
||||
static FL_EXPORT void set_boxtype(Fl_Boxtype, Fl_Box_Draw_F*,uchar,uchar,uchar,uchar);
|
||||
static FL_EXPORT void set_boxtype(Fl_Boxtype, Fl_Boxtype from);
|
||||
static FL_EXPORT int box_dx(Fl_Boxtype);
|
||||
static FL_EXPORT int box_dy(Fl_Boxtype);
|
||||
static FL_EXPORT int box_dw(Fl_Boxtype);
|
||||
static FL_EXPORT int box_dh(Fl_Boxtype);
|
||||
|
||||
// back compatability:
|
||||
static void set_abort(void (*f)(const char*,...)) {fatal = f;}
|
||||
static void (*atclose)(Fl_Window*,void*);
|
||||
static void default_atclose(Fl_Window*,void*);
|
||||
static void set_atclose(void (*f)(Fl_Window*,void*)) {atclose = f;}
|
||||
static int event_shift() {return e_state&FL_SHIFT;}
|
||||
static int event_ctrl() {return e_state&FL_CTRL;}
|
||||
static int event_alt() {return e_state&FL_ALT;}
|
||||
static int event_buttons() {return e_state&0x7f000000;}
|
||||
static int event_button1() {return e_state&FL_BUTTON1;}
|
||||
static int event_button2() {return e_state&FL_BUTTON2;}
|
||||
static int event_button3() {return e_state&FL_BUTTON3;}
|
||||
static void set_idle(void (*cb)()) {idle = cb;}
|
||||
static void grab(Fl_Window&w) {grab(&w);}
|
||||
static void release() {grab(0);}
|
||||
static FL_EXPORT void set_abort(void (*f)(const char*,...)) {fatal = f;}
|
||||
static FL_EXPORT void (*atclose)(Fl_Window*,void*);
|
||||
static FL_EXPORT void default_atclose(Fl_Window*,void*);
|
||||
static FL_EXPORT void set_atclose(void (*f)(Fl_Window*,void*)) {atclose = f;}
|
||||
static FL_EXPORT int event_shift() {return e_state&FL_SHIFT;}
|
||||
static FL_EXPORT int event_ctrl() {return e_state&FL_CTRL;}
|
||||
static FL_EXPORT int event_alt() {return e_state&FL_ALT;}
|
||||
static FL_EXPORT int event_buttons() {return e_state&0x7f000000;}
|
||||
static FL_EXPORT int event_button1() {return e_state&FL_BUTTON1;}
|
||||
static FL_EXPORT int event_button2() {return e_state&FL_BUTTON2;}
|
||||
static FL_EXPORT int event_button3() {return e_state&FL_BUTTON3;}
|
||||
static FL_EXPORT void set_idle(void (*cb)()) {idle = cb;}
|
||||
static FL_EXPORT void grab(Fl_Window&w) {grab(&w);}
|
||||
static FL_EXPORT void release() {grab(0);}
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl.H,v 1.5 1999/02/03 08:43:29 bill Exp $".
|
||||
// End of "$Id: Fl.H,v 1.6 1999/02/16 21:59:34 mike Exp $".
|
||||
//
|
||||
|
||||
+8
-8
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Adjuster.H,v 1.4 1999/01/07 19:16:50 mike Exp $"
|
||||
// "$Id: Fl_Adjuster.H,v 1.5 1999/02/16 21:59:34 mike Exp $"
|
||||
//
|
||||
// Adjuster widget header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -37,17 +37,17 @@ class Fl_Adjuster : public Fl_Valuator {
|
||||
int ix;
|
||||
int soft_;
|
||||
protected:
|
||||
void draw();
|
||||
int handle(int);
|
||||
void value_damage();
|
||||
FL_EXPORT void draw();
|
||||
FL_EXPORT int handle(int);
|
||||
FL_EXPORT void value_damage();
|
||||
public:
|
||||
Fl_Adjuster(int x,int y,int w,int h,const char *l=0);
|
||||
void soft(int x) {soft_ = x;}
|
||||
int soft() const {return soft_;}
|
||||
FL_EXPORT Fl_Adjuster(int x,int y,int w,int h,const char *l=0);
|
||||
FL_EXPORT void soft(int x) {soft_ = x;}
|
||||
FL_EXPORT int soft() const {return soft_;}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Adjuster.H,v 1.4 1999/01/07 19:16:50 mike Exp $".
|
||||
// End of "$Id: Fl_Adjuster.H,v 1.5 1999/02/16 21:59:34 mike Exp $".
|
||||
//
|
||||
|
||||
+9
-9
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Bitmap.H,v 1.4 1999/01/07 19:16:50 mike Exp $"
|
||||
// "$Id: Fl_Bitmap.H,v 1.5 1999/02/16 21:59:34 mike Exp $"
|
||||
//
|
||||
// Bitmap header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -33,19 +33,19 @@ struct Fl_Bitmap {
|
||||
const uchar *array;
|
||||
int w, h;
|
||||
ulong id; // for internal use
|
||||
Fl_Bitmap(const uchar *bits, int W, int H) :
|
||||
FL_EXPORT Fl_Bitmap(const uchar *bits, int W, int H) :
|
||||
array(bits), w(W), h(H), id(0) {}
|
||||
Fl_Bitmap(const char *bits, int W, int H) :
|
||||
FL_EXPORT Fl_Bitmap(const char *bits, int W, int H) :
|
||||
array((const uchar *)bits), w(W), h(H), id(0) {}
|
||||
~Fl_Bitmap();
|
||||
void label(Fl_Widget*);
|
||||
void label(Fl_Menu_Item*);
|
||||
void draw(int X, int Y, int W, int H, int cx=0, int cy=0);
|
||||
void draw(int X, int Y) {draw(X, Y, w, h, 0, 0);}
|
||||
FL_EXPORT ~Fl_Bitmap();
|
||||
FL_EXPORT void label(Fl_Widget*);
|
||||
FL_EXPORT void label(Fl_Menu_Item*);
|
||||
FL_EXPORT void draw(int X, int Y, int W, int H, int cx=0, int cy=0);
|
||||
FL_EXPORT void draw(int X, int Y) {draw(X, Y, w, h, 0, 0);}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Bitmap.H,v 1.4 1999/01/07 19:16:50 mike Exp $".
|
||||
// End of "$Id: Fl_Bitmap.H,v 1.5 1999/02/16 21:59:34 mike Exp $".
|
||||
//
|
||||
|
||||
+5
-5
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Box.H,v 1.4 1999/01/07 19:16:51 mike Exp $"
|
||||
// "$Id: Fl_Box.H,v 1.5 1999/02/16 21:59:34 mike Exp $"
|
||||
//
|
||||
// Box header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -31,16 +31,16 @@
|
||||
#endif
|
||||
|
||||
class Fl_Box : public Fl_Widget {
|
||||
void draw();
|
||||
FL_EXPORT void draw();
|
||||
public:
|
||||
Fl_Box(int x, int y, int w, int h, const char *l=0)
|
||||
FL_EXPORT Fl_Box(int x, int y, int w, int h, const char *l=0)
|
||||
: Fl_Widget(x,y,w,h,l) {}
|
||||
Fl_Box(Fl_Boxtype b, int x, int y, int w, int h, const char *l)
|
||||
FL_EXPORT 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);}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Box.H,v 1.4 1999/01/07 19:16:51 mike Exp $".
|
||||
// End of "$Id: Fl_Box.H,v 1.5 1999/02/16 21:59:34 mike Exp $".
|
||||
//
|
||||
|
||||
+36
-36
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Browser.H,v 1.7 1999/01/30 00:39:26 carl Exp $"
|
||||
// "$Id: Fl_Browser.H,v 1.8 1999/02/16 21:59:35 mike Exp $"
|
||||
//
|
||||
// Browser header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -37,16 +37,16 @@ struct FL_BLINE;
|
||||
class Fl_Browser : public Fl_Browser_ {
|
||||
|
||||
// required routines for Fl_Browser_ subclass:
|
||||
void* item_first() const ;
|
||||
void* item_next(void*) const ;
|
||||
void* item_prev(void*) const ;
|
||||
int item_selected(void*) const ;
|
||||
void item_select(void*, int);
|
||||
int item_height(void*) const ;
|
||||
int item_width(void*) const ;
|
||||
void item_draw(void*, int, int, int, int) const ;
|
||||
int full_height() const ;
|
||||
int incr_height() const ;
|
||||
FL_EXPORT void* item_first() const ;
|
||||
FL_EXPORT void* item_next(void*) const ;
|
||||
FL_EXPORT void* item_prev(void*) const ;
|
||||
FL_EXPORT int item_selected(void*) const ;
|
||||
FL_EXPORT void item_select(void*, int);
|
||||
FL_EXPORT int item_height(void*) const ;
|
||||
FL_EXPORT int item_width(void*) const ;
|
||||
FL_EXPORT void item_draw(void*, int, int, int, int) const ;
|
||||
FL_EXPORT int full_height() const ;
|
||||
FL_EXPORT int incr_height() const ;
|
||||
|
||||
FL_BLINE *first; // the array of lines
|
||||
FL_BLINE *last;
|
||||
@@ -57,44 +57,44 @@ class Fl_Browser : public Fl_Browser_ {
|
||||
const int* column_widths_;
|
||||
char format_char_; // alternative to @-sign
|
||||
char column_char_; // alternative to tab
|
||||
FL_BLINE* find_line(int) const ;
|
||||
FL_BLINE* _remove(int) ;
|
||||
void insert(int, FL_BLINE*);
|
||||
int lineno(void*) const ;
|
||||
FL_EXPORT FL_BLINE* find_line(int) const ;
|
||||
FL_EXPORT FL_BLINE* _remove(int) ;
|
||||
FL_EXPORT void insert(int, FL_BLINE*);
|
||||
FL_EXPORT int lineno(void*) const ;
|
||||
|
||||
public:
|
||||
|
||||
void remove(int);
|
||||
void add(const char*, void* = 0);
|
||||
void insert(int, const char*, void* = 0);
|
||||
void move(int to, int from);
|
||||
int load(const char* filename);
|
||||
void clear();
|
||||
FL_EXPORT void remove(int);
|
||||
FL_EXPORT void add(const char*, void* = 0);
|
||||
FL_EXPORT void insert(int, const char*, void* = 0);
|
||||
FL_EXPORT void move(int to, int from);
|
||||
FL_EXPORT int load(const char* filename);
|
||||
FL_EXPORT void clear();
|
||||
|
||||
int size() const {return lines;}
|
||||
|
||||
int topline() const ;
|
||||
FL_EXPORT int topline() const ;
|
||||
enum Fl_Line_Position { TOP, BOTTOM, MIDDLE };
|
||||
void lineposition(int, Fl_Line_Position);
|
||||
FL_EXPORT void lineposition(int, Fl_Line_Position);
|
||||
void topline(int l) { lineposition(l, TOP); }
|
||||
void bottomline(int l) { lineposition(l, BOTTOM); }
|
||||
void middleline(int l) { lineposition(l, MIDDLE); }
|
||||
|
||||
int select(int, int=1);
|
||||
int selected(int) const ;
|
||||
void show(int n);
|
||||
void hide(int n);
|
||||
FL_EXPORT int select(int, int=1);
|
||||
FL_EXPORT int selected(int) const ;
|
||||
FL_EXPORT void show(int n);
|
||||
FL_EXPORT void hide(int n);
|
||||
void hide() {Fl_Widget::hide();}
|
||||
int visible(int n) const ;
|
||||
FL_EXPORT int visible(int n) const ;
|
||||
|
||||
int value() const ;
|
||||
FL_EXPORT int value() const ;
|
||||
void value(int v) {select(v);}
|
||||
const char* text(int) const ;
|
||||
void text(int, const char*);
|
||||
void* data(int) const ;
|
||||
void data(int, void* v);
|
||||
FL_EXPORT const char* text(int) const ;
|
||||
FL_EXPORT void text(int, const char*);
|
||||
FL_EXPORT void* data(int) const ;
|
||||
FL_EXPORT void data(int, void* v);
|
||||
|
||||
Fl_Browser(int, int, int, int, const char* = 0);
|
||||
FL_EXPORT Fl_Browser(int, int, int, int, const char* = 0);
|
||||
|
||||
char format_char() const {return format_char_;}
|
||||
void format_char(char c) {format_char_ = c;}
|
||||
@@ -107,11 +107,11 @@ public:
|
||||
|
||||
// for back compatability only:
|
||||
void replace(int a, const char* b) {text(a, b);}
|
||||
void display(int, int=1);
|
||||
FL_EXPORT void display(int, int=1);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Browser.H,v 1.7 1999/01/30 00:39:26 carl Exp $".
|
||||
// End of "$Id: Fl_Browser.H,v 1.8 1999/02/16 21:59:35 mike Exp $".
|
||||
//
|
||||
|
||||
+39
-39
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Browser_.H,v 1.5 1999/01/07 19:16:51 mike Exp $"
|
||||
// "$Id: Fl_Browser_.H,v 1.6 1999/02/16 21:59:35 mike Exp $"
|
||||
//
|
||||
// Common browser header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -59,61 +59,61 @@ class Fl_Browser_ : public Fl_Group {
|
||||
|
||||
static int scrollbar_width_;
|
||||
|
||||
void update_top();
|
||||
FL_EXPORT void update_top();
|
||||
|
||||
protected:
|
||||
|
||||
// All of the following must be supplied by the subclass:
|
||||
virtual void *item_first() const = 0;
|
||||
virtual void *item_next(void *) const = 0;
|
||||
virtual void *item_prev(void *) const = 0;
|
||||
virtual int item_height(void *) const = 0;
|
||||
virtual int item_width(void *) const = 0;
|
||||
virtual int item_quick_height(void *) const ;
|
||||
virtual void item_draw(void *,int,int,int,int) const = 0;
|
||||
virtual FL_EXPORT void *item_first() const = 0;
|
||||
virtual FL_EXPORT void *item_next(void *) const = 0;
|
||||
virtual FL_EXPORT void *item_prev(void *) const = 0;
|
||||
virtual FL_EXPORT int item_height(void *) const = 0;
|
||||
virtual FL_EXPORT int item_width(void *) const = 0;
|
||||
virtual FL_EXPORT int item_quick_height(void *) const ;
|
||||
virtual FL_EXPORT void item_draw(void *,int,int,int,int) const = 0;
|
||||
// you don't have to provide these but it may help speed it up:
|
||||
virtual int full_width() const ; // current width of all items
|
||||
virtual int full_height() const ; // current height of all items
|
||||
virtual int incr_height() const ; // average height of an item
|
||||
virtual FL_EXPORT int full_width() const ; // current width of all items
|
||||
virtual FL_EXPORT int full_height() const ; // current height of all items
|
||||
virtual FL_EXPORT int incr_height() const ; // average height of an item
|
||||
// These only need to be done by subclass if you want a multi-browser:
|
||||
virtual void item_select(void *,int=1);
|
||||
virtual int item_selected(void *) const ;
|
||||
virtual FL_EXPORT void item_select(void *,int=1);
|
||||
virtual FL_EXPORT int item_selected(void *) const ;
|
||||
|
||||
// things the subclass may want to call:
|
||||
void *top() const {return top_;}
|
||||
void *selection() const {return selection_;}
|
||||
void new_list(); // completely clobber all data, as though list replaced
|
||||
void deleting(void *a); // get rid of any pointers to a
|
||||
void replacing(void *a,void *b); // change a pointers to b
|
||||
void inserting(void *a,void *b); // insert a before b
|
||||
int displayed(void *) const ; // true if this line is visible
|
||||
void redraw_line(void *); // minimal update, no change in size
|
||||
void redraw_lines() {damage(FL_DAMAGE_SCROLL);} // redraw all of them
|
||||
void bbox(int&,int&,int&,int&) const;
|
||||
int leftedge() const; // x position after scrollbar & border
|
||||
void *find_item(int my); // item under mouse
|
||||
void draw(int,int,int,int);
|
||||
int handle(int,int,int,int,int);
|
||||
FL_EXPORT void *top() const {return top_;}
|
||||
FL_EXPORT void *selection() const {return selection_;}
|
||||
FL_EXPORT void new_list(); // completely clobber all data, as though list replaced
|
||||
FL_EXPORT void deleting(void *a); // get rid of any pointers to a
|
||||
FL_EXPORT void replacing(void *a,void *b); // change a pointers to b
|
||||
FL_EXPORT void inserting(void *a,void *b); // insert a before b
|
||||
FL_EXPORT int displayed(void *) const ; // true if this line is visible
|
||||
FL_EXPORT void redraw_line(void *); // minimal update, no change in size
|
||||
FL_EXPORT void redraw_lines() {damage(FL_DAMAGE_SCROLL);} // redraw all of them
|
||||
FL_EXPORT void bbox(int&,int&,int&,int&) const;
|
||||
FL_EXPORT int leftedge() const; // x position after scrollbar & border
|
||||
FL_EXPORT void *find_item(int my); // item under mouse
|
||||
FL_EXPORT void draw(int,int,int,int);
|
||||
FL_EXPORT int handle(int,int,int,int,int);
|
||||
|
||||
void draw();
|
||||
int handle(int);
|
||||
Fl_Browser_(int,int,int,int,const char * = 0);
|
||||
FL_EXPORT void draw();
|
||||
FL_EXPORT int handle(int);
|
||||
FL_EXPORT Fl_Browser_(int,int,int,int,const char * = 0);
|
||||
|
||||
public:
|
||||
|
||||
Fl_Scrollbar scrollbar; // Vertical scrollbar
|
||||
Fl_Scrollbar hscrollbar; // Horizontal scrollbar
|
||||
|
||||
void resize(int,int,int,int);
|
||||
FL_EXPORT void resize(int,int,int,int);
|
||||
|
||||
int select(void *,int=1,int docallbacks=0);
|
||||
int select_only(void *,int docallbacks=0);
|
||||
int deselect(int docallbacks=0);
|
||||
FL_EXPORT int select(void *,int=1,int docallbacks=0);
|
||||
FL_EXPORT int select_only(void *,int docallbacks=0);
|
||||
FL_EXPORT int deselect(int docallbacks=0);
|
||||
int position() const {return position_;}
|
||||
int hposition() const {return hposition_;}
|
||||
void position(int); // scroll to here
|
||||
void hposition(int); // pan to here
|
||||
void display(void*); // scroll so this item is shown
|
||||
FL_EXPORT void position(int); // scroll to here
|
||||
FL_EXPORT void hposition(int); // pan to here
|
||||
FL_EXPORT void display(void*); // scroll so this item is shown
|
||||
|
||||
uchar has_scrollbar() const {return has_scrollbar_;}
|
||||
void has_scrollbar(uchar i) {has_scrollbar_ = i;}
|
||||
@@ -146,5 +146,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Browser_.H,v 1.5 1999/01/07 19:16:51 mike Exp $".
|
||||
// End of "$Id: Fl_Browser_.H,v 1.6 1999/02/16 21:59:35 mike Exp $".
|
||||
//
|
||||
|
||||
+8
-8
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Button.H,v 1.4 1999/01/07 19:16:51 mike Exp $"
|
||||
// "$Id: Fl_Button.H,v 1.5 1999/02/16 21:59:35 mike Exp $"
|
||||
//
|
||||
// Button header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -35,7 +35,7 @@
|
||||
#define FL_RADIO_BUTTON (FL_RESERVED_TYPE+2)
|
||||
#define FL_HIDDEN_BUTTON 3 // for Forms compatability
|
||||
|
||||
extern int fl_old_shortcut(const char*);
|
||||
extern FL_EXPORT int fl_old_shortcut(const char*);
|
||||
|
||||
class Fl_Button : public Fl_Widget {
|
||||
|
||||
@@ -46,17 +46,17 @@ class Fl_Button : public Fl_Widget {
|
||||
|
||||
protected:
|
||||
|
||||
virtual void draw();
|
||||
virtual FL_EXPORT void draw();
|
||||
|
||||
public:
|
||||
|
||||
virtual int handle(int);
|
||||
Fl_Button(int,int,int,int,const char * = 0);
|
||||
int value(int);
|
||||
virtual FL_EXPORT int handle(int);
|
||||
FL_EXPORT Fl_Button(int,int,int,int,const char * = 0);
|
||||
FL_EXPORT int value(int);
|
||||
char value() const {return value_;}
|
||||
int set() {return value(1);}
|
||||
int clear() {return value(0);}
|
||||
void setonly(); // this should only be called on FL_RADIO_BUTTONs
|
||||
FL_EXPORT void setonly(); // this should only be called on FL_RADIO_BUTTONs
|
||||
int shortcut() const {return shortcut_;}
|
||||
void shortcut(int s) {shortcut_ = s;}
|
||||
Fl_Boxtype down_box() const {return (Fl_Boxtype)down_box_;}
|
||||
@@ -71,5 +71,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Button.H,v 1.4 1999/01/07 19:16:51 mike Exp $".
|
||||
// End of "$Id: Fl_Button.H,v 1.5 1999/02/16 21:59:35 mike Exp $".
|
||||
//
|
||||
|
||||
+10
-10
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Chart.H,v 1.5 1999/02/01 20:14:58 mike Exp $"
|
||||
// "$Id: Fl_Chart.H,v 1.6 1999/02/16 21:59:35 mike Exp $"
|
||||
//
|
||||
// Forms chart header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -59,18 +59,18 @@ class Fl_Chart : public Fl_Widget {
|
||||
uchar autosize_;
|
||||
uchar textfont_,textsize_,textcolor_;
|
||||
protected:
|
||||
void draw();
|
||||
FL_EXPORT void draw();
|
||||
public:
|
||||
Fl_Chart(int,int,int,int,const char * = 0);
|
||||
void clear();
|
||||
void add(double, const char * =0, uchar=0);
|
||||
void insert(int, double, const char * =0, uchar=0);
|
||||
void replace(int, double, const char * =0, uchar=0);
|
||||
FL_EXPORT Fl_Chart(int,int,int,int,const char * = 0);
|
||||
FL_EXPORT void clear();
|
||||
FL_EXPORT void add(double, const char * =0, uchar=0);
|
||||
FL_EXPORT void insert(int, double, const char * =0, uchar=0);
|
||||
FL_EXPORT void replace(int, double, const char * =0, uchar=0);
|
||||
void bounds(double *a,double *b) const {*a = min; *b = max;}
|
||||
void bounds(double a,double b);
|
||||
FL_EXPORT void bounds(double a,double b);
|
||||
int size() const {return numb;}
|
||||
int maxsize() const {return maxnumb;}
|
||||
void maxsize(int);
|
||||
FL_EXPORT void maxsize(int);
|
||||
Fl_Font textfont() const {return (Fl_Font)textfont_;}
|
||||
void textfont(uchar s) {textfont_ = s;}
|
||||
uchar textsize() const {return textsize_;}
|
||||
@@ -84,5 +84,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Chart.H,v 1.5 1999/02/01 20:14:58 mike Exp $".
|
||||
// End of "$Id: Fl_Chart.H,v 1.6 1999/02/16 21:59:35 mike Exp $".
|
||||
//
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Check_Button.H,v 1.4 1999/01/07 19:16:52 mike Exp $"
|
||||
// "$Id: Fl_Check_Button.H,v 1.5 1999/02/16 21:59:35 mike Exp $"
|
||||
//
|
||||
// Check button header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -30,11 +30,11 @@
|
||||
|
||||
class Fl_Check_Button : public Fl_Light_Button {
|
||||
public:
|
||||
Fl_Check_Button(int x,int y,int w,int h,const char *l = 0);
|
||||
FL_EXPORT Fl_Check_Button(int x,int y,int w,int h,const char *l = 0);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Check_Button.H,v 1.4 1999/01/07 19:16:52 mike Exp $".
|
||||
// End of "$Id: Fl_Check_Button.H,v 1.5 1999/02/16 21:59:35 mike Exp $".
|
||||
//
|
||||
|
||||
+7
-7
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Choice.H,v 1.4 1999/01/07 19:16:52 mike Exp $"
|
||||
// "$Id: Fl_Choice.H,v 1.5 1999/02/16 21:59:36 mike Exp $"
|
||||
//
|
||||
// Choice header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -30,16 +30,16 @@
|
||||
|
||||
class Fl_Choice : public Fl_Menu_ {
|
||||
protected:
|
||||
void draw();
|
||||
FL_EXPORT void draw();
|
||||
public:
|
||||
int handle(int);
|
||||
Fl_Choice(int,int,int,int,const char * = 0);
|
||||
int value(int i);
|
||||
int value() const {return Fl_Menu_::value();}
|
||||
FL_EXPORT int handle(int);
|
||||
FL_EXPORT Fl_Choice(int,int,int,int,const char * = 0);
|
||||
FL_EXPORT int value(int i);
|
||||
FL_EXPORT int value() const {return Fl_Menu_::value();}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Choice.H,v 1.4 1999/01/07 19:16:52 mike Exp $".
|
||||
// End of "$Id: Fl_Choice.H,v 1.5 1999/02/16 21:59:36 mike Exp $".
|
||||
//
|
||||
|
||||
+13
-13
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Clock.H,v 1.5 1999/01/13 15:45:48 mike Exp $"
|
||||
// "$Id: Fl_Clock.H,v 1.6 1999/02/16 21:59:36 mike Exp $"
|
||||
//
|
||||
// Clock header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -41,14 +41,14 @@
|
||||
class Fl_Clock_Output : public Fl_Widget {
|
||||
int hour_, minute_, second_;
|
||||
ulong value_;
|
||||
void drawhands(Fl_Color,Fl_Color); // part of draw
|
||||
FL_EXPORT void drawhands(Fl_Color,Fl_Color); // part of draw
|
||||
protected:
|
||||
void draw(int, int, int, int);
|
||||
void draw();
|
||||
FL_EXPORT void draw(int, int, int, int);
|
||||
FL_EXPORT void draw();
|
||||
public:
|
||||
Fl_Clock_Output(int x,int y,int w,int h, const char *l = 0);
|
||||
void value(ulong v); // set to this Unix time
|
||||
void value(int,int,int); // set hour, minute, second
|
||||
FL_EXPORT 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
|
||||
FL_EXPORT void value(int,int,int); // set hour, minute, second
|
||||
ulong value() const {return value_;}
|
||||
int hour() const {return hour_;}
|
||||
int minute() const {return minute_;}
|
||||
@@ -58,16 +58,16 @@ public:
|
||||
// a Fl_Clock displays the current time always by using a timeout:
|
||||
|
||||
class Fl_Clock : public Fl_Clock_Output {
|
||||
int handle(int);
|
||||
FL_EXPORT int handle(int);
|
||||
public:
|
||||
void update();
|
||||
Fl_Clock(int x,int y,int w,int h, const char *l = 0);
|
||||
Fl_Clock(uchar t,int x,int y,int w,int h, const char *l);
|
||||
~Fl_Clock();
|
||||
FL_EXPORT void update();
|
||||
FL_EXPORT 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_EXPORT ~Fl_Clock();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Clock.H,v 1.5 1999/01/13 15:45:48 mike Exp $".
|
||||
// End of "$Id: Fl_Clock.H,v 1.6 1999/02/16 21:59:36 mike Exp $".
|
||||
//
|
||||
|
||||
+17
-17
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Color_Chooser.H,v 1.4 1999/01/07 19:16:52 mike Exp $"
|
||||
// "$Id: Fl_Color_Chooser.H,v 1.5 1999/02/16 21:59:36 mike Exp $"
|
||||
//
|
||||
// Color chooser header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -37,8 +37,8 @@
|
||||
#include <FL/Fl_Value_Input.H>
|
||||
|
||||
class Flcc_HueBox : public Fl_Widget {
|
||||
int handle(int);
|
||||
void draw();
|
||||
FL_EXPORT int handle(int);
|
||||
FL_EXPORT void draw();
|
||||
int px, py;
|
||||
public:
|
||||
Flcc_HueBox(int X, int Y, int W, int H) : Fl_Widget(X,Y,W,H) {
|
||||
@@ -46,8 +46,8 @@ public:
|
||||
};
|
||||
|
||||
class Flcc_ValueBox : public Fl_Widget {
|
||||
int handle(int);
|
||||
void draw();
|
||||
FL_EXPORT int handle(int);
|
||||
FL_EXPORT void draw();
|
||||
int py;
|
||||
public:
|
||||
Flcc_ValueBox(int X, int Y, int W, int H) : Fl_Widget(X,Y,W,H) {
|
||||
@@ -56,7 +56,7 @@ public:
|
||||
|
||||
class Flcc_Value_Input : public Fl_Value_Input {
|
||||
public:
|
||||
int format(char*);
|
||||
FL_EXPORT int format(char*);
|
||||
Flcc_Value_Input(int X, int Y, int W, int H) : Fl_Value_Input(X,Y,W,H) {}
|
||||
};
|
||||
|
||||
@@ -70,9 +70,9 @@ class Fl_Color_Chooser : public Fl_Group {
|
||||
Fl_Box resize_box;
|
||||
double hue_, saturation_, value_;
|
||||
double r_, g_, b_;
|
||||
void set_valuators();
|
||||
static void rgb_cb(Fl_Widget*, void*);
|
||||
static void mode_cb(Fl_Widget*, void*);
|
||||
FL_EXPORT void set_valuators();
|
||||
static FL_EXPORT void rgb_cb(Fl_Widget*, void*);
|
||||
static FL_EXPORT void mode_cb(Fl_Widget*, void*);
|
||||
public:
|
||||
int mode() {return choice.value();}
|
||||
double hue() const {return hue_;}
|
||||
@@ -81,18 +81,18 @@ public:
|
||||
double r() const {return r_;}
|
||||
double g() const {return g_;}
|
||||
double b() const {return b_;}
|
||||
int hsv(double,double,double);
|
||||
int rgb(double,double,double);
|
||||
static void hsv2rgb(double, double, double,double&,double&,double&);
|
||||
static void rgb2hsv(double, double, double,double&,double&,double&);
|
||||
Fl_Color_Chooser(int,int,int,int,const char* = 0);
|
||||
FL_EXPORT int hsv(double,double,double);
|
||||
FL_EXPORT int rgb(double,double,double);
|
||||
static FL_EXPORT void hsv2rgb(double, double, double,double&,double&,double&);
|
||||
static FL_EXPORT void rgb2hsv(double, double, double,double&,double&,double&);
|
||||
FL_EXPORT Fl_Color_Chooser(int,int,int,int,const char* = 0);
|
||||
};
|
||||
|
||||
int fl_color_chooser(const char* name, double& r, double& g, double& b);
|
||||
int fl_color_chooser(const char* name, uchar& r, uchar& g, uchar& b);
|
||||
FL_EXPORT int fl_color_chooser(const char* name, double& r, double& g, double& b);
|
||||
FL_EXPORT int fl_color_chooser(const char* name, uchar& r, uchar& g, uchar& b);
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Color_Chooser.H,v 1.4 1999/01/07 19:16:52 mike Exp $".
|
||||
// End of "$Id: Fl_Color_Chooser.H,v 1.5 1999/02/16 21:59:36 mike Exp $".
|
||||
//
|
||||
|
||||
+9
-9
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Counter.H,v 1.4 1999/01/07 19:16:53 mike Exp $"
|
||||
// "$Id: Fl_Counter.H,v 1.5 1999/02/16 21:59:36 mike Exp $"
|
||||
//
|
||||
// Counter header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -41,19 +41,19 @@ class Fl_Counter : public Fl_Valuator {
|
||||
uchar textfont_, textsize_, textcolor_;
|
||||
double lstep_;
|
||||
uchar mouseobj;
|
||||
static void repeat_callback(void *);
|
||||
int calc_mouseobj();
|
||||
void increment_cb();
|
||||
static FL_EXPORT void repeat_callback(void *);
|
||||
FL_EXPORT int calc_mouseobj();
|
||||
FL_EXPORT void increment_cb();
|
||||
|
||||
protected:
|
||||
|
||||
void draw();
|
||||
FL_EXPORT void draw();
|
||||
|
||||
public:
|
||||
|
||||
int handle(int);
|
||||
Fl_Counter(int,int,int,int,const char * = 0);
|
||||
~Fl_Counter();
|
||||
FL_EXPORT int handle(int);
|
||||
FL_EXPORT Fl_Counter(int,int,int,int,const char * = 0);
|
||||
FL_EXPORT ~Fl_Counter();
|
||||
void lstep(double a) {lstep_ = a;}
|
||||
void step(double a,double b) {Fl_Valuator::step(a); lstep_ = b;}
|
||||
void step(double a) {Fl_Valuator::step(a);}
|
||||
@@ -69,5 +69,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Counter.H,v 1.4 1999/01/07 19:16:53 mike Exp $".
|
||||
// End of "$Id: Fl_Counter.H,v 1.5 1999/02/16 21:59:36 mike Exp $".
|
||||
//
|
||||
|
||||
+7
-7
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Dial.H,v 1.4 1999/01/07 19:16:53 mike Exp $"
|
||||
// "$Id: Fl_Dial.H,v 1.5 1999/02/16 21:59:37 mike Exp $"
|
||||
//
|
||||
// Dial header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -46,14 +46,14 @@ class Fl_Dial : public Fl_Valuator {
|
||||
protected:
|
||||
|
||||
// these allow subclasses to put the dial in a smaller area:
|
||||
void draw(int, int, int, int);
|
||||
int handle(int, int, int, int, int);
|
||||
void draw();
|
||||
FL_EXPORT void draw(int, int, int, int);
|
||||
FL_EXPORT int handle(int, int, int, int, int);
|
||||
FL_EXPORT void draw();
|
||||
|
||||
public:
|
||||
|
||||
int handle(int);
|
||||
Fl_Dial(int x,int y,int w,int h, const char *l = 0);
|
||||
FL_EXPORT int handle(int);
|
||||
FL_EXPORT Fl_Dial(int x,int y,int w,int h, const char *l = 0);
|
||||
void angles(short a, short b) {a1=a; a2=b;}
|
||||
void direction(uchar d) {direction_ = d;}
|
||||
uchar direction() const {return direction_;}
|
||||
@@ -63,5 +63,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Dial.H,v 1.4 1999/01/07 19:16:53 mike Exp $".
|
||||
// End of "$Id: Fl_Dial.H,v 1.5 1999/02/16 21:59:37 mike Exp $".
|
||||
//
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Double_Window.H,v 1.6 1999/01/07 19:16:53 mike Exp $"
|
||||
// "$Id: Fl_Double_Window.H,v 1.7 1999/02/16 21:59:37 mike Exp $"
|
||||
//
|
||||
// Double-buffered window header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -30,14 +30,14 @@
|
||||
|
||||
class Fl_Double_Window : public Fl_Window {
|
||||
protected:
|
||||
void flush(int eraseoverlay);
|
||||
FL_EXPORT void flush(int eraseoverlay);
|
||||
public:
|
||||
void show();
|
||||
FL_EXPORT void show();
|
||||
void show(int a, char **b) {Fl_Window::show(a,b);}
|
||||
void flush();
|
||||
void resize(int,int,int,int);
|
||||
void hide();
|
||||
~Fl_Double_Window();
|
||||
FL_EXPORT void flush();
|
||||
FL_EXPORT void resize(int,int,int,int);
|
||||
FL_EXPORT void hide();
|
||||
FL_EXPORT ~Fl_Double_Window();
|
||||
Fl_Double_Window(int W, int H, const char *l = 0) : Fl_Window(W,H,l) {}
|
||||
Fl_Double_Window(int X, int Y, int W, int H, const char *l = 0)
|
||||
: Fl_Window(X,Y,W,H,l) {}
|
||||
@@ -46,5 +46,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Double_Window.H,v 1.6 1999/01/07 19:16:53 mike Exp $".
|
||||
// End of "$Id: Fl_Double_Window.H,v 1.7 1999/02/16 21:59:37 mike Exp $".
|
||||
//
|
||||
|
||||
+5
-5
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_FormsBitmap.H,v 1.4 1999/01/07 19:16:54 mike Exp $"
|
||||
// "$Id: Fl_FormsBitmap.H,v 1.5 1999/02/16 21:59:37 mike Exp $"
|
||||
//
|
||||
// Forms bitmap header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -31,10 +31,10 @@
|
||||
class Fl_FormsBitmap : public Fl_Widget {
|
||||
Fl_Bitmap *b;
|
||||
protected:
|
||||
void draw();
|
||||
FL_EXPORT void draw();
|
||||
public:
|
||||
Fl_FormsBitmap(Fl_Boxtype, int, int, int, int, const char * = 0);
|
||||
void set(int W, int H, const uchar *bits);
|
||||
FL_EXPORT Fl_FormsBitmap(Fl_Boxtype, int, int, int, int, const char * = 0);
|
||||
FL_EXPORT void set(int W, int H, const uchar *bits);
|
||||
void bitmap(Fl_Bitmap *B) {b = B;}
|
||||
Fl_Bitmap *bitmap() const {return b;}
|
||||
};
|
||||
@@ -42,5 +42,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_FormsBitmap.H,v 1.4 1999/01/07 19:16:54 mike Exp $".
|
||||
// End of "$Id: Fl_FormsBitmap.H,v 1.5 1999/02/16 21:59:37 mike Exp $".
|
||||
//
|
||||
|
||||
+5
-5
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_FormsPixmap.H,v 1.4 1999/01/07 19:16:54 mike Exp $"
|
||||
// "$Id: Fl_FormsPixmap.H,v 1.5 1999/02/16 21:59:37 mike Exp $"
|
||||
//
|
||||
// Forms pixmap header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -31,10 +31,10 @@
|
||||
class Fl_FormsPixmap : public Fl_Widget {
|
||||
Fl_Pixmap *b;
|
||||
protected:
|
||||
void draw();
|
||||
FL_EXPORT void draw();
|
||||
public:
|
||||
Fl_FormsPixmap(Fl_Boxtype, int, int, int, int, const char * = 0);
|
||||
void set(/*const*/char * const * bits);
|
||||
FL_EXPORT Fl_FormsPixmap(Fl_Boxtype, int, int, int, int, const char * = 0);
|
||||
FL_EXPORT void set(/*const*/char * const * bits);
|
||||
void Pixmap(Fl_Pixmap *B) {b = B;}
|
||||
Fl_Pixmap *Pixmap() const {return b;}
|
||||
};
|
||||
@@ -42,5 +42,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_FormsPixmap.H,v 1.4 1999/01/07 19:16:54 mike Exp $".
|
||||
// End of "$Id: Fl_FormsPixmap.H,v 1.5 1999/02/16 21:59:37 mike Exp $".
|
||||
//
|
||||
|
||||
+7
-7
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Free.H,v 1.4 1999/01/07 19:16:54 mike Exp $"
|
||||
// "$Id: Fl_Free.H,v 1.5 1999/02/16 21:59:37 mike Exp $"
|
||||
//
|
||||
// Forms free header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -40,12 +40,12 @@ typedef int (*FL_HANDLEPTR)(Fl_Widget *, int , float, float, char);
|
||||
|
||||
class Fl_Free : public Fl_Widget {
|
||||
FL_HANDLEPTR hfunc;
|
||||
static void step(void *);
|
||||
void draw();
|
||||
int handle(int);
|
||||
static FL_EXPORT void step(void *);
|
||||
FL_EXPORT void draw();
|
||||
FL_EXPORT int handle(int);
|
||||
public:
|
||||
Fl_Free(uchar t,int x,int y,int w,int h,const char *l,FL_HANDLEPTR hdl);
|
||||
~Fl_Free();
|
||||
FL_EXPORT Fl_Free(uchar t,int x,int y,int w,int h,const char *l,FL_HANDLEPTR hdl);
|
||||
FL_EXPORT ~Fl_Free();
|
||||
};
|
||||
|
||||
// old event names for compatability:
|
||||
@@ -59,5 +59,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Free.H,v 1.4 1999/01/07 19:16:54 mike Exp $".
|
||||
// End of "$Id: Fl_Free.H,v 1.5 1999/02/16 21:59:37 mike Exp $".
|
||||
//
|
||||
|
||||
+20
-20
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Gl_Window.H,v 1.6 1999/01/07 19:16:54 mike Exp $"
|
||||
// "$Id: Fl_Gl_Window.H,v 1.7 1999/02/16 21:59:38 mike Exp $"
|
||||
//
|
||||
// OpenGL header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -37,27 +37,27 @@ class Fl_Gl_Window : public Fl_Window {
|
||||
void * context; // actually a GLXContext
|
||||
char valid_;
|
||||
char damage1_; // damage() of back buffer
|
||||
virtual void draw_overlay();
|
||||
void init();
|
||||
virtual FL_EXPORT void draw_overlay();
|
||||
FL_EXPORT void init();
|
||||
|
||||
void *overlay;
|
||||
void make_overlay();
|
||||
FL_EXPORT void make_overlay();
|
||||
friend class _Fl_Gl_Overlay;
|
||||
|
||||
static int can_do(int, const int *);
|
||||
int mode(int, const int *);
|
||||
static FL_EXPORT int can_do(int, const int *);
|
||||
FL_EXPORT int mode(int, const int *);
|
||||
|
||||
public:
|
||||
|
||||
void show();
|
||||
FL_EXPORT void show();
|
||||
void show(int a, char **b) {Fl_Window::show(a,b);}
|
||||
void flush();
|
||||
void hide();
|
||||
void resize(int,int,int,int);
|
||||
FL_EXPORT void flush();
|
||||
FL_EXPORT void hide();
|
||||
FL_EXPORT void resize(int,int,int,int);
|
||||
|
||||
char valid() const {return valid_;}
|
||||
void valid(char i) {valid_ = i;}
|
||||
void invalidate();
|
||||
FL_EXPORT void invalidate();
|
||||
|
||||
static int can_do(int i) {return can_do(i,0);}
|
||||
static int can_do(const int *i) {return can_do(0, i);}
|
||||
@@ -66,16 +66,16 @@ public:
|
||||
int mode(int a) {return mode(a,0);}
|
||||
int mode(const int *a) {return mode(0, a);}
|
||||
|
||||
int can_do_overlay();
|
||||
void redraw_overlay();
|
||||
void hide_overlay();
|
||||
FL_EXPORT int can_do_overlay();
|
||||
FL_EXPORT void redraw_overlay();
|
||||
FL_EXPORT void hide_overlay();
|
||||
|
||||
void make_current();
|
||||
void make_overlay_current();
|
||||
void swap_buffers();
|
||||
void ortho();
|
||||
FL_EXPORT void make_current();
|
||||
FL_EXPORT void make_overlay_current();
|
||||
FL_EXPORT void swap_buffers();
|
||||
FL_EXPORT void ortho();
|
||||
|
||||
~Fl_Gl_Window();
|
||||
FL_EXPORT ~Fl_Gl_Window();
|
||||
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_Window(X,Y,W,H,l) {init();}
|
||||
@@ -84,5 +84,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Gl_Window.H,v 1.6 1999/01/07 19:16:54 mike Exp $".
|
||||
// End of "$Id: Fl_Gl_Window.H,v 1.7 1999/02/16 21:59:38 mike Exp $".
|
||||
//
|
||||
|
||||
+21
-21
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Group.H,v 1.5 1999/01/26 21:37:13 mike Exp $"
|
||||
// "$Id: Fl_Group.H,v 1.6 1999/02/16 21:59:38 mike Exp $"
|
||||
//
|
||||
// Group header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -38,17 +38,17 @@ class Fl_Group : public Fl_Widget {
|
||||
int children_;
|
||||
short *sizes_; // remembered initial sizes of children
|
||||
|
||||
int navigation(int);
|
||||
static Fl_Group *current_;
|
||||
FL_EXPORT int navigation(int);
|
||||
static FL_EXPORT Fl_Group *current_;
|
||||
|
||||
protected:
|
||||
|
||||
void draw();
|
||||
int handle(int);
|
||||
void draw_child(Fl_Widget&) const;
|
||||
void update_child(Fl_Widget&) const;
|
||||
void draw_outside_label(const Fl_Widget&) const ;
|
||||
short* sizes();
|
||||
FL_EXPORT void draw();
|
||||
FL_EXPORT int handle(int);
|
||||
FL_EXPORT void draw_child(Fl_Widget&) const;
|
||||
FL_EXPORT void update_child(Fl_Widget&) const;
|
||||
FL_EXPORT void draw_outside_label(const Fl_Widget&) const ;
|
||||
FL_EXPORT short* sizes();
|
||||
|
||||
public:
|
||||
|
||||
@@ -59,31 +59,31 @@ public:
|
||||
|
||||
int children() const {return children_;}
|
||||
Fl_Widget* child(int n) const {return array()[n];}
|
||||
int find(const Fl_Widget*) const;
|
||||
FL_EXPORT int find(const Fl_Widget*) const;
|
||||
int find(const Fl_Widget& o) const {return find(&o);}
|
||||
Fl_Widget* const* array() const;
|
||||
FL_EXPORT Fl_Widget* const* array() const;
|
||||
|
||||
void resize(int,int,int,int);
|
||||
Fl_Group(int,int,int,int, const char * = 0);
|
||||
virtual ~Fl_Group();
|
||||
void add(Fl_Widget&);
|
||||
FL_EXPORT void resize(int,int,int,int);
|
||||
FL_EXPORT Fl_Group(int,int,int,int, const char * = 0);
|
||||
FL_EXPORT virtual ~Fl_Group();
|
||||
FL_EXPORT void add(Fl_Widget&);
|
||||
void add(Fl_Widget* o) {add(*o);}
|
||||
void insert(Fl_Widget&, int i);
|
||||
FL_EXPORT void insert(Fl_Widget&, int i);
|
||||
void insert(Fl_Widget& o, Fl_Widget* before) {insert(o,find(before));}
|
||||
void remove(Fl_Widget&);
|
||||
FL_EXPORT void remove(Fl_Widget&);
|
||||
void remove(Fl_Widget* o) {remove(*o);}
|
||||
void clear();
|
||||
FL_EXPORT void clear();
|
||||
|
||||
void resizable(Fl_Widget& o) {resizable_ = &o;}
|
||||
void resizable(Fl_Widget* o) {resizable_ = o;}
|
||||
Fl_Widget* resizable() const {return resizable_;}
|
||||
void add_resizable(Fl_Widget& o) {resizable_ = &o; add(o);}
|
||||
void init_sizes();
|
||||
FL_EXPORT void init_sizes();
|
||||
|
||||
// back compatability function:
|
||||
void focus(Fl_Widget* o) {o->take_focus();}
|
||||
Fl_Widget* & _ddfdesign_kludge() {return resizable_;}
|
||||
void forms_end();
|
||||
FL_EXPORT void forms_end();
|
||||
};
|
||||
|
||||
// dummy class used to end child groups in constructors for complex
|
||||
@@ -96,5 +96,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Group.H,v 1.5 1999/01/26 21:37:13 mike Exp $".
|
||||
// End of "$Id: Fl_Group.H,v 1.6 1999/02/16 21:59:38 mike Exp $".
|
||||
//
|
||||
|
||||
+8
-8
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Image.H,v 1.4 1999/01/07 19:16:56 mike Exp $"
|
||||
// "$Id: Fl_Image.H,v 1.5 1999/02/16 21:59:38 mike Exp $"
|
||||
//
|
||||
// Image header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -33,17 +33,17 @@ struct Fl_Image {
|
||||
const uchar *array;
|
||||
int w, h, d, ld;
|
||||
ulong id; // for internal use
|
||||
Fl_Image(const uchar *bits, int W, int H, int D=3, int LD=0) :
|
||||
FL_EXPORT Fl_Image(const uchar *bits, int W, int H, int D=3, int LD=0) :
|
||||
array(bits), w(W), h(H), d(D), ld(LD), id(0) {}
|
||||
~Fl_Image();
|
||||
void label(Fl_Widget*);
|
||||
void label(Fl_Menu_Item*);
|
||||
void draw(int X, int Y, int W, int H, int cx=0, int cy=0);
|
||||
void draw(int X, int Y) {draw(X, Y, w, h, 0, 0);}
|
||||
FL_EXPORT ~Fl_Image();
|
||||
FL_EXPORT void label(Fl_Widget*);
|
||||
FL_EXPORT void label(Fl_Menu_Item*);
|
||||
FL_EXPORT void draw(int X, int Y, int W, int H, int cx=0, int cy=0);
|
||||
FL_EXPORT void draw(int X, int Y) {draw(X, Y, w, h, 0, 0);}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Image.H,v 1.4 1999/01/07 19:16:56 mike Exp $".
|
||||
// End of "$Id: Fl_Image.H,v 1.5 1999/02/16 21:59:38 mike Exp $".
|
||||
//
|
||||
|
||||
+9
-9
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Input.H,v 1.4 1999/01/07 19:16:56 mike Exp $"
|
||||
// "$Id: Fl_Input.H,v 1.5 1999/02/16 21:59:38 mike Exp $"
|
||||
//
|
||||
// Input header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -29,18 +29,18 @@
|
||||
#include "Fl_Input_.H"
|
||||
|
||||
class Fl_Input : public Fl_Input_ {
|
||||
int handle_key();
|
||||
int shift_position(int p);
|
||||
int shift_up_down_position(int p);
|
||||
void handle_mouse(int keepmark=0);
|
||||
FL_EXPORT int handle_key();
|
||||
FL_EXPORT int shift_position(int p);
|
||||
FL_EXPORT int shift_up_down_position(int p);
|
||||
FL_EXPORT void handle_mouse(int keepmark=0);
|
||||
public:
|
||||
void draw();
|
||||
int handle(int);
|
||||
Fl_Input(int,int,int,int,const char * = 0);
|
||||
FL_EXPORT void draw();
|
||||
FL_EXPORT int handle(int);
|
||||
FL_EXPORT Fl_Input(int,int,int,int,const char * = 0);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Input.H,v 1.4 1999/01/07 19:16:56 mike Exp $".
|
||||
// End of "$Id: Fl_Input.H,v 1.5 1999/02/16 21:59:38 mike Exp $".
|
||||
//
|
||||
|
||||
+27
-27
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Input_.H,v 1.5 1999/01/07 19:16:56 mike Exp $"
|
||||
// "$Id: Fl_Input_.H,v 1.6 1999/02/16 21:59:38 mike Exp $"
|
||||
//
|
||||
// Input base class header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -56,37 +56,37 @@ class Fl_Input_ : public Fl_Widget {
|
||||
uchar cursor_color_;
|
||||
uchar erase_cursor_only;
|
||||
|
||||
const char* expand(const char*, char*) const;
|
||||
double expandpos(const char*, const char*, const char*, int*) const;
|
||||
void minimal_update(int, int);
|
||||
void minimal_update(int p);
|
||||
void put_in_buffer(int newsize);
|
||||
FL_EXPORT const char* expand(const char*, char*) const;
|
||||
FL_EXPORT double expandpos(const char*, const char*, const char*, int*) const;
|
||||
FL_EXPORT void minimal_update(int, int);
|
||||
FL_EXPORT void minimal_update(int p);
|
||||
FL_EXPORT void put_in_buffer(int newsize);
|
||||
|
||||
void setfont() const;
|
||||
FL_EXPORT void setfont() const;
|
||||
|
||||
protected:
|
||||
|
||||
int wordboundary(int i) const;
|
||||
int lineboundary(int i) const;
|
||||
void drawtext(int, int, int, int);
|
||||
int up_down_position(int, int keepmark=0);
|
||||
void handle_mouse(int, int, int, int, int keepmark=0);
|
||||
int handletext(int e, int, int, int, int);
|
||||
void maybe_do_callback();
|
||||
FL_EXPORT int wordboundary(int i) const;
|
||||
FL_EXPORT int lineboundary(int i) const;
|
||||
FL_EXPORT void drawtext(int, int, int, int);
|
||||
FL_EXPORT int up_down_position(int, int keepmark=0);
|
||||
FL_EXPORT void handle_mouse(int, int, int, int, int keepmark=0);
|
||||
FL_EXPORT int handletext(int e, int, int, int, int);
|
||||
FL_EXPORT void maybe_do_callback();
|
||||
int xscroll() const {return xscroll_;}
|
||||
int yscroll() const {return yscroll_;}
|
||||
|
||||
public:
|
||||
|
||||
void resize(int, int, int, int);
|
||||
FL_EXPORT void resize(int, int, int, int);
|
||||
|
||||
Fl_Input_(int, int, int, int, const char* = 0);
|
||||
~Fl_Input_();
|
||||
FL_EXPORT Fl_Input_(int, int, int, int, const char* = 0);
|
||||
FL_EXPORT ~Fl_Input_();
|
||||
|
||||
int value(const char*);
|
||||
int value(const char*, int);
|
||||
int static_value(const char*);
|
||||
int static_value(const char*, int);
|
||||
FL_EXPORT int value(const char*);
|
||||
FL_EXPORT int value(const char*, int);
|
||||
FL_EXPORT int static_value(const char*);
|
||||
FL_EXPORT int static_value(const char*, int);
|
||||
const char* value() const {return value_;}
|
||||
char index(int i) const {return value_[i];}
|
||||
int size() const {return size_;}
|
||||
@@ -95,17 +95,17 @@ public:
|
||||
|
||||
int position() const {return position_;}
|
||||
int mark() const {return mark_;}
|
||||
int position(int p, int m);
|
||||
FL_EXPORT int position(int p, int m);
|
||||
int position(int p) {return position(p, p);}
|
||||
int mark(int m) {return position(position(), m);}
|
||||
int replace(int, int, const char*, int=0);
|
||||
FL_EXPORT int replace(int, int, const char*, int=0);
|
||||
int cut() {return replace(position(), mark(), 0);}
|
||||
int cut(int n) {return replace(position(), position()+n, 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 copy();
|
||||
int undo();
|
||||
int copy_cuts();
|
||||
FL_EXPORT int copy();
|
||||
FL_EXPORT int undo();
|
||||
FL_EXPORT int copy_cuts();
|
||||
|
||||
Fl_Font textfont() const {return (Fl_Font)textfont_;}
|
||||
void textfont(uchar s) {textfont_ = s;}
|
||||
@@ -120,5 +120,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Input_.H,v 1.5 1999/01/07 19:16:56 mike Exp $".
|
||||
// End of "$Id: Fl_Input_.H,v 1.6 1999/02/16 21:59:38 mike Exp $".
|
||||
//
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Light_Button.H,v 1.4 1999/01/07 19:16:56 mike Exp $"
|
||||
// "$Id: Fl_Light_Button.H,v 1.5 1999/02/16 21:59:39 mike Exp $"
|
||||
//
|
||||
// Lighted button header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -30,14 +30,14 @@
|
||||
|
||||
class Fl_Light_Button : public Fl_Button {
|
||||
protected:
|
||||
virtual void draw();
|
||||
virtual FL_EXPORT void draw();
|
||||
public:
|
||||
virtual int handle(int);
|
||||
Fl_Light_Button(int x,int y,int w,int h,const char *l = 0);
|
||||
virtual FL_EXPORT int handle(int);
|
||||
FL_EXPORT Fl_Light_Button(int x,int y,int w,int h,const char *l = 0);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Light_Button.H,v 1.4 1999/01/07 19:16:56 mike Exp $".
|
||||
// End of "$Id: Fl_Light_Button.H,v 1.5 1999/02/16 21:59:39 mike Exp $".
|
||||
//
|
||||
|
||||
+15
-15
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Menu_.H,v 1.6 1999/02/03 08:43:30 bill Exp $"
|
||||
// "$Id: Fl_Menu_.H,v 1.7 1999/02/16 21:59:39 mike Exp $"
|
||||
//
|
||||
// Menu base class header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -38,7 +38,7 @@ class Fl_Menu_ : public Fl_Widget {
|
||||
|
||||
protected:
|
||||
|
||||
const Fl_Menu_Item* picked(const Fl_Menu_Item*);
|
||||
FL_EXPORT const Fl_Menu_Item* picked(const Fl_Menu_Item*);
|
||||
uchar down_box_;
|
||||
uchar textfont_;
|
||||
uchar textsize_;
|
||||
@@ -47,30 +47,30 @@ protected:
|
||||
|
||||
public:
|
||||
|
||||
Fl_Menu_(int,int,int,int,const char * =0);
|
||||
~Fl_Menu_();
|
||||
FL_EXPORT Fl_Menu_(int,int,int,int,const char * =0);
|
||||
FL_EXPORT ~Fl_Menu_();
|
||||
|
||||
const Fl_Menu_Item* test_shortcut() {return picked(menu()->test_shortcut());}
|
||||
void global();
|
||||
FL_EXPORT void global();
|
||||
|
||||
const Fl_Menu_Item *menu() const {return menu_;}
|
||||
void menu(const Fl_Menu_Item *m);
|
||||
void copy(const Fl_Menu_Item *m, void* user_data = 0);
|
||||
int add(const char*, int shortcut, Fl_Callback*, void* = 0, int = 0);
|
||||
FL_EXPORT void menu(const Fl_Menu_Item *m);
|
||||
FL_EXPORT 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* a, const char* b, Fl_Callback* c,
|
||||
void* d = 0, int e = 0) {return add(a,fl_old_shortcut(b),c,d,e);}
|
||||
int size() const ;
|
||||
void clear();
|
||||
int add(const char *);
|
||||
void replace(int,const char *);
|
||||
void remove(int);
|
||||
FL_EXPORT int size() const ;
|
||||
FL_EXPORT void clear();
|
||||
FL_EXPORT int add(const char *);
|
||||
FL_EXPORT void replace(int,const char *);
|
||||
FL_EXPORT void remove(int);
|
||||
void shortcut(int i, int s) {menu_[i].shortcut(s);}
|
||||
void mode(int i,int x) {menu_[i].flags = x;}
|
||||
int mode(int i) const {return menu_[i].flags;}
|
||||
|
||||
const Fl_Menu_Item *mvalue() const {return value_;}
|
||||
int value() const {return value_-menu_;}
|
||||
int value(const Fl_Menu_Item*);
|
||||
FL_EXPORT int value(const Fl_Menu_Item*);
|
||||
int value(int i) {return value(menu_+i);}
|
||||
const char *text() const {return value_ ? value_->text : 0;}
|
||||
const char *text(int i) const {return menu_[i].text;}
|
||||
@@ -93,5 +93,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Menu_.H,v 1.6 1999/02/03 08:43:30 bill Exp $".
|
||||
// End of "$Id: Fl_Menu_.H,v 1.7 1999/02/16 21:59:39 mike Exp $".
|
||||
//
|
||||
|
||||
+4
-4
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Menu_Bar.H,v 1.4 1999/01/07 19:16:57 mike Exp $"
|
||||
// "$Id: Fl_Menu_Bar.H,v 1.5 1999/02/16 21:59:39 mike Exp $"
|
||||
//
|
||||
// Menu bar header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -30,8 +30,8 @@
|
||||
|
||||
class Fl_Menu_Bar : public Fl_Menu_ {
|
||||
protected:
|
||||
int handle(int);
|
||||
void draw();
|
||||
FL_EXPORT int handle(int);
|
||||
FL_EXPORT void draw();
|
||||
public:
|
||||
Fl_Menu_Bar(int x,int y,int w,int h,const char *l=0)
|
||||
: Fl_Menu_(x,y,w,h,l) {}
|
||||
@@ -40,5 +40,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Menu_Bar.H,v 1.4 1999/01/07 19:16:57 mike Exp $".
|
||||
// End of "$Id: Fl_Menu_Bar.H,v 1.5 1999/02/16 21:59:39 mike Exp $".
|
||||
//
|
||||
|
||||
+6
-6
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Menu_Button.H,v 1.4 1999/01/07 19:16:57 mike Exp $"
|
||||
// "$Id: Fl_Menu_Button.H,v 1.5 1999/02/16 21:59:40 mike Exp $"
|
||||
//
|
||||
// Menu button header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -30,17 +30,17 @@
|
||||
|
||||
class Fl_Menu_Button : public Fl_Menu_ {
|
||||
protected:
|
||||
void draw();
|
||||
FL_EXPORT void draw();
|
||||
public:
|
||||
// values for type:
|
||||
enum {POPUP1 = 1, POPUP2, POPUP12, POPUP3, POPUP13, POPUP23, POPUP123};
|
||||
int handle(int);
|
||||
const Fl_Menu_Item* popup();
|
||||
Fl_Menu_Button(int,int,int,int,const char * =0);
|
||||
FL_EXPORT int handle(int);
|
||||
FL_EXPORT const Fl_Menu_Item* popup();
|
||||
FL_EXPORT Fl_Menu_Button(int,int,int,int,const char * =0);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Menu_Button.H,v 1.4 1999/01/07 19:16:57 mike Exp $".
|
||||
// End of "$Id: Fl_Menu_Button.H,v 1.5 1999/02/16 21:59:40 mike Exp $".
|
||||
//
|
||||
|
||||
+13
-13
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Menu_Item.H,v 1.4 1999/01/07 19:16:58 mike Exp $"
|
||||
// "$Id: Fl_Menu_Item.H,v 1.5 1999/02/16 21:59:40 mike Exp $"
|
||||
//
|
||||
// Menu item header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -43,7 +43,7 @@ enum { // values for flags:
|
||||
FL_MENU_HORIZONTAL = 0x100
|
||||
};
|
||||
|
||||
extern int fl_old_shortcut(const char*);
|
||||
extern FL_EXPORT int fl_old_shortcut(const char*);
|
||||
|
||||
class Fl_Menu_;
|
||||
|
||||
@@ -59,7 +59,7 @@ struct Fl_Menu_Item {
|
||||
uchar labelcolor_;
|
||||
|
||||
// advance N items, skipping submenus:
|
||||
const Fl_Menu_Item *next(int=1) const;
|
||||
FL_EXPORT const Fl_Menu_Item *next(int=1) const;
|
||||
Fl_Menu_Item *next(int i=1) {
|
||||
return (Fl_Menu_Item*)(((const Fl_Menu_Item*)this)->next(i));}
|
||||
|
||||
@@ -92,7 +92,7 @@ struct Fl_Menu_Item {
|
||||
int value() const {return flags&FL_MENU_VALUE;}
|
||||
void set() {flags |= FL_MENU_VALUE;}
|
||||
void clear() {flags &= ~FL_MENU_VALUE;}
|
||||
void setonly();
|
||||
FL_EXPORT void setonly();
|
||||
int visible() const {return !(flags&FL_MENU_INVISIBLE);}
|
||||
void show() {flags &= ~FL_MENU_INVISIBLE;}
|
||||
void hide() {flags |= FL_MENU_INVISIBLE;}
|
||||
@@ -102,23 +102,23 @@ struct Fl_Menu_Item {
|
||||
int activevisible() const {return !(flags&0x11);}
|
||||
|
||||
// used by menubar:
|
||||
int measure(int* h, const Fl_Menu_*) const;
|
||||
void draw(int x, int y, int w, int h, const Fl_Menu_*, int t=0) const;
|
||||
FL_EXPORT 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;
|
||||
|
||||
// popup menus without using an Fl_Menu_ widget:
|
||||
const Fl_Menu_Item* popup(
|
||||
FL_EXPORT const Fl_Menu_Item* popup(
|
||||
int X, int Y,
|
||||
const char *title = 0,
|
||||
const Fl_Menu_Item* picked=0,
|
||||
const Fl_Menu_* = 0) const;
|
||||
const Fl_Menu_Item* pulldown(
|
||||
FL_EXPORT const Fl_Menu_Item* pulldown(
|
||||
int X, int Y, int W, int H,
|
||||
const Fl_Menu_Item* picked = 0,
|
||||
const Fl_Menu_* = 0,
|
||||
const Fl_Menu_Item* title = 0,
|
||||
int menubar=0) const;
|
||||
const Fl_Menu_Item* test_shortcut() const;
|
||||
const Fl_Menu_Item* find_shortcut(int *ip=0) const;
|
||||
FL_EXPORT const Fl_Menu_Item* test_shortcut() const;
|
||||
FL_EXPORT 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,void* arg) const {callback_(o, arg);}
|
||||
@@ -128,11 +128,11 @@ struct Fl_Menu_Item {
|
||||
int checked() const {return flags&FL_MENU_VALUE;}
|
||||
void check() {flags |= FL_MENU_VALUE;}
|
||||
void uncheck() {flags &= ~FL_MENU_VALUE;}
|
||||
int add(const char*, int shortcut, Fl_Callback*, void* =0, int = 0);
|
||||
FL_EXPORT int add(const char*, int shortcut, Fl_Callback*, void* =0, int = 0);
|
||||
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);}
|
||||
int size() const ;
|
||||
FL_EXPORT int size() const ;
|
||||
};
|
||||
|
||||
typedef Fl_Menu_Item Fl_Menu; // back compatability
|
||||
@@ -153,5 +153,5 @@ enum { // back-compatability enum:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Menu_Item.H,v 1.4 1999/01/07 19:16:58 mike Exp $".
|
||||
// End of "$Id: Fl_Menu_Item.H,v 1.5 1999/02/16 21:59:40 mike Exp $".
|
||||
//
|
||||
|
||||
+7
-7
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Menu_Window.H,v 1.4 1999/01/07 19:16:58 mike Exp $"
|
||||
// "$Id: Fl_Menu_Window.H,v 1.5 1999/02/16 21:59:40 mike Exp $"
|
||||
//
|
||||
// Menu window header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -31,14 +31,14 @@
|
||||
class Fl_Menu_Window : public Fl_Single_Window {
|
||||
enum {NO_OVERLAY = 128};
|
||||
public:
|
||||
void show();
|
||||
void erase();
|
||||
void flush();
|
||||
void hide();
|
||||
FL_EXPORT void show();
|
||||
FL_EXPORT void erase();
|
||||
FL_EXPORT void flush();
|
||||
FL_EXPORT void hide();
|
||||
int overlay() {return !(flags()&NO_OVERLAY);}
|
||||
void set_overlay() {clear_flag(NO_OVERLAY);}
|
||||
void clear_overlay() {set_flag(NO_OVERLAY);}
|
||||
~Fl_Menu_Window();
|
||||
FL_EXPORT ~Fl_Menu_Window();
|
||||
Fl_Menu_Window(int W, int H, const char *l = 0)
|
||||
: Fl_Single_Window(W,H,l) {}
|
||||
Fl_Menu_Window(int X, int Y, int W, int H, const char *l = 0)
|
||||
@@ -48,5 +48,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Menu_Window.H,v 1.4 1999/01/07 19:16:58 mike Exp $".
|
||||
// End of "$Id: Fl_Menu_Window.H,v 1.5 1999/02/16 21:59:40 mike Exp $".
|
||||
//
|
||||
|
||||
+4
-4
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Multi_Label.H,v 1.4 1999/01/07 19:16:58 mike Exp $"
|
||||
// "$Id: Fl_Multi_Label.H,v 1.5 1999/02/16 21:59:40 mike Exp $"
|
||||
//
|
||||
// Multi-label header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -34,12 +34,12 @@ struct Fl_Multi_Label {
|
||||
const char* labelb;
|
||||
uchar typea;
|
||||
uchar typeb;
|
||||
void label(Fl_Widget*);
|
||||
void label(Fl_Menu_Item*);
|
||||
FL_EXPORT void label(Fl_Widget*);
|
||||
FL_EXPORT void label(Fl_Menu_Item*);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Multi_Label.H,v 1.4 1999/01/07 19:16:58 mike Exp $".
|
||||
// End of "$Id: Fl_Multi_Label.H,v 1.5 1999/02/16 21:59:40 mike Exp $".
|
||||
//
|
||||
|
||||
+4
-4
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Output.H,v 1.4 1999/01/07 19:16:59 mike Exp $"
|
||||
// "$Id: Fl_Output.H,v 1.5 1999/02/16 21:59:41 mike Exp $"
|
||||
//
|
||||
// Output header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -30,9 +30,9 @@
|
||||
|
||||
class Fl_Output : public Fl_Input_ {
|
||||
protected:
|
||||
void draw();
|
||||
FL_EXPORT void draw();
|
||||
public:
|
||||
int handle(int);
|
||||
FL_EXPORT int handle(int);
|
||||
Fl_Output(int x, int y, int w, int h, const char *l = 0)
|
||||
: Fl_Input_(x, y, w, h, l) {}
|
||||
};
|
||||
@@ -40,5 +40,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Output.H,v 1.4 1999/01/07 19:16:59 mike Exp $".
|
||||
// End of "$Id: Fl_Output.H,v 1.5 1999/02/16 21:59:41 mike Exp $".
|
||||
//
|
||||
|
||||
+10
-10
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Overlay_Window.H,v 1.4 1999/01/07 19:16:59 mike Exp $"
|
||||
// "$Id: Fl_Overlay_Window.H,v 1.5 1999/02/16 21:59:41 mike Exp $"
|
||||
//
|
||||
// Overlay window header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -30,16 +30,16 @@
|
||||
|
||||
class Fl_Overlay_Window : public Fl_Double_Window {
|
||||
friend class _Fl_Overlay;
|
||||
virtual void draw_overlay() = 0;
|
||||
virtual FL_EXPORT void draw_overlay() = 0;
|
||||
Fl_Window *overlay_;
|
||||
public:
|
||||
void show();
|
||||
void flush();
|
||||
void hide();
|
||||
void resize(int,int,int,int);
|
||||
~Fl_Overlay_Window();
|
||||
int can_do_overlay();
|
||||
void redraw_overlay();
|
||||
FL_EXPORT void show();
|
||||
FL_EXPORT void flush();
|
||||
FL_EXPORT void hide();
|
||||
FL_EXPORT void resize(int,int,int,int);
|
||||
FL_EXPORT ~Fl_Overlay_Window();
|
||||
FL_EXPORT int can_do_overlay();
|
||||
FL_EXPORT void redraw_overlay();
|
||||
Fl_Overlay_Window(int W, int H, const char *l=0)
|
||||
: Fl_Double_Window(W,H,l) {overlay_ = 0;}
|
||||
Fl_Overlay_Window(int X, int Y, int W, int H, const char *l=0)
|
||||
@@ -50,5 +50,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Overlay_Window.H,v 1.4 1999/01/07 19:16:59 mike Exp $".
|
||||
// End of "$Id: Fl_Overlay_Window.H,v 1.5 1999/02/16 21:59:41 mike Exp $".
|
||||
//
|
||||
|
||||
+4
-4
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Pack.H,v 1.4 1999/01/07 19:16:59 mike Exp $"
|
||||
// "$Id: Fl_Pack.H,v 1.5 1999/02/16 21:59:41 mike Exp $"
|
||||
//
|
||||
// Pack header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -35,8 +35,8 @@ public:
|
||||
VERTICAL = 0,
|
||||
HORIZONTAL = 1
|
||||
};
|
||||
void draw();
|
||||
Fl_Pack(int x,int y,int w ,int h,const char *l = 0);
|
||||
FL_EXPORT void draw();
|
||||
FL_EXPORT Fl_Pack(int x,int y,int w ,int h,const char *l = 0);
|
||||
int spacing() const {return spacing_;}
|
||||
void spacing(int i) {spacing_ = i;}
|
||||
uchar horizontal() const {return type();}
|
||||
@@ -45,5 +45,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Pack.H,v 1.4 1999/01/07 19:16:59 mike Exp $".
|
||||
// End of "$Id: Fl_Pack.H,v 1.5 1999/02/16 21:59:41 mike Exp $".
|
||||
//
|
||||
|
||||
+6
-6
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Pixmap.H,v 1.5 1999/01/07 19:17:00 mike Exp $"
|
||||
// "$Id: Fl_Pixmap.H,v 1.6 1999/02/16 21:59:41 mike Exp $"
|
||||
//
|
||||
// Pixmap header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -36,15 +36,15 @@ struct Fl_Pixmap {
|
||||
ulong mask; // for internal use (mask bitmap)
|
||||
Fl_Pixmap(/*const*/char * const * d) : data(d), w(-1), h(0), id(0),mask(0) {}
|
||||
Fl_Pixmap(/*const*/uchar* const * d) : data((char**)d), w(-1), h(0), id(0),mask(0) {}
|
||||
~Fl_Pixmap();
|
||||
void label(Fl_Widget*);
|
||||
void label(Fl_Menu_Item*);
|
||||
void draw(int X, int Y, int W, int H, int cx=0, int cy=0);
|
||||
FL_EXPORT ~Fl_Pixmap();
|
||||
FL_EXPORT void label(Fl_Widget*);
|
||||
FL_EXPORT void label(Fl_Menu_Item*);
|
||||
FL_EXPORT void draw(int X, int Y, int W, int H, int cx=0, int cy=0);
|
||||
void draw(int X, int Y) {draw(X, Y, w, h, 0, 0);}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Pixmap.H,v 1.5 1999/01/07 19:17:00 mike Exp $".
|
||||
// End of "$Id: Fl_Pixmap.H,v 1.6 1999/02/16 21:59:41 mike Exp $".
|
||||
//
|
||||
|
||||
+12
-12
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Positioner.H,v 1.4 1999/01/07 19:17:00 mike Exp $"
|
||||
// "$Id: Fl_Positioner.H,v 1.5 1999/02/16 21:59:42 mike Exp $"
|
||||
//
|
||||
// Positioner header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -40,25 +40,25 @@ class Fl_Positioner : public Fl_Widget {
|
||||
protected:
|
||||
|
||||
// these allow subclasses to put the dial in a smaller area:
|
||||
void draw(int, int, int, int);
|
||||
int handle(int, int, int, int, int);
|
||||
void draw();
|
||||
FL_EXPORT void draw(int, int, int, int);
|
||||
FL_EXPORT int handle(int, int, int, int, int);
|
||||
FL_EXPORT void draw();
|
||||
|
||||
public:
|
||||
|
||||
int handle(int);
|
||||
Fl_Positioner(int x,int y,int w,int h, const char *l=0);
|
||||
FL_EXPORT int handle(int);
|
||||
FL_EXPORT Fl_Positioner(int x,int y,int w,int h, const char *l=0);
|
||||
double xvalue() const {return xvalue_;}
|
||||
double yvalue() const {return yvalue_;}
|
||||
int xvalue(double);
|
||||
int yvalue(double);
|
||||
int value(double,double);
|
||||
void xbounds(double, double);
|
||||
FL_EXPORT int xvalue(double);
|
||||
FL_EXPORT int yvalue(double);
|
||||
FL_EXPORT int value(double,double);
|
||||
FL_EXPORT void xbounds(double, double);
|
||||
double xminimum() const {return xmin;}
|
||||
void xminimum(double a) {xbounds(a,xmax);}
|
||||
double xmaximum() const {return xmax;}
|
||||
void xmaximum(double a) {xbounds(xmin,a);}
|
||||
void ybounds(double, double);
|
||||
FL_EXPORT void ybounds(double, double);
|
||||
double yminimum() const {return ymin;}
|
||||
void yminimum(double a) {ybounds(a,ymax);}
|
||||
double ymaximum() const {return ymax;}
|
||||
@@ -71,5 +71,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Positioner.H,v 1.4 1999/01/07 19:17:00 mike Exp $".
|
||||
// End of "$Id: Fl_Positioner.H,v 1.5 1999/02/16 21:59:42 mike Exp $".
|
||||
//
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Repeat_Button.H,v 1.4 1999/01/07 19:17:01 mike Exp $"
|
||||
// "$Id: Fl_Repeat_Button.H,v 1.5 1999/02/16 21:59:42 mike Exp $"
|
||||
//
|
||||
// Repeat button header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -28,9 +28,9 @@
|
||||
#include "Fl_Button.H"
|
||||
|
||||
class Fl_Repeat_Button : public Fl_Button {
|
||||
static void repeat_callback(void *);
|
||||
static FL_EXPORT void repeat_callback(void *);
|
||||
public:
|
||||
int handle(int);
|
||||
FL_EXPORT int handle(int);
|
||||
Fl_Repeat_Button(int x,int y,int w,int h,const char *l=0)
|
||||
: Fl_Button(x,y,w,h,l) {}
|
||||
};
|
||||
@@ -38,5 +38,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Repeat_Button.H,v 1.4 1999/01/07 19:17:01 mike Exp $".
|
||||
// End of "$Id: Fl_Repeat_Button.H,v 1.5 1999/02/16 21:59:42 mike Exp $".
|
||||
//
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Return_Button.H,v 1.4 1999/01/07 19:17:01 mike Exp $"
|
||||
// "$Id: Fl_Return_Button.H,v 1.5 1999/02/16 21:59:43 mike Exp $"
|
||||
//
|
||||
// Return button header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -29,9 +29,9 @@
|
||||
|
||||
class Fl_Return_Button : public Fl_Button {
|
||||
protected:
|
||||
void draw();
|
||||
FL_EXPORT void draw();
|
||||
public:
|
||||
int handle(int);
|
||||
FL_EXPORT int handle(int);
|
||||
Fl_Return_Button(int x,int y,int w,int h,const char *l=0)
|
||||
: Fl_Button(x,y,w,h,l) {}
|
||||
};
|
||||
@@ -39,5 +39,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Return_Button.H,v 1.4 1999/01/07 19:17:01 mike Exp $".
|
||||
// End of "$Id: Fl_Return_Button.H,v 1.5 1999/02/16 21:59:43 mike Exp $".
|
||||
//
|
||||
|
||||
+5
-5
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Roller.H,v 1.4 1999/01/07 19:17:01 mike Exp $"
|
||||
// "$Id: Fl_Roller.H,v 1.5 1999/02/16 21:59:43 mike Exp $"
|
||||
//
|
||||
// Roller header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -31,14 +31,14 @@
|
||||
#endif
|
||||
|
||||
class Fl_Roller : public Fl_Valuator {
|
||||
void draw();
|
||||
FL_EXPORT void draw();
|
||||
public:
|
||||
int handle(int);
|
||||
Fl_Roller(int X,int Y,int W,int H,const char* L=0);
|
||||
FL_EXPORT int handle(int);
|
||||
FL_EXPORT Fl_Roller(int X,int Y,int W,int H,const char* L=0);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Roller.H,v 1.4 1999/01/07 19:17:01 mike Exp $".
|
||||
// End of "$Id: Fl_Roller.H,v 1.5 1999/02/16 21:59:43 mike Exp $".
|
||||
//
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Round_Button.H,v 1.4 1999/01/07 19:17:01 mike Exp $"
|
||||
// "$Id: Fl_Round_Button.H,v 1.5 1999/02/16 21:59:43 mike Exp $"
|
||||
//
|
||||
// Round button header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -30,11 +30,11 @@
|
||||
|
||||
class Fl_Round_Button : public Fl_Light_Button {
|
||||
public:
|
||||
Fl_Round_Button(int x,int y,int w,int h,const char *l = 0);
|
||||
FL_EXPORT Fl_Round_Button(int x,int y,int w,int h,const char *l = 0);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Round_Button.H,v 1.4 1999/01/07 19:17:01 mike Exp $".
|
||||
// End of "$Id: Fl_Round_Button.H,v 1.5 1999/02/16 21:59:43 mike Exp $".
|
||||
//
|
||||
|
||||
+12
-12
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Scroll.H,v 1.4 1999/01/07 19:17:02 mike Exp $"
|
||||
// "$Id: Fl_Scroll.H,v 1.5 1999/02/16 21:59:44 mike Exp $"
|
||||
//
|
||||
// Scroll header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -34,25 +34,25 @@ class Fl_Scroll : public Fl_Group {
|
||||
int xposition_, yposition_;
|
||||
int width_, height_;
|
||||
int oldx, oldy;
|
||||
static void hscrollbar_cb(Fl_Widget*, void*);
|
||||
static void scrollbar_cb(Fl_Widget*, void*);
|
||||
void fix_scrollbar_order();
|
||||
static void draw_clip(void*,int,int,int,int);
|
||||
void bbox(int&,int&,int&,int&);
|
||||
static FL_EXPORT void hscrollbar_cb(Fl_Widget*, void*);
|
||||
static FL_EXPORT void scrollbar_cb(Fl_Widget*, void*);
|
||||
FL_EXPORT void fix_scrollbar_order();
|
||||
static FL_EXPORT void draw_clip(void*,int,int,int,int);
|
||||
FL_EXPORT void bbox(int&,int&,int&,int&);
|
||||
|
||||
protected:
|
||||
|
||||
void draw();
|
||||
FL_EXPORT void draw();
|
||||
|
||||
public:
|
||||
|
||||
Fl_Scrollbar scrollbar;
|
||||
Fl_Scrollbar hscrollbar;
|
||||
|
||||
void resize(int,int,int,int);
|
||||
int handle(int);
|
||||
FL_EXPORT void resize(int,int,int,int);
|
||||
FL_EXPORT int handle(int);
|
||||
|
||||
Fl_Scroll(int X,int Y,int W,int H,const char*l=0);
|
||||
FL_EXPORT Fl_Scroll(int X,int Y,int W,int H,const char*l=0);
|
||||
|
||||
enum { // values for type()
|
||||
HORIZONTAL = 1,
|
||||
@@ -66,11 +66,11 @@ public:
|
||||
|
||||
int xposition() const {return xposition_;}
|
||||
int yposition() const {return yposition_;}
|
||||
void position(int, int);
|
||||
FL_EXPORT void position(int, int);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Scroll.H,v 1.4 1999/01/07 19:17:02 mike Exp $".
|
||||
// End of "$Id: Fl_Scroll.H,v 1.5 1999/02/16 21:59:44 mike Exp $".
|
||||
//
|
||||
|
||||
+7
-7
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Scrollbar.H,v 1.4 1999/01/07 19:17:02 mike Exp $"
|
||||
// "$Id: Fl_Scrollbar.H,v 1.5 1999/02/16 21:59:44 mike Exp $"
|
||||
//
|
||||
// Scroll bar header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -32,14 +32,14 @@ class Fl_Scrollbar : public Fl_Slider {
|
||||
|
||||
int linesize_;
|
||||
int pushed_;
|
||||
void draw();
|
||||
int handle(int);
|
||||
static void timeout_cb(void*);
|
||||
void increment_cb();
|
||||
FL_EXPORT void draw();
|
||||
FL_EXPORT int handle(int);
|
||||
static FL_EXPORT void timeout_cb(void*);
|
||||
FL_EXPORT void increment_cb();
|
||||
|
||||
public:
|
||||
|
||||
Fl_Scrollbar(int x,int y,int w,int h, const char *l = 0);
|
||||
FL_EXPORT Fl_Scrollbar(int x,int y,int w,int h, const char *l = 0);
|
||||
|
||||
int value() {return int(Fl_Slider::value());}
|
||||
int value(int position, int size, int top, int total) {
|
||||
@@ -53,5 +53,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Scrollbar.H,v 1.4 1999/01/07 19:17:02 mike Exp $".
|
||||
// End of "$Id: Fl_Scrollbar.H,v 1.5 1999/02/16 21:59:44 mike Exp $".
|
||||
//
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Single_Window.H,v 1.4 1999/01/07 19:17:03 mike Exp $"
|
||||
// "$Id: Fl_Single_Window.H,v 1.5 1999/02/16 21:59:44 mike Exp $"
|
||||
//
|
||||
// Single-buffered window header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -30,9 +30,9 @@
|
||||
|
||||
class Fl_Single_Window : public Fl_Window {
|
||||
public:
|
||||
void show();
|
||||
FL_EXPORT void show();
|
||||
void show(int a, char **b) {Fl_Window::show(a,b);}
|
||||
void flush();
|
||||
FL_EXPORT void flush();
|
||||
Fl_Single_Window(int W, int H, const char *l=0)
|
||||
: Fl_Window(W,H,l) {}
|
||||
Fl_Single_Window(int X, int Y, int W, int H, const char *l=0)
|
||||
@@ -43,5 +43,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Single_Window.H,v 1.4 1999/01/07 19:17:03 mike Exp $".
|
||||
// End of "$Id: Fl_Single_Window.H,v 1.5 1999/02/16 21:59:44 mike Exp $".
|
||||
//
|
||||
|
||||
+13
-13
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Slider.H,v 1.4 1999/01/07 19:17:03 mike Exp $"
|
||||
// "$Id: Fl_Slider.H,v 1.5 1999/02/16 21:59:44 mike Exp $"
|
||||
//
|
||||
// Slider header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -42,26 +42,26 @@ class Fl_Slider : public Fl_Valuator {
|
||||
|
||||
float slider_size_;
|
||||
uchar slider_;
|
||||
void _Fl_Slider();
|
||||
void draw_bg(int, int, int, int);
|
||||
FL_EXPORT void _Fl_Slider();
|
||||
FL_EXPORT void draw_bg(int, int, int, int);
|
||||
|
||||
protected:
|
||||
|
||||
// these allow subclasses to put the slider in a smaller area:
|
||||
void draw(int, int, int, int);
|
||||
int handle(int, int, int, int, int);
|
||||
FL_EXPORT void draw(int, int, int, int);
|
||||
FL_EXPORT int handle(int, int, int, int, int);
|
||||
|
||||
public:
|
||||
|
||||
void draw();
|
||||
int handle(int);
|
||||
Fl_Slider(int x,int y,int w,int h, const char *l = 0);
|
||||
Fl_Slider(uchar t,int x,int y,int w,int h, const char *l);
|
||||
FL_EXPORT void draw();
|
||||
FL_EXPORT int handle(int);
|
||||
FL_EXPORT Fl_Slider(int x,int y,int w,int h, const char *l = 0);
|
||||
FL_EXPORT Fl_Slider(uchar t,int x,int y,int w,int h, const char *l);
|
||||
|
||||
int scrollvalue(int windowtop,int windowsize,int first,int totalsize);
|
||||
void bounds(double a, double b);
|
||||
FL_EXPORT int scrollvalue(int windowtop,int windowsize,int first,int totalsize);
|
||||
FL_EXPORT void bounds(double a, double b);
|
||||
float slider_size() const {return slider_size_;}
|
||||
void slider_size(double v);
|
||||
FL_EXPORT void slider_size(double v);
|
||||
Fl_Boxtype slider() const {return (Fl_Boxtype)slider_;}
|
||||
void slider(Fl_Boxtype c) {slider_ = c;}
|
||||
};
|
||||
@@ -69,5 +69,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Slider.H,v 1.4 1999/01/07 19:17:03 mike Exp $".
|
||||
// End of "$Id: Fl_Slider.H,v 1.5 1999/02/16 21:59:44 mike Exp $".
|
||||
//
|
||||
|
||||
+12
-12
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Tabs.H,v 1.4 1999/01/07 19:17:03 mike Exp $"
|
||||
// "$Id: Fl_Tabs.H,v 1.5 1999/02/16 21:59:45 mike Exp $"
|
||||
//
|
||||
// Tab header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -31,22 +31,22 @@
|
||||
class Fl_Tabs : public Fl_Group {
|
||||
Fl_Widget *value_;
|
||||
Fl_Widget *push_;
|
||||
void draw();
|
||||
int tab_positions(int*, int*);
|
||||
int tab_height();
|
||||
void draw_tab(int x1, int x2, int W, int H, Fl_Widget* o, int sel=0);
|
||||
FL_EXPORT void draw();
|
||||
FL_EXPORT int tab_positions(int*, int*);
|
||||
FL_EXPORT int tab_height();
|
||||
FL_EXPORT void draw_tab(int x1, int x2, int W, int H, Fl_Widget* o, int sel=0);
|
||||
public:
|
||||
int handle(int);
|
||||
Fl_Widget *value();
|
||||
int value(Fl_Widget *);
|
||||
FL_EXPORT int handle(int);
|
||||
FL_EXPORT Fl_Widget *value();
|
||||
FL_EXPORT int value(Fl_Widget *);
|
||||
Fl_Widget *push() const {return push_;}
|
||||
int push(Fl_Widget *);
|
||||
Fl_Tabs(int,int,int,int,const char * = 0);
|
||||
Fl_Widget *which(int event_x, int event_y);
|
||||
FL_EXPORT int push(Fl_Widget *);
|
||||
FL_EXPORT Fl_Tabs(int,int,int,int,const char * = 0);
|
||||
FL_EXPORT Fl_Widget *which(int event_x, int event_y);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Tabs.H,v 1.4 1999/01/07 19:17:03 mike Exp $".
|
||||
// End of "$Id: Fl_Tabs.H,v 1.5 1999/02/16 21:59:45 mike Exp $".
|
||||
//
|
||||
|
||||
+5
-5
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Tile.H,v 1.5 1999/01/13 15:37:59 mike Exp $"
|
||||
// "$Id: Fl_Tile.H,v 1.6 1999/02/16 21:59:45 mike Exp $"
|
||||
//
|
||||
// Tile header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -30,14 +30,14 @@
|
||||
|
||||
class Fl_Tile : public Fl_Group {
|
||||
public:
|
||||
int handle(int);
|
||||
FL_EXPORT int handle(int);
|
||||
Fl_Tile(int X,int Y,int W,int H,const char*l=0) : Fl_Group(X,Y,W,H,l) {}
|
||||
void resize(int, int, int, int);
|
||||
void position(int, int, int, int);
|
||||
FL_EXPORT void resize(int, int, int, int);
|
||||
FL_EXPORT void position(int, int, int, int);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Tile.H,v 1.5 1999/01/13 15:37:59 mike Exp $".
|
||||
// End of "$Id: Fl_Tile.H,v 1.6 1999/02/16 21:59:45 mike Exp $".
|
||||
//
|
||||
|
||||
+10
-10
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Timer.H,v 1.4 1999/01/07 19:17:03 mike Exp $"
|
||||
// "$Id: Fl_Timer.H,v 1.5 1999/02/16 21:59:45 mike Exp $"
|
||||
//
|
||||
// Timer header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -36,28 +36,28 @@
|
||||
#define FL_HIDDEN_TIMER 2
|
||||
|
||||
class Fl_Timer : public Fl_Widget {
|
||||
static void stepcb(void *);
|
||||
void step();
|
||||
static FL_EXPORT void stepcb(void *);
|
||||
FL_EXPORT void step();
|
||||
char on, direction_;
|
||||
double delay, total;
|
||||
long lastsec,lastusec;
|
||||
protected:
|
||||
void draw();
|
||||
FL_EXPORT void draw();
|
||||
public:
|
||||
int handle(int);
|
||||
Fl_Timer(uchar t,int x,int y,int w,int h, const char *l);
|
||||
~Fl_Timer();
|
||||
void value(double);
|
||||
FL_EXPORT int handle(int);
|
||||
FL_EXPORT Fl_Timer(uchar t,int x,int y,int w,int h, const char *l);
|
||||
FL_EXPORT ~Fl_Timer();
|
||||
FL_EXPORT void value(double);
|
||||
double value() const {return delay>0.0?delay:0.0;}
|
||||
char direction() const {return direction_;}
|
||||
void direction(char d) {direction_ = d;}
|
||||
char suspended() const {return !on;}
|
||||
void suspended(char d);
|
||||
FL_EXPORT void suspended(char d);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Timer.H,v 1.4 1999/01/07 19:17:03 mike Exp $".
|
||||
// End of "$Id: Fl_Timer.H,v 1.5 1999/02/16 21:59:45 mike Exp $".
|
||||
//
|
||||
|
||||
|
||||
+13
-13
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Valuator.H,v 1.4 1999/01/07 19:17:04 mike Exp $"
|
||||
// "$Id: Fl_Valuator.H,v 1.5 1999/02/16 21:59:45 mike Exp $"
|
||||
//
|
||||
// Valuator header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -44,14 +44,14 @@ class Fl_Valuator : public Fl_Widget {
|
||||
protected:
|
||||
|
||||
int horizontal() const {return type()&1;}
|
||||
Fl_Valuator(int X, int Y, int W, int H, const char* L);
|
||||
FL_EXPORT Fl_Valuator(int X, int Y, int W, int H, const char* L);
|
||||
|
||||
double previous_value() const {return previous_value_;}
|
||||
void handle_push() {previous_value_ = value_;}
|
||||
double softclamp(double);
|
||||
void handle_drag(double newvalue);
|
||||
void handle_release(); // use drag() value
|
||||
virtual void value_damage(); // cause damage() due to value() changing
|
||||
FL_EXPORT double softclamp(double);
|
||||
FL_EXPORT void handle_drag(double newvalue);
|
||||
FL_EXPORT void handle_release(); // use drag() value
|
||||
virtual FL_EXPORT void value_damage(); // cause damage() due to value() changing
|
||||
|
||||
public:
|
||||
|
||||
@@ -63,21 +63,21 @@ public:
|
||||
void range(double a, double b) {min = a; max = b;}
|
||||
void step(int a) {A = a; B = 1;}
|
||||
void step(double a, int b) {A = a; B = b;}
|
||||
void step(double s);
|
||||
FL_EXPORT void step(double s);
|
||||
double step() const {return A/B;}
|
||||
void precision(int);
|
||||
FL_EXPORT void precision(int);
|
||||
|
||||
double value() const {return value_;}
|
||||
int value(double);
|
||||
FL_EXPORT int value(double);
|
||||
|
||||
virtual int format(char*);
|
||||
double round(double); // round to nearest multiple of step
|
||||
double clamp(double); // keep in range
|
||||
double increment(double, int); // add n*step to value
|
||||
FL_EXPORT double round(double); // round to nearest multiple of step
|
||||
FL_EXPORT double clamp(double); // keep in range
|
||||
FL_EXPORT double increment(double, int); // add n*step to value
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Valuator.H,v 1.4 1999/01/07 19:17:04 mike Exp $".
|
||||
// End of "$Id: Fl_Valuator.H,v 1.5 1999/02/16 21:59:45 mike Exp $".
|
||||
//
|
||||
|
||||
+8
-8
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Value_Input.H,v 1.4 1999/01/07 19:17:04 mike Exp $"
|
||||
// "$Id: Fl_Value_Input.H,v 1.5 1999/02/16 21:59:46 mike Exp $"
|
||||
//
|
||||
// Value input header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -34,13 +34,13 @@ public:
|
||||
Fl_Input input;
|
||||
private:
|
||||
char soft_;
|
||||
static void input_cb(Fl_Widget*,void*);
|
||||
virtual void value_damage(); // cause damage() due to value() changing
|
||||
static FL_EXPORT void input_cb(Fl_Widget*,void*);
|
||||
virtual FL_EXPORT void value_damage(); // cause damage() due to value() changing
|
||||
public:
|
||||
int handle(int);
|
||||
void draw();
|
||||
void resize(int,int,int,int);
|
||||
Fl_Value_Input(int x,int y,int w,int h,const char *l=0);
|
||||
FL_EXPORT int handle(int);
|
||||
FL_EXPORT void draw();
|
||||
FL_EXPORT void resize(int,int,int,int);
|
||||
FL_EXPORT Fl_Value_Input(int x,int y,int w,int h,const char *l=0);
|
||||
|
||||
void soft(char x) {soft_ = x;}
|
||||
char soft() const {return soft_;}
|
||||
@@ -59,5 +59,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Value_Input.H,v 1.4 1999/01/07 19:17:04 mike Exp $".
|
||||
// End of "$Id: Fl_Value_Input.H,v 1.5 1999/02/16 21:59:46 mike Exp $".
|
||||
//
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Value_Output.H,v 1.4 1999/01/07 19:17:04 mike Exp $"
|
||||
// "$Id: Fl_Value_Output.H,v 1.5 1999/02/16 21:59:46 mike Exp $"
|
||||
//
|
||||
// Value output header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -33,9 +33,9 @@
|
||||
class Fl_Value_Output : public Fl_Valuator {
|
||||
uchar textfont_, textsize_, textcolor_, soft_;
|
||||
public:
|
||||
int handle(int);
|
||||
void draw();
|
||||
Fl_Value_Output(int x,int y,int w,int h,const char *l=0);
|
||||
FL_EXPORT int handle(int);
|
||||
FL_EXPORT void draw();
|
||||
FL_EXPORT Fl_Value_Output(int x,int y,int w,int h,const char *l=0);
|
||||
|
||||
void soft(uchar x) {soft_ = x;}
|
||||
uchar soft() const {return soft_;}
|
||||
@@ -51,5 +51,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Value_Output.H,v 1.4 1999/01/07 19:17:04 mike Exp $".
|
||||
// End of "$Id: Fl_Value_Output.H,v 1.5 1999/02/16 21:59:46 mike Exp $".
|
||||
//
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user