00001
00002
00003 #ifndef _CLUTTERMM_BEHAVIOUR_SCALE_H
00004 #define _CLUTTERMM_BEHAVIOUR_SCALE_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 <cluttermm/behaviour.h>
00027 #include <cluttermm/alpha.h>
00028 #include <cluttermm/types.h>
00029
00030
00031 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00032 typedef struct _ClutterBehaviourScale ClutterBehaviourScale;
00033 typedef struct _ClutterBehaviourScaleClass ClutterBehaviourScaleClass;
00034 #endif
00035
00036
00037 namespace Clutter
00038 { class BehaviourScale_Class; }
00039 namespace Clutter
00040 {
00041
00042
00043 class BehaviourScale : public Behaviour
00044 {
00045
00046 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00047
00048 public:
00049 typedef BehaviourScale CppObjectType;
00050 typedef BehaviourScale_Class CppClassType;
00051 typedef ClutterBehaviourScale BaseObjectType;
00052 typedef ClutterBehaviourScaleClass BaseClassType;
00053
00054 private: friend class BehaviourScale_Class;
00055 static CppClassType behaviourscale_class_;
00056
00057 private:
00058
00059 BehaviourScale(const BehaviourScale&);
00060 BehaviourScale& operator=(const BehaviourScale&);
00061
00062 protected:
00063 explicit BehaviourScale(const Glib::ConstructParams& construct_params);
00064 explicit BehaviourScale(ClutterBehaviourScale* castitem);
00065
00066 #endif
00067
00068 public:
00069 virtual ~BehaviourScale();
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 ClutterBehaviourScale* gobj() { return reinterpret_cast<ClutterBehaviourScale*>(gobject_); }
00078
00080 const ClutterBehaviourScale* gobj() const { return reinterpret_cast<ClutterBehaviourScale*>(gobject_); }
00081
00083 ClutterBehaviourScale* gobj_copy();
00084
00085 private:
00086
00087
00088 protected:
00089 explicit BehaviourScale(const Glib::RefPtr<Alpha>& alpha, double x_scale_start, double x_scale_end, double y_scale_start, double y_scale_end, Gravity scale_gravity);
00090 explicit BehaviourScale(const Glib::RefPtr<Alpha>& alpha, Fixed x_scale_start, Fixed x_scale_end, Fixed y_scale_start, Fixed y_scale_end, Gravity scale_gravity);
00091
00092 public:
00093
00094 static Glib::RefPtr<BehaviourScale> create(const Glib::RefPtr<Alpha>& alpha, double x_scale_start, double x_scale_end, double y_scale_start, double y_scale_end, Gravity gravity);
00095
00096
00097 static Glib::RefPtr<BehaviourScale> create(const Glib::RefPtr<Alpha>& alpha, Fixed x_scale_start, Fixed x_scale_end, Fixed y_scale_start, Fixed y_scale_end, Gravity gravity);
00098
00099
00108 void set_bounds(double x_scale_start, double y_scale_start, double x_scale_end, double y_scale_end);
00109
00122 void get_bounds(double& x_scale_start, double& y_scale_start, double& x_scale_end, double& y_scale_end) const;
00123
00134 void set_boundsx(Fixed x_scale_start, Fixed y_scale_start, Fixed x_scale_end, Fixed y_scale_end);
00135
00150 void get_boundsx(Fixed& x_scale_start, Fixed& y_scale_start, Fixed& x_scale_end, Fixed& y_scale_end) const;
00151
00152
00153
00154 #ifdef GLIBMM_PROPERTIES_ENABLED
00155
00161 Glib::PropertyProxy<Gravity> property_scale_gravity() ;
00162 #endif //#GLIBMM_PROPERTIES_ENABLED
00163
00164 #ifdef GLIBMM_PROPERTIES_ENABLED
00165
00171 Glib::PropertyProxy_ReadOnly<Gravity> property_scale_gravity() const;
00172 #endif //#GLIBMM_PROPERTIES_ENABLED
00173
00174 #ifdef GLIBMM_PROPERTIES_ENABLED
00175
00181 Glib::PropertyProxy<double> property_x_scale_start() ;
00182 #endif //#GLIBMM_PROPERTIES_ENABLED
00183
00184 #ifdef GLIBMM_PROPERTIES_ENABLED
00185
00191 Glib::PropertyProxy_ReadOnly<double> property_x_scale_start() const;
00192 #endif //#GLIBMM_PROPERTIES_ENABLED
00193
00194 #ifdef GLIBMM_PROPERTIES_ENABLED
00195
00201 Glib::PropertyProxy<double> property_x_scale_end() ;
00202 #endif //#GLIBMM_PROPERTIES_ENABLED
00203
00204 #ifdef GLIBMM_PROPERTIES_ENABLED
00205
00211 Glib::PropertyProxy_ReadOnly<double> property_x_scale_end() const;
00212 #endif //#GLIBMM_PROPERTIES_ENABLED
00213
00214 #ifdef GLIBMM_PROPERTIES_ENABLED
00215
00221 Glib::PropertyProxy<double> property_y_scale_start() ;
00222 #endif //#GLIBMM_PROPERTIES_ENABLED
00223
00224 #ifdef GLIBMM_PROPERTIES_ENABLED
00225
00231 Glib::PropertyProxy_ReadOnly<double> property_y_scale_start() const;
00232 #endif //#GLIBMM_PROPERTIES_ENABLED
00233
00234 #ifdef GLIBMM_PROPERTIES_ENABLED
00235
00241 Glib::PropertyProxy<double> property_y_scale_end() ;
00242 #endif //#GLIBMM_PROPERTIES_ENABLED
00243
00244 #ifdef GLIBMM_PROPERTIES_ENABLED
00245
00251 Glib::PropertyProxy_ReadOnly<double> property_y_scale_end() const;
00252 #endif //#GLIBMM_PROPERTIES_ENABLED
00253
00254
00255 public:
00256
00257 public:
00258
00259 #ifdef GLIBMM_VFUNCS_ENABLED
00260 #endif //GLIBMM_VFUNCS_ENABLED
00261
00262 protected:
00263
00264 #ifdef GLIBMM_VFUNCS_ENABLED
00265 #endif //GLIBMM_VFUNCS_ENABLED
00266
00267
00268 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00269 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00270
00271
00272 };
00273
00274 }
00275
00276
00277
00278 namespace Glib
00279 {
00288 Glib::RefPtr<Clutter::BehaviourScale> wrap(ClutterBehaviourScale* object, bool take_copy = false);
00289 }
00290
00291
00292 #endif
00293