alpha.h
Go to the documentation of this file.00001
00002
00003 #ifndef _CLUTTERMM_ALPHA_H
00004 #define _CLUTTERMM_ALPHA_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-alpha.h>
00029
00030
00031 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00032 typedef struct _ClutterAlpha ClutterAlpha;
00033 typedef struct _ClutterAlphaClass ClutterAlphaClass;
00034 #endif
00035
00036
00037 namespace Clutter
00038 { class Alpha_Class; }
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
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
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 #ifdef GLIBMM_PROPERTIES_ENABLED
00147
00153 Glib::PropertyProxy_ReadOnly<guint> property_alpha() const;
00154 #endif //#GLIBMM_PROPERTIES_ENABLED
00155
00156
00157 #ifdef GLIBMM_PROPERTIES_ENABLED
00158
00164 Glib::PropertyProxy< Glib::RefPtr<Timeline> > property_timeline() ;
00165 #endif //#GLIBMM_PROPERTIES_ENABLED
00166
00167 #ifdef GLIBMM_PROPERTIES_ENABLED
00168
00174 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Timeline> > property_timeline() const;
00175 #endif //#GLIBMM_PROPERTIES_ENABLED
00176
00177
00178
00179
00180
00181 public:
00182
00183 public:
00184
00185 #ifdef GLIBMM_VFUNCS_ENABLED
00186 #endif //GLIBMM_VFUNCS_ENABLED
00187
00188 protected:
00189
00190 #ifdef GLIBMM_VFUNCS_ENABLED
00191 #endif //GLIBMM_VFUNCS_ENABLED
00192
00193
00194 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00195 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00196
00197
00198 };
00199
00203 extern Alpha::SlotAlphaFunc ALPHA_RAMP_INC;
00204 extern Alpha::SlotAlphaFunc ALPHA_RAMP_DEC;
00205 extern Alpha::SlotAlphaFunc ALPHA_RAMP;
00206 extern Alpha::SlotAlphaFunc ALPHA_SINE;
00207 extern Alpha::SlotAlphaFunc ALPHA_SINE_INC;
00208 extern Alpha::SlotAlphaFunc ALPHA_SINE_DEC;
00209 extern Alpha::SlotAlphaFunc ALPHA_SINE_HALF;
00210 extern Alpha::SlotAlphaFunc ALPHA_SQUARE;
00211 extern Alpha::SlotAlphaFunc ALPHA_SMOOTHSTEP_INC;
00212 extern Alpha::SlotAlphaFunc ALPHA_SMOOTHSTEP_DEC;
00213 extern Alpha::SlotAlphaFunc ALPHA_EXP_INC;
00214 extern Alpha::SlotAlphaFunc ALPHA_EXP_DEC;
00216
00217 }
00218
00219
00220
00221 namespace Glib
00222 {
00231 Glib::RefPtr<Clutter::Alpha> wrap(ClutterAlpha* object, bool take_copy = false);
00232 }
00233
00234
00235 #endif
00236