示例#1
0
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;
}
示例#2
0
static void move_light_cb(Fl_Widget *w, void *v) {
  VMDApp *app = (VMDApp *)(w->user_data());
  app->mouse_set_mode(Mouse::LIGHT, *((int *)v) );
}
示例#3
0
static void mouse_cb(Fl_Widget *w, void *v) {
  VMDApp *app = (VMDApp *)(w->user_data());
  app->mouse_set_mode(*((int *)v), -1);
}