2 * This file is a part of hildon
4 * Copyright (C) 2008 Nokia Corporation, all rights reserved.
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.
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.
17 #ifndef __HILDON_DATE_BUTTON__
18 #define __HILDON_DATE_BUTTON__
22 #include "hildon-picker-button.h"
26 #define HILDON_TYPE_DATE_BUTTON \
27 hildon_date_button_get_type()
29 #define HILDON_DATE_BUTTON(obj) \
30 (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
31 HILDON_TYPE_DATE_BUTTON, HildonDateButton))
33 #define HILDON_DATE_BUTTON_CLASS(klass) \
34 (G_TYPE_CHECK_CLASS_CAST ((klass), \
35 HILDON_TYPE_DATE_BUTTON, HildonDateButtonClass))
37 #define HILDON_IS_DATE_BUTTON(obj) \
38 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_DATE_BUTTON))
40 #define HILDON_IS_DATE_BUTTON_CLASS(klass) \
41 (G_TYPE_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_DATE_BUTTON))
43 #define HILDON_DATE_BUTTON_GET_CLASS(obj) \
44 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
45 HILDON_TYPE_DATE_BUTTON, HildonDateButtonClass))
48 typedef struct _HildonDateButton HildonDateButton;
49 typedef struct _HildonDateButtonClass HildonDateButtonClass;
51 struct _HildonDateButton
53 HildonPickerButton parent;
56 struct _HildonDateButtonClass
58 HildonPickerButtonClass parent_class;
62 hildon_date_button_get_type (void);
65 hildon_date_button_new (HildonSizeType size,
66 HildonButtonArrangement arrangement);
69 hildon_date_button_new_with_year_range (HildonSizeType size,
70 HildonButtonArrangement arrangement,
75 hildon_date_button_get_date (HildonDateButton *button,
80 hildon_date_button_set_date (HildonDateButton * button,
87 #endif /* __HILDON_DATE_BUTTON__ */