|
|
@ -50,9 +50,6 @@ class Fl_Quartz_Graphics_Driver : public Fl_Graphics_Driver { |
|
|
|
friend class Fl_Quartz_Font_Descriptor; |
|
|
|
friend class Fl_Quartz_Font_Descriptor; |
|
|
|
protected: |
|
|
|
protected: |
|
|
|
CGContextRef gc_; |
|
|
|
CGContextRef gc_; |
|
|
|
int p_size; |
|
|
|
|
|
|
|
typedef struct { float x; float y; } XPOINT; |
|
|
|
|
|
|
|
XPOINT *p; |
|
|
|
|
|
|
|
bool high_resolution_; |
|
|
|
bool high_resolution_; |
|
|
|
float quartz_line_width_; |
|
|
|
float quartz_line_width_; |
|
|
|
CGLineCap quartz_line_cap_; |
|
|
|
CGLineCap quartz_line_cap_; |
|
|
@ -90,9 +87,7 @@ public: |
|
|
|
void XDestroyRegion(Fl_Region r); |
|
|
|
void XDestroyRegion(Fl_Region r); |
|
|
|
void high_resolution(bool b) { high_resolution_ = b; } |
|
|
|
void high_resolution(bool b) { high_resolution_ = b; } |
|
|
|
protected: |
|
|
|
protected: |
|
|
|
void transformed_vertex0(float x, float y); |
|
|
|
|
|
|
|
void fixloop(); |
|
|
|
void fixloop(); |
|
|
|
// --- implementation is in src/fl_rect.cxx which includes src/cfg_gfx/quartz_rect.cxx
|
|
|
|
|
|
|
|
void point(int x, int y); |
|
|
|
void point(int x, int y); |
|
|
|
void rect(int x, int y, int w, int h); |
|
|
|
void rect(int x, int y, int w, int h); |
|
|
|
void focus_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 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); |
|
|
|
int not_clipped(int x, int y, int w, int h); |
|
|
|
void restore_clip(); |
|
|
|
void restore_clip(); |
|
|
|
// --- implementation is in src/fl_vertex.cxx which includes src/cfg_gfx/xxx_rect.cxx
|
|
|
|
|
|
|
|
void begin_complex_polygon(); |
|
|
|
void begin_complex_polygon(); |
|
|
|
void transformed_vertex(double xf, double yf); |
|
|
|
|
|
|
|
void vertex(double x, double y); |
|
|
|
|
|
|
|
void end_points(); |
|
|
|
void end_points(); |
|
|
|
void end_line(); |
|
|
|
void end_line(); |
|
|
|
void end_loop(); |
|
|
|
void end_loop(); |
|
|
@ -125,19 +117,13 @@ protected: |
|
|
|
void end_complex_polygon(); |
|
|
|
void end_complex_polygon(); |
|
|
|
void gap(); |
|
|
|
void gap(); |
|
|
|
void circle(double x, double y, double r); |
|
|
|
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 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); |
|
|
|
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); |
|
|
|
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 color(Fl_Color c); |
|
|
|
void set_color(Fl_Color i, unsigned int c); |
|
|
|
void set_color(Fl_Color i, unsigned int c); |
|
|
|
Fl_Color color() { return color_; } |
|
|
|
Fl_Color color() { return color_; } |
|
|
|
void color(uchar r, uchar g, uchar b); |
|
|
|
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, int x, int y); |
|
|
|
void draw(const char *str, int n, float x, float 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); |
|
|
|
void draw(int angle, const char *str, int n, int x, int y); |
|
|
|