1 /* 2 * 3 * This program is free software; you can redistribute it and/or modify it 4 * under the terms of the GNU Lesser General Public License as published by 5 * the Free Software Foundation. 6 * 7 * This program is distributed in the hope that it will be useful, but 8 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 9 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 10 * for more details. 11 * 12 * You should have received a copy of the GNU Lesser General Public License 13 * along with this program; if not, see <http://www.gnu.org/licenses/>. 14 * 15 * 16 * Authors: 17 * Damon Chaplin <damon@ximian.com> 18 * 19 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) 20 * 21 */ 22 23 /* 24 * EDayViewTopItem - displays the top part of the Day/Work Week calendar view. 25 */ 26 27 #ifndef E_DAY_VIEW_TOP_ITEM_H 28 #define E_DAY_VIEW_TOP_ITEM_H 29 30 #include "e-day-view.h" 31 32 /* Standard GObject macros */ 33 #define E_TYPE_DAY_VIEW_TOP_ITEM \ 34 (e_day_view_top_item_get_type ()) 35 #define E_DAY_VIEW_TOP_ITEM(obj) \ 36 (G_TYPE_CHECK_INSTANCE_CAST \ 37 ((obj), E_TYPE_DAY_VIEW_TOP_ITEM, EDayViewTopItem)) 38 #define E_DAY_VIEW_TOP_ITEM_CLASS(cls) \ 39 (G_TYPE_CHECK_CLASS_CAST \ 40 ((cls), E_TYPE_DAY_VIEW_TOP_ITEM, EDayViewTopItemClass)) 41 #define E_IS_DAY_VIEW_TOP_ITEM(obj) \ 42 (G_TYPE_CHECK_INSTANCE_TYPE \ 43 ((obj), E_TYPE_DAY_VIEW_TOP_ITEM)) 44 #define E_IS_DAY_VIEW_TOP_ITEM_CLASS(cls) \ 45 (G_TYPE_CHECK_CLASS_TYPE \ 46 ((cls), E_TYPE_DAY_VIEW_TOP_ITEM)) 47 #define E_DAY_VIEW_TOP_ITEM_GET_CLASS(obj) \ 48 (G_TYPE_INSTANCE_GET_CLASS \ 49 ((obj), E_TYPE_DAY_VIEW_TOP_ITEM, EDayViewTopItemClass)) 50 51 G_BEGIN_DECLS 52 53 typedef struct _EDayViewTopItem EDayViewTopItem; 54 typedef struct _EDayViewTopItemClass EDayViewTopItemClass; 55 typedef struct _EDayViewTopItemPrivate EDayViewTopItemPrivate; 56 57 struct _EDayViewTopItem { 58 GnomeCanvasItem parent; 59 EDayViewTopItemPrivate *priv; 60 }; 61 62 struct _EDayViewTopItemClass { 63 GnomeCanvasItemClass parent_class; 64 }; 65 66 GType e_day_view_top_item_get_type (void); 67 void e_day_view_top_item_get_day_label 68 (EDayView *day_view, 69 gint day, 70 gchar *buffer, 71 gint buffer_len); 72 EDayView * e_day_view_top_item_get_day_view (EDayViewTopItem *top_item); 73 void e_day_view_top_item_set_day_view (EDayViewTopItem *top_item, 74 EDayView *day_view); 75 gboolean e_day_view_top_item_get_show_dates 76 (EDayViewTopItem *top_item); 77 void e_day_view_top_item_set_show_dates 78 (EDayViewTopItem *top_item, 79 gboolean show_dates); 80 81 G_END_DECLS 82 83 #endif /* E_DAY_VIEW_TOP_ITEM_H */ 84