diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-03-06 00:32:11 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-03-06 00:32:11 +0000 |
| commit | ec7b0609576b174048d3cff1c5c6abbb7fb8fc8a (patch) | |
| tree | c6d61837af96b6e6cbdfb809a75c93f05cc21915 /fluid/Fl_Type.h | |
| parent | 9b5555d142d7bbd6913bc13f1d397e638ed46697 (diff) | |
Fix Fl_Input_Choice in FLUID, and make sure that we expose enough of the
text and box stuff for use in FLUID.
Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4072 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Type.h')
| -rw-r--r-- | fluid/Fl_Type.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/fluid/Fl_Type.h b/fluid/Fl_Type.h index 3b6253db0..3f44a7fe4 100644 --- a/fluid/Fl_Type.h +++ b/fluid/Fl_Type.h @@ -509,7 +509,7 @@ public: int is_menu_button() const {return 1;} int is_parent() const {return 1;} int menusize; - void build_menu(); + virtual void build_menu(); Fl_Menu_Type() : Fl_Widget_Type() {menusize = 0;} ~Fl_Menu_Type() { if (menusize) delete[] (Fl_Menu_Item*)(((Fl_Menu_*)o)->menu()); @@ -551,6 +551,17 @@ public: #include <FL/Fl_Input_Choice.H> class Fl_Input_Choice_Type : public Fl_Menu_Type { + int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) { + Fl_Menu_ *myo = (Fl_Menu_*)(w==4 ? ((Fl_Widget_Type*)this->factory)->o : this->o); + switch (w) { + case 4: + case 0: f = myo->textfont(); s = myo->textsize(); c = myo->textcolor(); break; + case 1: myo->textfont(f); break; + case 2: myo->textsize(s); break; + case 3: myo->textcolor(c); break; + } + return 1; + } public: virtual const char *type_name() {return "Fl_Input_Choice";} Fl_Widget *widget(int X,int Y,int W,int H) { @@ -560,6 +571,7 @@ public: return myo; } Fl_Widget_Type *_make() {return new Fl_Input_Choice_Type();} + virtual void build_menu(); int pixmapID() { return 15; } }; |
