VTK  9.6.20260205
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
25
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
37VTK_ABI_NAMESPACE_BEGIN
40
41// Type declarations
44
45VTK_ABI_NAMESPACE_END
46#else
47// Type declarations
50#endif
51
52VTKRENDERINGUI_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;
65@end
66
67#endif /* vtkCocoaHardwareView_h */
68// VTK-HeaderTest-Exclude: vtkCocoaHardwareView.h
represents a window in a Cocoa GUI
implements Cocoa specific functions required by vtkRenderWindowInteractor.
This class is a subclass of Cocoa's NSView; it uses Objective-C++.
vtkCocoaRenderWindowInteractorRef getInteractor()
void * vtkCocoaRenderWindowInteractorRef
void * vtkCocoaHardwareWindowRef
void * vtkCocoaRenderWindowInteractorRef
#define VTK_MARSHALAUTO