Updated Hungarian translation
[evolution.git] / e-util / ea-calendar-item.h
blob2fd89aa61915a1398a30ca9da17849ba8257ec4c
1 /*
2 * This program is free software; you can redistribute it and/or modify it
3 * under the terms of the GNU Lesser General Public License as published by
4 * the Free Software Foundation.
6 * This program is distributed in the hope that it will be useful, but
7 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
8 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
9 * for more details.
11 * You should have received a copy of the GNU Lesser General Public License
12 * along with this program; if not, see <http://www.gnu.org/licenses/>.
15 * Authors:
16 * Bolian Yin <bolian.yin@sun.com>
18 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
22 #if !defined (__E_UTIL_H_INSIDE__) && !defined (LIBEUTIL_COMPILATION)
23 #error "Only <e-util/e-util.h> should be included directly."
24 #endif
26 #ifndef __EA_CALENDAR_ITEM_H__
27 #define __EA_CALENDAR_ITEM_H__
29 #include <atk/atkgobjectaccessible.h>
30 #include <e-util/e-calendar-item.h>
32 G_BEGIN_DECLS
34 #define EA_TYPE_CALENDAR_ITEM (ea_calendar_item_get_type ())
35 #define EA_CALENDAR_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EA_TYPE_CALENDAR_ITEM, EaCalendarItem))
36 #define EA_CALENDAR_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EA_TYPE_CALENDAR_ITEM, EaCalendarItemClass))
37 #define EA_IS_CALENDAR_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EA_TYPE_CALENDAR_ITEM))
38 #define EA_IS_CALENDAR_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EA_TYPE_CALENDAR_ITEM))
39 #define EA_CALENDAR_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EA_TYPE_CALENDAR_ITEM, EaCalendarItemClass))
41 typedef struct _EaCalendarItem EaCalendarItem;
42 typedef struct _EaCalendarItemClass EaCalendarItemClass;
44 struct _EaCalendarItem
46 AtkGObjectAccessible parent;
49 GType ea_calendar_item_get_type (void);
51 struct _EaCalendarItemClass
53 AtkGObjectAccessibleClass parent_class;
56 AtkObject *ea_calendar_item_new (GObject *obj);
57 gboolean e_calendar_item_get_day_extents (ECalendarItem *calitem,
58 gint year, gint month, gint date,
59 gint *x, gint *y,
60 gint *width, gint *height);
61 gboolean e_calendar_item_get_date_for_offset (ECalendarItem *calitem,
62 gint day_offset,
63 gint *year, gint *month,
64 gint *day);
65 gboolean e_calendar_item_get_date_for_cell (ECalendarItem *calitem,
66 gint row,
67 gint column,
68 gint *year, gint *month,
69 gint *day);
70 gint e_calendar_item_get_n_days_from_week_start (ECalendarItem *calitem,
71 gint year, gint month);
73 G_END_DECLS
75 #endif /* __EA_CALENDAR_ITEM_H__ */