1/* GTK - The GIMP Toolkit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3 *
4 * GTK Calendar Widget
5 * Copyright (C) 1998 Cesar Miquel and Shawn T. Amundson
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21/*
22 * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
23 * file for a list of people on the GTK+ Team. See the ChangeLog
24 * files for a list of changes. These files are distributed with
25 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
26 */
27
28#ifndef __GTK_CALENDAR_H__
29#define __GTK_CALENDAR_H__
30
31
32#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
33#error "Only <gtk/gtk.h> can be included directly."
34#endif
35
36#include <gtk/gtkwidget.h>
37
38
39G_BEGIN_DECLS
40
41#define GTK_TYPE_CALENDAR (gtk_calendar_get_type ())
42#define GTK_CALENDAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CALENDAR, GtkCalendar))
43#define GTK_IS_CALENDAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CALENDAR))
44
45
46typedef struct _GtkCalendar GtkCalendar;
47
48GDK_AVAILABLE_IN_ALL
49GType gtk_calendar_get_type (void) G_GNUC_CONST;
50GDK_AVAILABLE_IN_ALL
51GtkWidget* gtk_calendar_new (void);
52
53GDK_AVAILABLE_IN_ALL
54void gtk_calendar_select_day (GtkCalendar *self,
55 GDateTime *date);
56
57GDK_AVAILABLE_IN_ALL
58void gtk_calendar_mark_day (GtkCalendar *calendar,
59 guint day);
60GDK_AVAILABLE_IN_ALL
61void gtk_calendar_unmark_day (GtkCalendar *calendar,
62 guint day);
63GDK_AVAILABLE_IN_ALL
64void gtk_calendar_clear_marks (GtkCalendar *calendar);
65
66GDK_AVAILABLE_IN_ALL
67void gtk_calendar_set_show_week_numbers (GtkCalendar *self,
68 gboolean value);
69GDK_AVAILABLE_IN_ALL
70gboolean gtk_calendar_get_show_week_numbers (GtkCalendar *self);
71GDK_AVAILABLE_IN_ALL
72void gtk_calendar_set_show_heading (GtkCalendar *self,
73 gboolean value);
74GDK_AVAILABLE_IN_ALL
75gboolean gtk_calendar_get_show_heading (GtkCalendar *self);
76GDK_AVAILABLE_IN_ALL
77void gtk_calendar_set_show_day_names (GtkCalendar *self,
78 gboolean value);
79GDK_AVAILABLE_IN_ALL
80gboolean gtk_calendar_get_show_day_names (GtkCalendar *self);
81
82GDK_AVAILABLE_IN_ALL
83GDateTime * gtk_calendar_get_date (GtkCalendar *self);
84
85GDK_AVAILABLE_IN_ALL
86gboolean gtk_calendar_get_day_is_marked (GtkCalendar *calendar,
87 guint day);
88
89G_END_DECLS
90
91#endif /* __GTK_CALENDAR_H__ */
92

source code of gtk/gtk/gtkcalendar.h