Updated Makefile.am for Latvian language help translation.
[gcalctool.git] / src / math-display.h
blob1f37bd10b34683d24ba342d13b28f4253aaf93d0
1 /*
2 * Copyright (C) 2008-2011 Robert Ancell
4 * This program is free software: you can redistribute it and/or modify it under
5 * the terms of the GNU General Public License as published by the Free Software
6 * Foundation, either version 2 of the License, or (at your option) any later
7 * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
8 * license.
9 */
11 #ifndef MATH_DISPLAY_H
12 #define MATH_DISPLAY_H
14 #include <glib-object.h>
15 #include <gtk/gtk.h>
17 #include "math-equation.h"
19 G_BEGIN_DECLS
21 #define MATH_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), math_display_get_type(), MathDisplay))
23 typedef struct MathDisplayPrivate MathDisplayPrivate;
25 typedef struct
27 GtkViewport parent_instance;
28 MathDisplayPrivate *priv;
29 } MathDisplay;
31 typedef struct
33 GtkViewportClass parent_class;
34 } MathDisplayClass;
36 GType math_display_get_type(void);
38 MathDisplay *math_display_new(void);
40 MathDisplay *math_display_new_with_equation(MathEquation *equation);
42 MathEquation *math_display_get_equation(MathDisplay *display);
44 G_END_DECLS
46 #endif /* MATH_DISPLAY_H */