-void python_callback(PyObject *func, OBActions::ActionType action,
- Window window, OBWidget::WidgetType type,
- unsigned int state, unsigned int button,
- int xroot, int yroot, Time time);
-
-void python_callback(PyObject *func, Window window, unsigned int state,
- unsigned int key, Time time);
+MotionData *new_motion_data(int screen, Window window, Time time,
+ unsigned int state, unsigned int button,
+ MouseContext context, MouseAction action,
+ int xroot, int yroot, const otk::Point &initpos,
+ const otk::Rect &initarea);
+ButtonData *new_button_data(int screen, Window window, Time time,
+ unsigned int state, unsigned int button,
+ MouseContext context, MouseAction action);
+EventData *new_event_data(int screen, Window window, EventAction action,
+ unsigned int state);
+KeyData *new_key_data(int screen, Window window, Time time, unsigned int state,
+ unsigned int key);