"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Graphics/Renderer/renderer.hpp" between
TeXmacs-1.99.4-src.tar.gz and TeXmacs-1.99.5-src.tar.gz

About: GNU TeXmacs is a what-you-see-is-what-you-get scientific text editor, which was both inspired by TeX and GNU Emacs.

renderer.hpp  (TeXmacs-1.99.4-src):renderer.hpp  (TeXmacs-1.99.5-src)
skipping to change at line 47 skipping to change at line 47
extern int std_shrinkf; extern int std_shrinkf;
class renderer_rep { class renderer_rep {
public: public:
SI ox, oy; // origin SI ox, oy; // origin
SI cx1, cy1, cx2, cy2; // visible region (clipping) SI cx1, cy1, cx2, cy2; // visible region (clipping)
bool is_screen; // flag for renderers on screen bool is_screen; // flag for renderers on screen
double zoomf; // zoom factor double zoomf; // zoom factor
int shrinkf; // shrinking factor int shrinkf; // shrinking factor
int pixel; // size of a pixel on the screen int pixel; // size of a pixel on the screen
int retina_pixel; // size of a pixel on a retina screen
int brushpx; // (hack) -1 or size of a pixel for patterns int brushpx; // (hack) -1 or size of a pixel for patterns
int thicken; // extra thinkening when anti-aliasing characters int thicken; // extra thinkening when anti-aliasing characters
renderer master; // master renderer in case of shadow renderers renderer master; // master renderer in case of shadow renderers
rectangles clip_stack; // stack with clipping regions rectangles clip_stack; // stack with clipping regions
int cur_page; // current page number int cur_page; // current page number
public: public:
renderer_rep (bool screen_flag); renderer_rep (bool screen_flag);
virtual ~renderer_rep (); virtual ~renderer_rep ();
virtual bool is_started (); virtual bool is_started ();
virtual void* get_handle (); virtual void* get_handle ();
virtual void* get_data_handle (); virtual void* get_data_handle ();
/* coordinate system */ /* coordinate system */
void set_origin (SI x, SI y); void set_origin (SI x, SI y);
void move_origin (SI dx, SI dy); void move_origin (SI dx, SI dy);
void set_zoom_factor (double zoom); virtual void set_zoom_factor (double zoom);
void reset_zoom_factor (); void reset_zoom_factor ();
void set_shrinking_factor (int sf); void set_shrinking_factor (int sf);
virtual void set_transformation (frame fr); virtual void set_transformation (frame fr);
virtual void reset_transformation (); virtual void reset_transformation ();
/* clipping */ /* clipping */
virtual void get_clipping (SI &x1, SI &y1, SI &x2, SI &y2); virtual void get_clipping (SI &x1, SI &y1, SI &x2, SI &y2);
virtual void set_clipping (SI x1, SI y1, SI x2, SI y2, bool restore= false); virtual void set_clipping (SI x1, SI y1, SI x2, SI y2, bool restore= false);
void extra_clipping (SI x1, SI y1, SI x2, SI y2); void extra_clipping (SI x1, SI y1, SI x2, SI y2);
void clip (SI x1, SI y1, SI x2, SI y2); void clip (SI x1, SI y1, SI x2, SI y2);
skipping to change at line 103 skipping to change at line 104
virtual brush get_background () = 0; virtual brush get_background () = 0;
virtual void set_pencil (pencil p) = 0; virtual void set_pencil (pencil p) = 0;
virtual void set_brush (brush b); virtual void set_brush (brush b);
virtual void set_background (brush b) = 0; virtual void set_background (brush b) = 0;
/* drawing */ /* drawing */
virtual void draw (int char_code, font_glyphs fn, SI x, SI y) = 0; virtual void draw (int char_code, font_glyphs fn, SI x, SI y) = 0;
virtual void line (SI x1, SI y1, SI x2, SI y2) = 0; virtual void line (SI x1, SI y1, SI x2, SI y2) = 0;
virtual void lines (array<SI> x, array<SI> y) = 0; virtual void lines (array<SI> x, array<SI> y) = 0;
virtual void clear (SI x1, SI y1, SI x2, SI y2) = 0; virtual void clear (SI x1, SI y1, SI x2, SI y2) = 0;
virtual void clear_pattern (SI mx1, SI my1, SI mx2, SI my2,
SI x1, SI y1, SI x2, SI y2);
virtual void clear_pattern (SI x1, SI y1, SI x2, SI y2); virtual void clear_pattern (SI x1, SI y1, SI x2, SI y2);
virtual void fill (SI x1, SI y1, SI x2, SI y2) = 0; virtual void fill (SI x1, SI y1, SI x2, SI y2) = 0;
virtual void arc (SI x1, SI y1, SI x2, SI y2, int alpha, int delta) = 0; virtual void arc (SI x1, SI y1, SI x2, SI y2, int alpha, int delta) = 0;
virtual void fill_arc (SI x1, SI y1, SI x2, SI y2, int alpha, int delta) = 0; virtual void fill_arc (SI x1, SI y1, SI x2, SI y2, int alpha, int delta) = 0;
virtual void polygon (array<SI> x, array<SI> y, bool convex=true) = 0; virtual void polygon (array<SI> x, array<SI> y, bool convex=true) = 0;
virtual void draw_triangle (SI x1, SI y1, SI x2, SI y2, SI x3, SI y3); virtual void draw_triangle (SI x1, SI y1, SI x2, SI y2, SI x3, SI y3);
virtual void draw_spacial (spacial obj); virtual void draw_spacial (spacial obj);
virtual void draw_rectangles (rectangles rs); virtual void draw_rectangles (rectangles rs);
virtual void draw_selection (rectangles rs); virtual void draw_selection (rectangles rs);
skipping to change at line 151 skipping to change at line 154
void delete_renderer (renderer ren); void delete_renderer (renderer ren);
double normal_zoom (double zoom); double normal_zoom (double zoom);
void abs_round (SI& l); void abs_round (SI& l);
void abs_round (SI& x, SI& y); void abs_round (SI& x, SI& y);
void abs_inner_round (SI& x1, SI& y1, SI& x2, SI& y2); void abs_inner_round (SI& x1, SI& y1, SI& x2, SI& y2);
void abs_outer_round (SI& x1, SI& y1, SI& x2, SI& y2); void abs_outer_round (SI& x1, SI& y1, SI& x2, SI& y2);
extern bool reverse_colors; extern bool reverse_colors;
void reverse (int& r, int& g, int& b); void reverse (int& r, int& g, int& b);
extern bool retina_manual;
extern bool retina_iman;
extern int retina_factor;
extern int retina_icons;
extern double retina_scale;
#endif // defined RENDERER_H #endif // defined RENDERER_H
 End of changes. 4 change blocks. 
1 lines changed or deleted 9 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS