Qt 4.8
|
#include <private/qt_mac_p.h>
#include <qapplication.h>
#include <qdesktopwidget.h>
#include <qwidget.h>
#include <qevent.h>
#include <qhash.h>
#include <qlabel.h>
#include <qpointer.h>
#include <qstyle.h>
#include <qstyleoption.h>
#include <qstylepainter.h>
#include <qtimer.h>
#include <qtooltip.h>
#include <private/qeffects_p.h>
#include <private/qwidget_p.h>
#include <qtextdocument.h>
#include <qdebug.h>
#include <qpoint.h>
Go to the source code of this file.
Classes | |
class | QMacScrollOptimization |
Typedefs | |
typedef struct CGPoint | NSPoint |
Enumerations | |
enum | { QtCocoaEventSubTypeWakeup = SHRT_MAX, QtCocoaEventSubTypePostMessage = SHRT_MAX-1 } |
typedef struct CGPoint NSPoint |
Definition at line 118 of file qt_cocoa_helpers_mac_p.h.
anonymous enum |
Enumerator | |
---|---|
QtCocoaEventSubTypeWakeup | |
QtCocoaEventSubTypePostMessage |
Definition at line 123 of file qt_cocoa_helpers_mac_p.h.
Definition at line 862 of file qt_cocoa_helpers_mac.mm.
Referenced by flipPoint(), flipYCoordinate(), QWidget::mapToGlobal(), QCursor::pos(), qt_mac_handleTabletEvent(), and QApplication::topLevelAt().
Definition at line 867 of file qt_cocoa_helpers_mac.mm.
Definition at line 872 of file qt_cocoa_helpers_mac.mm.
|
inline |
Definition at line 188 of file qt_cocoa_helpers_mac_p.h.
Referenced by QWidgetPrivate::create_sys(), flipPoint(), QWidget::mapFromGlobal(), qt_mac_unregister_widget(), QWidgetPrivate::setGeometry_sys(), and updateRedirectedToGraphicsProxyWidget().
Definition at line 193 of file qt_cocoa_helpers_mac_p.h.
void macSendToolbarChangeEvent | ( | QWidget * | widget | ) |
Definition at line 435 of file qt_cocoa_helpers_mac.mm.
Referenced by make_win_eventUPP().
void macWindowFade | ( | void * | window, |
float | durationSeconds = 0.15 |
||
) |
Definition at line 155 of file qt_cocoa_helpers_mac.mm.
Referenced by QMenuPrivate::hideMenu(), QComboBox::hidePopup(), and QTipLabel::timerEvent().
void macWindowFlush | ( | void * | window | ) |
bool macWindowIsTextured | ( | void * | window | ) |
void macWindowSetHasShadow | ( | void * | window, |
bool | hasShadow | ||
) |
bool macWindowToolbarIsVisible | ( | void * | window | ) |
Definition at line 287 of file qt_cocoa_helpers_mac.mm.
Referenced by QToolBar::event(), and QMainWindowLayout::toggleToolBarsVisible().
void macWindowToolbarSet | ( | void * | window, |
void * | toolbarRef | ||
) |
Definition at line 277 of file qt_cocoa_helpers_mac.mm.
Referenced by QMainWindowLayout::insertIntoMacToolbar(), and QMainWindowLayout::updateHIToolBarStatus().
void macWindowToolbarShow | ( | const QWidget * | widget, |
bool | show | ||
) |
Definition at line 257 of file qt_cocoa_helpers_mac.mm.
Referenced by QToolBar::event(), QToolBarPrivate::init(), QMainWindowLayout::insertIntoMacToolbar(), QMainWindowLayout::syncUnifiedToolbarVisibility(), QMainWindowLayout::updateHIToolBarStatus(), and QToolBar::~QToolBar().
|
inline |
Definition at line 158 of file qt_cocoa_helpers_mac_p.h.
Referenced by qt_mac_handleTabletEvent().
Qt::KeyboardModifiers qt_cocoaDragOperation2QtModifiers | ( | uint | dragOperations | ) |
Referenced by qAppInstance(), and qtKey2CocoaKey().
Qt::KeyboardModifiers qt_cocoaModifiers2QtModifiers | ( | ulong | modifierFlags | ) |
Referenced by flipPoint(), qAppInstance(), qt_mac_handleTabletEvent(), and qtKey2CocoaKey().
bool qt_dispatchKeyEvent | ( | void * | keyEvent, |
QWidget * | widgetToGetEvent | ||
) |
Definition at line 812 of file qt_cocoa_helpers_mac.mm.
void qt_dispatchModifiersChanged | ( | void * | flagsChangedEvent, |
QWidget * | widgetToGetEvent | ||
) |
Definition at line 844 of file qt_cocoa_helpers_mac.mm.
void qt_dispatchTabletProximityEvent | ( | void * | tabletEvent | ) |
Referenced by qAppInstance().
void qt_dispatchTabletProximityEvent | ( | const ::TabletProximityRec & | proxRec | ) |
Definition at line 477 of file qt_cocoa_helpers_mac.mm.
Referenced by QApplicationPrivate::globalEventProcessor(), qt_mac_tablet_hash(), and QApplicationPrivate::tabletProximityCallback().
bool qt_mac_checkForNativeSizeGrip | ( | const QWidget * | widget | ) |
Definition at line 371 of file qt_cocoa_helpers_mac.mm.
Referenced by QAbstractScrollAreaPrivate::layoutChildren().
void qt_mac_constructQIconFromIconRef | ( | const IconRef | icon, |
const IconRef | overlayIcon, | ||
QIcon * | retIcon, | ||
QStyle::StandardPixmap | standardIcon = QStyle::SP_CustomBase |
||
) |
Definition at line 1610 of file qt_cocoa_helpers_mac.mm.
Referenced by QFileIconProviderPrivate::getWinIcon(), qAppInstance(), and QCommonStyle::standardIconImplementation().
Definition at line 1591 of file qt_cocoa_helpers_mac.mm.
Referenced by qAppInstance(), and qt_mac_constructQIconFromIconRef().
void* qt_mac_create_nsimage | ( | const QPixmap & | pm | ) |
Definition at line 322 of file qt_cocoa_helpers_mac.mm.
Referenced by qt_mac_set_app_icon(), QCursor::setPos(), QWidgetPrivate::setWindowIcon_sys(), QMenuPrivate::QMacMenuPrivate::syncAction(), and QSystemTrayIconPrivate::updateIcon_sys().
|
inline |
Definition at line 325 of file qt_cocoa_helpers_mac_p.h.
OSStatus qt_mac_drawCGImage | ( | CGContextRef | cg, |
const CGRect * | inbounds, | ||
CGImageRef | |||
) |
Definition at line 349 of file qt_cocoa_helpers_mac.mm.
Referenced by QCoreGraphicsPaintEngine::drawImage(), QCoreGraphicsPaintEngine::drawPixmap(), QMacWindowSurface::flush(), QRasterWindowSurface::flush(), QPixmap::fromMacCGImageRef(), qt_mac_draw_pattern(), and QMacWindowSurface::scroll().
Qt::MouseButton qt_mac_get_button | ( | EventMouseButton | button | ) |
Definition at line 418 of file qt_cocoa_helpers_mac.mm.
Referenced by QApplicationPrivate::globalEventProcessor().
Qt::MouseButtons qt_mac_get_buttons | ( | int | buttons | ) |
Definition at line 402 of file qt_cocoa_helpers_mac.mm.
Referenced by flipPoint(), and QApplicationPrivate::globalEventProcessor().
QString qt_mac_get_pasteboardString | ( | OSPasteboardRef | paste | ) |
Definition at line 1572 of file qt_cocoa_helpers_mac.mm.
Referenced by flipYCoordinate(), and QMacPasteboard::retrieveData().
CGFloat qt_mac_get_scalefactor | ( | ) |
Definition at line 1558 of file qt_cocoa_helpers_mac.mm.
Referenced by QStyleHelper::dpiScaled(), flipYCoordinate(), QPixmapIconEngine::paint(), QIconLoaderEngine::paint(), qt_mac_grabDisplayRect(), QToolButton::sizeHint(), and QCoreGraphicsPaintEngine::updateRenderHints().
bool qt_mac_handleTabletEvent | ( | void * | view, |
void * | event | ||
) |
Definition at line 1292 of file qt_cocoa_helpers_mac.mm.
Referenced by flipPoint().
QStringList qt_mac_NSArrayToQStringList | ( | void * | nsarray | ) |
void qt_mac_post_retranslateAppMenu | ( | ) |
Definition at line 1726 of file qt_cocoa_helpers_mac.mm.
Referenced by QApplication::event(), and QMacScrollOptimization::performDelayedScroll().
void* qt_mac_QStringListToNSMutableArrayVoid | ( | const QStringList & | list | ) |
Definition at line 1495 of file qt_cocoa_helpers_mac.mm.
Referenced by flipYCoordinate().
|
inline |
Definition at line 319 of file qt_cocoa_helpers_mac_p.h.
void qt_mac_replaceDrawRect | ( | void * | window, |
QWidgetPrivate * | widget | ||
) |
Referenced by QWidget::clearMask(), and qt_mac_updateContentBorderMetricts().
void qt_mac_replaceDrawRectOriginal | ( | void * | window, |
QWidgetPrivate * | widget | ||
) |
Referenced by QWidget::clearMask(), and qt_mac_updateContentBorderMetricts().
|
inline |
Definition at line 313 of file qt_cocoa_helpers_mac_p.h.
void qt_mac_showBaseLineSeparator | ( | void * | window, |
bool | show | ||
) |
Referenced by qt_mac_updateContentBorderMetricts().
void qt_mac_update_mouseTracking | ( | QWidget * | widget | ) |
Definition at line 340 of file qt_cocoa_helpers_mac.mm.
Referenced by QWidget::changeEvent(), and QWidget::setAttribute().
void qt_mac_updateContentBorderMetricts | ( | void * | window, |
const ::HIContentBorderMetrics & | metrics | ||
) |
Definition at line 1390 of file qt_cocoa_helpers_mac.mm.
Referenced by QTabBarPrivate::updateMacBorderMetrics().
void qt_syncCocoaTitleBarButtons | ( | OSWindowRef | window, |
QWidget * | widgetForWindow | ||
) |