Changeset 71662 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Apr 4, 2018 3:24:06 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin-cocoa.mm
r69931 r71662 694 694 } 695 695 696 void *darwinCocoaToCarbonEvent(void *pvCocoaEvent)696 void *darwinCocoaToCarbonEvent(void *pvCocoaEvent) 697 697 { 698 698 NSEvent *pEvent = (NSEvent*)pvCocoaEvent; -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin.h
r69931 r71662 5 5 6 6 /* 7 * Copyright (C) 2010-201 7Oracle Corporation7 * Copyright (C) 2010-2018 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 16 16 */ 17 17 18 #ifndef ___VBoxUtils_darwin_h 19 #define ___VBoxUtils_darwin_h 20 18 #ifndef ___VBoxUtils_darwin_h___ 19 #define ___VBoxUtils_darwin_h___ 20 21 /* Qt includes: */ 22 #include <QRect> 23 24 /* Other VBox includes: */ 21 25 #include <VBox/VBoxCocoa.h> 22 26 #include <ApplicationServices/ApplicationServices.h> 23 #undef PVM /* Stupid, stupid apple headers (sys/param.h)!! */ 24 #include <iprt/cdefs.h> /* for RT_C_DECLS_BEGIN/RT_C_DECLS_END & stuff */ 25 26 #include <QRect> 27 28 ADD_COCOA_NATIVE_REF(NSEvent); 29 ADD_COCOA_NATIVE_REF(NSImage); 30 ADD_COCOA_NATIVE_REF(NSView); 31 ADD_COCOA_NATIVE_REF(NSWindow); 32 ADD_COCOA_NATIVE_REF(NSButton); 33 ADD_COCOA_NATIVE_REF(NSString); 34 27 #undef PVM // Stupid, stupid apple headers (sys/param.h)!! 28 #include <iprt/cdefs.h> 29 30 /* External includes: */ 31 #include <ApplicationServices/ApplicationServices.h> 32 33 /* Forward declarations: */ 35 34 class QImage; 36 35 class QMainWindow; … … 39 38 class QToolBar; 40 39 class QWidget; 40 41 /* Cocoa declarations: */ 42 ADD_COCOA_NATIVE_REF(NSButton); 43 ADD_COCOA_NATIVE_REF(NSEvent); 44 ADD_COCOA_NATIVE_REF(NSImage); 45 ADD_COCOA_NATIVE_REF(NSString); 46 ADD_COCOA_NATIVE_REF(NSView); 47 ADD_COCOA_NATIVE_REF(NSWindow); 48 41 49 42 50 /** Mac OS X: Standard window button types. */ … … 51 59 StandardWindowButtonType_FullScreen // Since OS X 10.7 52 60 }; 61 53 62 54 63 RT_C_DECLS_BEGIN … … 203 212 NativeNSImageRef darwinToNSImageRef(const QPixmap *pPixmap); 204 213 NativeNSImageRef darwinToNSImageRef(const char *pczSource); 205 206 #ifndef __OBJC__207 214 208 215 #include <QEvent> … … 289 296 void darwinMouseRelease(QWidget *pWidget); 290 297 291 void* darwinCocoaToCarbonEvent(void *pvCocoaEvent); 292 293 #endif /* !__OBJC__ */ 294 295 #endif /* !___VBoxUtils_darwin_h */ 296 298 void *darwinCocoaToCarbonEvent(void *pvCocoaEvent); 299 300 #endif /* !___VBoxUtils_darwin_h___ */ 301
Note:
See TracChangeset
for help on using the changeset viewer.