Author: manolo
Date: 2012-05-02 06:44:52 -0700 (Wed, 02 May 2012)
New Revision: 9427
Log:
Added Fl_Graphics_Driver::vertex_no(), vertices() and vextex_kind() accessor 
functions useful
to implement some virtual functions of new graphics drivers.

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

Modified: branches/branch-1.3/FL/Fl_Device.H
===================================================================
--- branches/branch-1.3/FL/Fl_Device.H  2012-05-01 21:45:44 UTC (rev 9426)
+++ branches/branch-1.3/FL/Fl_Device.H  2012-05-02 13:44:52 UTC (rev 9427)
@@ -110,7 +110,6 @@
   Fl_Font font_; // current font
   Fl_Fontsize size_; // current font size
   Fl_Color color_; // current color
-  enum {LINE, LOOP, POLYGON, POINT_};
   int sptr;
   static const int matrix_stack_size = FL_MATRIX_STACK_SIZE;
   matrix stack[FL_MATRIX_STACK_SIZE];
@@ -131,6 +130,12 @@
   void fixloop();
   
 protected:
+#ifndef FL_DOXYGEN
+  enum {LINE, LOOP, POLYGON, POINT_};
+  inline int vertex_no() { return n; }
+  inline XPOINT *vertices() {return p;}
+  inline int vertex_kind() {return what;}
+#endif
 /*  ** \brief red color for background and/or mixing if device does not 
support masking or alpha *
   uchar bg_r_; 
   ** \brief green color for background and/or mixing if device does not 
support masking or alpha *

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

Reply via email to