diff options
Diffstat (limited to 'lvc/widgets/osx/viewport.py')
-rw-r--r-- | lvc/widgets/osx/viewport.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lvc/widgets/osx/viewport.py b/lvc/widgets/osx/viewport.py index e6564d4..3955b01 100644 --- a/lvc/widgets/osx/viewport.py +++ b/lvc/widgets/osx/viewport.py @@ -35,6 +35,7 @@ A Viewport represents the area where a Widget is located. from objc import YES, NO, nil from Foundation import * + class Viewport(object): """Used when a widget creates it's own NSView.""" def __init__(self, view, initial_frame): @@ -73,6 +74,7 @@ class Viewport(object): def redraw_now(self): self.view.displayRect_(self.area()) + class BorrowedViewport(Viewport): """Used when a widget uses the NSView of one of it's ancestors. We store the view that we borrow as well as an NSRect specifying where on that view |