Disable localized digits (Bug #644980)
[gcalctool.git] / src / math-display.h
blob861328093392e7514b5199ed8c69c647e7d9efaa
1 /* Copyright (c) 2008-2009 Robert Ancell
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2, or (at your option)
6 * any later version.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
16 * 02111-1307, USA.
19 #ifndef MATH_DISPLAY_H
20 #define MATH_DISPLAY_H
22 #include <glib-object.h>
23 #include <gtk/gtk.h>
25 #include "math-equation.h"
27 G_BEGIN_DECLS
29 #define MATH_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), math_display_get_type(), MathDisplay))
31 typedef struct MathDisplayPrivate MathDisplayPrivate;
33 typedef struct
35 GtkViewport parent_instance;
36 MathDisplayPrivate *priv;
37 } MathDisplay;
39 typedef struct
41 GtkViewportClass parent_class;
42 } MathDisplayClass;
44 GType math_display_get_type(void);
46 MathDisplay *math_display_new(void);
48 MathDisplay *math_display_new_with_equation(MathEquation *equation);
50 MathEquation *math_display_get_equation(MathDisplay *display);
52 G_END_DECLS
54 #endif /* MATH_DISPLAY_H */