diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-10-15 19:19:24 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-10-16 20:53:55 +0200 |
| commit | ae4ed3522929946161558cf06da360e887187263 (patch) | |
| tree | 42e6eba2f92ad3f8c3a630b17694afc0b2e4c083 /FL | |
| parent | 15fe9d98808065ab7a7d0659e8d44c7a999175e4 (diff) | |
Add virtual void Fl_Graphics_Driver::draw_circle()
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Graphics_Driver.H | 4 | ||||
| -rw-r--r-- | FL/fl_draw.H | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/FL/Fl_Graphics_Driver.H b/FL/Fl_Graphics_Driver.H index a6136d1e0..1d7c3d702 100644 --- a/FL/Fl_Graphics_Driver.H +++ b/FL/Fl_Graphics_Driver.H @@ -315,6 +315,9 @@ public: virtual void arc(double x, double y, double r, double start, double end); virtual void arc(int x, int y, int w, int h, double a1, double a2); virtual void pie(int x, int y, int w, int h, double a1, double a2); + // To support fl_draw_circle(int x, int y, int d, Fl_Color color), + // the default implementation is most probably enough. + virtual void draw_circle(int x, int y, int d, Fl_Color c); virtual void curve(double X0, double Y0, double X1, double Y1, double X2, double Y2, double X3, double Y3); virtual void line_style(int style, int width=0, char* dashes=0); virtual void color(Fl_Color c); @@ -472,6 +475,7 @@ protected: virtual void arc_unscaled(int x, int y, int w, int h, double a1, double a2); void pie(int x, int y, int w, int h, double a1, double a2) FL_OVERRIDE; virtual void pie_unscaled(int x, int y, int w, int h, double a1, double a2); + void draw_circle(int x, int y, int d, Fl_Color c) FL_OVERRIDE; void line_style(int style, int width=0, char* dashes=0) FL_OVERRIDE; virtual void line_style_unscaled(int style, int width, char* dashes); void draw_image_rescale(void *buf, Fl_Draw_Image_Cb cb, int X, int Y, int W, int H, int D, int L, bool mono); diff --git a/FL/fl_draw.H b/FL/fl_draw.H index ead666806..65849330d 100644 --- a/FL/fl_draw.H +++ b/FL/fl_draw.H @@ -980,7 +980,7 @@ void fl_draw_check(Fl_Rect bb, Fl_Color col); FL_EXPORT void fl_draw_arrow(Fl_Rect bb, Fl_Arrow_Type t, Fl_Orientation o, Fl_Color color); // Draw a potentially small, filled circle -FL_EXPORT void fl_draw_circle(int x0, int y0, int d, Fl_Color color); +FL_EXPORT void fl_draw_circle(int x, int y, int d, Fl_Color color); // images: |
