Author: greg.ercolano
Date: 2012-05-16 00:25:11 -0700 (Wed, 16 May 2012)
New Revision: 9500
Log:
o Added color() methods to get/set color of input field.
o ABI feature: change input and up/down buttons from 'private' to 'protected'



Modified:
   branches/branch-1.3/FL/Fl_Spinner.H

Modified: branches/branch-1.3/FL/Fl_Spinner.H
===================================================================
--- branches/branch-1.3/FL/Fl_Spinner.H 2012-05-15 21:43:52 UTC (rev 9499)
+++ branches/branch-1.3/FL/Fl_Spinner.H 2012-05-16 07:25:11 UTC (rev 9500)
@@ -50,12 +50,16 @@
   double       step_;                  // Amount to add/subtract for up/down
   const char   *format_;               // Format string
 
+#if FLTK_ABI_VERSION >= 10302
+// NEW
+protected:
+#endif
   Fl_Input     input_;                 // Input field for the value
   Fl_Repeat_Button
                up_button_,             // Up button
                down_button_;           // Down button
 
-
+private:
   static void  sb_cb(Fl_Widget *w, Fl_Spinner *sb) {
                  double v;             // New value
 
@@ -253,6 +257,14 @@
     type() should be changed to floating point. 
   */
   void         value(double v) { value_ = v; update(); }
+  /**
+    Change the background color of the spinner widget's input field.
+  */
+  void         color(Fl_Color v) { input_.color(v); }
+  /**
+    Return the background color of the spinner widget's input field.
+  */
+  Fl_Color     color() const { return(input_.color()); }
 };
 
 #endif // !Fl_Spinner_H

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to