1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
9 #include "otk/point.hh"
10 #include "otk/rect.hh"
53 // *** MotionData can be (and is) cast ButtonData!! (in actions.cc) *** //
68 int press_clientwidth;
69 int press_clientheight;
72 // *** MotionData can be (and is) cast ButtonData!! (in actions.cc) *** //
91 void python_init(char *argv0);
92 void python_destroy();
93 bool python_exec(const std::string &path);
95 MotionData *new_motion_data(Window window, Time time, unsigned int state,
96 unsigned int button, MouseContext context,
97 MouseAction action, int xroot, int yroot,
98 const otk::Point &initpos,
99 const otk::Rect &initarea);
100 ButtonData *new_button_data(Window window, Time time, unsigned int state,
101 unsigned int button, MouseContext context,
103 KeyData *new_key_data(Window window, Time time, unsigned int state,
106 void python_callback(PyObject *func, PyObject *data);
108 bool python_get_string(const char *name, std::string *value);
109 bool python_get_stringlist(const char *name, std::vector<std::string> *value);
112 PyObject * mbind(const std::string &button, ob::MouseContext context,
113 ob::MouseAction action, PyObject *func);
115 PyObject * kbind(PyObject *keylist, ob::KeyContext context, PyObject *func);
116 PyObject * kunbind(PyObject *keylist);
118 void set_reset_key(const std::string &key);
122 #endif // __python_hh