static PyObject *mousemode(PyObject *self, PyObject *args) { int mode, submode = -1; if (!PyArg_ParseTuple(args, (char *)"i|i", &mode, &submode)) return NULL; VMDApp *app = get_vmdapp(); app->mouse_set_mode(mode, submode); Py_INCREF(Py_None); return Py_None; }
static void move_light_cb(Fl_Widget *w, void *v) { VMDApp *app = (VMDApp *)(w->user_data()); app->mouse_set_mode(Mouse::LIGHT, *((int *)v) ); }
static void mouse_cb(Fl_Widget *w, void *v) { VMDApp *app = (VMDApp *)(w->user_data()); app->mouse_set_mode(*((int *)v), -1); }