summaryrefslogtreecommitdiff
path: root/FL/Fl.H
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1999-02-16 22:00:04 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1999-02-16 22:00:04 +0000
commitca41e69c27af0dee60b8186d06f5be0713d1a051 (patch)
tree85fd248b68d4d00414fef6488016da975f739bd2 /FL/Fl.H
parent18312d3c1fb325c0d9ac92e98137cebbcadb563c (diff)
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
Diffstat (limited to 'FL/Fl.H')
-rw-r--r--FL/Fl.H246
1 files changed, 123 insertions, 123 deletions
diff --git a/FL/Fl.H b/FL/Fl.H
index 6e6cadc24..0ea010400 100644
--- a/FL/Fl.H
+++ b/FL/Fl.H
@@ -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 $".
//