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
11
#ifndef MATH_BUTTONS_H
12
#define MATH_BUTTONS_H
14
#include <glib-object.h>
16
#include "math-equation.h"
20
#define MATH_BUTTONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), math_buttons_get_type(), MathButtons))
22
typedef struct MathButtonsPrivate MathButtonsPrivate;
26
GtkVBox parent_instance;
27
MathButtonsPrivate *priv;
32
GtkVBoxClass parent_class;
42
GType math_buttons_get_type(void);
44
MathButtons *math_buttons_new(MathEquation *equation);
46
void math_buttons_set_mode(MathButtons *buttons, ButtonMode mode);
48
ButtonMode math_buttons_get_mode(MathButtons *buttons);
50
void math_buttons_set_programming_base(MathButtons *buttons, gint base);
52
gint math_buttons_get_programming_base(MathButtons *buttons);
56
#endif /* MATH_BUTTONS_H */