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 | |
39 | G_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 | |
46 | typedef struct _GtkCalendar GtkCalendar; |
47 | |
48 | GDK_AVAILABLE_IN_ALL |
49 | GType gtk_calendar_get_type (void) G_GNUC_CONST; |
50 | GDK_AVAILABLE_IN_ALL |
51 | GtkWidget* gtk_calendar_new (void); |
52 | |
53 | GDK_AVAILABLE_IN_ALL |
54 | void gtk_calendar_select_day (GtkCalendar *self, |
55 | GDateTime *date); |
56 | |
57 | GDK_AVAILABLE_IN_ALL |
58 | void gtk_calendar_mark_day (GtkCalendar *calendar, |
59 | guint day); |
60 | GDK_AVAILABLE_IN_ALL |
61 | void gtk_calendar_unmark_day (GtkCalendar *calendar, |
62 | guint day); |
63 | GDK_AVAILABLE_IN_ALL |
64 | void gtk_calendar_clear_marks (GtkCalendar *calendar); |
65 | |
66 | GDK_AVAILABLE_IN_ALL |
67 | void gtk_calendar_set_show_week_numbers (GtkCalendar *self, |
68 | gboolean value); |
69 | GDK_AVAILABLE_IN_ALL |
70 | gboolean gtk_calendar_get_show_week_numbers (GtkCalendar *self); |
71 | GDK_AVAILABLE_IN_ALL |
72 | void gtk_calendar_set_show_heading (GtkCalendar *self, |
73 | gboolean value); |
74 | GDK_AVAILABLE_IN_ALL |
75 | gboolean gtk_calendar_get_show_heading (GtkCalendar *self); |
76 | GDK_AVAILABLE_IN_ALL |
77 | void gtk_calendar_set_show_day_names (GtkCalendar *self, |
78 | gboolean value); |
79 | GDK_AVAILABLE_IN_ALL |
80 | gboolean gtk_calendar_get_show_day_names (GtkCalendar *self); |
81 | |
82 | GDK_AVAILABLE_IN_ALL |
83 | GDateTime * gtk_calendar_get_date (GtkCalendar *self); |
84 | |
85 | GDK_AVAILABLE_IN_ALL |
86 | gboolean gtk_calendar_get_day_is_marked (GtkCalendar *calendar, |
87 | guint day); |
88 | |
89 | G_END_DECLS |
90 | |
91 | #endif /* __GTK_CALENDAR_H__ */ |
92 | |