add some comments to the procedure
[mikachu/openbox.git] / src / openbox.py
1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
3 # This file is compatible with both classic and new-style classes.
4 import _openbox
5 def _swig_setattr(self,class_type,name,value):
6     if (name == "this"):
7         if isinstance(value, class_type):
8             self.__dict__[name] = value.this
9             if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
10             del value.thisown
11             return
12     method = class_type.__swig_setmethods__.get(name,None)
13     if method: return method(self,value)
14     self.__dict__[name] = value
15
16 def _swig_getattr(self,class_type,name):
17     method = class_type.__swig_getmethods__.get(name,None)
18     if method: return method(self)
19     raise AttributeError,name
20
21 import types
22 try:
23     _object = types.ObjectType
24     _newclass = 1
25 except AttributeError:
26     class _object : pass
27     _newclass = 0
28
29
30 Openbox_instance = _openbox.Openbox_instance
31
32 import otk
33 class Cursors(_object):
34     __swig_setmethods__ = {}
35     __setattr__ = lambda self, name, value: _swig_setattr(self, Cursors, name, value)
36     __swig_getmethods__ = {}
37     __getattr__ = lambda self, name: _swig_getattr(self, Cursors, name)
38     __swig_setmethods__["session"] = _openbox.Cursors_session_set
39     __swig_getmethods__["session"] = _openbox.Cursors_session_get
40     if _newclass:session = property(_openbox.Cursors_session_get,_openbox.Cursors_session_set)
41     __swig_setmethods__["move"] = _openbox.Cursors_move_set
42     __swig_getmethods__["move"] = _openbox.Cursors_move_get
43     if _newclass:move = property(_openbox.Cursors_move_get,_openbox.Cursors_move_set)
44     __swig_setmethods__["ll_angle"] = _openbox.Cursors_ll_angle_set
45     __swig_getmethods__["ll_angle"] = _openbox.Cursors_ll_angle_get
46     if _newclass:ll_angle = property(_openbox.Cursors_ll_angle_get,_openbox.Cursors_ll_angle_set)
47     __swig_setmethods__["lr_angle"] = _openbox.Cursors_lr_angle_set
48     __swig_getmethods__["lr_angle"] = _openbox.Cursors_lr_angle_get
49     if _newclass:lr_angle = property(_openbox.Cursors_lr_angle_get,_openbox.Cursors_lr_angle_set)
50     __swig_setmethods__["ul_angle"] = _openbox.Cursors_ul_angle_set
51     __swig_getmethods__["ul_angle"] = _openbox.Cursors_ul_angle_get
52     if _newclass:ul_angle = property(_openbox.Cursors_ul_angle_get,_openbox.Cursors_ul_angle_set)
53     __swig_setmethods__["ur_angle"] = _openbox.Cursors_ur_angle_set
54     __swig_getmethods__["ur_angle"] = _openbox.Cursors_ur_angle_get
55     if _newclass:ur_angle = property(_openbox.Cursors_ur_angle_get,_openbox.Cursors_ur_angle_set)
56     def __init__(self): raise RuntimeError, "No constructor defined"
57     def __repr__(self):
58         return "<C Cursors instance at %s>" % (self.this,)
59
60 class CursorsPtr(Cursors):
61     def __init__(self,this):
62         self.this = this
63         if not hasattr(self,"thisown"): self.thisown = 0
64         self.__class__ = Cursors
65 _openbox.Cursors_swigregister(CursorsPtr)
66
67 class Openbox(otk.OtkEventDispatcher,otk.OtkEventHandler):
68     __swig_setmethods__ = {}
69     for _s in [otk.OtkEventDispatcher,otk.OtkEventHandler]: __swig_setmethods__.update(_s.__swig_setmethods__)
70     __setattr__ = lambda self, name, value: _swig_setattr(self, Openbox, name, value)
71     __swig_getmethods__ = {}
72     for _s in [otk.OtkEventDispatcher,otk.OtkEventHandler]: __swig_getmethods__.update(_s.__swig_getmethods__)
73     __getattr__ = lambda self, name: _swig_getattr(self, Openbox, name)
74     State_Starting = _openbox.Openbox_State_Starting
75     State_Normal = _openbox.Openbox_State_Normal
76     State_Exiting = _openbox.Openbox_State_Exiting
77     def state(*args): return apply(_openbox.Openbox_state,args)
78     def timerManager(*args): return apply(_openbox.Openbox_timerManager,args)
79     def property(*args): return apply(_openbox.Openbox_property,args)
80     def actions(*args): return apply(_openbox.Openbox_actions,args)
81     def bindings(*args): return apply(_openbox.Openbox_bindings,args)
82     def screen(*args): return apply(_openbox.Openbox_screen,args)
83     def screenCount(*args): return apply(_openbox.Openbox_screenCount,args)
84     def cursors(*args): return apply(_openbox.Openbox_cursors,args)
85     def addClient(*args): return apply(_openbox.Openbox_addClient,args)
86     def removeClient(*args): return apply(_openbox.Openbox_removeClient,args)
87     def findClient(*args): return apply(_openbox.Openbox_findClient,args)
88     def focusedClient(*args): return apply(_openbox.Openbox_focusedClient,args)
89     def setFocusedClient(*args): return apply(_openbox.Openbox_setFocusedClient,args)
90     def focusedScreen(*args): return apply(_openbox.Openbox_focusedScreen,args)
91     def shutdown(*args): return apply(_openbox.Openbox_shutdown,args)
92     def restart(*args): return apply(_openbox.Openbox_restart,args)
93     def execute(*args): return apply(_openbox.Openbox_execute,args)
94     def __init__(self): raise RuntimeError, "No constructor defined"
95     def __repr__(self):
96         return "<C Openbox instance at %s>" % (self.this,)
97
98 class OpenboxPtr(Openbox):
99     def __init__(self,this):
100         self.this = this
101         if not hasattr(self,"thisown"): self.thisown = 0
102         self.__class__ = Openbox
103 _openbox.Openbox_swigregister(OpenboxPtr)
104
105 class OBScreen(otk.OtkEventHandler,):
106     __swig_setmethods__ = {}
107     for _s in [otk.OtkEventHandler,]: __swig_setmethods__.update(_s.__swig_setmethods__)
108     __setattr__ = lambda self, name, value: _swig_setattr(self, OBScreen, name, value)
109     __swig_getmethods__ = {}
110     for _s in [otk.OtkEventHandler,]: __swig_getmethods__.update(_s.__swig_getmethods__)
111     __getattr__ = lambda self, name: _swig_getattr(self, OBScreen, name)
112     def client(*args): return apply(_openbox.OBScreen_client,args)
113     def clientCount(*args): return apply(_openbox.OBScreen_clientCount,args)
114     event_mask = _openbox.OBScreen_event_mask
115     def number(*args): return apply(_openbox.OBScreen_number,args)
116     def managed(*args): return apply(_openbox.OBScreen_managed,args)
117     def imageControl(*args): return apply(_openbox.OBScreen_imageControl,args)
118     def area(*args): return apply(_openbox.OBScreen_area,args)
119     def style(*args): return apply(_openbox.OBScreen_style,args)
120     def focuswindow(*args): return apply(_openbox.OBScreen_focuswindow,args)
121     def desktop(*args): return apply(_openbox.OBScreen_desktop,args)
122     def numDesktops(*args): return apply(_openbox.OBScreen_numDesktops,args)
123     def updateStrut(*args): return apply(_openbox.OBScreen_updateStrut,args)
124     def manageExisting(*args): return apply(_openbox.OBScreen_manageExisting,args)
125     def manageWindow(*args): return apply(_openbox.OBScreen_manageWindow,args)
126     def unmanageWindow(*args): return apply(_openbox.OBScreen_unmanageWindow,args)
127     def restack(*args): return apply(_openbox.OBScreen_restack,args)
128     def setDesktopName(*args): return apply(_openbox.OBScreen_setDesktopName,args)
129     def propertyHandler(*args): return apply(_openbox.OBScreen_propertyHandler,args)
130     def clientMessageHandler(*args): return apply(_openbox.OBScreen_clientMessageHandler,args)
131     def mapRequestHandler(*args): return apply(_openbox.OBScreen_mapRequestHandler,args)
132     def __init__(self): raise RuntimeError, "No constructor defined"
133     def __repr__(self):
134         return "<C OBScreen instance at %s>" % (self.this,)
135
136 class OBScreenPtr(OBScreen):
137     def __init__(self,this):
138         self.this = this
139         if not hasattr(self,"thisown"): self.thisown = 0
140         self.__class__ = OBScreen
141 _openbox.OBScreen_swigregister(OBScreenPtr)
142
143 class MwmHints(_object):
144     __swig_setmethods__ = {}
145     __setattr__ = lambda self, name, value: _swig_setattr(self, MwmHints, name, value)
146     __swig_getmethods__ = {}
147     __getattr__ = lambda self, name: _swig_getattr(self, MwmHints, name)
148     __swig_setmethods__["flags"] = _openbox.MwmHints_flags_set
149     __swig_getmethods__["flags"] = _openbox.MwmHints_flags_get
150     if _newclass:flags = property(_openbox.MwmHints_flags_get,_openbox.MwmHints_flags_set)
151     __swig_setmethods__["functions"] = _openbox.MwmHints_functions_set
152     __swig_getmethods__["functions"] = _openbox.MwmHints_functions_get
153     if _newclass:functions = property(_openbox.MwmHints_functions_get,_openbox.MwmHints_functions_set)
154     __swig_setmethods__["decorations"] = _openbox.MwmHints_decorations_set
155     __swig_getmethods__["decorations"] = _openbox.MwmHints_decorations_get
156     if _newclass:decorations = property(_openbox.MwmHints_decorations_get,_openbox.MwmHints_decorations_set)
157     elements = _openbox.MwmHints_elements
158     def __init__(self): raise RuntimeError, "No constructor defined"
159     def __repr__(self):
160         return "<C MwmHints instance at %s>" % (self.this,)
161
162 class MwmHintsPtr(MwmHints):
163     def __init__(self,this):
164         self.this = this
165         if not hasattr(self,"thisown"): self.thisown = 0
166         self.__class__ = MwmHints
167 _openbox.MwmHints_swigregister(MwmHintsPtr)
168
169 class OBClient(otk.OtkEventHandler,):
170     __swig_setmethods__ = {}
171     for _s in [otk.OtkEventHandler,]: __swig_setmethods__.update(_s.__swig_setmethods__)
172     __setattr__ = lambda self, name, value: _swig_setattr(self, OBClient, name, value)
173     __swig_getmethods__ = {}
174     for _s in [otk.OtkEventHandler,]: __swig_getmethods__.update(_s.__swig_getmethods__)
175     __getattr__ = lambda self, name: _swig_getattr(self, OBClient, name)
176     __swig_setmethods__["frame"] = _openbox.OBClient_frame_set
177     __swig_getmethods__["frame"] = _openbox.OBClient_frame_get
178     if _newclass:frame = property(_openbox.OBClient_frame_get,_openbox.OBClient_frame_set)
179     Layer_Icon = _openbox.OBClient_Layer_Icon
180     Layer_Desktop = _openbox.OBClient_Layer_Desktop
181     Layer_Below = _openbox.OBClient_Layer_Below
182     Layer_Normal = _openbox.OBClient_Layer_Normal
183     Layer_Above = _openbox.OBClient_Layer_Above
184     Layer_Top = _openbox.OBClient_Layer_Top
185     Layer_Fullscreen = _openbox.OBClient_Layer_Fullscreen
186     Layer_Internal = _openbox.OBClient_Layer_Internal
187     NUM_LAYERS = _openbox.OBClient_NUM_LAYERS
188     TopLeft = _openbox.OBClient_TopLeft
189     TopRight = _openbox.OBClient_TopRight
190     BottomLeft = _openbox.OBClient_BottomLeft
191     BottomRight = _openbox.OBClient_BottomRight
192     Type_Desktop = _openbox.OBClient_Type_Desktop
193     Type_Dock = _openbox.OBClient_Type_Dock
194     Type_Toolbar = _openbox.OBClient_Type_Toolbar
195     Type_Menu = _openbox.OBClient_Type_Menu
196     Type_Utility = _openbox.OBClient_Type_Utility
197     Type_Splash = _openbox.OBClient_Type_Splash
198     Type_Dialog = _openbox.OBClient_Type_Dialog
199     Type_Normal = _openbox.OBClient_Type_Normal
200     MwmFlag_Functions = _openbox.OBClient_MwmFlag_Functions
201     MwmFlag_Decorations = _openbox.OBClient_MwmFlag_Decorations
202     MwmFunc_All = _openbox.OBClient_MwmFunc_All
203     MwmFunc_Resize = _openbox.OBClient_MwmFunc_Resize
204     MwmFunc_Move = _openbox.OBClient_MwmFunc_Move
205     MwmFunc_Iconify = _openbox.OBClient_MwmFunc_Iconify
206     MwmFunc_Maximize = _openbox.OBClient_MwmFunc_Maximize
207     MwmDecor_All = _openbox.OBClient_MwmDecor_All
208     MwmDecor_Border = _openbox.OBClient_MwmDecor_Border
209     MwmDecor_Handle = _openbox.OBClient_MwmDecor_Handle
210     MwmDecor_Title = _openbox.OBClient_MwmDecor_Title
211     MwmDecor_Iconify = _openbox.OBClient_MwmDecor_Iconify
212     MwmDecor_Maximize = _openbox.OBClient_MwmDecor_Maximize
213     Func_Resize = _openbox.OBClient_Func_Resize
214     Func_Move = _openbox.OBClient_Func_Move
215     Func_Iconify = _openbox.OBClient_Func_Iconify
216     Func_Maximize = _openbox.OBClient_Func_Maximize
217     Func_Close = _openbox.OBClient_Func_Close
218     Decor_Titlebar = _openbox.OBClient_Decor_Titlebar
219     Decor_Handle = _openbox.OBClient_Decor_Handle
220     Decor_Border = _openbox.OBClient_Decor_Border
221     Decor_Iconify = _openbox.OBClient_Decor_Iconify
222     Decor_Maximize = _openbox.OBClient_Decor_Maximize
223     Decor_Sticky = _openbox.OBClient_Decor_Sticky
224     Decor_Close = _openbox.OBClient_Decor_Close
225     State_Remove = _openbox.OBClient_State_Remove
226     State_Add = _openbox.OBClient_State_Add
227     State_Toggle = _openbox.OBClient_State_Toggle
228     event_mask = _openbox.OBClient_event_mask
229     no_propagate_mask = _openbox.OBClient_no_propagate_mask
230     __swig_setmethods__["ignore_unmaps"] = _openbox.OBClient_ignore_unmaps_set
231     __swig_getmethods__["ignore_unmaps"] = _openbox.OBClient_ignore_unmaps_get
232     if _newclass:ignore_unmaps = property(_openbox.OBClient_ignore_unmaps_get,_openbox.OBClient_ignore_unmaps_set)
233     def screen(*args): return apply(_openbox.OBClient_screen,args)
234     def window(*args): return apply(_openbox.OBClient_window,args)
235     def type(*args): return apply(_openbox.OBClient_type,args)
236     def normal(*args): return apply(_openbox.OBClient_normal,args)
237     def desktop(*args): return apply(_openbox.OBClient_desktop,args)
238     def title(*args): return apply(_openbox.OBClient_title,args)
239     def iconTitle(*args): return apply(_openbox.OBClient_iconTitle,args)
240     def appName(*args): return apply(_openbox.OBClient_appName,args)
241     def appClass(*args): return apply(_openbox.OBClient_appClass,args)
242     def role(*args): return apply(_openbox.OBClient_role,args)
243     def canFocus(*args): return apply(_openbox.OBClient_canFocus,args)
244     def urgent(*args): return apply(_openbox.OBClient_urgent,args)
245     def focusNotify(*args): return apply(_openbox.OBClient_focusNotify,args)
246     def shaped(*args): return apply(_openbox.OBClient_shaped,args)
247     def gravity(*args): return apply(_openbox.OBClient_gravity,args)
248     def positionRequested(*args): return apply(_openbox.OBClient_positionRequested,args)
249     def decorations(*args): return apply(_openbox.OBClient_decorations,args)
250     def funtions(*args): return apply(_openbox.OBClient_funtions,args)
251     def transientFor(*args): return apply(_openbox.OBClient_transientFor,args)
252     def modal(*args): return apply(_openbox.OBClient_modal,args)
253     def shaded(*args): return apply(_openbox.OBClient_shaded,args)
254     def iconic(*args): return apply(_openbox.OBClient_iconic,args)
255     def maxVert(*args): return apply(_openbox.OBClient_maxVert,args)
256     def maxHorz(*args): return apply(_openbox.OBClient_maxHorz,args)
257     def layer(*args): return apply(_openbox.OBClient_layer,args)
258     def toggleClientBorder(*args): return apply(_openbox.OBClient_toggleClientBorder,args)
259     def area(*args): return apply(_openbox.OBClient_area,args)
260     def strut(*args): return apply(_openbox.OBClient_strut,args)
261     def move(*args): return apply(_openbox.OBClient_move,args)
262     def resize(*args): return apply(_openbox.OBClient_resize,args)
263     def focus(*args): return apply(_openbox.OBClient_focus,args)
264     def unfocus(*args): return apply(_openbox.OBClient_unfocus,args)
265     def focusHandler(*args): return apply(_openbox.OBClient_focusHandler,args)
266     def unfocusHandler(*args): return apply(_openbox.OBClient_unfocusHandler,args)
267     def propertyHandler(*args): return apply(_openbox.OBClient_propertyHandler,args)
268     def clientMessageHandler(*args): return apply(_openbox.OBClient_clientMessageHandler,args)
269     def configureRequestHandler(*args): return apply(_openbox.OBClient_configureRequestHandler,args)
270     def unmapHandler(*args): return apply(_openbox.OBClient_unmapHandler,args)
271     def destroyHandler(*args): return apply(_openbox.OBClient_destroyHandler,args)
272     def reparentHandler(*args): return apply(_openbox.OBClient_reparentHandler,args)
273     def __init__(self): raise RuntimeError, "No constructor defined"
274     def __repr__(self):
275         return "<C OBClient instance at %s>" % (self.this,)
276
277 class OBClientPtr(OBClient):
278     def __init__(self,this):
279         self.this = this
280         if not hasattr(self,"thisown"): self.thisown = 0
281         self.__class__ = OBClient
282 _openbox.OBClient_swigregister(OBClientPtr)
283
284 MC_Frame = _openbox.MC_Frame
285 MC_Titlebar = _openbox.MC_Titlebar
286 MC_Handle = _openbox.MC_Handle
287 MC_Window = _openbox.MC_Window
288 MC_MaximizeButton = _openbox.MC_MaximizeButton
289 MC_CloseButton = _openbox.MC_CloseButton
290 MC_IconifyButton = _openbox.MC_IconifyButton
291 MC_StickyButton = _openbox.MC_StickyButton
292 MC_Grip = _openbox.MC_Grip
293 MC_Root = _openbox.MC_Root
294 MC_MenuItem = _openbox.MC_MenuItem
295 NUM_MOUSE_CONTEXT = _openbox.NUM_MOUSE_CONTEXT
296 MousePress = _openbox.MousePress
297 MouseClick = _openbox.MouseClick
298 MouseDoubleClick = _openbox.MouseDoubleClick
299 MouseMotion = _openbox.MouseMotion
300 NUM_MOUSE_ACTION = _openbox.NUM_MOUSE_ACTION
301 KC_Menu = _openbox.KC_Menu
302 KC_All = _openbox.KC_All
303 NUM_KEY_CONTEXT = _openbox.NUM_KEY_CONTEXT
304 EventEnterWindow = _openbox.EventEnterWindow
305 EventLeaveWindow = _openbox.EventLeaveWindow
306 EventPlaceWindow = _openbox.EventPlaceWindow
307 EventNewWindow = _openbox.EventNewWindow
308 EventCloseWindow = _openbox.EventCloseWindow
309 EventStartup = _openbox.EventStartup
310 EventShutdown = _openbox.EventShutdown
311 EventFocus = _openbox.EventFocus
312 EventBell = _openbox.EventBell
313 NUM_EVENTS = _openbox.NUM_EVENTS
314 class MouseData(_object):
315     __swig_setmethods__ = {}
316     __setattr__ = lambda self, name, value: _swig_setattr(self, MouseData, name, value)
317     __swig_getmethods__ = {}
318     __getattr__ = lambda self, name: _swig_getattr(self, MouseData, name)
319     __swig_setmethods__["screen"] = _openbox.MouseData_screen_set
320     __swig_getmethods__["screen"] = _openbox.MouseData_screen_get
321     if _newclass:screen = property(_openbox.MouseData_screen_get,_openbox.MouseData_screen_set)
322     __swig_setmethods__["client"] = _openbox.MouseData_client_set
323     __swig_getmethods__["client"] = _openbox.MouseData_client_get
324     if _newclass:client = property(_openbox.MouseData_client_get,_openbox.MouseData_client_set)
325     __swig_setmethods__["time"] = _openbox.MouseData_time_set
326     __swig_getmethods__["time"] = _openbox.MouseData_time_get
327     if _newclass:time = property(_openbox.MouseData_time_get,_openbox.MouseData_time_set)
328     __swig_setmethods__["state"] = _openbox.MouseData_state_set
329     __swig_getmethods__["state"] = _openbox.MouseData_state_get
330     if _newclass:state = property(_openbox.MouseData_state_get,_openbox.MouseData_state_set)
331     __swig_setmethods__["button"] = _openbox.MouseData_button_set
332     __swig_getmethods__["button"] = _openbox.MouseData_button_get
333     if _newclass:button = property(_openbox.MouseData_button_get,_openbox.MouseData_button_set)
334     __swig_setmethods__["context"] = _openbox.MouseData_context_set
335     __swig_getmethods__["context"] = _openbox.MouseData_context_get
336     if _newclass:context = property(_openbox.MouseData_context_get,_openbox.MouseData_context_set)
337     __swig_setmethods__["action"] = _openbox.MouseData_action_set
338     __swig_getmethods__["action"] = _openbox.MouseData_action_get
339     if _newclass:action = property(_openbox.MouseData_action_get,_openbox.MouseData_action_set)
340     __swig_setmethods__["xroot"] = _openbox.MouseData_xroot_set
341     __swig_getmethods__["xroot"] = _openbox.MouseData_xroot_get
342     if _newclass:xroot = property(_openbox.MouseData_xroot_get,_openbox.MouseData_xroot_set)
343     __swig_setmethods__["yroot"] = _openbox.MouseData_yroot_set
344     __swig_getmethods__["yroot"] = _openbox.MouseData_yroot_get
345     if _newclass:yroot = property(_openbox.MouseData_yroot_get,_openbox.MouseData_yroot_set)
346     __swig_setmethods__["pressx"] = _openbox.MouseData_pressx_set
347     __swig_getmethods__["pressx"] = _openbox.MouseData_pressx_get
348     if _newclass:pressx = property(_openbox.MouseData_pressx_get,_openbox.MouseData_pressx_set)
349     __swig_setmethods__["pressy"] = _openbox.MouseData_pressy_set
350     __swig_getmethods__["pressy"] = _openbox.MouseData_pressy_get
351     if _newclass:pressy = property(_openbox.MouseData_pressy_get,_openbox.MouseData_pressy_set)
352     __swig_setmethods__["press_clientx"] = _openbox.MouseData_press_clientx_set
353     __swig_getmethods__["press_clientx"] = _openbox.MouseData_press_clientx_get
354     if _newclass:press_clientx = property(_openbox.MouseData_press_clientx_get,_openbox.MouseData_press_clientx_set)
355     __swig_setmethods__["press_clienty"] = _openbox.MouseData_press_clienty_set
356     __swig_getmethods__["press_clienty"] = _openbox.MouseData_press_clienty_get
357     if _newclass:press_clienty = property(_openbox.MouseData_press_clienty_get,_openbox.MouseData_press_clienty_set)
358     __swig_setmethods__["press_clientwidth"] = _openbox.MouseData_press_clientwidth_set
359     __swig_getmethods__["press_clientwidth"] = _openbox.MouseData_press_clientwidth_get
360     if _newclass:press_clientwidth = property(_openbox.MouseData_press_clientwidth_get,_openbox.MouseData_press_clientwidth_set)
361     __swig_setmethods__["press_clientheight"] = _openbox.MouseData_press_clientheight_set
362     __swig_getmethods__["press_clientheight"] = _openbox.MouseData_press_clientheight_get
363     if _newclass:press_clientheight = property(_openbox.MouseData_press_clientheight_get,_openbox.MouseData_press_clientheight_set)
364     def __init__(self,*args):
365         self.this = apply(_openbox.new_MouseData,args)
366         self.thisown = 1
367     def __repr__(self):
368         return "<C MouseData instance at %s>" % (self.this,)
369
370 class MouseDataPtr(MouseData):
371     def __init__(self,this):
372         self.this = this
373         if not hasattr(self,"thisown"): self.thisown = 0
374         self.__class__ = MouseData
375 _openbox.MouseData_swigregister(MouseDataPtr)
376
377 class EventData(_object):
378     __swig_setmethods__ = {}
379     __setattr__ = lambda self, name, value: _swig_setattr(self, EventData, name, value)
380     __swig_getmethods__ = {}
381     __getattr__ = lambda self, name: _swig_getattr(self, EventData, name)
382     __swig_setmethods__["screen"] = _openbox.EventData_screen_set
383     __swig_getmethods__["screen"] = _openbox.EventData_screen_get
384     if _newclass:screen = property(_openbox.EventData_screen_get,_openbox.EventData_screen_set)
385     __swig_setmethods__["client"] = _openbox.EventData_client_set
386     __swig_getmethods__["client"] = _openbox.EventData_client_get
387     if _newclass:client = property(_openbox.EventData_client_get,_openbox.EventData_client_set)
388     __swig_setmethods__["state"] = _openbox.EventData_state_set
389     __swig_getmethods__["state"] = _openbox.EventData_state_get
390     if _newclass:state = property(_openbox.EventData_state_get,_openbox.EventData_state_set)
391     __swig_setmethods__["action"] = _openbox.EventData_action_set
392     __swig_getmethods__["action"] = _openbox.EventData_action_get
393     if _newclass:action = property(_openbox.EventData_action_get,_openbox.EventData_action_set)
394     def __init__(self,*args):
395         self.this = apply(_openbox.new_EventData,args)
396         self.thisown = 1
397     def __repr__(self):
398         return "<C EventData instance at %s>" % (self.this,)
399
400 class EventDataPtr(EventData):
401     def __init__(self,this):
402         self.this = this
403         if not hasattr(self,"thisown"): self.thisown = 0
404         self.__class__ = EventData
405 _openbox.EventData_swigregister(EventDataPtr)
406
407 class KeyData(_object):
408     __swig_setmethods__ = {}
409     __setattr__ = lambda self, name, value: _swig_setattr(self, KeyData, name, value)
410     __swig_getmethods__ = {}
411     __getattr__ = lambda self, name: _swig_getattr(self, KeyData, name)
412     __swig_setmethods__["screen"] = _openbox.KeyData_screen_set
413     __swig_getmethods__["screen"] = _openbox.KeyData_screen_get
414     if _newclass:screen = property(_openbox.KeyData_screen_get,_openbox.KeyData_screen_set)
415     __swig_setmethods__["client"] = _openbox.KeyData_client_set
416     __swig_getmethods__["client"] = _openbox.KeyData_client_get
417     if _newclass:client = property(_openbox.KeyData_client_get,_openbox.KeyData_client_set)
418     __swig_setmethods__["time"] = _openbox.KeyData_time_set
419     __swig_getmethods__["time"] = _openbox.KeyData_time_get
420     if _newclass:time = property(_openbox.KeyData_time_get,_openbox.KeyData_time_set)
421     __swig_setmethods__["state"] = _openbox.KeyData_state_set
422     __swig_getmethods__["state"] = _openbox.KeyData_state_get
423     if _newclass:state = property(_openbox.KeyData_state_get,_openbox.KeyData_state_set)
424     __swig_setmethods__["key"] = _openbox.KeyData_key_set
425     __swig_getmethods__["key"] = _openbox.KeyData_key_get
426     if _newclass:key = property(_openbox.KeyData_key_get,_openbox.KeyData_key_set)
427     def __init__(self,*args):
428         self.this = apply(_openbox.new_KeyData,args)
429         self.thisown = 1
430     def __repr__(self):
431         return "<C KeyData instance at %s>" % (self.this,)
432
433 class KeyDataPtr(KeyData):
434     def __init__(self,this):
435         self.this = this
436         if not hasattr(self,"thisown"): self.thisown = 0
437         self.__class__ = KeyData
438 _openbox.KeyData_swigregister(KeyDataPtr)
439
440 mbind = _openbox.mbind
441
442 kbind = _openbox.kbind
443
444 ebind = _openbox.ebind
445
446 set_reset_key = _openbox.set_reset_key
447
448 send_client_msg = _openbox.send_client_msg
449
450