2 * Copyright (C) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.
3 * Copyright (C) 2008-2011 Robert Ancell.
5 * This program is free software: you can redistribute it and/or modify it under
6 * the terms of the GNU General Public License as published by the Free Software
7 * Foundation, either version 2 of the License, or (at your option) any later
8 * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
15 #include <glib-object.h>
16 #include "math-equation.h"
17 #include "math-display.h"
18 #include "math-buttons.h"
22 #define MATH_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), math_window_get_type(), MathWindow))
24 typedef struct MathWindowPrivate MathWindowPrivate
;
28 GtkWindow parent_instance
;
29 MathWindowPrivate
*priv
;
34 GtkWindowClass parent_class
;
36 void (*quit
)(MathWindow
*window
);
39 GType
math_window_get_type(void);
41 MathWindow
*math_window_new(MathEquation
*equation
);
43 GtkWidget
*math_window_get_menu_bar(MathWindow
*window
);
45 MathEquation
*math_window_get_equation(MathWindow
*window
);
47 MathDisplay
*math_window_get_display(MathWindow
*window
);
49 MathButtons
*math_window_get_buttons(MathWindow
*window
);
51 void math_window_critical_error(MathWindow
*window
, const gchar
*title
, const gchar
*contents
);
55 #endif /* MATH_WINDOW_H */