script.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _CLUTTERMM_SCRIPT_H
00004 #define _CLUTTERMM_SCRIPT_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-script.h>
00029  
00030 
00031 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00032 typedef struct _ClutterScript ClutterScript;
00033 typedef struct _ClutterScriptClass ClutterScriptClass;
00034 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00035 
00036 
00037 namespace Clutter
00038 { class Script_Class; } // namespace Clutter
00039 namespace Clutter
00040 {
00041 
00042 
00043 class Script : public Glib::Object
00044 {
00045   
00046 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00047 
00048 public:
00049   typedef Script CppObjectType;
00050   typedef Script_Class CppClassType;
00051   typedef ClutterScript BaseObjectType;
00052   typedef ClutterScriptClass BaseClassType;
00053 
00054 private:  friend class Script_Class;
00055   static CppClassType script_class_;
00056 
00057 private:
00058   // noncopyable
00059   Script(const Script&);
00060   Script& operator=(const Script&);
00061 
00062 protected:
00063   explicit Script(const Glib::ConstructParams& construct_params);
00064   explicit Script(ClutterScript* castitem);
00065 
00066 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00067 
00068 public:
00069   virtual ~Script();
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   ClutterScript*       gobj()       { return reinterpret_cast<ClutterScript*>(gobject_); }
00078 
00080   const ClutterScript* gobj() const { return reinterpret_cast<ClutterScript*>(gobject_); }
00081 
00083   ClutterScript* gobj_copy();
00084 
00085 private:
00086 
00087 
00088 protected:
00089   Script();
00090 
00091 public:
00092   
00093   static Glib::RefPtr<Script> create();
00094 
00095 
00096   //_WRAP_METHOD(guint load_from_data(const std::string& data), clutter_script_load_from_data, errthrow)
00097   
00107 #ifdef GLIBMM_EXCEPTIONS_ENABLED
00108   guint load_from_file(const std::string& filename);
00109 #else
00110   guint load_from_file(const std::string& filename, std::auto_ptr<Glib::Error>& error);
00111 #endif //GLIBMM_EXCEPTIONS_ENABLED
00112 
00113 
00122   Glib::RefPtr<Glib::Object> get_object(const Glib::ustring& name);
00123   
00132   Glib::RefPtr<const Glib::Object> get_object(const Glib::ustring& name) const;
00133 
00134   //clutter_script_get_objects() is a varargs convenience function for C.
00135   
00136 
00142   void unmerge_object(guint merge_id);
00143   
00149   void ensure_objects();
00150 
00151   // TODO: connect_signals functions
00152   // TODO: do we need get_type_from_name()?
00153   // clutter_script_connect_signals() and clutter_script_connect_signals_full() seem to be like glade_xml_autoconnect(), 
00154   // and I don't see a way to implement them in C++. murrayc.
00155 
00156   
00165   static std::string get_script_id(const Glib::RefPtr<const Glib::Object>& object);
00166 
00167   #ifdef GLIBMM_PROPERTIES_ENABLED
00168 
00174   Glib::PropertyProxy_ReadOnly<std::string> property_filename() const;
00175 #endif //#GLIBMM_PROPERTIES_ENABLED
00176 
00177 
00178   #ifdef GLIBMM_PROPERTIES_ENABLED
00179 
00185   Glib::PropertyProxy_ReadOnly<bool> property_filename_set() const;
00186 #endif //#GLIBMM_PROPERTIES_ENABLED
00187 
00188 
00189 public:
00190 
00191 public:
00192   //C++ methods used to invoke GTK+ virtual functions:
00193 #ifdef GLIBMM_VFUNCS_ENABLED
00194 #endif //GLIBMM_VFUNCS_ENABLED
00195 
00196 protected:
00197   //GTK+ Virtual Functions (override these to change behaviour):
00198 #ifdef GLIBMM_VFUNCS_ENABLED
00199 #endif //GLIBMM_VFUNCS_ENABLED
00200 
00201   //Default Signal Handlers::
00202 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00203 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00204 
00205 
00206 };
00207 
00208 } // namespace Clutter
00209 // vim:ts=2,sw=2
00210 
00211 
00212 namespace Glib
00213 {
00222   Glib::RefPtr<Clutter::Script> wrap(ClutterScript* object, bool take_copy = false);
00223 }
00224 
00225 
00226 #endif /* _CLUTTERMM_SCRIPT_H */
00227 

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