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); }
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); }
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; }
static void next_cb(Fl_Widget *, void *v) { VMDApp *app = (VMDApp *)v; app->animation_set_dir(Animation::ANIM_FORWARD1); }
static void prev_cb(Fl_Widget *, void *v) { VMDApp *app = (VMDApp *)v; app->animation_set_dir(Animation::ANIM_REVERSE1); }