Commit cfbad980 authored by Murray Cumming's avatar Murray Cumming

Remove deprecated classes.

This is the master branch, wrapping clutter-2.0 (currently 1.99.1).
See also the cluttermm-1-18 branch.
parent 915a4f77
......@@ -25,7 +25,7 @@
*
* cluttermm is a C++ wrapper for <a href="http://www.clutter-project.org/">Clutter</a>.
* See Clutter::Stage and Clutter::Actor, for instance, and see the
* <a href="http://www.openismus.com/documents/cluttermm_tutorial/1.0/docs/tutorial/html/">Programming with cluttermm</a> tutorial.
* <a href="http://www.openismus.com/documents/cluttermm_tutorial/2.0/docs/tutorial/html/">Programming with cluttermm</a> tutorial.
*
* @section basics Basic Usage
*
......@@ -37,12 +37,12 @@
*
* If your source file is @c program.cc, you can compile it with:
* @code
* g++ program.cc -o program `pkg-config --cflags --libs cluttermm-1.0`
* g++ program.cc -o program `pkg-config --cflags --libs cluttermm-2.0`
* @endcode
*
* Alternatively, if using autoconf, use the following in @c configure.ac:
* @code
* PKG_CHECK_MODULES([CLUTTERMM], [cluttermm-1.0])
* PKG_CHECK_MODULES([CLUTTERMM], [cluttermm-2.0])
* @endcode
* Then use the generated @c CLUTTERMM_CFLAGS and @c CLUTTERMM_LIBS variables
* in the project @c Makefile.am files. For example:
......@@ -59,24 +59,12 @@
#include <cluttermm/actor-box.h>
#include <cluttermm/actor-meta.h>
#include <cluttermm/align-constraint.h>
#include <cluttermm/alpha.h>
#include <cluttermm/animatable.h>
#include <cluttermm/animation.h>
#include <cluttermm/animator.h>
#include <cluttermm/behaviour.h>
#include <cluttermm/behaviour-depth.h>
#include <cluttermm/behaviour-ellipse.h>
#include <cluttermm/behaviour-opacity.h>
#include <cluttermm/behaviour-path.h>
#include <cluttermm/behaviour-rotate.h>
#include <cluttermm/behaviour-scale.h>
#include <cluttermm/bin-layout.h>
#include <cluttermm/bind-constraint.h>
#include <cluttermm/box.h>
#include <cluttermm/box-layout.h>
#include <cluttermm/blur-effect.h>
#include <cluttermm/brightness-contrast-effect.h>
#include <cluttermm/cairo-texture.h>
#include <cluttermm/canvas.h>
#include <cluttermm/childmeta.h>
#include <cluttermm/clone.h>
......@@ -93,7 +81,6 @@
#include <cluttermm/flow-layout.h>
#include <cluttermm/frame-source.h>
#include <cluttermm/grid-layout.h>
#include <cluttermm/group.h>
#include <cluttermm/image.h>
#include <cluttermm/init.h>
#include <cluttermm/input-device.h>
......@@ -102,7 +89,6 @@
#include <cluttermm/layout-manager.h>
#include <cluttermm/layoutmeta.h>
#include <cluttermm/main.h>
#include <cluttermm/media.h>
#include <cluttermm/model.h>
#include <cluttermm/model-iter.h>
#include <cluttermm/offscreen-effect.h>
......@@ -110,18 +96,14 @@
#include <cluttermm/path.h>
#include <cluttermm/path-constraint.h>
#include <cluttermm/property-transition.h>
#include <cluttermm/rectangle.h>
#include <cluttermm/score.h>
#include <cluttermm/script.h>
#include <cluttermm/scroll-actor.h>
#include <cluttermm/shader.h>
#include <cluttermm/shader-effect.h>
#include <cluttermm/size.h>
#include <cluttermm/snap-constraint.h>
#include <cluttermm/stage.h>
#include <cluttermm/text.h>
#include <cluttermm/text-buffer.h>
#include <cluttermm/texture.h>
#include <cluttermm/threads.h>
#include <cluttermm/timeline.h>
#include <cluttermm/transition.h>
......
/* Copyright (C) 2007 The cluttermm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <clutter/clutter.h>
namespace
{
static double SignalProxy_Alpha_callback(ClutterAlpha *alpha, gpointer user_data)
{
double value = 0;
Clutter::Alpha::SlotAlphaFunc* the_slot = static_cast<Clutter::Alpha::SlotAlphaFunc*>(user_data);
#ifdef GLIBMM_EXCEPTIONS_ENABLED
try
{
#endif
Glib::RefPtr<Clutter::Alpha> cpp_alpha = Glib::wrap(alpha, true /* take reference */);
value = (*the_slot)(cpp_alpha);
#ifdef GLIBMM_EXCEPTIONS_ENABLED
}
catch(...)
{
Glib::exception_handlers_invoke();
}
#endif
return value;
}
static void SignalProxy_Alpha_callback_destroy(void* data)
{
delete static_cast<Clutter::Alpha::SlotAlphaFunc*>(data);
}
} // anonymous namespace
namespace Clutter
{
Alpha::Alpha(const Glib::RefPtr<Timeline>& timeline, const SlotAlphaFunc& slot)
:
_CONSTRUCT()
{
_INITIALLY_UNOWNED_SINK
set_timeline(timeline);
set_func(slot);
}
void Alpha::set_func(const SlotAlphaFunc& slot)
{
//Create a copy of the slot. A pointer to this will be passed through the callback's data parameter.
//It will be deleted when SignalProxy_Alpha_callback_destroy() is called.
SlotAlphaFunc *const slot_copy = new SlotAlphaFunc(slot);
clutter_alpha_set_func(
gobj(),
&SignalProxy_Alpha_callback, slot_copy,
&SignalProxy_Alpha_callback_destroy);
}
} // namespace Clutter
/* Copyright (C) 2007 The cluttermm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <glibmm/object.h>
#include <cluttermm/timeline.h>
_DEFS(cluttermm,clutter)
_PINCLUDE(glibmm/private/object_p.h)
#m4 _PUSH(SECTION_CC_PRE_INCLUDES)
#define CLUTTER_DISABLE_DEPRECATION_WARNINGS 1
#m4 _POP()
namespace Clutter
{
/**
* @deprecated Use the "progress-mode" property of Clutter::Timeline, or the
* Clutter::Timeline::set_progress_func() method instead.
*/
class Alpha : public Glib::Object
{
_CLASS_GOBJECT(Alpha, ClutterAlpha, CLUTTER_ALPHA, Glib::Object, GObject)
_DERIVES_INITIALLY_UNOWNED()
_IS_DEPRECATED
public:
/** For instance,
* double on_alpha(const Glib::RefPtr<Alpha>& alpha);
*/
typedef sigc::slot<double, const Glib::RefPtr<Alpha>&> SlotAlphaFunc;
protected:
_CTOR_DEFAULT()
_WRAP_CTOR(Alpha(const Glib::RefPtr<Timeline>& timeline, gulong mode), clutter_alpha_new_full)
/** Creates a new Alpha instance and sets the timeline and the alpha function.
* @param timeline Timeline.
* @param slot Alpha function.
*/
Alpha(const Glib::RefPtr<Timeline>& timeline, const SlotAlphaFunc& slot);
public:
enum { MAX_ALPHA = 0xFFFF };
_WRAP_CREATE()
_WRAP_CREATE(const Glib::RefPtr<Timeline>& timeline, const SlotAlphaFunc& slot)
_WRAP_CREATE(const Glib::RefPtr<Timeline>& timeline, gulong mode)
_WRAP_METHOD(void set_timeline(const Glib::RefPtr<Timeline>& timeline), clutter_alpha_set_timeline)
_WRAP_METHOD(Glib::RefPtr<Timeline> get_timeline(), clutter_alpha_get_timeline, refreturn)
_WRAP_METHOD(Glib::RefPtr<const Timeline> get_timeline() const, clutter_alpha_get_timeline, refreturn, constversion)
_WRAP_METHOD(double get_alpha() const, clutter_alpha_get_alpha)
_IGNORE(clutter_alpha_set_func)
void set_func(const SlotAlphaFunc& slot);
//TODO: Special methods that take AnimationMode?
_WRAP_METHOD(void set_mode(gulong mode), clutter_alpha_set_mode)
_WRAP_METHOD(gulong get_mode() const, clutter_alpha_get_mode)
_WRAP_PROPERTY("alpha", double)
_WRAP_PROPERTY("timeline", Glib::RefPtr<Timeline>)
// We don't need the GClosure stuff in C++:
_IGNORE(clutter_alpha_set_closure)
};
} // namespace Clutter
/* Copyright (C) 2007 The cluttermm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <clutter/clutter.h>
namespace Clutter
{
} //namespace Clutter
/* Copyright (C) 2009 The cluttermm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <glibmm/object.h>
#include <cluttermm/alpha.h>
#include <cluttermm/actor.h>
#include <cluttermm/interval.h>
#include <cluttermm/timeline.h>
_DEFS(cluttermm,clutter)
_PINCLUDE(glibmm/private/object_p.h)
#m4 _PUSH(SECTION_CC_PRE_INCLUDES)
#define CLUTTER_DISABLE_DEPRECATION_WARNINGS 1
#m4 _POP()
namespace Clutter
{
/**
* @deprecated Use PropertyTransition instead.
*/
class Animation : public Glib::Object
{
_CLASS_GOBJECT(Animation, ClutterAnimation, CLUTTER_ANIMATION, Glib::Object, GObject)
_IS_DEPRECATED
protected:
_CTOR_DEFAULT()
public:
_WRAP_CREATE()
_WRAP_METHOD(void set_object(const Glib::RefPtr<Glib::Object>& object), clutter_animation_set_object, deprecated "Use PropertyTransition instead.")
_WRAP_METHOD(Glib::RefPtr<Glib::Object> get_object(), clutter_animation_get_objec, deprecated "Use PropertyTransition instead.")
_WRAP_METHOD(Glib::RefPtr<const Glib::Object> get_object() const, clutter_animation_get_object, deprecated "Use PropertyTransition instead.")
_WRAP_METHOD(void set_mode(gulong mode), clutter_animation_set_mode, deprecated "Use PropertyTransition instead.")
_WRAP_METHOD(gulong get_mode() const, clutter_animation_get_mode, deprecated "Use PropertyTransition instead.")
_WRAP_METHOD(void set_duration(guint msecs), clutter_animation_set_duration, deprecated "Use PropertyTransition instead.")
_WRAP_METHOD(guint get_duration() const, clutter_animation_get_duration, deprecated "Use PropertyTransition instead.")
_WRAP_METHOD(void set_loop(bool loop = true), clutter_animation_set_loop, deprecated "Use PropertyTransition instead.")
_WRAP_METHOD(bool get_loop() const, clutter_animation_get_loop, deprecated "Use PropertyTransition instead.")
_WRAP_METHOD(void set_timeline(const Glib::RefPtr<Timeline>& timeline), clutter_animation_set_timeline, deprecated "Use PropertyTransition instead.")
_WRAP_METHOD(Glib::RefPtr<Timeline> get_timeline() const, clutter_animation_get_timeline, deprecated "Use PropertyTransition instead.")
_WRAP_METHOD(void set_alpha(const Glib::RefPtr<Alpha>& alpha), clutter_animation_set_alpha, deprecated "Use get_timeline() and set_progress_mode() instead.")
_WRAP_METHOD(Glib::RefPtr<Alpha> get_alpha() const, clutter_animation_get_alpha, deprecated "Use get_timeline() and set_progress_mode() instead.")
_WRAP_METHOD(void completed(), clutter_animation_completed, deprecated "Use PropertyTransition instead.")
_WRAP_METHOD(Glib::RefPtr<Animation> bind(const std::string& property_name, const Glib::ValueBase& final), clutter_animation_bind, deprecated "Use PropertyTransition instead.")
//TODO: Add templated bind().
_WRAP_METHOD(void bind_interval(const std::string& property_name, const Glib::RefPtr<Interval>& interval), clutter_animation_bind_interval, deprecated "Use PropertyTransition instead.")
_WRAP_METHOD(void update_interval(const std::string& property_name, const Glib::RefPtr<Interval>& interval), clutter_animation_update_interval, deprecated "Use PropertyTransition instead.")
_WRAP_METHOD(bool has_property(const std::string& property_name) const, clutter_animation_has_property, deprecated "Use PropertyTransition instead.")
_WRAP_METHOD(Glib::RefPtr<Animation> update(const std::string& property_name, const Glib::ValueBase& final), clutter_animation_update, deprecated "Use PropertyTransition instead.")
//TODO: Add templated update().
_WRAP_METHOD(void unbind_property(const std::string& property_name), clutter_animation_unbind_property, deprecated "Use PropertyTransition instead.")
//This needs at least a comment about the constness, though this is deprecated anyway.
_WRAP_METHOD(Glib::RefPtr<Interval> get_interval(const std::string& property_name) const, clutter_animation_get_interval, deprecated "Use PropertyTransition instead.")
_WRAP_SIGNAL(void started(), "started", deprecated "Use PropertyTransition instead.")
_WRAP_SIGNAL(void completed(), "completed", deprecated "Use PropertyTransition instead.")
_WRAP_PROPERTY("object", Glib::RefPtr<Glib::Object>)
_WRAP_PROPERTY("mode", gulong)
_WRAP_PROPERTY("duration", guint)
_WRAP_PROPERTY("loop", bool)
_WRAP_PROPERTY("timeline", Glib::RefPtr<Timeline>)
_WRAP_PROPERTY("alpha", Glib::RefPtr<Alpha>)
};
} // namespace Clutter
/*
* Copyright (c) 2011 The cluttermm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#include <clutter/clutter.h>
namespace Clutter
{
} // namespace Clutter
/* Copyright (C) 2011 The cluttermm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <glibmm/object.h>
#include <cluttermm/scriptable.h>
_DEFS(cluttermm,clutter)
_PINCLUDE(glibmm/private/object_p.h)
#m4 _PUSH(SECTION_CC_PRE_INCLUDES)
#define CLUTTER_DISABLE_DEPRECATION_WARNINGS 1
#m4 _POP()
namespace Clutter
{
_WRAP_ENUM(Interpolation, ClutterInterpolation)
class Timeline;
/**
* @deprecated Use KeyframeTransition instead.
*/
class Animator : public Glib::Object
{
_CLASS_GOBJECT(Animator, ClutterAnimator, CLUTTER_ANIMATOR, Glib::Object, GObject)
_IMPLEMENTS_INTERFACE(Scriptable)
_IS_DEPRECATED
protected:
_CTOR_DEFAULT()
public:
_WRAP_CREATE()
_IGNORE(clutter_animator_set)
_WRAP_METHOD(Glib::RefPtr<Animator> set_key(const Glib::RefPtr<Glib::Object>& object, const Glib::ustring& property_name, guint mode, double progress, const Glib::ValueBase& value), clutter_animator_set_key, refreturn)
_WRAP_METHOD(Glib::RefPtr<const Animator> set_key(const Glib::RefPtr<Glib::Object>& object, const Glib::ustring& property_name, guint mode, double progress, const Glib::ValueBase& value) const, clutter_animator_set_key, refreturn, constversion)
_WRAP_METHOD(void remove_key(const Glib::RefPtr<Glib::Object>& object, const Glib::ustring& property_name, double progress), clutter_animator_remove_key)
// TODO: _WRAP_METHOD(std::vector<Glib::RefPtr<Animator> > get_keys(const Glib::RefPtr<Glib::Object>& object, const std::string &property_name, double progress), clutter_animator_get_keys)
_IGNORE(clutter_animator_get_keys)
_WRAP_METHOD(Glib::RefPtr<Timeline> start(), clutter_animator_start, refreturn)
_WRAP_METHOD(Glib::RefPtr<const Timeline> start() const, clutter_animator_start, refreturn, constversion)
_WRAP_METHOD(bool compute_value(const Glib::RefPtr<Glib::Object>& object, const Glib::ustring& property_name, double progress, Glib::ValueBase& value), clutter_animator_compute_value)
_WRAP_METHOD(void set_timeline(const Glib::RefPtr<Timeline>& timeline), clutter_animator_set_timeline)
_WRAP_METHOD(Glib::RefPtr<Timeline> get_timeline(), clutter_animator_get_timeline, refreturn)
_WRAP_METHOD(Glib::RefPtr<const Timeline> get_timeline() const, clutter_animator_get_timeline, refreturn, constversion)
_WRAP_METHOD(void set_duration(guint duration), clutter_animator_set_duration)
_WRAP_METHOD(guint get_duration() const, clutter_animator_get_duration)
_WRAP_METHOD(void property_set_ease_in(const Glib::RefPtr<Glib::Object>& object, const Glib::ustring& property_name, bool ease_in), clutter_animator_property_set_ease_in)
_WRAP_METHOD(bool property_get_ease_in(const Glib::RefPtr<Glib::Object>& object, const Glib::ustring& property_name), clutter_animator_property_get_ease_in)
_WRAP_METHOD(void property_set_interpolation(const Glib::RefPtr<Glib::Object>& object, const Glib::ustring& property_name, Interpolation interpolation), clutter_animator_property_set_interpolation)
_WRAP_METHOD(Interpolation property_get_interpolation(const Glib::RefPtr<Glib::Object>& object, const Glib::ustring& property_name), clutter_animator_property_get_interpolation)
// TODO: Decide if these are needed.
// _WRAP_METHOD(Glib::RefPtr<Glib::Object> get_object() const, clutter_animator_key_get_objec)
// _WRAP_METHOD(Glib::ustring get_property_name() const, clutter_animator_key_get_property_name)
// _WRAP_METHOD(GType get_property_type() const, clutter_animator_key_get_property_type)
// _WRAP_METHOD(gulong get_mode() const, clutter_animator_key_get_mod)
// _WRAP_METHOD(double get_progress() const , clutter_animator_key_get_progres)
// _WRAP_METHOD(bool get_value(GValue *value) const, clutter_animator_key_get_value)
_WRAP_PROPERTY("duration", guint)
_WRAP_PROPERTY("timeline", Glib::RefPtr<Timeline>)
};
} // namespace Clutter
/* Copyright (C) 2007 The cluttermm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <clutter/clutter.h>
namespace Clutter
{
} //namespace Clutter
/* Copyright (C) 2007 The cluttermm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <cluttermm/behaviour.h>
#include <cluttermm/alpha.h>
_DEFS(cluttermm,clutter)
_PINCLUDE(cluttermm/private/behaviour_p.h)
#m4 _PUSH(SECTION_CC_PRE_INCLUDES)
#define CLUTTER_DISABLE_DEPRECATION_WARNINGS 1
#m4 _POP()
namespace Clutter
{
/**
* @deprecated Use Actor::animate() with the Actor's depth
* property instead.
*/
class BehaviourDepth : public Behaviour
{
_CLASS_GOBJECT(BehaviourDepth, ClutterBehaviourDepth, CLUTTER_BEHAVIOUR_DEPTH, Behaviour, ClutterBehaviour)
_IS_DEPRECATED
protected:
_WRAP_CTOR(BehaviourDepth(const Glib::RefPtr<Alpha>& alpha, int depth_start, int depth_end), clutter_behaviour_depth_new)
public:
_WRAP_CREATE(const Glib::RefPtr<Alpha>& alpha, int start_depth, int end_depth)
_WRAP_METHOD(void set_bounds(int depth_start, int depth_end), clutter_behaviour_depth_set_bounds)
_WRAP_METHOD(void get_bounds(int& depth_start, int& depth_end), clutter_behaviour_depth_get_bounds)
_WRAP_PROPERTY("depth-end", int)
_WRAP_PROPERTY("depth-start", int)
};
} // namespace Clutter
/* Copyright (C) 2007 The cluttermm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <clutter/clutter.h>
namespace Clutter
{
BehaviourEllipse::BehaviourEllipse(const Glib::RefPtr<Alpha>& alpha, int x, int y, int width, int height, RotateDirection direction, double angle_start, double angle_end)
:
// Mark this class as non-derived to allow C++ vfuncs to be skipped.
Glib::ObjectBase(0),
Behaviour(Glib::ConstructParams(behaviourellipse_class_.init(), "alpha", Glib::unwrap(alpha), /* "center", ClutterKnot(x, y), */ "width", width, "height", height, "direction", ((ClutterRotateDirection)(direction)), "angle-start", angle_start, "angle-end", angle_end, static_cast<char*>(0)))
{
//Hopefully it's OK to set this later:
Knot knot(x, y);
property_center() = knot;
}
} //namespace Clutter
/* Copyright (C) 2007 The cluttermm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <cluttermm/behaviour.h>
#include <cluttermm/alpha.h>
#include <cluttermm/types.h>
_DEFS(cluttermm,clutter)
_PINCLUDE(cluttermm/private/behaviour_p.h)
#m4 _PUSH(SECTION_CC_PRE_INCLUDES)
#define CLUTTER_DISABLE_DEPRECATION_WARNINGS 1
#m4 _POP()
namespace Clutter
{
/**
* @deprecated Behaviour and its sub-classes have been deprecated since Clutter
* 1.6, in favour of the animation framework API.
*/
class BehaviourEllipse : public Behaviour
{
_CLASS_GOBJECT(BehaviourEllipse, ClutterBehaviourEllipse, CLUTTER_BEHAVIOUR_ELLIPSE, Behaviour, ClutterBehaviour)
_IS_DEPRECATED
protected:
//Hand-coded because x and y must be combined into one ClutterKnot center parameter.
BehaviourEllipse(const Glib::RefPtr<Alpha>& alpha, int x, int y, int width, int height, RotateDirection direction, double angle_start, double angle_end);
_IGNORE(clutter_behaviour_ellipse_new)
public:
_WRAP_CREATE(const Glib::RefPtr<Alpha>& alpha, int x, int y, int width, int height, RotateDirection direction, double begin, double end)
_WRAP_METHOD(void set_center(int x, int y), clutter_behaviour_ellipse_set_center)
_WRAP_METHOD(void get_center(int& x, int& y) const, clutter_behaviour_ellipse_get_center)
_WRAP_METHOD(void set_height(int height), clutter_behaviour_ellipse_set_height)
_WRAP_METHOD(int get_height() const, clutter_behaviour_ellipse_get_height)
_WRAP_METHOD(void set_width(int width), clutter_behaviour_ellipse_set_width)
_WRAP_METHOD(int get_width() const, clutter_behaviour_ellipse_get_width)
_WRAP_METHOD(void set_angle_start(double angle_start), clutter_behaviour_ellipse_set_angle_start)
_WRAP_METHOD(double get_angle_start() const, clutter_behaviour_ellipse_get_angle_start)
_WRAP_METHOD(void set_angle_end(double angle_end), clutter_behaviour_ellipse_set_angle_end)
_WRAP_METHOD(double get_angle_end() const, clutter_behaviour_ellipse_get_angle_end)
_WRAP_METHOD(void set_angle_tilt(RotateAxis axis, double angle_tilt), clutter_behaviour_ellipse_set_angle_tilt)
_WRAP_METHOD(double get_angle_tilt(RotateAxis axis) const, clutter_behaviour_ellipse_get_angle_tilt)
_WRAP_METHOD(void set_tilt(double angle_tilt_x, double angle_tilt_y, double angle_tilt_z), clutter_behaviour_ellipse_set_tilt)
_WRAP_METHOD(void get_tilt(double& angle_tilt_x, double& angle_tilt_y, double& angle_tilt_z) const, clutter_behaviour_ellipse_get_tilt)
_WRAP_METHOD(void set_direction(RotateDirection direction), clutter_behaviour_ellipse_set_direction)
_WRAP_METHOD(RotateDirection get_direction() const, clutter_behaviour_ellipse_get_direction)
_WRAP_PROPERTY("angle-end", double)
_WRAP_PROPERTY("angle-start", double)
_WRAP_PROPERTY("angle-tilt-x", double)
_WRAP_PROPERTY("angle-tilt-y", double)
_WRAP_PROPERTY("angle-tilt-z", double)
_WRAP_PROPERTY("center", Knot)
_WRAP_PROPERTY("direction", RotateDirection)
_WRAP_PROPERTY("height", int)
_WRAP_PROPERTY("width", int)
};
} // namespace Clutter
/* Copyright (C) 2007 The cluttermm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <clutter/clutter.h>
namespace Clutter
{
} //namespace Clutter
/* Copyright (C) 2007 The cluttermm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <glibmm/object.h>
#include <cluttermm/behaviour.h>
#include <cluttermm/alpha.h>
_DEFS(cluttermm,clutter)
_PINCLUDE(cluttermm/private/behaviour_p.h)
#m4 _PUSH(SECTION_CC_PRE_INCLUDES)
#define CLUTTER_DISABLE_DEPRECATION_WARNINGS 1
#m4 _POP()
namespace Clutter
{
/**
* @deprecated Use Actor::animate() with the Actor's opacity property,
* or Animator, or State instead.
*/
class BehaviourOpacity : public Behaviour
{
_CLASS_GOBJECT(BehaviourOpacity, ClutterBehaviourOpacity, CLUTTER_BEHAVIOUR_OPACITY, Behaviour, ClutterBehaviour)
_IS_DEPRECATED
protected:
_WRAP_CTOR(BehaviourOpacity(const Glib::RefPtr<Alpha>& alpha, guint8 opacity_start, guint8 opacity_end), clutter_behaviour_opacity_new)
public:
_WRAP_CREATE(const Glib::RefPtr<Alpha>& alpha, guint8 opacity_start, guint8 opacity_end)
_WRAP_METHOD(void set_bounds(guint8 opacity_start, guint8 opacity_end), clutter_behaviour_opacity_set_bounds)
_WRAP_METHOD(void get_bounds(guint8& opacity_start, guint8& opacity_end) const, clutter_behaviour_opacity_get_bounds)
_WRAP_PROPERTY("opacity-end", guint)
_WRAP_PROPERTY("opacity-start", guint)
};
} // namespace Clutter
/* Copyright (C) 2007 The cluttermm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free