Changeset 16479 in vbox for trunk/src/VBox/Frontends/VirtualBox/include/VBoxUtils.h
- Timestamp:
- Feb 3, 2009 10:25:12 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxUtils.h
r16469 r16479 152 152 * @param aWidget Pointer to the QWidget 153 153 */ 154 inline HIViewRefdarwinToHIViewRef (QWidget *aWidget)154 DECLINLINE(HIViewRef) darwinToHIViewRef (QWidget *aWidget) 155 155 { 156 156 return HIViewRef(aWidget->winId()); … … 163 163 * @param aViewRef Reference to the HIView 164 164 */ 165 inline WindowRefdarwinToWindowRef (HIViewRef aViewRef)165 DECLINLINE(WindowRef) darwinToWindowRef (HIViewRef aViewRef) 166 166 { 167 167 return reinterpret_cast<WindowRef> (HIViewGetWindow(aViewRef)); … … 174 174 * @param aWidget Pointer to the QWidget 175 175 */ 176 inline WindowRefdarwinToWindowRef (QWidget *aWidget)176 DECLINLINE(WindowRef) darwinToWindowRef (QWidget *aWidget) 177 177 { 178 178 return ::darwinToWindowRef (::darwinToHIViewRef (aWidget)); … … 185 185 * @param aWidget Pointer to the QWidget 186 186 */ 187 inline CGContextRefdarwinToCGContextRef (QWidget *aWidget)187 DECLINLINE(CGContextRef) darwinToCGContextRef (QWidget *aWidget) 188 188 { 189 189 return static_cast<CGContext *> (aWidget->macCGHandle()); … … 196 196 * @param aRect the QRect to convert 197 197 */ 198 inline HIRectdarwinToHIRect (const QRect &aRect)198 DECLINLINE(HIRect) darwinToHIRect (const QRect &aRect) 199 199 { 200 200 return CGRectMake (aRect.x(), aRect.y(), aRect.width(), aRect.height()); … … 216 216 void darwinDisableIconsInMenus (void); 217 217 218 #if ndef QT_MAC_USE_COCOA218 #ifdef QT_MAC_USE_COCOA 219 219 /** @todo Carbon -> Cocoa */ 220 220 #else /* !QT_MAC_USE_COCOA */
Note:
See TracChangeset
for help on using the changeset viewer.