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.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 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
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
00192
00193
00194 public:
00195
00196 public:
00197
00198 #ifdef GLIBMM_VFUNCS_ENABLED
00199 #endif //GLIBMM_VFUNCS_ENABLED
00200
00201 protected:
00202
00203 #ifdef GLIBMM_VFUNCS_ENABLED
00204 #endif //GLIBMM_VFUNCS_ENABLED
00205
00206
00207 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00208 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00209
00210
00211 };
00212
00213 }
00214
00215
00216 namespace Glib
00217 {
00226 Glib::RefPtr<Clutter::Alpha> wrap(ClutterAlpha* object, bool take_copy = false);
00227 }
00228
00229
00230 #endif
00231