X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fopenbox.py;h=1808a82a46f358216ae76577427251fb29e6a896;hb=678bb52123bde0b71037393827c03f6b17904a60;hp=91fc38384d618e4e134eb6f80c28c67f9dc5723e;hpb=385de86d903c95e9897bd106b04e3ef1f70d9d2d;p=chaz%2Fopenbox diff --git a/src/openbox.py b/src/openbox.py index 91fc3838..1808a82a 100644 --- a/src/openbox.py +++ b/src/openbox.py @@ -29,74 +29,7 @@ except AttributeError: Openbox_instance = _openbox.Openbox_instance -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 "" % (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 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 "" % (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) - +import otk class Cursors(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Cursors, name, value) @@ -131,10 +64,12 @@ class CursorsPtr(Cursors): self.__class__ = Cursors _openbox.Cursors_swigregister(CursorsPtr) -class Openbox(_object): +class Openbox(otk.OtkEventDispatcher,otk.OtkEventHandler): __swig_setmethods__ = {} + for _s in [otk.OtkEventDispatcher,otk.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__) __getattr__ = lambda self, name: _swig_getattr(self, Openbox, name) State_Starting = _openbox.Openbox_State_Starting State_Normal = _openbox.Openbox_State_Normal @@ -167,10 +102,12 @@ class OpenboxPtr(Openbox): self.__class__ = Openbox _openbox.Openbox_swigregister(OpenboxPtr) -class OBScreen(_object): +class OBScreen(otk.OtkEventHandler,): __swig_setmethods__ = {} + for _s in [otk.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__) __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) @@ -229,10 +166,12 @@ class MwmHintsPtr(MwmHints): self.__class__ = MwmHints _openbox.MwmHints_swigregister(MwmHintsPtr) -class OBClient(_object): +class OBClient(otk.OtkEventHandler,): __swig_setmethods__ = {} + for _s in [otk.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__) __getattr__ = lambda self, name: _swig_getattr(self, OBClient, name) __swig_setmethods__["frame"] = _openbox.OBClient_frame_set __swig_getmethods__["frame"] = _openbox.OBClient_frame_get @@ -508,347 +447,4 @@ 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