summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2012-05-02 13:44:52 +0000
committerManolo Gouy <Manolo>2012-05-02 13:44:52 +0000
commit547fc0a3f0b33e116bbc32ebd44cdb65a250d02d (patch)
treed2801cb9ad86150326a879d6004cea856ceb287b /FL
parent1229ac88080b77019995224bb4030ba8d07e7c58 (diff)
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
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Device.H7
1 files changed, 6 insertions, 1 deletions
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 *