32
32
#endif /* __cplusplus */
34
34
#define TYPE_MONEY_WIDGET (money_widget_get_type ())
35
#define MONEY_WIDGET(obj) GTK_CHECK_CAST (obj, TYPE_MONEY_WIDGET, Money_Widget)
36
#define MONEY_WIDGET_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, TYPE_MONEY_WIDGET, Money_WidgetClass)
37
#define IS_MONEY_WIDGET(obj) GTK_CHECK_TYPE (obj, TYPE_MONEY_WIDGET)
39
typedef struct _Money_Widget Money_Widget;
40
typedef struct _Money_WidgetClass Money_WidgetClass;
41
typedef struct _Money_WidgetPrivate Money_WidgetPrivate;
43
struct _Money_WidgetClass {
44
GtkObjectClass parent_class;
35
#define MONEY_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONEY_WIDGET, MoneyWidget))
36
#define MONEY_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MONEY_WIDGET, MoneyWidgetClass))
37
#define IS_MONEY_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONEY_WIDGET))
39
typedef struct _MoneyWidget MoneyWidget;
40
typedef struct _MoneyWidgetClass MoneyWidgetClass;
41
typedef struct _MoneyWidgetPrivate MoneyWidgetPrivate;
43
struct _MoneyWidgetClass {
44
GObjectClass parent_class;
47
struct _Money_Widget {
48
GObject parent_instance;
50
Money_WidgetPrivate *priv;
50
MoneyWidgetPrivate *priv;
69
GtkType money_widget_get_type (void);
70
GtkObject *money_widget_new (void);
71
Money_Widget *money_widget_copy (Money_Widget *moneyWidget);
69
GType money_widget_get_type (void);
70
GObject *money_widget_new (void);
71
MoneyWidget *money_widget_copy (MoneyWidget *moneyWidget);
73
void money_widget_set_target (Money_Widget *moneyWidget,
74
Money_Widget *targetWidget);
75
void money_widget_set_position (Money_Widget *moneyWidget,
73
void money_widget_set_target (MoneyWidget *moneyWidget,
74
MoneyWidget *targetWidget);
75
void money_widget_set_position (MoneyWidget *moneyWidget,
76
76
GooCanvasItem *rootItem,
83
83
gboolean display_total);
84
void money_widget_add (Money_Widget *moneyWidget, MoneyEuroType value);
85
void money_widget_remove (Money_Widget *moneyWidget, MoneyEuroType value);
84
void money_widget_add (MoneyWidget *moneyWidget, MoneyEuroType value);
85
void money_widget_remove (MoneyWidget *moneyWidget, MoneyEuroType value);
87
87
/* Misc. accessors */
88
float money_widget_get_total (Money_Widget *moneyWidget);
88
float money_widget_get_total (MoneyWidget *moneyWidget);