summaryrefslogtreecommitdiff
path: root/src/totem-time-label.h
blob: f080135d6b4d8d2742694e70fd2c4f36b10b187e (plain)
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

#ifndef TOTEM_TIME_LABEL_H
#define TOTEM_TIME_LABEL_H

#include <gtk/gtklabel.h>

#define TOTEM_TYPE_TIME_LABEL            (totem_time_label_get_type ())
#define TOTEM_TIME_LABEL(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOTEM_TYPE_TIME_LABEL, TotemTimeLabel))
#define TOTEM_TIME_LABEL_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), TOTEM_TYPE_TIME_LABEL, TotemTimeLabelClass))
#define TOTEM_IS_TIME_LABEL(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOTEM_TYPE_TIME_LABEL))
#define TOTEM_IS_TIME_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOTEM_TYPE_TIME_LABEL))

typedef struct TotemTimeLabel	      TotemTimeLabel;
typedef struct TotemTimeLabelClass    TotemTimeLabelClass;
typedef struct _TotemTimeLabelPrivate TotemTimeLabelPrivate;

struct TotemTimeLabel {
	GtkLabel parent;
	TotemTimeLabelPrivate *priv;
};

struct TotemTimeLabelClass {
	GtkLabelClass parent_class;
};

GType    totem_time_label_get_type 	(void);
GtkWidget *totem_time_label_new      	(void);
void       totem_time_label_set_time    (TotemTimeLabel *label,
					 gint64 time, gint64 length);
void       totem_time_label_set_seeking (TotemTimeLabel *label,
           gboolean seeking);

#endif /* TOTEM_TIME_LABEL_H */