summaryrefslogtreecommitdiffabout
path: root/src/sleep_timeline.h
Side-by-side diff
Diffstat (limited to 'src/sleep_timeline.h') (more/less context) (ignore whitespace changes)
-rw-r--r--src/sleep_timeline.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/sleep_timeline.h b/src/sleep_timeline.h
new file mode 100644
index 0000000..3264fd6
--- a/dev/null
+++ b/src/sleep_timeline.h
@@ -0,0 +1,29 @@
+#ifndef __N_SLEEP_TIMELINE_H
+#define __N_SLEEP_TIMELINE_H
+
+#include <time.h>
+#include <gtkmm/drawingarea.h>
+#include <napkin/types.h>
+
+namespace napkin {
+ namespace gtk {
+
+ void render_sleep_timeline(
+ const hypnodata_t& hd,
+ const Glib::RefPtr<Gdk::Drawable>& w,
+ int x0,int y0,int dx,int dy,
+ time_t _t0=0,time_t _t1=0);
+
+ class sleep_timeline_t : public Gtk::DrawingArea {
+ public:
+ hypnodata_ptr_t hd;
+
+ bool on_expose_event(GdkEventExpose*);
+ void set_data(const hypnodata_ptr_t& _hd);
+ };
+
+
+ }
+}
+
+#endif /* __N_SLEEP_TIMELINE_H */