summaryrefslogtreecommitdiff
path: root/plugins/mouse/gsd-timeline.h
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-01 23:53:21 -0300
committerPerberos <[email protected]>2011-12-01 23:53:21 -0300
commit505cabbd3036081f26586cabc64c26e7769c0ec9 (patch)
tree09e0498bf572128f5c9ab551531cb28d6d75e992 /plugins/mouse/gsd-timeline.h
downloadmate-settings-daemon-505cabbd3036081f26586cabc64c26e7769c0ec9.tar.bz2
mate-settings-daemon-505cabbd3036081f26586cabc64c26e7769c0ec9.tar.xz
moving from https://github.com/perberos/mate-desktop-environment
Diffstat (limited to 'plugins/mouse/gsd-timeline.h')
-rw-r--r--plugins/mouse/gsd-timeline.h127
1 files changed, 127 insertions, 0 deletions
diff --git a/plugins/mouse/gsd-timeline.h b/plugins/mouse/gsd-timeline.h
new file mode 100644
index 0000000..d4ecbcc
--- /dev/null
+++ b/plugins/mouse/gsd-timeline.h
@@ -0,0 +1,127 @@
+/* gsdtimeline.c
+ *
+ * Copyright (C) 2008 Carlos Garnacho <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __GSD_TIMELINE_H__
+#define __GSD_TIMELINE_H__
+
+#include <glib-object.h>
+#include <gdk/gdk.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define GSD_TYPE_TIMELINE_DIRECTION (gsd_timeline_direction_get_type ())
+#define GSD_TYPE_TIMELINE_PROGRESS_TYPE (gsd_timeline_progress_type_get_type ())
+#define GSD_TYPE_TIMELINE (gsd_timeline_get_type ())
+#define GSD_TIMELINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GSD_TYPE_TIMELINE, GsdTimeline))
+#define GSD_TIMELINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GSD_TYPE_TIMELINE, GsdTimelineClass))
+#define GSD_IS_TIMELINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GSD_TYPE_TIMELINE))
+#define GSD_IS_TIMELINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GSD_TYPE_TIMELINE))
+#define GSD_TIMELINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GSD_TYPE_TIMELINE, GsdTimelineClass))
+
+typedef enum {
+ GSD_TIMELINE_DIRECTION_FORWARD,
+ GSD_TIMELINE_DIRECTION_BACKWARD
+} GsdTimelineDirection;
+
+typedef enum {
+ GSD_TIMELINE_PROGRESS_LINEAR,
+ GSD_TIMELINE_PROGRESS_SINUSOIDAL,
+ GSD_TIMELINE_PROGRESS_EXPONENTIAL
+} GsdTimelineProgressType;
+
+typedef struct GsdTimeline GsdTimeline;
+typedef struct GsdTimelineClass GsdTimelineClass;
+
+struct GsdTimeline
+{
+ GObject parent_instance;
+};
+
+struct GsdTimelineClass
+{
+ GObjectClass parent_class;
+
+ void (* started) (GsdTimeline *timeline);
+ void (* finished) (GsdTimeline *timeline);
+ void (* paused) (GsdTimeline *timeline);
+
+ void (* frame) (GsdTimeline *timeline,
+ gdouble progress);
+
+ void (* __gsd_reserved1) (void);
+ void (* __gsd_reserved2) (void);
+ void (* __gsd_reserved3) (void);
+ void (* __gsd_reserved4) (void);
+};
+
+typedef gdouble (*GsdTimelineProgressFunc) (gdouble progress);
+
+
+GType gsd_timeline_get_type (void) G_GNUC_CONST;
+GType gsd_timeline_direction_get_type (void) G_GNUC_CONST;
+GType gsd_timeline_progress_type_get_type (void) G_GNUC_CONST;
+
+GsdTimeline *gsd_timeline_new (guint duration);
+GsdTimeline *gsd_timeline_new_for_screen (guint duration,
+ GdkScreen *screen);
+
+void gsd_timeline_start (GsdTimeline *timeline);
+void gsd_timeline_pause (GsdTimeline *timeline);
+void gsd_timeline_rewind (GsdTimeline *timeline);
+
+gboolean gsd_timeline_is_running (GsdTimeline *timeline);
+
+guint gsd_timeline_get_fps (GsdTimeline *timeline);
+void gsd_timeline_set_fps (GsdTimeline *timeline,
+ guint fps);
+
+gboolean gsd_timeline_get_loop (GsdTimeline *timeline);
+void gsd_timeline_set_loop (GsdTimeline *timeline,
+ gboolean loop);
+
+guint gsd_timeline_get_duration (GsdTimeline *timeline);
+void gsd_timeline_set_duration (GsdTimeline *timeline,
+ guint duration);
+
+GdkScreen *gsd_timeline_get_screen (GsdTimeline *timeline);
+void gsd_timeline_set_screen (GsdTimeline *timeline,
+ GdkScreen *screen);
+
+GsdTimelineDirection gsd_timeline_get_direction (GsdTimeline *timeline);
+void gsd_timeline_set_direction (GsdTimeline *timeline,
+ GsdTimelineDirection direction);
+
+GsdTimelineProgressType gsd_timeline_get_progress_type (GsdTimeline *timeline);
+void gsd_timeline_set_progress_type (GsdTimeline *timeline,
+ GsdTimelineProgressType type);
+void gsd_timeline_get_progress_func (GsdTimeline *timeline);
+
+void gsd_timeline_set_progress_func (GsdTimeline *timeline,
+ GsdTimelineProgressFunc progress_func);
+
+gdouble gsd_timeline_get_progress (GsdTimeline *timeline);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __GSD_TIMELINE_H__ */