diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-03-01 15:10:52 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-03-01 15:11:00 +0100 |
| commit | 0623a8d4b9e8a56cc435dc550c6b56fa1a9607e9 (patch) | |
| tree | 48e6487325011a59b6016d0c43d2c1f78a6f1612 /src/drivers/Quartz/Fl_Quartz_Graphics_Driver.H | |
| parent | 37175d17571e075324fb5cb3c651e45b236cd6e5 (diff) | |
Remove duplicated code between derived classes of Fl_Graphics_Driver.
Diffstat (limited to 'src/drivers/Quartz/Fl_Quartz_Graphics_Driver.H')
| -rw-r--r-- | src/drivers/Quartz/Fl_Quartz_Graphics_Driver.H | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.H b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.H index d9051ecbd..388fefd0f 100644 --- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.H +++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.H @@ -50,9 +50,6 @@ class Fl_Quartz_Graphics_Driver : public Fl_Graphics_Driver { friend class Fl_Quartz_Font_Descriptor; protected: CGContextRef gc_; - int p_size; - typedef struct { float x; float y; } XPOINT; - XPOINT *p; bool high_resolution_; float quartz_line_width_; CGLineCap quartz_line_cap_; @@ -90,9 +87,7 @@ public: void XDestroyRegion(Fl_Region r); void high_resolution(bool b) { high_resolution_ = b; } protected: - void transformed_vertex0(float x, float y); void fixloop(); - // --- implementation is in src/fl_rect.cxx which includes src/cfg_gfx/quartz_rect.cxx void point(int x, int y); void rect(int x, int y, int w, int h); void focus_rect(int x, int y, int w, int h); @@ -114,10 +109,7 @@ protected: int clip_box(int x, int y, int w, int h, int &X, int &Y, int &W, int &H); int not_clipped(int x, int y, int w, int h); void restore_clip(); - // --- implementation is in src/fl_vertex.cxx which includes src/cfg_gfx/xxx_rect.cxx void begin_complex_polygon(); - void transformed_vertex(double xf, double yf); - void vertex(double x, double y); void end_points(); void end_line(); void end_loop(); @@ -125,19 +117,13 @@ protected: void end_complex_polygon(); void gap(); void circle(double x, double y, double r); - // --- implementation is in src/fl_arc.cxx which includes src/cfg_gfx/xxx_arc.cxx if needed - // using void Fl_Graphics_Driver::arc(double x, double y, double r, double start, double end); - // --- implementation is in src/fl_arci.cxx which includes src/cfg_gfx/xxx_arci.cxx void arc(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); - // --- implementation is in src/fl_line_style.cxx which includes src/cfg_gfx/xxx_line_style.cxx void line_style(int style, int width=0, char* dashes=0); - // --- implementation is in src/fl_color.cxx which includes src/cfg_gfx/xxx_color.cxx void color(Fl_Color c); void set_color(Fl_Color i, unsigned int c); Fl_Color color() { return color_; } void color(uchar r, uchar g, uchar b); - // --- implementation is in src/fl_font.cxx which includes src/cfg_gfx/xxx_font.cxx void draw(const char *str, int n, int x, int y); void draw(const char *str, int n, float x, float y); void draw(int angle, const char *str, int n, int x, int y); |
