39fdda56b2d47311b14d694a3a61c41e88d1a91b
[hildon] / src / hildon-date-button.h
1 /*
2  * This file is a part of hildon
3  *
4  * Copyright (C) 2008 Nokia Corporation, all rights reserved.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser Public License as published by
8  * the Free Software Foundation; version 2 of the license.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser Public License for more details.
14  *
15  */
16
17 #ifndef _HILDON_DATE_BUTTON
18 #define _HILDON_DATE_BUTTON
19
20 #include <gtk/gtk.h>
21
22 #include "hildon-picker-button.h"
23
24 G_BEGIN_DECLS
25
26 #define HILDON_TYPE_DATE_BUTTON            hildon_date_button_get_type()
27 #define HILDON_DATE_BUTTON(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), HILDON_TYPE_DATE_BUTTON, HildonDateButton))
28 #define HILDON_DATE_BUTTON_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), HILDON_TYPE_DATE_BUTTON, HildonDateButtonClass))
29 #define HILDON_IS_DATE_BUTTON(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_DATE_BUTTON))
30 #define HILDON_IS_DATE_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_DATE_BUTTON))
31 #define HILDON_DATE_BUTTON_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), HILDON_TYPE_DATE_BUTTON, HildonDateButtonClass))
32
33 typedef struct _HildonDateButton      HildonDateButton;
34 typedef struct _HildonDateButtonClass HildonDateButtonClass;
35
36 struct _HildonDateButton
37 {
38   HildonPickerButton parent;
39 };
40
41 struct _HildonDateButtonClass
42 {
43   HildonPickerButtonClass parent_class;
44 };
45
46 GType      hildon_date_button_get_type (void);
47 GtkWidget *hildon_date_button_new      (HildonSizeType          size,
48                                         HildonButtonArrangement arrangement);
49
50 void hildon_date_button_get_date       (HildonDateButton * button,
51                                         guint * year, guint * month, guint * day);
52 void hildon_date_button_set_date       (HildonDateButton * button,
53                                         guint year, guint month, guint day);
54
55 G_END_DECLS
56
57 #endif /* _HILDON_DATE_BUTTON */