X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fopenbox.py;h=0aacf7ecefa9f5b3edb41bfd69077889a846dfc7;hb=77ab46d1e35d48e73c201e6de88b26f48bb06425;hp=91fc38384d618e4e134eb6f80c28c67f9dc5723e;hpb=385de86d903c95e9897bd106b04e3ef1f70d9d2d;p=chaz%2Fopenbox diff --git a/src/openbox.py b/src/openbox.py index 91fc3838..0aacf7ec 100644 --- a/src/openbox.py +++ b/src/openbox.py @@ -29,6 +29,96 @@ except AttributeError: Openbox_instance = _openbox.Openbox_instance +Display_display = _openbox.Display_display + +class Display(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, Display, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, Display, name) + __swig_getmethods__["initialize"] = lambda x: _openbox.Display_initialize + if _newclass:initialize = staticmethod(_openbox.Display_initialize) + __swig_getmethods__["destroy"] = lambda x: _openbox.Display_destroy + if _newclass:destroy = staticmethod(_openbox.Display_destroy) + __swig_getmethods__["gcCache"] = lambda x: _openbox.Display_gcCache + if _newclass:gcCache = staticmethod(_openbox.Display_gcCache) + __swig_getmethods__["screenInfo"] = lambda x: _openbox.Display_screenInfo + if _newclass:screenInfo = staticmethod(_openbox.Display_screenInfo) + __swig_getmethods__["findScreen"] = lambda x: _openbox.Display_findScreen + if _newclass:findScreen = staticmethod(_openbox.Display_findScreen) + __swig_getmethods__["xkb"] = lambda x: _openbox.Display_xkb + if _newclass:xkb = staticmethod(_openbox.Display_xkb) + __swig_getmethods__["xkbEventBase"] = lambda x: _openbox.Display_xkbEventBase + if _newclass:xkbEventBase = staticmethod(_openbox.Display_xkbEventBase) + __swig_getmethods__["shape"] = lambda x: _openbox.Display_shape + if _newclass:shape = staticmethod(_openbox.Display_shape) + __swig_getmethods__["shapeEventBase"] = lambda x: _openbox.Display_shapeEventBase + if _newclass:shapeEventBase = staticmethod(_openbox.Display_shapeEventBase) + __swig_getmethods__["xinerama"] = lambda x: _openbox.Display_xinerama + if _newclass:xinerama = staticmethod(_openbox.Display_xinerama) + __swig_getmethods__["numLockMask"] = lambda x: _openbox.Display_numLockMask + if _newclass:numLockMask = staticmethod(_openbox.Display_numLockMask) + __swig_getmethods__["scrollLockMask"] = lambda x: _openbox.Display_scrollLockMask + if _newclass:scrollLockMask = staticmethod(_openbox.Display_scrollLockMask) + __swig_getmethods__["grab"] = lambda x: _openbox.Display_grab + if _newclass:grab = staticmethod(_openbox.Display_grab) + __swig_getmethods__["ungrab"] = lambda x: _openbox.Display_ungrab + if _newclass:ungrab = staticmethod(_openbox.Display_ungrab) + __swig_getmethods__["grabButton"] = lambda x: _openbox.Display_grabButton + if _newclass:grabButton = staticmethod(_openbox.Display_grabButton) + __swig_getmethods__["ungrabButton"] = lambda x: _openbox.Display_ungrabButton + if _newclass:ungrabButton = staticmethod(_openbox.Display_ungrabButton) + __swig_getmethods__["grabKey"] = lambda x: _openbox.Display_grabKey + if _newclass:grabKey = staticmethod(_openbox.Display_grabKey) + __swig_getmethods__["ungrabKey"] = lambda x: _openbox.Display_ungrabKey + if _newclass:ungrabKey = staticmethod(_openbox.Display_ungrabKey) + def __init__(self): raise RuntimeError, "No constructor defined" + def __repr__(self): + return "" % (self.this,) + +class DisplayPtr(Display): + def __init__(self,this): + self.this = this + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = Display +_openbox.Display_swigregister(DisplayPtr) +Display_initialize = _openbox.Display_initialize + +Display_destroy = _openbox.Display_destroy + +Display_gcCache = _openbox.Display_gcCache + +Display_screenInfo = _openbox.Display_screenInfo + +Display_findScreen = _openbox.Display_findScreen + +Display_xkb = _openbox.Display_xkb + +Display_xkbEventBase = _openbox.Display_xkbEventBase + +Display_shape = _openbox.Display_shape + +Display_shapeEventBase = _openbox.Display_shapeEventBase + +Display_xinerama = _openbox.Display_xinerama + +Display_numLockMask = _openbox.Display_numLockMask + +Display_scrollLockMask = _openbox.Display_scrollLockMask + +Display_grab = _openbox.Display_grab + +Display_ungrab = _openbox.Display_ungrab + +Display_grabButton = _openbox.Display_grabButton + +Display_ungrabButton = _openbox.Display_ungrabButton + +Display_grabKey = _openbox.Display_grabKey + +Display_ungrabKey = _openbox.Display_ungrabKey + + class Point(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Point, name, value) @@ -52,6 +142,127 @@ class PointPtr(Point): self.__class__ = Point _openbox.Point_swigregister(PointPtr) +class Property(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, Property, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, Property, name) + Atom_Cardinal = _openbox.Property_Atom_Cardinal + Atom_Window = _openbox.Property_Atom_Window + Atom_Pixmap = _openbox.Property_Atom_Pixmap + Atom_Atom = _openbox.Property_Atom_Atom + Atom_String = _openbox.Property_Atom_String + Atom_Utf8 = _openbox.Property_Atom_Utf8 + openbox_pid = _openbox.Property_openbox_pid + wm_colormap_windows = _openbox.Property_wm_colormap_windows + wm_protocols = _openbox.Property_wm_protocols + wm_state = _openbox.Property_wm_state + wm_delete_window = _openbox.Property_wm_delete_window + wm_take_focus = _openbox.Property_wm_take_focus + wm_change_state = _openbox.Property_wm_change_state + wm_name = _openbox.Property_wm_name + wm_icon_name = _openbox.Property_wm_icon_name + wm_class = _openbox.Property_wm_class + wm_window_role = _openbox.Property_wm_window_role + motif_wm_hints = _openbox.Property_motif_wm_hints + blackbox_attributes = _openbox.Property_blackbox_attributes + blackbox_change_attributes = _openbox.Property_blackbox_change_attributes + blackbox_hints = _openbox.Property_blackbox_hints + blackbox_structure_messages = _openbox.Property_blackbox_structure_messages + blackbox_notify_startup = _openbox.Property_blackbox_notify_startup + blackbox_notify_window_add = _openbox.Property_blackbox_notify_window_add + blackbox_notify_window_del = _openbox.Property_blackbox_notify_window_del + blackbox_notify_window_focus = _openbox.Property_blackbox_notify_window_focus + blackbox_notify_current_workspace = _openbox.Property_blackbox_notify_current_workspace + blackbox_notify_workspace_count = _openbox.Property_blackbox_notify_workspace_count + blackbox_notify_window_raise = _openbox.Property_blackbox_notify_window_raise + blackbox_notify_window_lower = _openbox.Property_blackbox_notify_window_lower + blackbox_change_workspace = _openbox.Property_blackbox_change_workspace + blackbox_change_window_focus = _openbox.Property_blackbox_change_window_focus + blackbox_cycle_window_focus = _openbox.Property_blackbox_cycle_window_focus + openbox_show_root_menu = _openbox.Property_openbox_show_root_menu + openbox_show_workspace_menu = _openbox.Property_openbox_show_workspace_menu + net_supported = _openbox.Property_net_supported + net_client_list = _openbox.Property_net_client_list + net_client_list_stacking = _openbox.Property_net_client_list_stacking + net_number_of_desktops = _openbox.Property_net_number_of_desktops + net_desktop_geometry = _openbox.Property_net_desktop_geometry + net_desktop_viewport = _openbox.Property_net_desktop_viewport + net_current_desktop = _openbox.Property_net_current_desktop + net_desktop_names = _openbox.Property_net_desktop_names + net_active_window = _openbox.Property_net_active_window + net_workarea = _openbox.Property_net_workarea + net_supporting_wm_check = _openbox.Property_net_supporting_wm_check + net_close_window = _openbox.Property_net_close_window + net_wm_moveresize = _openbox.Property_net_wm_moveresize + net_wm_name = _openbox.Property_net_wm_name + net_wm_visible_name = _openbox.Property_net_wm_visible_name + net_wm_icon_name = _openbox.Property_net_wm_icon_name + net_wm_visible_icon_name = _openbox.Property_net_wm_visible_icon_name + net_wm_desktop = _openbox.Property_net_wm_desktop + net_wm_window_type = _openbox.Property_net_wm_window_type + net_wm_state = _openbox.Property_net_wm_state + net_wm_strut = _openbox.Property_net_wm_strut + net_wm_allowed_actions = _openbox.Property_net_wm_allowed_actions + net_wm_window_type_desktop = _openbox.Property_net_wm_window_type_desktop + net_wm_window_type_dock = _openbox.Property_net_wm_window_type_dock + net_wm_window_type_toolbar = _openbox.Property_net_wm_window_type_toolbar + net_wm_window_type_menu = _openbox.Property_net_wm_window_type_menu + net_wm_window_type_utility = _openbox.Property_net_wm_window_type_utility + net_wm_window_type_splash = _openbox.Property_net_wm_window_type_splash + net_wm_window_type_dialog = _openbox.Property_net_wm_window_type_dialog + net_wm_window_type_normal = _openbox.Property_net_wm_window_type_normal + net_wm_moveresize_size_topleft = _openbox.Property_net_wm_moveresize_size_topleft + net_wm_moveresize_size_topright = _openbox.Property_net_wm_moveresize_size_topright + net_wm_moveresize_size_bottomleft = _openbox.Property_net_wm_moveresize_size_bottomleft + net_wm_moveresize_size_bottomright = _openbox.Property_net_wm_moveresize_size_bottomright + net_wm_moveresize_move = _openbox.Property_net_wm_moveresize_move + net_wm_action_move = _openbox.Property_net_wm_action_move + net_wm_action_resize = _openbox.Property_net_wm_action_resize + net_wm_action_shade = _openbox.Property_net_wm_action_shade + net_wm_action_maximize_horz = _openbox.Property_net_wm_action_maximize_horz + net_wm_action_maximize_vert = _openbox.Property_net_wm_action_maximize_vert + net_wm_action_change_desktop = _openbox.Property_net_wm_action_change_desktop + net_wm_action_close = _openbox.Property_net_wm_action_close + net_wm_state_modal = _openbox.Property_net_wm_state_modal + net_wm_state_sticky = _openbox.Property_net_wm_state_sticky + net_wm_state_maximized_vert = _openbox.Property_net_wm_state_maximized_vert + net_wm_state_maximized_horz = _openbox.Property_net_wm_state_maximized_horz + net_wm_state_shaded = _openbox.Property_net_wm_state_shaded + net_wm_state_skip_taskbar = _openbox.Property_net_wm_state_skip_taskbar + net_wm_state_skip_pager = _openbox.Property_net_wm_state_skip_pager + net_wm_state_hidden = _openbox.Property_net_wm_state_hidden + net_wm_state_fullscreen = _openbox.Property_net_wm_state_fullscreen + net_wm_state_above = _openbox.Property_net_wm_state_above + net_wm_state_below = _openbox.Property_net_wm_state_below + kde_net_system_tray_windows = _openbox.Property_kde_net_system_tray_windows + kde_net_wm_system_tray_window_for = _openbox.Property_kde_net_wm_system_tray_window_for + kde_net_wm_window_type_override = _openbox.Property_kde_net_wm_window_type_override + NUM_ATOMS = _openbox.Property_NUM_ATOMS + ascii = _openbox.Property_ascii + utf8 = _openbox.Property_utf8 + NUM_STRING_TYPE = _openbox.Property_NUM_STRING_TYPE + def __init__(self,*args): + self.this = apply(_openbox.new_Property,args) + self.thisown = 1 + def __del__(self, destroy= _openbox.delete_Property): + try: + if self.thisown: destroy(self) + except: pass + def set(*args): return apply(_openbox.Property_set,args) + def get(*args): return apply(_openbox.Property_get,args) + def erase(*args): return apply(_openbox.Property_erase,args) + def atom(*args): return apply(_openbox.Property_atom,args) + def __repr__(self): + return "" % (self.this,) + +class PropertyPtr(Property): + def __init__(self,this): + self.this = this + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = Property +_openbox.Property_swigregister(PropertyPtr) + class Rect(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Rect, name, value) @@ -97,6 +308,148 @@ class RectPtr(Rect): self.__class__ = Rect _openbox.Rect_swigregister(RectPtr) +class ScreenInfo(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ScreenInfo, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ScreenInfo, name) + def __init__(self,*args): + self.this = apply(_openbox.new_ScreenInfo,args) + self.thisown = 1 + def visual(*args): return apply(_openbox.ScreenInfo_visual,args) + def rootWindow(*args): return apply(_openbox.ScreenInfo_rootWindow,args) + def colormap(*args): return apply(_openbox.ScreenInfo_colormap,args) + def depth(*args): return apply(_openbox.ScreenInfo_depth,args) + def screen(*args): return apply(_openbox.ScreenInfo_screen,args) + def rect(*args): return apply(_openbox.ScreenInfo_rect,args) + def width(*args): return apply(_openbox.ScreenInfo_width,args) + def height(*args): return apply(_openbox.ScreenInfo_height,args) + def displayString(*args): return apply(_openbox.ScreenInfo_displayString,args) + def __repr__(self): + return "" % (self.this,) + +class ScreenInfoPtr(ScreenInfo): + def __init__(self,this): + self.this = this + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = ScreenInfo +_openbox.ScreenInfo_swigregister(ScreenInfoPtr) + +class Strut(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, Strut, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, Strut, name) + __swig_setmethods__["top"] = _openbox.Strut_top_set + __swig_getmethods__["top"] = _openbox.Strut_top_get + if _newclass:top = property(_openbox.Strut_top_get,_openbox.Strut_top_set) + __swig_setmethods__["bottom"] = _openbox.Strut_bottom_set + __swig_getmethods__["bottom"] = _openbox.Strut_bottom_get + if _newclass:bottom = property(_openbox.Strut_bottom_get,_openbox.Strut_bottom_set) + __swig_setmethods__["left"] = _openbox.Strut_left_set + __swig_getmethods__["left"] = _openbox.Strut_left_get + if _newclass:left = property(_openbox.Strut_left_get,_openbox.Strut_left_set) + __swig_setmethods__["right"] = _openbox.Strut_right_set + __swig_getmethods__["right"] = _openbox.Strut_right_get + if _newclass:right = property(_openbox.Strut_right_get,_openbox.Strut_right_set) + def __init__(self,*args): + self.this = apply(_openbox.new_Strut,args) + self.thisown = 1 + def __repr__(self): + return "" % (self.this,) + +class StrutPtr(Strut): + def __init__(self,this): + self.this = this + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = Strut +_openbox.Strut_swigregister(StrutPtr) + +class EventHandler(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, EventHandler, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, EventHandler, name) + def handle(*args): return apply(_openbox.EventHandler_handle,args) + def keyPressHandler(*args): return apply(_openbox.EventHandler_keyPressHandler,args) + def keyReleaseHandler(*args): return apply(_openbox.EventHandler_keyReleaseHandler,args) + def buttonPressHandler(*args): return apply(_openbox.EventHandler_buttonPressHandler,args) + def buttonReleaseHandler(*args): return apply(_openbox.EventHandler_buttonReleaseHandler,args) + def motionHandler(*args): return apply(_openbox.EventHandler_motionHandler,args) + def enterHandler(*args): return apply(_openbox.EventHandler_enterHandler,args) + def leaveHandler(*args): return apply(_openbox.EventHandler_leaveHandler,args) + def focusHandler(*args): return apply(_openbox.EventHandler_focusHandler,args) + def unfocusHandler(*args): return apply(_openbox.EventHandler_unfocusHandler,args) + def exposeHandler(*args): return apply(_openbox.EventHandler_exposeHandler,args) + def graphicsExposeHandler(*args): return apply(_openbox.EventHandler_graphicsExposeHandler,args) + def noExposeEventHandler(*args): return apply(_openbox.EventHandler_noExposeEventHandler,args) + def circulateRequestHandler(*args): return apply(_openbox.EventHandler_circulateRequestHandler,args) + def configureRequestHandler(*args): return apply(_openbox.EventHandler_configureRequestHandler,args) + def mapRequestHandler(*args): return apply(_openbox.EventHandler_mapRequestHandler,args) + def resizeRequestHandler(*args): return apply(_openbox.EventHandler_resizeRequestHandler,args) + def circulateHandler(*args): return apply(_openbox.EventHandler_circulateHandler,args) + def configureHandler(*args): return apply(_openbox.EventHandler_configureHandler,args) + def createHandler(*args): return apply(_openbox.EventHandler_createHandler,args) + def destroyHandler(*args): return apply(_openbox.EventHandler_destroyHandler,args) + def gravityHandler(*args): return apply(_openbox.EventHandler_gravityHandler,args) + def mapHandler(*args): return apply(_openbox.EventHandler_mapHandler,args) + def mappingHandler(*args): return apply(_openbox.EventHandler_mappingHandler,args) + def reparentHandler(*args): return apply(_openbox.EventHandler_reparentHandler,args) + def unmapHandler(*args): return apply(_openbox.EventHandler_unmapHandler,args) + def visibilityHandler(*args): return apply(_openbox.EventHandler_visibilityHandler,args) + def colorMapHandler(*args): return apply(_openbox.EventHandler_colorMapHandler,args) + def propertyHandler(*args): return apply(_openbox.EventHandler_propertyHandler,args) + def selectionClearHandler(*args): return apply(_openbox.EventHandler_selectionClearHandler,args) + def selectionHandler(*args): return apply(_openbox.EventHandler_selectionHandler,args) + def selectionRequestHandler(*args): return apply(_openbox.EventHandler_selectionRequestHandler,args) + def clientMessageHandler(*args): return apply(_openbox.EventHandler_clientMessageHandler,args) + def __del__(self, destroy= _openbox.delete_EventHandler): + try: + if self.thisown: destroy(self) + except: pass + def __init__(self): raise RuntimeError, "No constructor defined" + def __repr__(self): + return "" % (self.this,) + +class EventHandlerPtr(EventHandler): + def __init__(self,this): + self.this = this + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = EventHandler +_openbox.EventHandler_swigregister(EventHandlerPtr) + +class EventDispatcher(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, EventDispatcher, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, EventDispatcher, name) + def __init__(self,*args): + self.this = apply(_openbox.new_EventDispatcher,args) + self.thisown = 1 + def __del__(self, destroy= _openbox.delete_EventDispatcher): + try: + if self.thisown: destroy(self) + except: pass + def clearAllHandlers(*args): return apply(_openbox.EventDispatcher_clearAllHandlers,args) + def registerHandler(*args): return apply(_openbox.EventDispatcher_registerHandler,args) + def clearHandler(*args): return apply(_openbox.EventDispatcher_clearHandler,args) + def dispatchEvents(*args): return apply(_openbox.EventDispatcher_dispatchEvents,args) + def setFallbackHandler(*args): return apply(_openbox.EventDispatcher_setFallbackHandler,args) + def getFallbackHandler(*args): return apply(_openbox.EventDispatcher_getFallbackHandler,args) + def setMasterHandler(*args): return apply(_openbox.EventDispatcher_setMasterHandler,args) + def getMasterHandler(*args): return apply(_openbox.EventDispatcher_getMasterHandler,args) + def findHandler(*args): return apply(_openbox.EventDispatcher_findHandler,args) + def lastTime(*args): return apply(_openbox.EventDispatcher_lastTime,args) + def __repr__(self): + return "" % (self.this,) + +class EventDispatcherPtr(EventDispatcher): + def __init__(self,this): + self.this = this + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = EventDispatcher +_openbox.EventDispatcher_swigregister(EventDispatcherPtr) + class Cursors(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Cursors, name, value) @@ -131,10 +484,12 @@ class CursorsPtr(Cursors): self.__class__ = Cursors _openbox.Cursors_swigregister(CursorsPtr) -class Openbox(_object): +class Openbox(EventDispatcher,EventHandler): __swig_setmethods__ = {} + for _s in [EventDispatcher,EventHandler]: __swig_setmethods__.update(_s.__swig_setmethods__) __setattr__ = lambda self, name, value: _swig_setattr(self, Openbox, name, value) __swig_getmethods__ = {} + for _s in [EventDispatcher,EventHandler]: __swig_getmethods__.update(_s.__swig_getmethods__) __getattr__ = lambda self, name: _swig_getattr(self, Openbox, name) State_Starting = _openbox.Openbox_State_Starting State_Normal = _openbox.Openbox_State_Normal @@ -167,41 +522,43 @@ class OpenboxPtr(Openbox): self.__class__ = Openbox _openbox.Openbox_swigregister(OpenboxPtr) -class OBScreen(_object): +class Screen(EventHandler,): __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, OBScreen, name, value) + for _s in [EventHandler,]: __swig_setmethods__.update(_s.__swig_setmethods__) + __setattr__ = lambda self, name, value: _swig_setattr(self, Screen, name, value) __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, OBScreen, name) - def client(*args): return apply(_openbox.OBScreen_client,args) - def clientCount(*args): return apply(_openbox.OBScreen_clientCount,args) - event_mask = _openbox.OBScreen_event_mask - def number(*args): return apply(_openbox.OBScreen_number,args) - def managed(*args): return apply(_openbox.OBScreen_managed,args) - def imageControl(*args): return apply(_openbox.OBScreen_imageControl,args) - def area(*args): return apply(_openbox.OBScreen_area,args) - def style(*args): return apply(_openbox.OBScreen_style,args) - def focuswindow(*args): return apply(_openbox.OBScreen_focuswindow,args) - def desktop(*args): return apply(_openbox.OBScreen_desktop,args) - def numDesktops(*args): return apply(_openbox.OBScreen_numDesktops,args) - def updateStrut(*args): return apply(_openbox.OBScreen_updateStrut,args) - def manageExisting(*args): return apply(_openbox.OBScreen_manageExisting,args) - def manageWindow(*args): return apply(_openbox.OBScreen_manageWindow,args) - def unmanageWindow(*args): return apply(_openbox.OBScreen_unmanageWindow,args) - def restack(*args): return apply(_openbox.OBScreen_restack,args) - def setDesktopName(*args): return apply(_openbox.OBScreen_setDesktopName,args) - def propertyHandler(*args): return apply(_openbox.OBScreen_propertyHandler,args) - def clientMessageHandler(*args): return apply(_openbox.OBScreen_clientMessageHandler,args) - def mapRequestHandler(*args): return apply(_openbox.OBScreen_mapRequestHandler,args) + for _s in [EventHandler,]: __swig_getmethods__.update(_s.__swig_getmethods__) + __getattr__ = lambda self, name: _swig_getattr(self, Screen, name) + def client(*args): return apply(_openbox.Screen_client,args) + def clientCount(*args): return apply(_openbox.Screen_clientCount,args) + event_mask = _openbox.Screen_event_mask + def number(*args): return apply(_openbox.Screen_number,args) + def managed(*args): return apply(_openbox.Screen_managed,args) + def imageControl(*args): return apply(_openbox.Screen_imageControl,args) + def area(*args): return apply(_openbox.Screen_area,args) + def style(*args): return apply(_openbox.Screen_style,args) + def focuswindow(*args): return apply(_openbox.Screen_focuswindow,args) + def desktop(*args): return apply(_openbox.Screen_desktop,args) + def numDesktops(*args): return apply(_openbox.Screen_numDesktops,args) + def updateStrut(*args): return apply(_openbox.Screen_updateStrut,args) + def manageExisting(*args): return apply(_openbox.Screen_manageExisting,args) + def manageWindow(*args): return apply(_openbox.Screen_manageWindow,args) + def unmanageWindow(*args): return apply(_openbox.Screen_unmanageWindow,args) + def restack(*args): return apply(_openbox.Screen_restack,args) + def setDesktopName(*args): return apply(_openbox.Screen_setDesktopName,args) + def propertyHandler(*args): return apply(_openbox.Screen_propertyHandler,args) + def clientMessageHandler(*args): return apply(_openbox.Screen_clientMessageHandler,args) + def mapRequestHandler(*args): return apply(_openbox.Screen_mapRequestHandler,args) def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): - return "" % (self.this,) + return "" % (self.this,) -class OBScreenPtr(OBScreen): +class ScreenPtr(Screen): def __init__(self,this): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = OBScreen -_openbox.OBScreen_swigregister(OBScreenPtr) + self.__class__ = Screen +_openbox.Screen_swigregister(ScreenPtr) class MwmHints(_object): __swig_setmethods__ = {} @@ -229,118 +586,120 @@ class MwmHintsPtr(MwmHints): self.__class__ = MwmHints _openbox.MwmHints_swigregister(MwmHintsPtr) -class OBClient(_object): +class Client(EventHandler,): __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, OBClient, name, value) + for _s in [EventHandler,]: __swig_setmethods__.update(_s.__swig_setmethods__) + __setattr__ = lambda self, name, value: _swig_setattr(self, Client, name, value) __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, OBClient, name) - __swig_setmethods__["frame"] = _openbox.OBClient_frame_set - __swig_getmethods__["frame"] = _openbox.OBClient_frame_get - if _newclass:frame = property(_openbox.OBClient_frame_get,_openbox.OBClient_frame_set) - Layer_Icon = _openbox.OBClient_Layer_Icon - Layer_Desktop = _openbox.OBClient_Layer_Desktop - Layer_Below = _openbox.OBClient_Layer_Below - Layer_Normal = _openbox.OBClient_Layer_Normal - Layer_Above = _openbox.OBClient_Layer_Above - Layer_Top = _openbox.OBClient_Layer_Top - Layer_Fullscreen = _openbox.OBClient_Layer_Fullscreen - Layer_Internal = _openbox.OBClient_Layer_Internal - NUM_LAYERS = _openbox.OBClient_NUM_LAYERS - TopLeft = _openbox.OBClient_TopLeft - TopRight = _openbox.OBClient_TopRight - BottomLeft = _openbox.OBClient_BottomLeft - BottomRight = _openbox.OBClient_BottomRight - Type_Desktop = _openbox.OBClient_Type_Desktop - Type_Dock = _openbox.OBClient_Type_Dock - Type_Toolbar = _openbox.OBClient_Type_Toolbar - Type_Menu = _openbox.OBClient_Type_Menu - Type_Utility = _openbox.OBClient_Type_Utility - Type_Splash = _openbox.OBClient_Type_Splash - Type_Dialog = _openbox.OBClient_Type_Dialog - Type_Normal = _openbox.OBClient_Type_Normal - MwmFlag_Functions = _openbox.OBClient_MwmFlag_Functions - MwmFlag_Decorations = _openbox.OBClient_MwmFlag_Decorations - MwmFunc_All = _openbox.OBClient_MwmFunc_All - MwmFunc_Resize = _openbox.OBClient_MwmFunc_Resize - MwmFunc_Move = _openbox.OBClient_MwmFunc_Move - MwmFunc_Iconify = _openbox.OBClient_MwmFunc_Iconify - MwmFunc_Maximize = _openbox.OBClient_MwmFunc_Maximize - MwmDecor_All = _openbox.OBClient_MwmDecor_All - MwmDecor_Border = _openbox.OBClient_MwmDecor_Border - MwmDecor_Handle = _openbox.OBClient_MwmDecor_Handle - MwmDecor_Title = _openbox.OBClient_MwmDecor_Title - MwmDecor_Iconify = _openbox.OBClient_MwmDecor_Iconify - MwmDecor_Maximize = _openbox.OBClient_MwmDecor_Maximize - Func_Resize = _openbox.OBClient_Func_Resize - Func_Move = _openbox.OBClient_Func_Move - Func_Iconify = _openbox.OBClient_Func_Iconify - Func_Maximize = _openbox.OBClient_Func_Maximize - Func_Close = _openbox.OBClient_Func_Close - Decor_Titlebar = _openbox.OBClient_Decor_Titlebar - Decor_Handle = _openbox.OBClient_Decor_Handle - Decor_Border = _openbox.OBClient_Decor_Border - Decor_Iconify = _openbox.OBClient_Decor_Iconify - Decor_Maximize = _openbox.OBClient_Decor_Maximize - Decor_Sticky = _openbox.OBClient_Decor_Sticky - Decor_Close = _openbox.OBClient_Decor_Close - State_Remove = _openbox.OBClient_State_Remove - State_Add = _openbox.OBClient_State_Add - State_Toggle = _openbox.OBClient_State_Toggle - event_mask = _openbox.OBClient_event_mask - no_propagate_mask = _openbox.OBClient_no_propagate_mask - __swig_setmethods__["ignore_unmaps"] = _openbox.OBClient_ignore_unmaps_set - __swig_getmethods__["ignore_unmaps"] = _openbox.OBClient_ignore_unmaps_get - if _newclass:ignore_unmaps = property(_openbox.OBClient_ignore_unmaps_get,_openbox.OBClient_ignore_unmaps_set) - def screen(*args): return apply(_openbox.OBClient_screen,args) - def window(*args): return apply(_openbox.OBClient_window,args) - def type(*args): return apply(_openbox.OBClient_type,args) - def normal(*args): return apply(_openbox.OBClient_normal,args) - def desktop(*args): return apply(_openbox.OBClient_desktop,args) - def title(*args): return apply(_openbox.OBClient_title,args) - def iconTitle(*args): return apply(_openbox.OBClient_iconTitle,args) - def appName(*args): return apply(_openbox.OBClient_appName,args) - def appClass(*args): return apply(_openbox.OBClient_appClass,args) - def role(*args): return apply(_openbox.OBClient_role,args) - def canFocus(*args): return apply(_openbox.OBClient_canFocus,args) - def urgent(*args): return apply(_openbox.OBClient_urgent,args) - def focusNotify(*args): return apply(_openbox.OBClient_focusNotify,args) - def shaped(*args): return apply(_openbox.OBClient_shaped,args) - def gravity(*args): return apply(_openbox.OBClient_gravity,args) - def positionRequested(*args): return apply(_openbox.OBClient_positionRequested,args) - def decorations(*args): return apply(_openbox.OBClient_decorations,args) - def funtions(*args): return apply(_openbox.OBClient_funtions,args) - def transientFor(*args): return apply(_openbox.OBClient_transientFor,args) - def modal(*args): return apply(_openbox.OBClient_modal,args) - def shaded(*args): return apply(_openbox.OBClient_shaded,args) - def iconic(*args): return apply(_openbox.OBClient_iconic,args) - def maxVert(*args): return apply(_openbox.OBClient_maxVert,args) - def maxHorz(*args): return apply(_openbox.OBClient_maxHorz,args) - def layer(*args): return apply(_openbox.OBClient_layer,args) - def toggleClientBorder(*args): return apply(_openbox.OBClient_toggleClientBorder,args) - def area(*args): return apply(_openbox.OBClient_area,args) - def strut(*args): return apply(_openbox.OBClient_strut,args) - def move(*args): return apply(_openbox.OBClient_move,args) - def resize(*args): return apply(_openbox.OBClient_resize,args) - def focus(*args): return apply(_openbox.OBClient_focus,args) - def unfocus(*args): return apply(_openbox.OBClient_unfocus,args) - def focusHandler(*args): return apply(_openbox.OBClient_focusHandler,args) - def unfocusHandler(*args): return apply(_openbox.OBClient_unfocusHandler,args) - def propertyHandler(*args): return apply(_openbox.OBClient_propertyHandler,args) - def clientMessageHandler(*args): return apply(_openbox.OBClient_clientMessageHandler,args) - def configureRequestHandler(*args): return apply(_openbox.OBClient_configureRequestHandler,args) - def unmapHandler(*args): return apply(_openbox.OBClient_unmapHandler,args) - def destroyHandler(*args): return apply(_openbox.OBClient_destroyHandler,args) - def reparentHandler(*args): return apply(_openbox.OBClient_reparentHandler,args) + for _s in [EventHandler,]: __swig_getmethods__.update(_s.__swig_getmethods__) + __getattr__ = lambda self, name: _swig_getattr(self, Client, name) + __swig_setmethods__["frame"] = _openbox.Client_frame_set + __swig_getmethods__["frame"] = _openbox.Client_frame_get + if _newclass:frame = property(_openbox.Client_frame_get,_openbox.Client_frame_set) + Layer_Icon = _openbox.Client_Layer_Icon + Layer_Desktop = _openbox.Client_Layer_Desktop + Layer_Below = _openbox.Client_Layer_Below + Layer_Normal = _openbox.Client_Layer_Normal + Layer_Above = _openbox.Client_Layer_Above + Layer_Top = _openbox.Client_Layer_Top + Layer_Fullscreen = _openbox.Client_Layer_Fullscreen + Layer_Internal = _openbox.Client_Layer_Internal + NUM_LAYERS = _openbox.Client_NUM_LAYERS + TopLeft = _openbox.Client_TopLeft + TopRight = _openbox.Client_TopRight + BottomLeft = _openbox.Client_BottomLeft + BottomRight = _openbox.Client_BottomRight + Type_Desktop = _openbox.Client_Type_Desktop + Type_Dock = _openbox.Client_Type_Dock + Type_Toolbar = _openbox.Client_Type_Toolbar + Type_Menu = _openbox.Client_Type_Menu + Type_Utility = _openbox.Client_Type_Utility + Type_Splash = _openbox.Client_Type_Splash + Type_Dialog = _openbox.Client_Type_Dialog + Type_Normal = _openbox.Client_Type_Normal + MwmFlag_Functions = _openbox.Client_MwmFlag_Functions + MwmFlag_Decorations = _openbox.Client_MwmFlag_Decorations + MwmFunc_All = _openbox.Client_MwmFunc_All + MwmFunc_Resize = _openbox.Client_MwmFunc_Resize + MwmFunc_Move = _openbox.Client_MwmFunc_Move + MwmFunc_Iconify = _openbox.Client_MwmFunc_Iconify + MwmFunc_Maximize = _openbox.Client_MwmFunc_Maximize + MwmDecor_All = _openbox.Client_MwmDecor_All + MwmDecor_Border = _openbox.Client_MwmDecor_Border + MwmDecor_Handle = _openbox.Client_MwmDecor_Handle + MwmDecor_Title = _openbox.Client_MwmDecor_Title + MwmDecor_Iconify = _openbox.Client_MwmDecor_Iconify + MwmDecor_Maximize = _openbox.Client_MwmDecor_Maximize + Func_Resize = _openbox.Client_Func_Resize + Func_Move = _openbox.Client_Func_Move + Func_Iconify = _openbox.Client_Func_Iconify + Func_Maximize = _openbox.Client_Func_Maximize + Func_Close = _openbox.Client_Func_Close + Decor_Titlebar = _openbox.Client_Decor_Titlebar + Decor_Handle = _openbox.Client_Decor_Handle + Decor_Border = _openbox.Client_Decor_Border + Decor_Iconify = _openbox.Client_Decor_Iconify + Decor_Maximize = _openbox.Client_Decor_Maximize + Decor_Sticky = _openbox.Client_Decor_Sticky + Decor_Close = _openbox.Client_Decor_Close + State_Remove = _openbox.Client_State_Remove + State_Add = _openbox.Client_State_Add + State_Toggle = _openbox.Client_State_Toggle + event_mask = _openbox.Client_event_mask + no_propagate_mask = _openbox.Client_no_propagate_mask + __swig_setmethods__["ignore_unmaps"] = _openbox.Client_ignore_unmaps_set + __swig_getmethods__["ignore_unmaps"] = _openbox.Client_ignore_unmaps_get + if _newclass:ignore_unmaps = property(_openbox.Client_ignore_unmaps_get,_openbox.Client_ignore_unmaps_set) + def screen(*args): return apply(_openbox.Client_screen,args) + def window(*args): return apply(_openbox.Client_window,args) + def type(*args): return apply(_openbox.Client_type,args) + def normal(*args): return apply(_openbox.Client_normal,args) + def desktop(*args): return apply(_openbox.Client_desktop,args) + def title(*args): return apply(_openbox.Client_title,args) + def iconTitle(*args): return apply(_openbox.Client_iconTitle,args) + def appName(*args): return apply(_openbox.Client_appName,args) + def appClass(*args): return apply(_openbox.Client_appClass,args) + def role(*args): return apply(_openbox.Client_role,args) + def canFocus(*args): return apply(_openbox.Client_canFocus,args) + def urgent(*args): return apply(_openbox.Client_urgent,args) + def focusNotify(*args): return apply(_openbox.Client_focusNotify,args) + def shaped(*args): return apply(_openbox.Client_shaped,args) + def gravity(*args): return apply(_openbox.Client_gravity,args) + def positionRequested(*args): return apply(_openbox.Client_positionRequested,args) + def decorations(*args): return apply(_openbox.Client_decorations,args) + def funtions(*args): return apply(_openbox.Client_funtions,args) + def transientFor(*args): return apply(_openbox.Client_transientFor,args) + def modal(*args): return apply(_openbox.Client_modal,args) + def shaded(*args): return apply(_openbox.Client_shaded,args) + def iconic(*args): return apply(_openbox.Client_iconic,args) + def maxVert(*args): return apply(_openbox.Client_maxVert,args) + def maxHorz(*args): return apply(_openbox.Client_maxHorz,args) + def layer(*args): return apply(_openbox.Client_layer,args) + def toggleClientBorder(*args): return apply(_openbox.Client_toggleClientBorder,args) + def area(*args): return apply(_openbox.Client_area,args) + def strut(*args): return apply(_openbox.Client_strut,args) + def move(*args): return apply(_openbox.Client_move,args) + def resize(*args): return apply(_openbox.Client_resize,args) + def focus(*args): return apply(_openbox.Client_focus,args) + def unfocus(*args): return apply(_openbox.Client_unfocus,args) + def focusHandler(*args): return apply(_openbox.Client_focusHandler,args) + def unfocusHandler(*args): return apply(_openbox.Client_unfocusHandler,args) + def propertyHandler(*args): return apply(_openbox.Client_propertyHandler,args) + def clientMessageHandler(*args): return apply(_openbox.Client_clientMessageHandler,args) + def configureRequestHandler(*args): return apply(_openbox.Client_configureRequestHandler,args) + def unmapHandler(*args): return apply(_openbox.Client_unmapHandler,args) + def destroyHandler(*args): return apply(_openbox.Client_destroyHandler,args) + def reparentHandler(*args): return apply(_openbox.Client_reparentHandler,args) def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): - return "" % (self.this,) + return "" % (self.this,) -class OBClientPtr(OBClient): +class ClientPtr(Client): def __init__(self,this): self.this = this if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = OBClient -_openbox.OBClient_swigregister(OBClientPtr) + self.__class__ = Client +_openbox.Client_swigregister(ClientPtr) MC_Frame = _openbox.MC_Frame MC_Titlebar = _openbox.MC_Titlebar