2 * $Id: wxt_term.h,v 1.5 2006/06/18 07:45:43 tlecomte Exp $
5 /* GNUPLOT - wxt_term.h */
8 * Copyright 2005,2006 Timothee Lecomte
10 * Permission to use, copy, and distribute this software and its
11 * documentation for any purpose with or without fee is hereby granted,
12 * provided that the above copyright notice appear in all copies and
13 * that both that copyright notice and this permission notice appear
14 * in supporting documentation.
16 * Permission to modify the software is granted, but not the right to
17 * distribute the complete modified source code. Modifications are to
18 * be distributed as patches to the released version. Permission to
19 * distribute binaries produced by compiling modified sources is granted,
21 * 1. distribute the corresponding source modifications from the
22 * released version in the form of a patch file along with the binaries,
23 * 2. add special version identification to distinguish your version
24 * in addition to the base release version number,
25 * 3. provide your name and address as the primary contact for the
26 * support of your modified version, and
27 * 4. retain our contact information in regard to use of the base
29 * Permission to distribute the released version of the source code along
30 * with corresponding source modifications in the form of a patch file is
31 * granted with same provisions 2 through 4 for binary distributions.
33 * This software is provided "as is" without express or implied warranty
34 * to the extent permitted by applicable law.
37 * Alternatively, the contents of this file may be used under the terms of the
38 * GNU General Public License Version 2 or later (the "GPL"), in which case the
39 * provisions of GPL are applicable instead of those above. If you wish to allow
40 * use of your version of this file only under the terms of the GPL and not
41 * to allow others to use your version of this file under the above gnuplot
42 * license, indicate your decision by deleting the provisions above and replace
43 * them with the notice and other provisions required by the GPL. If you do not
44 * delete the provisions above, a recipient may use your version of this file
45 * under either the GPL or the gnuplot license.
48 /* ------------------------------------------------------
49 * Here you will find the declarations of the C++ functions
50 * used in wxt.trm and defined in wxt_gui.cpp,
51 * where the wxWidgets terminal is mainly implemented.
52 * ------------------------------------------------------*/
54 #ifndef GNUPLOT_WXT_TERM_H
55 # define GNUPLOT_WXT_TERM_H
59 #endif /*__cplusplus*/
62 void wxt_graphics(void);
64 void wxt_linetype(int linetype);
65 void wxt_move(unsigned int x, unsigned int y);
66 void wxt_vector(unsigned int x, unsigned int y);
67 void wxt_put_text(unsigned int x, unsigned int y, const char *str);
69 int wxt_justify_text(enum JUSTIFY mode);
70 void wxt_point(unsigned int x, unsigned int y, int pointstyle);
71 void wxt_linewidth(double linewidth);
72 int wxt_text_angle(int ang);
73 void wxt_fillbox(int style, unsigned int x1, unsigned int y1, unsigned int width, unsigned int height);
74 int wxt_set_font __PROTO ((const char *font));
75 void wxt_pointsize(double ptsize);
77 void wxt_image(unsigned M, unsigned N, coordval * image, gpiPoint * corner, t_imagecolor color_mode);
80 int wxt_waitforinput(void);
81 void wxt_put_tmptext(int, const char str[]);
82 void wxt_set_ruler(int x, int y);
83 void wxt_set_cursor(int, int, int);
84 void wxt_set_clipboard(const char s[]);
86 int wxt_make_palette(t_sm_palette *palette);
87 void wxt_set_color(t_colorspec *colorspec);
88 void wxt_filled_polygon(int n, gpiPoint * corners);
90 void wxt_raise_terminal_window __PROTO((int));
91 void wxt_raise_terminal_group __PROTO((void));
92 void wxt_lower_terminal_window __PROTO((int));
93 void wxt_lower_terminal_group __PROTO((void));
94 void wxt_close_terminal_window __PROTO((int number));
95 void wxt_update_title __PROTO((int number));
97 /* state variables shared between wxt.trm and wxt_gui.cpp */
98 extern int wxt_window_number;
99 extern TBOOLEAN wxt_enhanced_enabled;
100 extern int wxt_persist;
101 extern int wxt_raise;
103 extern char wxt_set_fontname[MAX_ID_LEN + 1];
104 extern int wxt_set_fontsize;
105 extern char wxt_title[MAX_ID_LEN + 1];
109 #endif /*__cplusplus*/
111 #endif /* gnuplot_wxt_term_h */