score.h
Go to the documentation of this file.00001
00002
00003 #ifndef _CLUTTERMM_SCORE_H
00004 #define _CLUTTERMM_SCORE_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include <glibmm/object.h>
00027 #include <cluttermm/timeline.h>
00028 #include <clutter/clutter-score.h>
00029
00030
00031 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00032 typedef struct _ClutterScore ClutterScore;
00033 typedef struct _ClutterScoreClass ClutterScoreClass;
00034 #endif
00035
00036
00037 namespace Clutter
00038 { class Score_Class; }
00039 namespace Clutter
00040 {
00041
00042
00043 class Score : public Glib::Object
00044 {
00045
00046 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00047
00048 public:
00049 typedef Score CppObjectType;
00050 typedef Score_Class CppClassType;
00051 typedef ClutterScore BaseObjectType;
00052 typedef ClutterScoreClass BaseClassType;
00053
00054 private: friend class Score_Class;
00055 static CppClassType score_class_;
00056
00057 private:
00058
00059 Score(const Score&);
00060 Score& operator=(const Score&);
00061
00062 protected:
00063 explicit Score(const Glib::ConstructParams& construct_params);
00064 explicit Score(ClutterScore* castitem);
00065
00066 #endif
00067
00068 public:
00069 virtual ~Score();
00070
00071 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00072 static GType get_type() G_GNUC_CONST;
00073 static GType get_base_type() G_GNUC_CONST;
00074 #endif
00075
00077 ClutterScore* gobj() { return reinterpret_cast<ClutterScore*>(gobject_); }
00078
00080 const ClutterScore* gobj() const { return reinterpret_cast<ClutterScore*>(gobject_); }
00081
00083 ClutterScore* gobj_copy();
00084
00085 private:
00086
00087
00088 protected:
00089 Score();
00090
00091 public:
00092
00093 static Glib::RefPtr<Score> create();
00094
00095
00102 void set_loop(bool loop = true);
00103
00109 bool get_loop() const;
00110
00111
00121 guint append(const Glib::RefPtr<Timeline>& parent, const Glib::RefPtr<Timeline>& timeline);
00122
00129 guint append(const Glib::RefPtr<Timeline>& timeline);
00130
00131
00139 void remove(guint id);
00140
00145 void remove_all();
00146
00147
00155 Glib::RefPtr<Timeline> get_timeline(guint id);
00156
00164 Glib::RefPtr<const Timeline> get_timeline(guint id) const;
00165
00166
00171 void start();
00172
00177 void pause();
00178
00183 void stop();
00184
00189 void rewind();
00190
00196 bool is_playing() const;
00197
00198
00199 public:
00200
00201 public:
00202
00203 #ifdef GLIBMM_VFUNCS_ENABLED
00204 #endif //GLIBMM_VFUNCS_ENABLED
00205
00206 protected:
00207
00208 #ifdef GLIBMM_VFUNCS_ENABLED
00209 #endif //GLIBMM_VFUNCS_ENABLED
00210
00211
00212 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00213 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00214
00215
00216 };
00217
00218 }
00219
00220
00221
00222 namespace Glib
00223 {
00232 Glib::RefPtr<Clutter::Score> wrap(ClutterScore* object, bool take_copy = false);
00233 }
00234
00235
00236 #endif
00237