aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gncal-full-day.h
blob: 0d50243dc2c02338ead3fd5080a0200abf65f2f5 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/* Full day widget for gncal
 *
 * Copyright (C) 1998 The Free Software Foundation
 *
 * Author: Federico Mena <quartic@gimp.org>
 */

#ifndef GNCAL_FULL_DAY_H
#define GNCAL_FULL_DAY_H


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


BEGIN_GNOME_DECLS


#define GNCAL_FULL_DAY(obj)         GTK_CHECK_CAST (obj, gncal_full_day_get_type (), GncalFullDay)
#define GNCAL_FULL_DAY_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gncal_full_day_get_type (), GncalFullDayClass)
#define GNCAL_IS_FULL_DAY(obj)      GTK_CHECK_TYPE (obj, gncal_full_day_get_type ())


typedef struct _GncalFullDay GncalFullDay;
typedef struct _GncalFullDayClass GncalFullDayClass;

struct _GncalFullDay {
    GtkContainer container;

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

    time_t lower;           /* lower time to display */
    time_t upper;           /* upper time to display */
    int interval;           /* interval between rows in minutes */

    GList *children;        /* container children */
    gpointer drag_info;     /* internal drag information */

    GdkCursor *up_down_cursor;  /* for dragging children */
    GdkCursor *beam_cursor;     /* for the text widgets */
};

struct _GncalFullDayClass {
    GtkContainerClass parent_class;

    void (* range_activated) (GncalFullDay *fullday);
};


guint      gncal_full_day_get_type              (void);
GtkWidget *gncal_full_day_new                   (GnomeCalendar *calendar, time_t lower, time_t upper);

void       gncal_full_day_update                (GncalFullDay *fullday, iCalObject *ico, int flags);
void       gncal_full_day_set_bounds            (GncalFullDay *fullday, time_t lower, time_t upper);

/* Returns the selected range in lower and upper.  If nothing is
 * selected, return value is FALSE, otherwise it is TRUE.
 * The lower and upper values are always set to proper values, regardless of
 * the selection value 
 */
int        gncal_full_day_selection_range       (GncalFullDay *fullday, time_t *lower, time_t *upper);

void       gncal_full_day_focus_child           (GncalFullDay *fullday, iCalObject *ico);

int        gncal_full_day_get_day_start_yoffset (GncalFullDay *fullday);

END_GNOME_DECLS

#endif
ghlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */

DEXON DEMO IoT Firmware built with PlatformIO

Prerequisites

You need to setup PlatformIO before you can start working on this project.

Build and Flash

> pio run -t upload

Monitor

> pio run -t monitor