summaryrefslogtreecommitdiff
path: root/FL/Fl_Menu_Item.H
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-08-14 16:49:38 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-08-14 16:49:38 +0000
commite136d5e1454d406ac458f5503bdb6b4a76f03232 (patch)
tree75fa297ba180eb97b06493c68e243ee66bdc8bf9 /FL/Fl_Menu_Item.H
parent1aecada52cd42120137dda305c263fde27518352 (diff)
More FL_EXPORT fun...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2584 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Menu_Item.H')
-rw-r--r--FL/Fl_Menu_Item.H26
1 files changed, 13 insertions, 13 deletions
diff --git a/FL/Fl_Menu_Item.H b/FL/Fl_Menu_Item.H
index 1f37014c7..98b4b9f0d 100644
--- a/FL/Fl_Menu_Item.H
+++ b/FL/Fl_Menu_Item.H
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Menu_Item.H,v 1.5.2.4.2.5 2002/08/01 02:02:03 easysw Exp $"
+// "$Id: Fl_Menu_Item.H,v 1.5.2.4.2.6 2002/08/14 16:49:38 easysw Exp $"
//
// Menu item header file for the Fast Light Tool Kit (FLTK).
//
@@ -49,7 +49,7 @@ extern FL_EXPORT int fl_old_shortcut(const char*);
class Fl_Menu_;
-struct Fl_Menu_Item {
+struct FL_EXPORT Fl_Menu_Item {
const char *text; // label()
int shortcut_;
Fl_Callback *callback_;
@@ -61,7 +61,7 @@ struct Fl_Menu_Item {
unsigned labelcolor_;
// advance N items, skipping submenus:
- FL_EXPORT const Fl_Menu_Item *next(int=1) const;
+ const Fl_Menu_Item *next(int=1) const;
Fl_Menu_Item *next(int i=1) {
return (Fl_Menu_Item*)(((const Fl_Menu_Item*)this)->next(i));}
@@ -94,7 +94,7 @@ struct Fl_Menu_Item {
int value() const {return flags&FL_MENU_VALUE;}
void set() {flags |= FL_MENU_VALUE;}
void clear() {flags &= ~FL_MENU_VALUE;}
- FL_EXPORT void setonly();
+ void setonly();
int visible() const {return !(flags&FL_MENU_INVISIBLE);}
void show() {flags &= ~FL_MENU_INVISIBLE;}
void hide() {flags |= FL_MENU_INVISIBLE;}
@@ -108,23 +108,23 @@ struct Fl_Menu_Item {
void image(Fl_Image& a) {a.label(this);}
// used by menubar:
- 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;
+ 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;
// popup menus without using an Fl_Menu_ widget:
- FL_EXPORT const Fl_Menu_Item* popup(
+ const Fl_Menu_Item* popup(
int X, int Y,
const char *title = 0,
const Fl_Menu_Item* picked=0,
const Fl_Menu_* = 0) const;
- FL_EXPORT const Fl_Menu_Item* pulldown(
+ const Fl_Menu_Item* pulldown(
int X, int Y, int W, int H,
const Fl_Menu_Item* picked = 0,
const Fl_Menu_* = 0,
const Fl_Menu_Item* title = 0,
int menubar=0) const;
- FL_EXPORT const Fl_Menu_Item* test_shortcut() const;
- FL_EXPORT const Fl_Menu_Item* find_shortcut(int *ip=0) const;
+ const Fl_Menu_Item* test_shortcut() const;
+ const Fl_Menu_Item* find_shortcut(int *ip=0) const;
void do_callback(Fl_Widget* o) const {callback_(o, user_data_);}
void do_callback(Fl_Widget* o,void* arg) const {callback_(o, arg);}
@@ -134,11 +134,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;}
- FL_EXPORT int add(const char*, int shortcut, Fl_Callback*, void* =0, int = 0);
+ int add(const char*, int shortcut, Fl_Callback*, void* =0, int = 0);
int add(const char*a, const char* b, Fl_Callback* c,
void* d = 0, int e = 0) {
return add(a,fl_old_shortcut(b),c,d,e);}
- FL_EXPORT int size() const ;
+ int size() const ;
};
typedef Fl_Menu_Item Fl_Menu; // back compatability
@@ -159,5 +159,5 @@ enum { // back-compatability enum:
#endif
//
-// End of "$Id: Fl_Menu_Item.H,v 1.5.2.4.2.5 2002/08/01 02:02:03 easysw Exp $".
+// End of "$Id: Fl_Menu_Item.H,v 1.5.2.4.2.6 2002/08/14 16:49:38 easysw Exp $".
//