Esempio n. 1
0
static void reverse_cb(Fl_Widget *w, void *v) {
  Fl_Button *button = (Fl_Button *)w;
  VMDApp *app = (VMDApp *)v;
  if (button->value())
    app->animation_set_dir(Animation::ANIM_REVERSE);
  else
    app->animation_set_dir(Animation::ANIM_PAUSE);
}
Esempio n. 2
0
static void forward_cb(Fl_Widget *w, void *v) {
  Fl_Button *button = (Fl_Button *)w;
  VMDApp *app = (VMDApp *)v;
  if (button->value())
    app->animation_set_dir(Animation::ANIM_FORWARD);
  else
    app->animation_set_dir(Animation::ANIM_PAUSE);
}
Esempio n. 3
0
static PyObject *reverse(PyObject *self, PyObject *args) {
  if (!PyArg_ParseTuple(args, (char *)""))
    return NULL;
  
  VMDApp *app = get_vmdapp();
  app->animation_set_dir(Animation::ANIM_REVERSE);
 
  Py_INCREF(Py_None);
  return Py_None;
}
Esempio n. 4
0
static void next_cb(Fl_Widget *, void *v) {
  VMDApp *app = (VMDApp *)v;
  app->animation_set_dir(Animation::ANIM_FORWARD1);
}
Esempio n. 5
0
static void prev_cb(Fl_Widget *, void *v) {
  VMDApp *app = (VMDApp *)v;
  app->animation_set_dir(Animation::ANIM_REVERSE1);
}