the openbox module has to include shit from otk that it uses, swigs shit doesnt work across modules in the shadow wrappers

This commit is contained in:
Dana Jansens 2003-01-10 07:43:42 +00:00
parent 623de3b0ee
commit 88b7de4aaa
4 changed files with 5616 additions and 116 deletions

View file

@ -107,7 +107,20 @@ void python_callback(PyObject *func, KeyData *data)
}
};
%import "../otk/otk.i"
%include "../otk/display.hh"
%include "../otk/point.hh"
%include "../otk/property.hh"
%include "../otk/rect.hh"
%include "../otk/screeninfo.hh"
%include "../otk/strut.hh"
%rename(itostring_unsigned) itostring(unsigned int);
%rename(itostring_long) itostring(long);
%rename(itostring_unsigned_long) itostring(unsigned long);
%include "../otk/util.hh"
%include "../otk/eventhandler.hh"
%include "../otk/eventdispatcher.hh"
%import "widgetbase.hh"
%import "actions.hh"

View file

@ -29,7 +29,443 @@ except AttributeError:
Openbox_instance = _openbox.Openbox_instance
import otk
class OBDisplay(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, OBDisplay, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, OBDisplay, name)
__swig_getmethods__["initialize"] = lambda x: _openbox.OBDisplay_initialize
if _newclass:initialize = staticmethod(_openbox.OBDisplay_initialize)
__swig_getmethods__["destroy"] = lambda x: _openbox.OBDisplay_destroy
if _newclass:destroy = staticmethod(_openbox.OBDisplay_destroy)
__swig_getmethods__["gcCache"] = lambda x: _openbox.OBDisplay_gcCache
if _newclass:gcCache = staticmethod(_openbox.OBDisplay_gcCache)
__swig_getmethods__["screenInfo"] = lambda x: _openbox.OBDisplay_screenInfo
if _newclass:screenInfo = staticmethod(_openbox.OBDisplay_screenInfo)
__swig_getmethods__["findScreen"] = lambda x: _openbox.OBDisplay_findScreen
if _newclass:findScreen = staticmethod(_openbox.OBDisplay_findScreen)
__swig_getmethods__["xkb"] = lambda x: _openbox.OBDisplay_xkb
if _newclass:xkb = staticmethod(_openbox.OBDisplay_xkb)
__swig_getmethods__["xkbEventBase"] = lambda x: _openbox.OBDisplay_xkbEventBase
if _newclass:xkbEventBase = staticmethod(_openbox.OBDisplay_xkbEventBase)
__swig_getmethods__["shape"] = lambda x: _openbox.OBDisplay_shape
if _newclass:shape = staticmethod(_openbox.OBDisplay_shape)
__swig_getmethods__["shapeEventBase"] = lambda x: _openbox.OBDisplay_shapeEventBase
if _newclass:shapeEventBase = staticmethod(_openbox.OBDisplay_shapeEventBase)
__swig_getmethods__["xinerama"] = lambda x: _openbox.OBDisplay_xinerama
if _newclass:xinerama = staticmethod(_openbox.OBDisplay_xinerama)
__swig_getmethods__["numLockMask"] = lambda x: _openbox.OBDisplay_numLockMask
if _newclass:numLockMask = staticmethod(_openbox.OBDisplay_numLockMask)
__swig_getmethods__["scrollLockMask"] = lambda x: _openbox.OBDisplay_scrollLockMask
if _newclass:scrollLockMask = staticmethod(_openbox.OBDisplay_scrollLockMask)
__swig_getmethods__["grab"] = lambda x: _openbox.OBDisplay_grab
if _newclass:grab = staticmethod(_openbox.OBDisplay_grab)
__swig_getmethods__["ungrab"] = lambda x: _openbox.OBDisplay_ungrab
if _newclass:ungrab = staticmethod(_openbox.OBDisplay_ungrab)
__swig_getmethods__["grabButton"] = lambda x: _openbox.OBDisplay_grabButton
if _newclass:grabButton = staticmethod(_openbox.OBDisplay_grabButton)
__swig_getmethods__["ungrabButton"] = lambda x: _openbox.OBDisplay_ungrabButton
if _newclass:ungrabButton = staticmethod(_openbox.OBDisplay_ungrabButton)
__swig_getmethods__["grabKey"] = lambda x: _openbox.OBDisplay_grabKey
if _newclass:grabKey = staticmethod(_openbox.OBDisplay_grabKey)
__swig_getmethods__["ungrabKey"] = lambda x: _openbox.OBDisplay_ungrabKey
if _newclass:ungrabKey = staticmethod(_openbox.OBDisplay_ungrabKey)
def __init__(self): raise RuntimeError, "No constructor defined"
def __repr__(self):
return "<C OBDisplay instance at %s>" % (self.this,)
class OBDisplayPtr(OBDisplay):
def __init__(self,this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
self.__class__ = OBDisplay
_openbox.OBDisplay_swigregister(OBDisplayPtr)
cvar = _openbox.cvar
OBDisplay_initialize = _openbox.OBDisplay_initialize
OBDisplay_destroy = _openbox.OBDisplay_destroy
OBDisplay_gcCache = _openbox.OBDisplay_gcCache
OBDisplay_screenInfo = _openbox.OBDisplay_screenInfo
OBDisplay_findScreen = _openbox.OBDisplay_findScreen
OBDisplay_xkb = _openbox.OBDisplay_xkb
OBDisplay_xkbEventBase = _openbox.OBDisplay_xkbEventBase
OBDisplay_shape = _openbox.OBDisplay_shape
OBDisplay_shapeEventBase = _openbox.OBDisplay_shapeEventBase
OBDisplay_xinerama = _openbox.OBDisplay_xinerama
OBDisplay_numLockMask = _openbox.OBDisplay_numLockMask
OBDisplay_scrollLockMask = _openbox.OBDisplay_scrollLockMask
OBDisplay_grab = _openbox.OBDisplay_grab
OBDisplay_ungrab = _openbox.OBDisplay_ungrab
OBDisplay_grabButton = _openbox.OBDisplay_grabButton
OBDisplay_ungrabButton = _openbox.OBDisplay_ungrabButton
OBDisplay_grabKey = _openbox.OBDisplay_grabKey
OBDisplay_ungrabKey = _openbox.OBDisplay_ungrabKey
class Point(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, Point, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, Point, name)
def __init__(self,*args):
self.this = apply(_openbox.new_Point,args)
self.thisown = 1
def setX(*args): return apply(_openbox.Point_setX,args)
def x(*args): return apply(_openbox.Point_x,args)
def setY(*args): return apply(_openbox.Point_setY,args)
def y(*args): return apply(_openbox.Point_y,args)
def setPoint(*args): return apply(_openbox.Point_setPoint,args)
def __repr__(self):
return "<C Point instance at %s>" % (self.this,)
class PointPtr(Point):
def __init__(self,this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
self.__class__ = Point
_openbox.Point_swigregister(PointPtr)
class OBProperty(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, OBProperty, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, OBProperty, name)
Atom_Cardinal = _openbox.OBProperty_Atom_Cardinal
Atom_Window = _openbox.OBProperty_Atom_Window
Atom_Pixmap = _openbox.OBProperty_Atom_Pixmap
Atom_Atom = _openbox.OBProperty_Atom_Atom
Atom_String = _openbox.OBProperty_Atom_String
Atom_Utf8 = _openbox.OBProperty_Atom_Utf8
openbox_pid = _openbox.OBProperty_openbox_pid
wm_colormap_windows = _openbox.OBProperty_wm_colormap_windows
wm_protocols = _openbox.OBProperty_wm_protocols
wm_state = _openbox.OBProperty_wm_state
wm_delete_window = _openbox.OBProperty_wm_delete_window
wm_take_focus = _openbox.OBProperty_wm_take_focus
wm_change_state = _openbox.OBProperty_wm_change_state
wm_name = _openbox.OBProperty_wm_name
wm_icon_name = _openbox.OBProperty_wm_icon_name
wm_class = _openbox.OBProperty_wm_class
wm_window_role = _openbox.OBProperty_wm_window_role
motif_wm_hints = _openbox.OBProperty_motif_wm_hints
blackbox_attributes = _openbox.OBProperty_blackbox_attributes
blackbox_change_attributes = _openbox.OBProperty_blackbox_change_attributes
blackbox_hints = _openbox.OBProperty_blackbox_hints
blackbox_structure_messages = _openbox.OBProperty_blackbox_structure_messages
blackbox_notify_startup = _openbox.OBProperty_blackbox_notify_startup
blackbox_notify_window_add = _openbox.OBProperty_blackbox_notify_window_add
blackbox_notify_window_del = _openbox.OBProperty_blackbox_notify_window_del
blackbox_notify_window_focus = _openbox.OBProperty_blackbox_notify_window_focus
blackbox_notify_current_workspace = _openbox.OBProperty_blackbox_notify_current_workspace
blackbox_notify_workspace_count = _openbox.OBProperty_blackbox_notify_workspace_count
blackbox_notify_window_raise = _openbox.OBProperty_blackbox_notify_window_raise
blackbox_notify_window_lower = _openbox.OBProperty_blackbox_notify_window_lower
blackbox_change_workspace = _openbox.OBProperty_blackbox_change_workspace
blackbox_change_window_focus = _openbox.OBProperty_blackbox_change_window_focus
blackbox_cycle_window_focus = _openbox.OBProperty_blackbox_cycle_window_focus
openbox_show_root_menu = _openbox.OBProperty_openbox_show_root_menu
openbox_show_workspace_menu = _openbox.OBProperty_openbox_show_workspace_menu
net_supported = _openbox.OBProperty_net_supported
net_client_list = _openbox.OBProperty_net_client_list
net_client_list_stacking = _openbox.OBProperty_net_client_list_stacking
net_number_of_desktops = _openbox.OBProperty_net_number_of_desktops
net_desktop_geometry = _openbox.OBProperty_net_desktop_geometry
net_desktop_viewport = _openbox.OBProperty_net_desktop_viewport
net_current_desktop = _openbox.OBProperty_net_current_desktop
net_desktop_names = _openbox.OBProperty_net_desktop_names
net_active_window = _openbox.OBProperty_net_active_window
net_workarea = _openbox.OBProperty_net_workarea
net_supporting_wm_check = _openbox.OBProperty_net_supporting_wm_check
net_close_window = _openbox.OBProperty_net_close_window
net_wm_moveresize = _openbox.OBProperty_net_wm_moveresize
net_wm_name = _openbox.OBProperty_net_wm_name
net_wm_visible_name = _openbox.OBProperty_net_wm_visible_name
net_wm_icon_name = _openbox.OBProperty_net_wm_icon_name
net_wm_visible_icon_name = _openbox.OBProperty_net_wm_visible_icon_name
net_wm_desktop = _openbox.OBProperty_net_wm_desktop
net_wm_window_type = _openbox.OBProperty_net_wm_window_type
net_wm_state = _openbox.OBProperty_net_wm_state
net_wm_strut = _openbox.OBProperty_net_wm_strut
net_wm_allowed_actions = _openbox.OBProperty_net_wm_allowed_actions
net_wm_window_type_desktop = _openbox.OBProperty_net_wm_window_type_desktop
net_wm_window_type_dock = _openbox.OBProperty_net_wm_window_type_dock
net_wm_window_type_toolbar = _openbox.OBProperty_net_wm_window_type_toolbar
net_wm_window_type_menu = _openbox.OBProperty_net_wm_window_type_menu
net_wm_window_type_utility = _openbox.OBProperty_net_wm_window_type_utility
net_wm_window_type_splash = _openbox.OBProperty_net_wm_window_type_splash
net_wm_window_type_dialog = _openbox.OBProperty_net_wm_window_type_dialog
net_wm_window_type_normal = _openbox.OBProperty_net_wm_window_type_normal
net_wm_moveresize_size_topleft = _openbox.OBProperty_net_wm_moveresize_size_topleft
net_wm_moveresize_size_topright = _openbox.OBProperty_net_wm_moveresize_size_topright
net_wm_moveresize_size_bottomleft = _openbox.OBProperty_net_wm_moveresize_size_bottomleft
net_wm_moveresize_size_bottomright = _openbox.OBProperty_net_wm_moveresize_size_bottomright
net_wm_moveresize_move = _openbox.OBProperty_net_wm_moveresize_move
net_wm_action_move = _openbox.OBProperty_net_wm_action_move
net_wm_action_resize = _openbox.OBProperty_net_wm_action_resize
net_wm_action_shade = _openbox.OBProperty_net_wm_action_shade
net_wm_action_maximize_horz = _openbox.OBProperty_net_wm_action_maximize_horz
net_wm_action_maximize_vert = _openbox.OBProperty_net_wm_action_maximize_vert
net_wm_action_change_desktop = _openbox.OBProperty_net_wm_action_change_desktop
net_wm_action_close = _openbox.OBProperty_net_wm_action_close
net_wm_state_modal = _openbox.OBProperty_net_wm_state_modal
net_wm_state_sticky = _openbox.OBProperty_net_wm_state_sticky
net_wm_state_maximized_vert = _openbox.OBProperty_net_wm_state_maximized_vert
net_wm_state_maximized_horz = _openbox.OBProperty_net_wm_state_maximized_horz
net_wm_state_shaded = _openbox.OBProperty_net_wm_state_shaded
net_wm_state_skip_taskbar = _openbox.OBProperty_net_wm_state_skip_taskbar
net_wm_state_skip_pager = _openbox.OBProperty_net_wm_state_skip_pager
net_wm_state_hidden = _openbox.OBProperty_net_wm_state_hidden
net_wm_state_fullscreen = _openbox.OBProperty_net_wm_state_fullscreen
net_wm_state_above = _openbox.OBProperty_net_wm_state_above
net_wm_state_below = _openbox.OBProperty_net_wm_state_below
kde_net_system_tray_windows = _openbox.OBProperty_kde_net_system_tray_windows
kde_net_wm_system_tray_window_for = _openbox.OBProperty_kde_net_wm_system_tray_window_for
kde_net_wm_window_type_override = _openbox.OBProperty_kde_net_wm_window_type_override
NUM_ATOMS = _openbox.OBProperty_NUM_ATOMS
ascii = _openbox.OBProperty_ascii
utf8 = _openbox.OBProperty_utf8
NUM_STRING_TYPE = _openbox.OBProperty_NUM_STRING_TYPE
def __init__(self,*args):
self.this = apply(_openbox.new_OBProperty,args)
self.thisown = 1
def __del__(self, destroy= _openbox.delete_OBProperty):
try:
if self.thisown: destroy(self)
except: pass
def set(*args): return apply(_openbox.OBProperty_set,args)
def get(*args): return apply(_openbox.OBProperty_get,args)
def erase(*args): return apply(_openbox.OBProperty_erase,args)
def atom(*args): return apply(_openbox.OBProperty_atom,args)
def __repr__(self):
return "<C OBProperty instance at %s>" % (self.this,)
class OBPropertyPtr(OBProperty):
def __init__(self,this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
self.__class__ = OBProperty
_openbox.OBProperty_swigregister(OBPropertyPtr)
class Rect(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, Rect, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, Rect, name)
def __init__(self,*args):
self.this = apply(_openbox.new_Rect,args)
self.thisown = 1
def left(*args): return apply(_openbox.Rect_left,args)
def top(*args): return apply(_openbox.Rect_top,args)
def right(*args): return apply(_openbox.Rect_right,args)
def bottom(*args): return apply(_openbox.Rect_bottom,args)
def x(*args): return apply(_openbox.Rect_x,args)
def y(*args): return apply(_openbox.Rect_y,args)
def location(*args): return apply(_openbox.Rect_location,args)
def setX(*args): return apply(_openbox.Rect_setX,args)
def setY(*args): return apply(_openbox.Rect_setY,args)
def setPos(*args): return apply(_openbox.Rect_setPos,args)
def width(*args): return apply(_openbox.Rect_width,args)
def height(*args): return apply(_openbox.Rect_height,args)
def size(*args): return apply(_openbox.Rect_size,args)
def setWidth(*args): return apply(_openbox.Rect_setWidth,args)
def setHeight(*args): return apply(_openbox.Rect_setHeight,args)
def setSize(*args): return apply(_openbox.Rect_setSize,args)
def setRect(*args): return apply(_openbox.Rect_setRect,args)
def setCoords(*args): return apply(_openbox.Rect_setCoords,args)
def __eq__(*args): return apply(_openbox.Rect___eq__,args)
def __ne__(*args): return apply(_openbox.Rect___ne__,args)
def __or__(*args): return apply(_openbox.Rect___or__,args)
def __and__(*args): return apply(_openbox.Rect___and__,args)
def __ior__(*args): return apply(_openbox.Rect___ior__,args)
def __iand__(*args): return apply(_openbox.Rect___iand__,args)
def valid(*args): return apply(_openbox.Rect_valid,args)
def intersects(*args): return apply(_openbox.Rect_intersects,args)
def contains(*args): return apply(_openbox.Rect_contains,args)
def __repr__(self):
return "<C Rect instance at %s>" % (self.this,)
class RectPtr(Rect):
def __init__(self,this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
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 "<C ScreenInfo instance at %s>" % (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 "<C Strut instance at %s>" % (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)
expandTilde = _openbox.expandTilde
bexec = _openbox.bexec
textPropertyToString = _openbox.textPropertyToString
itostring_unsigned_long = _openbox.itostring_unsigned_long
itostring_long = _openbox.itostring_long
itostring_unsigned = _openbox.itostring_unsigned
itostring = _openbox.itostring
basename = _openbox.basename
class OtkEventHandler(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, OtkEventHandler, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, OtkEventHandler, name)
def handle(*args): return apply(_openbox.OtkEventHandler_handle,args)
def keyPressHandler(*args): return apply(_openbox.OtkEventHandler_keyPressHandler,args)
def keyReleaseHandler(*args): return apply(_openbox.OtkEventHandler_keyReleaseHandler,args)
def buttonPressHandler(*args): return apply(_openbox.OtkEventHandler_buttonPressHandler,args)
def buttonReleaseHandler(*args): return apply(_openbox.OtkEventHandler_buttonReleaseHandler,args)
def motionHandler(*args): return apply(_openbox.OtkEventHandler_motionHandler,args)
def enterHandler(*args): return apply(_openbox.OtkEventHandler_enterHandler,args)
def leaveHandler(*args): return apply(_openbox.OtkEventHandler_leaveHandler,args)
def focusHandler(*args): return apply(_openbox.OtkEventHandler_focusHandler,args)
def unfocusHandler(*args): return apply(_openbox.OtkEventHandler_unfocusHandler,args)
def exposeHandler(*args): return apply(_openbox.OtkEventHandler_exposeHandler,args)
def graphicsExposeHandler(*args): return apply(_openbox.OtkEventHandler_graphicsExposeHandler,args)
def noExposeEventHandler(*args): return apply(_openbox.OtkEventHandler_noExposeEventHandler,args)
def circulateRequestHandler(*args): return apply(_openbox.OtkEventHandler_circulateRequestHandler,args)
def configureRequestHandler(*args): return apply(_openbox.OtkEventHandler_configureRequestHandler,args)
def mapRequestHandler(*args): return apply(_openbox.OtkEventHandler_mapRequestHandler,args)
def resizeRequestHandler(*args): return apply(_openbox.OtkEventHandler_resizeRequestHandler,args)
def circulateHandler(*args): return apply(_openbox.OtkEventHandler_circulateHandler,args)
def configureHandler(*args): return apply(_openbox.OtkEventHandler_configureHandler,args)
def createHandler(*args): return apply(_openbox.OtkEventHandler_createHandler,args)
def destroyHandler(*args): return apply(_openbox.OtkEventHandler_destroyHandler,args)
def gravityHandler(*args): return apply(_openbox.OtkEventHandler_gravityHandler,args)
def mapHandler(*args): return apply(_openbox.OtkEventHandler_mapHandler,args)
def mappingHandler(*args): return apply(_openbox.OtkEventHandler_mappingHandler,args)
def reparentHandler(*args): return apply(_openbox.OtkEventHandler_reparentHandler,args)
def unmapHandler(*args): return apply(_openbox.OtkEventHandler_unmapHandler,args)
def visibilityHandler(*args): return apply(_openbox.OtkEventHandler_visibilityHandler,args)
def colorMapHandler(*args): return apply(_openbox.OtkEventHandler_colorMapHandler,args)
def propertyHandler(*args): return apply(_openbox.OtkEventHandler_propertyHandler,args)
def selectionClearHandler(*args): return apply(_openbox.OtkEventHandler_selectionClearHandler,args)
def selectionHandler(*args): return apply(_openbox.OtkEventHandler_selectionHandler,args)
def selectionRequestHandler(*args): return apply(_openbox.OtkEventHandler_selectionRequestHandler,args)
def clientMessageHandler(*args): return apply(_openbox.OtkEventHandler_clientMessageHandler,args)
def __del__(self, destroy= _openbox.delete_OtkEventHandler):
try:
if self.thisown: destroy(self)
except: pass
def __init__(self): raise RuntimeError, "No constructor defined"
def __repr__(self):
return "<C OtkEventHandler instance at %s>" % (self.this,)
class OtkEventHandlerPtr(OtkEventHandler):
def __init__(self,this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
self.__class__ = OtkEventHandler
_openbox.OtkEventHandler_swigregister(OtkEventHandlerPtr)
BSENTINEL = cvar.BSENTINEL
class OtkEventDispatcher(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, OtkEventDispatcher, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, OtkEventDispatcher, name)
def __init__(self,*args):
self.this = apply(_openbox.new_OtkEventDispatcher,args)
self.thisown = 1
def __del__(self, destroy= _openbox.delete_OtkEventDispatcher):
try:
if self.thisown: destroy(self)
except: pass
def clearAllHandlers(*args): return apply(_openbox.OtkEventDispatcher_clearAllHandlers,args)
def registerHandler(*args): return apply(_openbox.OtkEventDispatcher_registerHandler,args)
def clearHandler(*args): return apply(_openbox.OtkEventDispatcher_clearHandler,args)
def dispatchEvents(*args): return apply(_openbox.OtkEventDispatcher_dispatchEvents,args)
def setFallbackHandler(*args): return apply(_openbox.OtkEventDispatcher_setFallbackHandler,args)
def getFallbackHandler(*args): return apply(_openbox.OtkEventDispatcher_getFallbackHandler,args)
def setMasterHandler(*args): return apply(_openbox.OtkEventDispatcher_setMasterHandler,args)
def getMasterHandler(*args): return apply(_openbox.OtkEventDispatcher_getMasterHandler,args)
def findHandler(*args): return apply(_openbox.OtkEventDispatcher_findHandler,args)
def lastTime(*args): return apply(_openbox.OtkEventDispatcher_lastTime,args)
def __repr__(self):
return "<C OtkEventDispatcher instance at %s>" % (self.this,)
class OtkEventDispatcherPtr(OtkEventDispatcher):
def __init__(self,this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
self.__class__ = OtkEventDispatcher
_openbox.OtkEventDispatcher_swigregister(OtkEventDispatcherPtr)
class Cursors(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, Cursors, name, value)
@ -64,12 +500,12 @@ class CursorsPtr(Cursors):
self.__class__ = Cursors
_openbox.Cursors_swigregister(CursorsPtr)
class Openbox(otk.OtkEventDispatcher,otk.OtkEventHandler):
class Openbox(OtkEventDispatcher,OtkEventHandler):
__swig_setmethods__ = {}
for _s in [otk.OtkEventDispatcher,otk.OtkEventHandler]: __swig_setmethods__.update(_s.__swig_setmethods__)
for _s in [OtkEventDispatcher,OtkEventHandler]: __swig_setmethods__.update(_s.__swig_setmethods__)
__setattr__ = lambda self, name, value: _swig_setattr(self, Openbox, name, value)
__swig_getmethods__ = {}
for _s in [otk.OtkEventDispatcher,otk.OtkEventHandler]: __swig_getmethods__.update(_s.__swig_getmethods__)
for _s in [OtkEventDispatcher,OtkEventHandler]: __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
@ -102,12 +538,12 @@ class OpenboxPtr(Openbox):
self.__class__ = Openbox
_openbox.Openbox_swigregister(OpenboxPtr)
class OBScreen(otk.OtkEventHandler,):
class OBScreen(OtkEventHandler,):
__swig_setmethods__ = {}
for _s in [otk.OtkEventHandler,]: __swig_setmethods__.update(_s.__swig_setmethods__)
for _s in [OtkEventHandler,]: __swig_setmethods__.update(_s.__swig_setmethods__)
__setattr__ = lambda self, name, value: _swig_setattr(self, OBScreen, name, value)
__swig_getmethods__ = {}
for _s in [otk.OtkEventHandler,]: __swig_getmethods__.update(_s.__swig_getmethods__)
for _s in [OtkEventHandler,]: __swig_getmethods__.update(_s.__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)
@ -166,12 +602,12 @@ class MwmHintsPtr(MwmHints):
self.__class__ = MwmHints
_openbox.MwmHints_swigregister(MwmHintsPtr)
class OBClient(otk.OtkEventHandler,):
class OBClient(OtkEventHandler,):
__swig_setmethods__ = {}
for _s in [otk.OtkEventHandler,]: __swig_setmethods__.update(_s.__swig_setmethods__)
for _s in [OtkEventHandler,]: __swig_setmethods__.update(_s.__swig_setmethods__)
__setattr__ = lambda self, name, value: _swig_setattr(self, OBClient, name, value)
__swig_getmethods__ = {}
for _s in [otk.OtkEventHandler,]: __swig_getmethods__.update(_s.__swig_getmethods__)
for _s in [OtkEventHandler,]: __swig_getmethods__.update(_s.__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
@ -447,4 +883,347 @@ set_reset_key = _openbox.set_reset_key
send_client_msg = _openbox.send_client_msg
X_PROTOCOL = _openbox.X_PROTOCOL
X_PROTOCOL_REVISION = _openbox.X_PROTOCOL_REVISION
None = _openbox.None
ParentRelative = _openbox.ParentRelative
CopyFromParent = _openbox.CopyFromParent
PointerWindow = _openbox.PointerWindow
InputFocus = _openbox.InputFocus
PointerRoot = _openbox.PointerRoot
AnyPropertyType = _openbox.AnyPropertyType
AnyKey = _openbox.AnyKey
AnyButton = _openbox.AnyButton
AllTemporary = _openbox.AllTemporary
CurrentTime = _openbox.CurrentTime
NoSymbol = _openbox.NoSymbol
NoEventMask = _openbox.NoEventMask
KeyPressMask = _openbox.KeyPressMask
KeyReleaseMask = _openbox.KeyReleaseMask
ButtonPressMask = _openbox.ButtonPressMask
ButtonReleaseMask = _openbox.ButtonReleaseMask
EnterWindowMask = _openbox.EnterWindowMask
LeaveWindowMask = _openbox.LeaveWindowMask
PointerMotionMask = _openbox.PointerMotionMask
PointerMotionHintMask = _openbox.PointerMotionHintMask
Button1MotionMask = _openbox.Button1MotionMask
Button2MotionMask = _openbox.Button2MotionMask
Button3MotionMask = _openbox.Button3MotionMask
Button4MotionMask = _openbox.Button4MotionMask
Button5MotionMask = _openbox.Button5MotionMask
ButtonMotionMask = _openbox.ButtonMotionMask
KeymapStateMask = _openbox.KeymapStateMask
ExposureMask = _openbox.ExposureMask
VisibilityChangeMask = _openbox.VisibilityChangeMask
StructureNotifyMask = _openbox.StructureNotifyMask
ResizeRedirectMask = _openbox.ResizeRedirectMask
SubstructureNotifyMask = _openbox.SubstructureNotifyMask
SubstructureRedirectMask = _openbox.SubstructureRedirectMask
FocusChangeMask = _openbox.FocusChangeMask
PropertyChangeMask = _openbox.PropertyChangeMask
ColormapChangeMask = _openbox.ColormapChangeMask
OwnerGrabButtonMask = _openbox.OwnerGrabButtonMask
KeyPress = _openbox.KeyPress
KeyRelease = _openbox.KeyRelease
ButtonPress = _openbox.ButtonPress
ButtonRelease = _openbox.ButtonRelease
MotionNotify = _openbox.MotionNotify
EnterNotify = _openbox.EnterNotify
LeaveNotify = _openbox.LeaveNotify
FocusIn = _openbox.FocusIn
FocusOut = _openbox.FocusOut
KeymapNotify = _openbox.KeymapNotify
Expose = _openbox.Expose
GraphicsExpose = _openbox.GraphicsExpose
NoExpose = _openbox.NoExpose
VisibilityNotify = _openbox.VisibilityNotify
CreateNotify = _openbox.CreateNotify
DestroyNotify = _openbox.DestroyNotify
UnmapNotify = _openbox.UnmapNotify
MapNotify = _openbox.MapNotify
MapRequest = _openbox.MapRequest
ReparentNotify = _openbox.ReparentNotify
ConfigureNotify = _openbox.ConfigureNotify
ConfigureRequest = _openbox.ConfigureRequest
GravityNotify = _openbox.GravityNotify
ResizeRequest = _openbox.ResizeRequest
CirculateNotify = _openbox.CirculateNotify
CirculateRequest = _openbox.CirculateRequest
PropertyNotify = _openbox.PropertyNotify
SelectionClear = _openbox.SelectionClear
SelectionRequest = _openbox.SelectionRequest
SelectionNotify = _openbox.SelectionNotify
ColormapNotify = _openbox.ColormapNotify
ClientMessage = _openbox.ClientMessage
MappingNotify = _openbox.MappingNotify
LASTEvent = _openbox.LASTEvent
ShiftMask = _openbox.ShiftMask
LockMask = _openbox.LockMask
ControlMask = _openbox.ControlMask
Mod1Mask = _openbox.Mod1Mask
Mod2Mask = _openbox.Mod2Mask
Mod3Mask = _openbox.Mod3Mask
Mod4Mask = _openbox.Mod4Mask
Mod5Mask = _openbox.Mod5Mask
ShiftMapIndex = _openbox.ShiftMapIndex
LockMapIndex = _openbox.LockMapIndex
ControlMapIndex = _openbox.ControlMapIndex
Mod1MapIndex = _openbox.Mod1MapIndex
Mod2MapIndex = _openbox.Mod2MapIndex
Mod3MapIndex = _openbox.Mod3MapIndex
Mod4MapIndex = _openbox.Mod4MapIndex
Mod5MapIndex = _openbox.Mod5MapIndex
Button1Mask = _openbox.Button1Mask
Button2Mask = _openbox.Button2Mask
Button3Mask = _openbox.Button3Mask
Button4Mask = _openbox.Button4Mask
Button5Mask = _openbox.Button5Mask
AnyModifier = _openbox.AnyModifier
Button1 = _openbox.Button1
Button2 = _openbox.Button2
Button3 = _openbox.Button3
Button4 = _openbox.Button4
Button5 = _openbox.Button5
NotifyNormal = _openbox.NotifyNormal
NotifyGrab = _openbox.NotifyGrab
NotifyUngrab = _openbox.NotifyUngrab
NotifyWhileGrabbed = _openbox.NotifyWhileGrabbed
NotifyHint = _openbox.NotifyHint
NotifyAncestor = _openbox.NotifyAncestor
NotifyVirtual = _openbox.NotifyVirtual
NotifyInferior = _openbox.NotifyInferior
NotifyNonlinear = _openbox.NotifyNonlinear
NotifyNonlinearVirtual = _openbox.NotifyNonlinearVirtual
NotifyPointer = _openbox.NotifyPointer
NotifyPointerRoot = _openbox.NotifyPointerRoot
NotifyDetailNone = _openbox.NotifyDetailNone
VisibilityUnobscured = _openbox.VisibilityUnobscured
VisibilityPartiallyObscured = _openbox.VisibilityPartiallyObscured
VisibilityFullyObscured = _openbox.VisibilityFullyObscured
PlaceOnTop = _openbox.PlaceOnTop
PlaceOnBottom = _openbox.PlaceOnBottom
FamilyInternet = _openbox.FamilyInternet
FamilyDECnet = _openbox.FamilyDECnet
FamilyChaos = _openbox.FamilyChaos
PropertyNewValue = _openbox.PropertyNewValue
PropertyDelete = _openbox.PropertyDelete
ColormapUninstalled = _openbox.ColormapUninstalled
ColormapInstalled = _openbox.ColormapInstalled
GrabModeSync = _openbox.GrabModeSync
GrabModeAsync = _openbox.GrabModeAsync
GrabSuccess = _openbox.GrabSuccess
AlreadyGrabbed = _openbox.AlreadyGrabbed
GrabInvalidTime = _openbox.GrabInvalidTime
GrabNotViewable = _openbox.GrabNotViewable
GrabFrozen = _openbox.GrabFrozen
AsyncPointer = _openbox.AsyncPointer
SyncPointer = _openbox.SyncPointer
ReplayPointer = _openbox.ReplayPointer
AsyncKeyboard = _openbox.AsyncKeyboard
SyncKeyboard = _openbox.SyncKeyboard
ReplayKeyboard = _openbox.ReplayKeyboard
AsyncBoth = _openbox.AsyncBoth
SyncBoth = _openbox.SyncBoth
RevertToParent = _openbox.RevertToParent
Success = _openbox.Success
BadRequest = _openbox.BadRequest
BadValue = _openbox.BadValue
BadWindow = _openbox.BadWindow
BadPixmap = _openbox.BadPixmap
BadAtom = _openbox.BadAtom
BadCursor = _openbox.BadCursor
BadFont = _openbox.BadFont
BadMatch = _openbox.BadMatch
BadDrawable = _openbox.BadDrawable
BadAccess = _openbox.BadAccess
BadAlloc = _openbox.BadAlloc
BadColor = _openbox.BadColor
BadGC = _openbox.BadGC
BadIDChoice = _openbox.BadIDChoice
BadName = _openbox.BadName
BadLength = _openbox.BadLength
BadImplementation = _openbox.BadImplementation
FirstExtensionError = _openbox.FirstExtensionError
LastExtensionError = _openbox.LastExtensionError
InputOutput = _openbox.InputOutput
InputOnly = _openbox.InputOnly
CWBackPixmap = _openbox.CWBackPixmap
CWBackPixel = _openbox.CWBackPixel
CWBorderPixmap = _openbox.CWBorderPixmap
CWBorderPixel = _openbox.CWBorderPixel
CWBitGravity = _openbox.CWBitGravity
CWWinGravity = _openbox.CWWinGravity
CWBackingStore = _openbox.CWBackingStore
CWBackingPlanes = _openbox.CWBackingPlanes
CWBackingPixel = _openbox.CWBackingPixel
CWOverrideRedirect = _openbox.CWOverrideRedirect
CWSaveUnder = _openbox.CWSaveUnder
CWEventMask = _openbox.CWEventMask
CWDontPropagate = _openbox.CWDontPropagate
CWColormap = _openbox.CWColormap
CWCursor = _openbox.CWCursor
CWX = _openbox.CWX
CWY = _openbox.CWY
CWWidth = _openbox.CWWidth
CWHeight = _openbox.CWHeight
CWBorderWidth = _openbox.CWBorderWidth
CWSibling = _openbox.CWSibling
CWStackMode = _openbox.CWStackMode
ForgetGravity = _openbox.ForgetGravity
NorthWestGravity = _openbox.NorthWestGravity
NorthGravity = _openbox.NorthGravity
NorthEastGravity = _openbox.NorthEastGravity
WestGravity = _openbox.WestGravity
CenterGravity = _openbox.CenterGravity
EastGravity = _openbox.EastGravity
SouthWestGravity = _openbox.SouthWestGravity
SouthGravity = _openbox.SouthGravity
SouthEastGravity = _openbox.SouthEastGravity
StaticGravity = _openbox.StaticGravity
UnmapGravity = _openbox.UnmapGravity
NotUseful = _openbox.NotUseful
WhenMapped = _openbox.WhenMapped
Always = _openbox.Always
IsUnmapped = _openbox.IsUnmapped
IsUnviewable = _openbox.IsUnviewable
IsViewable = _openbox.IsViewable
SetModeInsert = _openbox.SetModeInsert
SetModeDelete = _openbox.SetModeDelete
DestroyAll = _openbox.DestroyAll
RetainPermanent = _openbox.RetainPermanent
RetainTemporary = _openbox.RetainTemporary
Above = _openbox.Above
Below = _openbox.Below
TopIf = _openbox.TopIf
BottomIf = _openbox.BottomIf
Opposite = _openbox.Opposite
RaiseLowest = _openbox.RaiseLowest
LowerHighest = _openbox.LowerHighest
PropModeReplace = _openbox.PropModeReplace
PropModePrepend = _openbox.PropModePrepend
PropModeAppend = _openbox.PropModeAppend
GXclear = _openbox.GXclear
GXand = _openbox.GXand
GXandReverse = _openbox.GXandReverse
GXcopy = _openbox.GXcopy
GXandInverted = _openbox.GXandInverted
GXnoop = _openbox.GXnoop
GXxor = _openbox.GXxor
GXor = _openbox.GXor
GXnor = _openbox.GXnor
GXequiv = _openbox.GXequiv
GXinvert = _openbox.GXinvert
GXorReverse = _openbox.GXorReverse
GXcopyInverted = _openbox.GXcopyInverted
GXorInverted = _openbox.GXorInverted
GXnand = _openbox.GXnand
GXset = _openbox.GXset
LineSolid = _openbox.LineSolid
LineOnOffDash = _openbox.LineOnOffDash
LineDoubleDash = _openbox.LineDoubleDash
CapNotLast = _openbox.CapNotLast
CapButt = _openbox.CapButt
CapRound = _openbox.CapRound
CapProjecting = _openbox.CapProjecting
JoinMiter = _openbox.JoinMiter
JoinRound = _openbox.JoinRound
JoinBevel = _openbox.JoinBevel
FillSolid = _openbox.FillSolid
FillTiled = _openbox.FillTiled
FillStippled = _openbox.FillStippled
FillOpaqueStippled = _openbox.FillOpaqueStippled
EvenOddRule = _openbox.EvenOddRule
WindingRule = _openbox.WindingRule
ClipByChildren = _openbox.ClipByChildren
IncludeInferiors = _openbox.IncludeInferiors
Unsorted = _openbox.Unsorted
YSorted = _openbox.YSorted
YXSorted = _openbox.YXSorted
YXBanded = _openbox.YXBanded
CoordModeOrigin = _openbox.CoordModeOrigin
CoordModePrevious = _openbox.CoordModePrevious
Complex = _openbox.Complex
Nonconvex = _openbox.Nonconvex
Convex = _openbox.Convex
ArcChord = _openbox.ArcChord
ArcPieSlice = _openbox.ArcPieSlice
GCFunction = _openbox.GCFunction
GCPlaneMask = _openbox.GCPlaneMask
GCForeground = _openbox.GCForeground
GCBackground = _openbox.GCBackground
GCLineWidth = _openbox.GCLineWidth
GCLineStyle = _openbox.GCLineStyle
GCCapStyle = _openbox.GCCapStyle
GCJoinStyle = _openbox.GCJoinStyle
GCFillStyle = _openbox.GCFillStyle
GCFillRule = _openbox.GCFillRule
GCTile = _openbox.GCTile
GCStipple = _openbox.GCStipple
GCTileStipXOrigin = _openbox.GCTileStipXOrigin
GCTileStipYOrigin = _openbox.GCTileStipYOrigin
GCFont = _openbox.GCFont
GCSubwindowMode = _openbox.GCSubwindowMode
GCGraphicsExposures = _openbox.GCGraphicsExposures
GCClipXOrigin = _openbox.GCClipXOrigin
GCClipYOrigin = _openbox.GCClipYOrigin
GCClipMask = _openbox.GCClipMask
GCDashOffset = _openbox.GCDashOffset
GCDashList = _openbox.GCDashList
GCArcMode = _openbox.GCArcMode
GCLastBit = _openbox.GCLastBit
FontLeftToRight = _openbox.FontLeftToRight
FontRightToLeft = _openbox.FontRightToLeft
FontChange = _openbox.FontChange
XYBitmap = _openbox.XYBitmap
XYPixmap = _openbox.XYPixmap
ZPixmap = _openbox.ZPixmap
AllocNone = _openbox.AllocNone
AllocAll = _openbox.AllocAll
DoRed = _openbox.DoRed
DoGreen = _openbox.DoGreen
DoBlue = _openbox.DoBlue
CursorShape = _openbox.CursorShape
TileShape = _openbox.TileShape
StippleShape = _openbox.StippleShape
AutoRepeatModeOff = _openbox.AutoRepeatModeOff
AutoRepeatModeOn = _openbox.AutoRepeatModeOn
AutoRepeatModeDefault = _openbox.AutoRepeatModeDefault
LedModeOff = _openbox.LedModeOff
LedModeOn = _openbox.LedModeOn
KBKeyClickPercent = _openbox.KBKeyClickPercent
KBBellPercent = _openbox.KBBellPercent
KBBellPitch = _openbox.KBBellPitch
KBBellDuration = _openbox.KBBellDuration
KBLed = _openbox.KBLed
KBLedMode = _openbox.KBLedMode
KBKey = _openbox.KBKey
KBAutoRepeatMode = _openbox.KBAutoRepeatMode
MappingSuccess = _openbox.MappingSuccess
MappingBusy = _openbox.MappingBusy
MappingFailed = _openbox.MappingFailed
MappingModifier = _openbox.MappingModifier
MappingKeyboard = _openbox.MappingKeyboard
MappingPointer = _openbox.MappingPointer
DontPreferBlanking = _openbox.DontPreferBlanking
PreferBlanking = _openbox.PreferBlanking
DefaultBlanking = _openbox.DefaultBlanking
DisableScreenSaver = _openbox.DisableScreenSaver
DisableScreenInterval = _openbox.DisableScreenInterval
DontAllowExposures = _openbox.DontAllowExposures
AllowExposures = _openbox.AllowExposures
DefaultExposures = _openbox.DefaultExposures
ScreenSaverReset = _openbox.ScreenSaverReset
ScreenSaverActive = _openbox.ScreenSaverActive
HostInsert = _openbox.HostInsert
HostDelete = _openbox.HostDelete
EnableAccess = _openbox.EnableAccess
DisableAccess = _openbox.DisableAccess
StaticGray = _openbox.StaticGray
GrayScale = _openbox.GrayScale
StaticColor = _openbox.StaticColor
PseudoColor = _openbox.PseudoColor
TrueColor = _openbox.TrueColor
DirectColor = _openbox.DirectColor
LSBFirst = _openbox.LSBFirst
MSBFirst = _openbox.MSBFirst

File diff suppressed because it is too large Load diff

View file

@ -34,7 +34,7 @@ void python_init(char *argv0)
otk::expandTilde("~/.openbox/python") +
"')").c_str()));
// import the otk and openbox modules into the main namespace
PyRun_SimpleString("from otk import *; from openbox import *;");
PyRun_SimpleString("from openbox import *;");
// set up convenience global variables
PyRun_SimpleString("openbox = Openbox_instance()");
PyRun_SimpleString("display = OBDisplay_display()");