diff options
author | Sven Weidauer <sven.weidauer@gmail.com> | 2011-01-26 10:52:13 +0000 |
---|---|---|
committer | Sven Weidauer <sven.weidauer@gmail.com> | 2011-01-26 10:52:13 +0000 |
commit | 7b2694e9f6c35d9f50c3fb3cf38b0fc766478162 (patch) | |
tree | c4e3d07a6bb51de884f53312a96d05849f072db1 /cocoa/PSMTabBarControl/PSMTabDragAssistant.h | |
parent | a663cf8f84942e1147d1d2f3db292308639c7fa5 (diff) | |
download | netsurf-7b2694e9f6c35d9f50c3fb3cf38b0fc766478162.tar.gz netsurf-7b2694e9f6c35d9f50c3fb3cf38b0fc766478162.tar.bz2 |
Updated PSMTabBarControl source code to version from https://github.com/dergraf83/PSMTabBarControl
svn path=/trunk/netsurf/; revision=11490
Diffstat (limited to 'cocoa/PSMTabBarControl/PSMTabDragAssistant.h')
-rw-r--r-- | cocoa/PSMTabBarControl/PSMTabDragAssistant.h | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/cocoa/PSMTabBarControl/PSMTabDragAssistant.h b/cocoa/PSMTabBarControl/PSMTabDragAssistant.h index 07703b7d3..30965f943 100644 --- a/cocoa/PSMTabBarControl/PSMTabDragAssistant.h +++ b/cocoa/PSMTabBarControl/PSMTabDragAssistant.h @@ -7,7 +7,7 @@ // /* - This class is a sigleton that manages the details of a tab drag and drop. The details were beginning to overwhelm me when keeping all of this in the control and cells :-) + This class is a sigleton that manages the details of a tab drag and drop. The details were beginning to overwhelm me when keeping all of this in the control and cells :-) */ #import <Cocoa/Cocoa.h> @@ -18,25 +18,26 @@ @class PSMTabBarCell, PSMTabDragWindowController; @interface PSMTabDragAssistant : NSObject { - PSMTabBarControl *_sourceTabBar; - PSMTabBarControl *_destinationTabBar; - NSMutableSet *_participatingTabBars; - PSMTabBarCell *_draggedCell; - NSInteger _draggedCellIndex; // for snap back - BOOL _isDragging; - + PSMTabBarControl *_sourceTabBar; + PSMTabBarControl *_destinationTabBar; + NSMutableSet *_participatingTabBars; + PSMTabBarCell *_draggedCell; + NSInteger _draggedCellIndex; // for snap back + BOOL _isDragging; + // Support for dragging into new windows - PSMTabDragWindowController *_draggedTab, *_draggedView; - NSSize _dragWindowOffset; - NSTimer *_fadeTimer; - BOOL _centersDragWindows; - PSMTabBarTearOffStyle _currentTearOffStyle; - - // Animation - NSTimer *_animationTimer; - NSMutableArray *_sineCurveWidths; - NSPoint _currentMouseLoc; - PSMTabBarCell *_targetCell; + PSMTabDragWindowController *_draggedTab; + PSMTabDragWindowController *_draggedView; + NSSize _dragWindowOffset; + NSTimer *_fadeTimer; + BOOL _centersDragWindows; + PSMTabBarTearOffStyle _currentTearOffStyle; + + // Animation + NSTimer *_animationTimer; + NSMutableArray *_sineCurveWidths; + NSPoint _currentMouseLoc; + PSMTabBarCell *_targetCell; } // Creation/destruction @@ -64,7 +65,7 @@ - (void)draggingUpdatedInTabBar:(PSMTabBarControl *)control atPoint:(NSPoint)mouseLoc; - (void)draggingExitedTabBar:(PSMTabBarControl *)control; - (void)performDragOperation; -- (void)draggedImageEndedAt:(NSPoint)aPoint operation:(NSDragOperation)operation; +- (void)draggedImageEndedAt:(NSPoint) aPoint operation:(NSDragOperation)operation; - (void)finishDrag; - (void)draggingBeganAt:(NSPoint)aPoint; @@ -86,14 +87,14 @@ - (id<PSMTabStyle>)style; - (NSMutableArray *)cells; - (void)setControlView:(id)view; -- (id)cellForPoint:(NSPoint)point cellFrame:(NSRectPointer)outFrame; +- (id)cellForPoint:(NSPoint) point cellFrame:(NSRectPointer)outFrame; - (PSMTabBarCell *)lastVisibleTab; - (NSInteger)numberOfVisibleTabs; @end void CGContextCopyWindowCaptureContentsToRect(void *grafport, CGRect rect, NSInteger cid, NSInteger wid, NSInteger zero); -OSStatus CGSSetWindowTransform(NSInteger cid, NSInteger wid, CGAffineTransform transform); +OSStatus CGSSetWindowTransform(NSInteger cid, NSInteger wid, CGAffineTransform transform); @interface NSApplication (CoreGraphicsUndocumented) - (NSInteger)contextID; |