aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gncal-day-view.h
blob: ed918e4f377b6426a585cf688ce65b0a2fcf71ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* Day view widget for gncal
 *
 * Copyright (C) 1998 The Free Software Foundation
 *
 * Author: Federico Mena <federico@nuclecu.unam.mx>
 */

#ifndef GNCAL_DAY_VIEW_H
#define GNCAL_DAY_VIEW_H


#include <gtk/gtkwidget.h>
#include <libgnome/gnome-defs.h>
#include "calendar.h"


BEGIN_GNOME_DECLS


#define GNCAL_DAY_VIEW(obj)         GTK_CHECK_CAST (obj, gncal_day_view_get_type (), GncalDayView)
#define GNCAL_DAY_VIEW_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gncal_day_view_get_type (), GncalDayViewClass)
#define GNCAL_IS_DAY_VIEW(obj)      GTK_CHECK_TYPE (obj, gncal_day_view_get_type ())


typedef struct _GncalDayView      GncalDayView;
typedef struct _GncalDayViewClass GncalDayViewClass;

struct _GncalDayView {
    GtkWidget widget;

    Calendar *calendar;     /* the calendar we are associated to */

    int lower;              /* lower and upper hours of the day to display */
    int upper;
    int use_am_pm;      /* use am/pm (TRUE) or 24-hour format (FALSE) */
};

struct _GncalDayViewClass {
    GtkWidgetClass parent_class;
};


guint      gncal_day_view_get_type   (void);
GtkWidget *gncal_day_view_new        (Calendar *calendar);

void       gncal_day_view_set_bounds (GncalDayView *dview, int lower, int upper);
void       gncal_day_view_set_format (GncalDayView *dview, int use_am_pm);


END_GNOME_DECLS

#endif