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)
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
19 #ifndef MATH_BUTTONS_H
20 #define MATH_BUTTONS_H
22 #include <glib-object.h>
24 #include "math-equation.h"
28 #define MATH_BUTTONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), math_buttons_get_type(), MathButtons))
30 typedef struct MathButtonsPrivate MathButtonsPrivate
;
34 GtkVBox parent_instance
;
35 MathButtonsPrivate
*priv
;
40 GtkVBoxClass parent_class
;
50 GType
math_buttons_get_type(void);
52 MathButtons
*math_buttons_new(MathEquation
*equation
);
54 void math_buttons_set_mode(MathButtons
*buttons
, ButtonMode mode
);
56 ButtonMode
math_buttons_get_mode(MathButtons
*buttons
);
58 void math_buttons_set_programming_base(MathButtons
*buttons
, gint base
);
60 gint
math_buttons_get_programming_base(MathButtons
*buttons
);
64 #endif /* MATH_BUTTONS_H */