view gtktimeline.h @ 353:83e4af7835ce

Work towards editor.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 16 Oct 2012 01:33:26 +0300
parents 9cf1a58b0234
children
line wrap: on
line source

#ifndef GTKTIMELINE_H
#define GTKTIMELINE_H

#include <gtk/gtk.h>
#include <cairo.h>

#include "dmtimeline.h"

G_BEGIN_DECLS


#define GTK_TIMELINE(obj) GTK_CHECK_CAST(obj, gtk_timeline_get_type (), GtkTimeline)
#define GTK_TIMELINE_CLASS(klass) GTK_CHECK_CLASS_CAST(klass, gtk_timeline_get_type(), GtkTimelineClass)
#define GTK_IS_TIMELINE(obj) GTK_CHECK_TYPE(obj, gtk_timeline_get_type())


typedef struct _GtkTimeline GtkTimeline;
typedef struct _GtkTimelineClass GtkTimelineClass;


struct _GtkTimeline
{
    GtkWidget widget;
    DMTimeline *tl;
    gint time, offs;
    gfloat zoom;
};

struct _GtkTimelineClass
{
    GtkWidgetClass parent_class;
};


GtkType      gtk_timeline_get_type(void);
void         gtk_timeline_set_timeline(GtkTimeline *timeline, DMTimeline *tl);
void         gtk_timeline_set_zoom(GtkTimeline *timeline, gfloat zoom);
void         gtk_timeline_set_time(GtkTimeline *timeline, gint time);
void         gtk_timeline_set_offs(GtkTimeline *timeline, gint offs);
GtkWidget *  gtk_timeline_new();


G_END_DECLS

#endif