1 /* 2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab 3 * Copyright (C) 2011-2011 - DIGITEO - Bruno JOFRET 4 * 5 * Copyright (C) 2012 - 2016 - Scilab Enterprises 6 * 7 * This file is hereby licensed under the terms of the GNU GPL v2.0, 8 * pursuant to article 5.3.4 of the CeCILL v.2.1. 9 * This file was originally licensed under the terms of the CeCILL v2.1, 10 * and continues to be available under such terms. 11 * For more information, see the COPYING file which you should have received 12 * along with this program. 13 * 14 */ 15 16 #ifndef __CURRENT_OBJECT_H__ 17 #define __CURRENT_OBJECT_H__ 18 19 #include "dynlib_graphic_objects.h" 20 #include "BOOL.h" 21 /** 22 * Returns UID of the current selected object. 23 */ 24 GRAPHIC_OBJECTS_IMPEXP int getCurrentObject(void); 25 26 /** 27 * Modify the current object if needed. 28 */ 29 GRAPHIC_OBJECTS_IMPEXP void setCurrentObject(int iUID); 30 31 /** 32 * To know if an object is the selected one. 33 */ 34 GRAPHIC_OBJECTS_IMPEXP BOOL isCurrentObject(int iUID); 35 36 /** 37 * get parent object 38 */ 39 GRAPHIC_OBJECTS_IMPEXP int getParentObject(int iUID); 40 GRAPHIC_OBJECTS_IMPEXP void setParentObject(int iUID, int iParent); 41 42 #endif /* !__CURRENT_OBJECT_H__ */ 43