2 * This file is a part of hildon
4 * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
6 * Contact: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; version 2.1 of
11 * the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25 #ifndef __HILDON_CALENDAR_PRIVATE_H__
26 #define __HILDON_CALENDAR_PRIVATE_H__
32 #define HILDON_CALENDAR_GET_PRIVATE(widget) \
33 (((HildonCalendarPrivate*)(HILDON_CALENDAR (widget)->private_data)))
35 typedef struct _HildonCalendarPrivate HildonCalendarPrivate;
37 struct _HildonCalendarPrivate
39 GdkWindow *header_win;
40 GdkWindow *footer_win;
41 GdkWindow *day_name_win;
44 GdkWindow *arrow_win[4];
52 /* guint arrow_width; This is now defined constant. Even normal Gtk don't allow to change this */
54 guint max_month_width;
61 guint max_day_char_width;
62 guint max_day_char_ascent;
63 guint max_day_char_descent;
64 guint max_label_char_ascent;
65 guint max_label_char_descent;
66 guint max_week_char_width;
71 guint dirty_header : 1;
72 guint dirty_day_names : 1;
76 /* guint year_before : 1;*/
81 guint drag_highlight : 1;
86 /* Following variables are for current date */
91 /* Keep track of day and month
92 * where mouse button was pressed
97 /* Boolean value to indicate if
98 * out of bound day was selected
102 /* Must check if we are sliding stylus */
103 gboolean slide_stylus;
115 char *abbreviated_dayname[7];
121 #endif /* __HILDON_CALENDAR_PRIVATE_H__ */