author | Michael Krelin <hacker@klever.net> | 2008-04-05 11:17:33 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2008-04-05 11:17:33 (UTC) |
commit | 04fb190243442e83349f129b523ab747e58100bf (patch) (side-by-side diff) | |
tree | ddc28357fbe78b07fd3a5e0aa8088130bf305829 /src/sleep_timeline.h | |
download | napkin-0.0.zip napkin-0.0.tar.gz napkin-0.0.tar.bz2 |
Initial commit into public repository0.0
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | src/sleep_timeline.h | 29 |
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 */ |