/* Clutter. * * Perl bindings for the OpenGL based 'interactive canvas' library. * * Clutter Authored By Matthew Allum * Perl bindings by Emmanuele Bassi * * Copyright (C) 2006 OpenedHand * * 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, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #include "clutterperl.h" MODULE = Clutter::Behaviour::Scale PACKAGE = Clutter::Behaviour::Scale PREFIX = clutter_behaviour_scale_ =for enum ClutterGravity =cut ClutterBehaviour_noinc * clutter_behaviour_scale_new (class, alpha=NULL, x_start, y_start, x_end, y_end) ClutterAlpha_ornull *alpha gdouble x_start gdouble y_start gdouble x_end gdouble y_end C_ARGS: alpha, x_start, y_start, x_end, y_end void clutter_behaviour_scale_set_bounds (scale, x_start, y_start, x_end, y_end) ClutterBehaviourScale *scale gdouble x_start gdouble y_start gdouble x_end gdouble y_end =for apidoc =for signature (x_start, y_start, x_end, y_end) = $scale->get_bounds =cut void clutter_behaviour_scale_get_bounds (ClutterBehaviourScale *scale) PREINIT: gdouble x_start, x_end; gdouble y_start, y_end; PPCODE: clutter_behaviour_scale_get_bounds (scale, &x_start, &y_start, &x_end, &y_end); EXTEND (SP, 4); PUSHs (sv_2mortal (newSVnv (x_start))); PUSHs (sv_2mortal (newSVnv (y_start))); PUSHs (sv_2mortal (newSVnv (x_end))); PUSHs (sv_2mortal (newSVnv (y_end)));