]>
Dogcows Code - chaz/openbox/blob - src/python.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
9 #include "otk/point.hh"
10 #include "otk/rect.hh"
61 // *** MotionData can be (and is) cast ButtonData!! (in actions.cc) *** //
77 int press_clientwidth
;
78 int press_clientheight
;
81 // *** MotionData can be (and is) cast ButtonData!! (in actions.cc) *** //
110 void python_init(char *argv0
);
111 void python_destroy();
112 bool python_exec(const std::string
&path
);
114 MotionData
*new_motion_data(int screen
, Window window
, Time time
,
115 unsigned int state
, unsigned int button
,
116 MouseContext context
, MouseAction action
,
117 int xroot
, int yroot
, const otk::Point
&initpos
,
118 const otk::Rect
&initarea
);
119 ButtonData
*new_button_data(int screen
, Window window
, Time time
,
120 unsigned int state
, unsigned int button
,
121 MouseContext context
, MouseAction action
);
122 EventData
*new_event_data(int screen
, Window window
, EventAction action
,
124 KeyData
*new_key_data(int screen
, Window window
, Time time
, unsigned int state
,
127 void python_callback(PyObject
*func
, PyObject
*data
);
129 bool python_get_long(const char *name
, long *value
);
130 bool python_get_string(const char *name
, std::string
*value
);
131 bool python_get_stringlist(const char *name
, std::vector
<std::string
> *value
);
134 PyObject
*mbind(const std::string
&button
, ob::MouseContext context
,
135 ob::MouseAction action
, PyObject
*func
);
137 PyObject
*kbind(PyObject
*keylist
, ob::KeyContext context
, PyObject
*func
);
139 PyObject
*ebind(ob::EventAction action
, PyObject
*func
);
141 void set_reset_key(const std::string
&key
);
145 #endif // __python_hh
This page took 0.042987 seconds and 4 git commands to generate.