~ubuntu-branches/ubuntu/precise/gcompris/precise

« back to all changes in this revision

Viewing changes to src/money-activity/money_widget.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-01-10 01:37:41 UTC
  • mto: This revision was merged to the branch mainline in revision 48.
  • Revision ID: package-import@ubuntu.com-20120110013741-q90ulmfrj910igm3
Tags: upstream-12.01
ImportĀ upstreamĀ versionĀ 12.01

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#endif /* __cplusplus */
33
33
 
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)
38
 
 
39
 
typedef struct _Money_Widget        Money_Widget;
40
 
typedef struct _Money_WidgetClass   Money_WidgetClass;
41
 
typedef struct _Money_WidgetPrivate Money_WidgetPrivate;
42
 
 
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))
 
38
 
 
39
typedef struct _MoneyWidget        MoneyWidget;
 
40
typedef struct _MoneyWidgetClass   MoneyWidgetClass;
 
41
typedef struct _MoneyWidgetPrivate MoneyWidgetPrivate;
 
42
 
 
43
struct _MoneyWidgetClass {
 
44
        GObjectClass parent_class;
45
45
};
46
46
 
47
 
struct _Money_Widget {
48
 
        GtkObject        object;
 
47
struct _MoneyWidget {
 
48
        GObject        parent_instance;
49
49
 
50
 
        Money_WidgetPrivate *priv;
 
50
        MoneyWidgetPrivate *priv;
51
51
};
52
52
 
53
53
typedef enum {
66
66
} MoneyEuroType;
67
67
 
68
68
 
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);
72
72
 
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,
77
77
                                                  double x1,
78
78
                                                  double y1,
81
81
                                                  guint  colomns,
82
82
                                                  guint  lines,
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);
86
86
 
87
87
/* Misc. accessors */
88
 
float          money_widget_get_total           (Money_Widget *moneyWidget);
 
88
float          money_widget_get_total           (MoneyWidget *moneyWidget);
89
89
 
90
90
#ifdef __cplusplus
91
91
}