~ubuntu-branches/debian/sid/genius/sid

« back to all changes in this revision

Viewing changes to gtkextra/gtkplotps.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2006-08-21 12:57:45 UTC
  • Revision ID: james.westby@ubuntu.com-20060821125745-sl9ks8v7fq324bdf
Tags: upstream-0.7.6.1
ImportĀ upstreamĀ versionĀ 0.7.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* gtkplotps - postscript driver
 
2
 * Copyright 1999-2001  Adrian E. Feiguin <feiguin@ifir.edu.ar>
 
3
 *
 
4
 * Some few lines of code borrowed from
 
5
 * DiaCanvas -- a technical canvas widget
 
6
 * Copyright (C) 1999 Arjan Molenaar
 
7
 * Dia -- an diagram creation/manipulation program
 
8
 * Copyright (C) 1998 Alexander Larsson
 
9
 *
 
10
 * This library is free software; you can redistribute it and/or
 
11
 * modify it under the terms of the GNU Library General Public
 
12
 * License as published by the Free Software Foundation; either
 
13
 * version 2 of the License, or (at your option) any later version.
 
14
 *
 
15
 * This library is distributed in the hope that it will be useful,
 
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
18
 * Library General Public License for more details.
 
19
 *
 
20
 * You should have received a copy of the GNU Library General Public
 
21
 * License along with this library; if not, write to the
 
22
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
23
 * Boston, MA 02111-1307, USA.
 
24
 */
 
25
 
 
26
#ifndef __GTK_PLOT_PS_H__
 
27
#define __GTK_PLOT_PS_H__
 
28
 
 
29
 
 
30
#ifdef __cplusplus
 
31
extern "C" {
 
32
#endif /* __cplusplus */
 
33
 
 
34
#define GTK_PLOT_PS(obj)        GTK_CHECK_CAST (obj, gtk_plot_ps_get_type (), GtkPlotPS)
 
35
#define GTK_TYPE_PLOT_PS   (gtk_plot_ps_get_type ())
 
36
 
 
37
#define GTK_PLOT_PS_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_plot_ps_get_type(), GtkPlotPSClass)
 
38
#define GTK_IS_PLOT_PS(obj)     GTK_CHECK_TYPE (obj, gtk_plot_ps_get_type ())
 
39
 
 
40
 
 
41
typedef struct _GtkPlotPS GtkPlotPS;
 
42
typedef struct _GtkPlotPSClass GtkPlotPSClass;
 
43
 
 
44
struct _GtkPlotPS
 
45
{
 
46
   GtkPlotPC pc;
 
47
 
 
48
   FILE *psfile;
 
49
   gchar *psname;
 
50
 
 
51
   gint orientation;
 
52
   gint epsflag;
 
53
 
 
54
   gint units;
 
55
   gint page_size;
 
56
   gint width, height;
 
57
 
 
58
   gint page_width;
 
59
   gint page_height;
 
60
 
 
61
   gdouble scalex, scaley;
 
62
 
 
63
   gboolean gsaved;
 
64
};
 
65
 
 
66
struct _GtkPlotPSClass
 
67
{
 
68
   GtkPlotPCClass parent_class;
 
69
};
 
70
 
 
71
GtkType    gtk_plot_ps_get_type                        (void);
 
72
GtkObject *gtk_plot_ps_new                             (const gchar *psname,
 
73
                                                        gint orientation,
 
74
                                                        gint epsflag,
 
75
                                                        gint page_size,
 
76
                                                        gdouble scalex,
 
77
                                                        gdouble scaley);
 
78
 
 
79
GtkObject *gtk_plot_ps_new_with_size                   (const gchar *psname,
 
80
                                                        gint orientation,
 
81
                                                        gint epsflag,
 
82
                                                        gint units,
 
83
                                                        gdouble width,
 
84
                                                        gdouble height,
 
85
                                                        gdouble scalex,
 
86
                                                        gdouble scaley);
 
87
 
 
88
void    gtk_plot_ps_construct                          (GtkPlotPS *ps,
 
89
                                                        const gchar *psname,
 
90
                                                        gint orientation,
 
91
                                                        gint epsflag,
 
92
                                                        gint page_size,
 
93
                                                        gdouble scalex,
 
94
                                                        gdouble scaley);
 
95
void    gtk_plot_ps_construct_with_size                (GtkPlotPS *ps,
 
96
                                                        const gchar *psname,
 
97
                                                        gint orientation,
 
98
                                                        gint epsflag,
 
99
                                                        gint units,
 
100
                                                        gdouble width,
 
101
                                                        gdouble height,
 
102
                                                        gdouble scalex,
 
103
                                                        gdouble scaley);
 
104
 
 
105
void gtk_plot_ps_set_size                              (GtkPlotPS *ps,
 
106
                                                        gint units,
 
107
                                                        gdouble width,
 
108
                                                        gdouble height);
 
109
 
 
110
void gtk_plot_ps_set_scale                             (GtkPlotPS *ps,
 
111
                                                        gdouble scalex,
 
112
                                                        gdouble scaley);
 
113
 
 
114
 
 
115
#ifdef __cplusplus
 
116
}
 
117
#endif /* __cplusplus */
 
118
 
 
119
 
 
120
#endif /* __GTK_PLOT_PS_H__ */
 
121