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 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-alpha.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 protected:
00089   Alpha();
00090 
00091 public:
00092 
00096   typedef sigc::slot<guint32, const Glib::RefPtr<Alpha>& > SlotAlphaFunc;
00097 
00098 protected:
00103   Alpha(const Glib::RefPtr<Timeline>& timeline, const SlotAlphaFunc& slot);
00104 
00109   Alpha(const Glib::RefPtr<Timeline>& timeline, ClutterAlphaFunc callback);
00110 
00111 public:
00112   
00113   static Glib::RefPtr<Alpha> create();
00114 
00115   
00116   static Glib::RefPtr<Alpha> create(const Glib::RefPtr<Timeline>& timeline, const SlotAlphaFunc& slot);
00117 
00118   
00119   static Glib::RefPtr<Alpha> create(const Glib::RefPtr<Timeline>& timeline, ClutterAlphaFunc callback);
00120 
00121 
00127   void set_timeline(const Glib::RefPtr<Timeline>& timeline);
00128   
00134   Glib::RefPtr<Timeline> get_timeline() const;
00135   
00141   guint32 get_alpha() const;
00142 
00143   void set_func(const SlotAlphaFunc& slot);
00144   
00145 
00146   // TODO: wrap pre-made alpha funcs?
00147 
00148 
00149 public:
00150 
00151 public:
00152   //C++ methods used to invoke GTK+ virtual functions:
00153 #ifdef GLIBMM_VFUNCS_ENABLED
00154 #endif //GLIBMM_VFUNCS_ENABLED
00155 
00156 protected:
00157   //GTK+ Virtual Functions (override these to change behaviour):
00158 #ifdef GLIBMM_VFUNCS_ENABLED
00159 #endif //GLIBMM_VFUNCS_ENABLED
00160 
00161   //Default Signal Handlers::
00162 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00163 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00164 
00165 
00166 };
00167 
00171 extern Alpha::SlotAlphaFunc ALPHA_RAMP_INC;
00172 extern Alpha::SlotAlphaFunc ALPHA_RAMP_DEC;
00173 extern Alpha::SlotAlphaFunc ALPHA_RAMP;
00174 extern Alpha::SlotAlphaFunc ALPHA_SINE;
00175 extern Alpha::SlotAlphaFunc ALPHA_SINE_INC;
00176 extern Alpha::SlotAlphaFunc ALPHA_SINE_DEC;
00177 extern Alpha::SlotAlphaFunc ALPHA_SINE_HALF;
00178 extern Alpha::SlotAlphaFunc ALPHA_SQUARE;
00179 extern Alpha::SlotAlphaFunc ALPHA_SMOOTHSTEP_INC;
00180 extern Alpha::SlotAlphaFunc ALPHA_SMOOTHSTEP_DEC;
00181 extern Alpha::SlotAlphaFunc ALPHA_EXP_INC;
00182 extern Alpha::SlotAlphaFunc ALPHA_EXP_DEC;
00184 
00185 } // namespace Clutter
00186 // vim:ts=2,sw=2
00187 
00188 
00189 namespace Glib
00190 {
00199   Glib::RefPtr<Clutter::Alpha> wrap(ClutterAlpha* object, bool take_copy = false);
00200 }
00201 
00202 
00203 #endif /* _CLUTTERMM_ALPHA_H */
00204 

Generated on Sun Feb 15 18:55:38 2009 for cluttermm by  doxygen 1.5.7.1