1 /**************************************************************************** 2 * Copyright (C) 2008 by Matteo Franchin * 3 * * 4 * This file is part of Box. * 5 * * 6 * Box is free software: you can redistribute it and/or modify it * 7 * under the terms of the GNU Lesser General Public License as published * 8 * by the Free Software Foundation, either version 3 of the License, or * 9 * (at your option) any later version. * 10 * * 11 * Box is distributed in the hope that it will be useful, * 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 14 * GNU Lesser General Public License for more details. * 15 * * 16 * You should have received a copy of the GNU Lesser General Public * 17 * License along with Box. If not, see <http://www.gnu.org/licenses/>. * 18 ****************************************************************************/ 19 20 /* autoput.h 21 * 22 * Dichiarazione delle funzioni definite in autoput.c 23 */ 24 25 #ifndef _AUTOPUT_H 26 # define _AUTOPUT_H 27 28 # include "graphic.h" 29 30 void aput_identity_matrix(BoxReal *matrix); 31 void aput_get(BoxPoint *rot_center, BoxPoint *trsl_vect, 32 BoxReal *rot_angle, BoxReal *scale_x, BoxReal *scale_y ); 33 void aput_set(BoxPoint *rot_center, BoxPoint *trsl_vect, 34 BoxReal *rot_angle, BoxReal *scale_x, BoxReal *scale_y ); 35 int aput_autoput(BoxPoint *F, BoxPoint *R, BoxReal *weight, int n, int needed); 36 int aput_allow(const char *permissions, int *needed); 37 38 #endif 39