alpha.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _CLUTTERMM_ALPHA_H
00004 #define _CLUTTERMM_ALPHA_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 Lesser General Public
00013  * License as published by the Free Software Foundation; either
00014  * version 2.1 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  * Lesser General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU Lesser 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.h>
00029  
00030 
00031 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00032 typedef struct _ClutterAlpha ClutterAlpha;
00033 typedef struct _ClutterAlphaClass ClutterAlphaClass;
00034 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00035 
00036 
00037 namespace Clutter
00038 { class Alpha_Class; } // namespace Clutter
00039 namespace Clutter
00040 {
00041 
00042 
00043 class Alpha : public Glib::Object
00044 {
00045   
00046 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00047 
00048 public:
00049   typedef Alpha CppObjectType;
00050   typedef Alpha_Class CppClassType;
00051   typedef ClutterAlpha BaseObjectType;
00052   typedef ClutterAlphaClass BaseClassType;
00053 
00054 private:  friend class Alpha_Class;
00055   static CppClassType alpha_class_;
00056 
00057 private:
00058   // noncopyable
00059   Alpha(const Alpha&);
00060   Alpha& operator=(const Alpha&);
00061 
00062 protected:
00063   explicit Alpha(const Glib::ConstructParams& construct_params);
00064   explicit Alpha(ClutterAlpha* castitem);
00065 
00066 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00067 
00068 public:
00069   virtual ~Alpha();
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   ClutterAlpha*       gobj()       { return reinterpret_cast<ClutterAlpha*>(gobject_); }
00078 
00080   const ClutterAlpha* gobj() const { return reinterpret_cast<ClutterAlpha*>(gobject_); }
00081 
00083   ClutterAlpha* gobj_copy();
00084 
00085 private:
00086 
00087   
00088 public:
00092   typedef sigc::slot<double, const Glib::RefPtr<Alpha>&> SlotAlphaFunc;
00093 
00094 protected:
00095   Alpha();
00096   explicit Alpha(const Glib::RefPtr<Timeline>& timeline, gulong mode);
00097 
00102   Alpha(const Glib::RefPtr<Timeline>& timeline, const SlotAlphaFunc& slot);
00103 
00104 public:
00105   enum { MAX_ALPHA = 0xFFFF };
00106 
00107   
00108   static Glib::RefPtr<Alpha> create();
00109 
00110   
00111   static Glib::RefPtr<Alpha> create(const Glib::RefPtr<Timeline>& timeline, const SlotAlphaFunc& slot);
00112 
00113   
00114   static Glib::RefPtr<Alpha> create(const Glib::RefPtr<Timeline>& timeline, gulong mode);
00115 
00116 
00122   void set_timeline(const Glib::RefPtr<Timeline>& timeline);
00123   
00129   Glib::RefPtr<Timeline> get_timeline() const;
00130   
00136   double get_alpha() const;
00137 
00138   
00139   void set_func(const SlotAlphaFunc& slot);
00140 
00141   //TODO: Special methods that take AnimationMode?
00142   
00150   void set_mode(gulong mode);
00151   
00157   gulong get_mode() const;
00158 
00159   #ifdef GLIBMM_PROPERTIES_ENABLED
00160 
00166   Glib::PropertyProxy_ReadOnly<double> property_alpha() const;
00167 #endif //#GLIBMM_PROPERTIES_ENABLED
00168 
00169 
00170   #ifdef GLIBMM_PROPERTIES_ENABLED
00171 
00177   Glib::PropertyProxy< Glib::RefPtr<Timeline> > property_timeline() ;
00178 #endif //#GLIBMM_PROPERTIES_ENABLED
00179 
00180 #ifdef GLIBMM_PROPERTIES_ENABLED
00181 
00187   Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Timeline> > property_timeline() const;
00188 #endif //#GLIBMM_PROPERTIES_ENABLED
00189 
00190 
00191   // We don't need the GClosure stuff in C++:
00192   
00193 
00194 public:
00195 
00196 public:
00197   //C++ methods used to invoke GTK+ virtual functions:
00198 #ifdef GLIBMM_VFUNCS_ENABLED
00199 #endif //GLIBMM_VFUNCS_ENABLED
00200 
00201 protected:
00202   //GTK+ Virtual Functions (override these to change behaviour):
00203 #ifdef GLIBMM_VFUNCS_ENABLED
00204 #endif //GLIBMM_VFUNCS_ENABLED
00205 
00206   //Default Signal Handlers::
00207 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00208 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00209 
00210 
00211 };
00212 
00213 } // namespace Clutter
00214 
00215 
00216 namespace Glib
00217 {
00226   Glib::RefPtr<Clutter::Alpha> wrap(ClutterAlpha* object, bool take_copy = false);
00227 }
00228 
00229 
00230 #endif /* _CLUTTERMM_ALPHA_H */
00231 

Generated on 7 Sep 2009 for cluttermm by  doxygen 1.6.1