1/* Copyright (C) 2014 The cluttermm Development Team 2 * 3 * This library is free software; you can redistribute it and/or 4 * modify it under the terms of the GNU Lesser General Public 5 * License as published by the Free Software Foundation; either 6 * version 2.1 of the License, or (at your option) any later version. 7 * 8 * This library is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 * Lesser General Public License for more details. 12 * 13 * You should have received a copy of the GNU Lesser General Public 14 * License along with this library; if not, write to the Free 15 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 16 */ 17 18#include <glibmm/object.h> 19#include <glibmm/ustring.h> 20#include <cluttermm/transition.h> 21#include <cluttermm/scriptable.h> 22 23_DEFS(cluttermm,clutter) 24_PINCLUDE(glibmm/private/object_p.h) 25_PINCLUDE(cluttermm/private/transition_p.h) 26 27namespace Clutter 28{ 29 30class PropertyTransition : public Transition, public Scriptable 31{ 32 _CLASS_GOBJECT(PropertyTransition, ClutterPropertyTransition, CLUTTER_PROPERTY_TRANSITION, Transition, ClutterTransition) 33 _IMPLEMENTS_INTERFACE(Scriptable) 34 35protected: 36 37 _WRAP_CTOR(PropertyTransition(const Glib::ustring& property_name), clutter_property_transition_new) 38 39public: 40 /** Creates a new PropertyTransition. 41 * The property name must be an animatable property of Actor. 42 */ 43 _WRAP_CREATE(const Glib::ustring& property_name) 44 45 _WRAP_METHOD(void set_property_name(const Glib::ustring& property_name), clutter_property_transition_set_property_name) 46 _WRAP_METHOD(Glib::ustring get_property_name() const, clutter_property_transition_get_property_name) 47 48 49 _WRAP_PROPERTY("property-name", Glib::ustring) 50}; 51 52} // namespace Clutter 53