Blender V2.61 - r43446
|
00001 /* 00002 * ***** BEGIN GPL LICENSE BLOCK ***** 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License 00006 * as published by the Free Software Foundation; either version 2 00007 * of the License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software Foundation, 00016 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00017 * 00018 * Contributor(s): none yet. 00019 * 00020 * ***** END GPL LICENSE BLOCK ***** 00021 */ 00022 00027 #ifndef __KX_PYMOUSE 00028 #define __KX_PYMOUSE 00029 00030 #include "PyObjectPlus.h" 00031 00032 class SCA_PythonMouse : public PyObjectPlus 00033 { 00034 Py_Header 00035 private: 00036 class SCA_IInputDevice *m_mouse; 00037 class RAS_ICanvas *m_canvas; 00038 #ifdef WITH_PYTHON 00039 PyObject* m_event_dict; 00040 #endif 00041 public: 00042 SCA_PythonMouse(class SCA_IInputDevice* mouse, class RAS_ICanvas* canvas); 00043 virtual ~SCA_PythonMouse(); 00044 00045 void Show(bool visible); 00046 00047 #ifdef WITH_PYTHON 00048 KX_PYMETHOD_DOC(SCA_PythonMouse, show); 00049 00050 static PyObject* pyattr_get_events(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef); 00051 static PyObject* pyattr_get_position(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef); 00052 static int pyattr_set_position(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef, PyObject* value); 00053 static PyObject* pyattr_get_visible(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef); 00054 static int pyattr_set_visible(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef, PyObject* value); 00055 #endif 00056 }; 00057 00058 #endif //__KX_PYMOUSE 00059