From 547fc0a3f0b33e116bbc32ebd44cdb65a250d02d Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 2 May 2012 13:44:52 +0000 Subject: Added Fl_Graphics_Driver::vertex_no(), vertices() and vextex_kind() accessor functions useful to implement some virtual functions of new graphics drivers. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9427 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Device.H | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/FL/Fl_Device.H b/FL/Fl_Device.H index dfb2663bf..e0218386c 100644 --- a/FL/Fl_Device.H +++ b/FL/Fl_Device.H @@ -110,7 +110,6 @@ private: 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 @@ private: 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 * -- cgit v1.2.3