VTK  9.7.1
vtkCocoaHardwareView.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 
26 #ifndef vtkCocoaHardwareView_h
27 #define vtkCocoaHardwareView_h
28 
29 #import "vtkRenderingUIModule.h" // For export macro
30 #import "vtkWrappingHints.h" // For VTK_MARSHALAUTO
31 #import <Cocoa/Cocoa.h>
32 
33 // Note: This file should be includable by both pure Objective-C and Objective-C++ source files.
34 // To achieve this, we use the neat technique below:
35 #ifdef __cplusplus
36 // Forward declarations
37 VTK_ABI_NAMESPACE_BEGIN
40 
41 // Type declarations
44 
45 VTK_ABI_NAMESPACE_END
46 #else
47 // Type declarations
50 #endif
51 
52 VTKRENDERINGUI_EXPORT
54 @interface vtkCocoaHardwareView : NSView<NSDraggingDestination>
55 {
56 @private
57  vtkCocoaHardwareWindowRef _myHardwareWindow;
58  NSTrackingArea* _rolloverTrackingArea;
59 }
60 
61 - (vtkCocoaHardwareWindowRef)getHardwareWindow;
62 - (void)setHardwareWindow:(vtkCocoaHardwareWindowRef)theHardwareWindow;
63 
64 - (vtkCocoaRenderWindowInteractorRef)getInteractor;
65 @end
66 
67 #endif /* vtkCocoaHardwareView_h */
68 // VTK-HeaderTest-Exclude: vtkCocoaHardwareView.h
void * vtkCocoaHardwareWindowRef
implements Cocoa specific functions required by vtkRenderWindowInteractor.
represents a window in a Cocoa GUI
This class is a subclass of Cocoa's NSView; it uses Objective-C++.
#define VTK_MARSHALAUTO
void * vtkCocoaRenderWindowInteractorRef
void * vtkCocoaRenderWindowInteractorRef