score.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _CLUTTERMM_SCORE_H
00004 #define _CLUTTERMM_SCORE_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 /* Copyright (C) 2007 The cluttermm Development Team
00010  *
00011  * This library is free software; you can redistribute it and/or
00012  * modify it under the terms of the GNU Library General Public
00013  * License as published by the Free Software Foundation; either
00014  * version 2 of the License, or (at your option) any later version.
00015  *
00016  * This library is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019  * Library General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU Library General Public
00022  * License along with this library; if not, write to the Free
00023  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
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 /* DOXYGEN_SHOULD_SKIP_THIS */
00035 
00036 
00037 namespace Clutter
00038 { class Score_Class; } // namespace Clutter
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   // noncopyable
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 /* DOXYGEN_SHOULD_SKIP_THIS */
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   //C++ methods used to invoke GTK+ virtual functions:
00203 #ifdef GLIBMM_VFUNCS_ENABLED
00204 #endif //GLIBMM_VFUNCS_ENABLED
00205 
00206 protected:
00207   //GTK+ Virtual Functions (override these to change behaviour):
00208 #ifdef GLIBMM_VFUNCS_ENABLED
00209 #endif //GLIBMM_VFUNCS_ENABLED
00210 
00211   //Default Signal Handlers::
00212 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00213 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00214 
00215 
00216 };
00217 
00218 } // namespace Clutter
00219 // vim:ts=2,sw=2
00220 
00221 
00222 namespace Glib
00223 {
00232   Glib::RefPtr<Clutter::Score> wrap(ClutterScore* object, bool take_copy = false);
00233 }
00234 
00235 
00236 #endif /* _CLUTTERMM_SCORE_H */
00237 

Generated on Fri Jun 6 02:12:48 2008 for cluttermm by  doxygen 1.5.5