59 #include <Cocoa/Cocoa.h> 60 #ifdef QT_MAC_USE_COCOA 61 #include <objc/runtime.h> 62 #endif // QT_MAC_USE_COCOA 65 #include <CoreServices/CoreServices.h> 67 #include "QtCore/qglobal.h" 68 #include "QtCore/qvariant.h" 69 #include "QtCore/qmimedata.h" 70 #include "QtCore/qpointer.h" 71 #include "private/qcore_mac_p.h" 74 #include "QtGui/qpainter.h" 76 #include <Carbon/Carbon.h> 86 #if defined(QT_NAMESPACE) && defined(QT_NAMESPACE_MAC_CRC) 149 inline void *
handle()
const {
return pool; }
163 static inline void exec(
bool ) {
166 virtual void windowChanged() = 0;
167 virtual void flushWindowChanged() = 0;
183 CGContextRetain(context);
188 CGContextRelease(context);
190 inline bool isNull()
const {
return context; }
194 CGContextRelease(context);
196 CGContextRetain(context);
201 CGContextRelease(context);
203 CGContextRetain(context);
235 bool hasFlavor(
QString flavor)
const;
236 bool hasOSType(
int c_flavor)
const;
The QVariant class acts like a union for the most common Qt data types.
Promise(int itemId, QMacPasteboardMime *c, QString m, QVariant d, int o=0)
The QPainter class performs low-level painting on widgets and other paint devices.
The QColor class provides colors based on RGB, HSV or CMYK values.
const struct __CFString * CFStringRef
#define QT_END_NAMESPACE
This macro expands to.
QMacCGContext & operator=(CGContextRef cg)
QMacCGContext(CGContextRef cg, bool takeOwnership=false)
PasteboardRef OSPasteboardRef
QColor qcolorForThemeTextColor(ThemeTextColor themeColor)
static void clear(QVariant::Private *d)
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
QMacCGContext(const QPaintDevice *pdev)
The QString class provides a Unicode character string.
The QDragMoveEvent class provides an event which is sent while a drag and drop action is in progress...
Qt::KeyboardModifiers modifiers
QString qt_mac_removeMnemonics(const QString &original)
QColor qcolorForTheme(ThemeBrush brush)
#define QT_BEGIN_NAMESPACE
This macro expands to.
QPoint qt_mac_nativeMapFromParent(const QWidget *child, const QPoint &pt)
QList< Promise > promises
CGContextRef qt_mac_cg_context(const QPaintDevice *pdev)
Returns the CoreGraphics CGContextRef of the paint device.
QPointer< QMimeData > mime
void setFadeDuration(float durationInSecs)
void qt_mac_copy_answer_rect(const QDragMoveEvent &event)
The QStringList class provides a list of strings.
static const char * data(const QByteArray &arr)
Type
This enum type defines the types of variable that a QVariant can contain.
QWidgetList m_windowsToFade
The QMimeData class provides a container for data that records information about its MIME type...
struct OpaqueRgnHandle * RgnHandle
QMacDndAnswerRecord qt_mac_dnd_answer_rec
QFont qfontForThemeFont(ThemeFontID themeID)
~QMacSmartQuickDrawRegion()
The QFont class specifies a font used for drawing text.
static QList< QMacWindowChangeEvent * > * change_events
unsigned int lastOperation
QMacPasteboardMime * convertor
The QPoint class defines a point in the plane using integer precision.
const UInt32 kEventClassQt
QMacCGContext & operator=(const QMacCGContext ©)
The QRect class defines a rectangle in the plane using integer precision.
OSViewRef qt_mac_nativeview_for(const QWidget *)
QMacSmartQuickDrawRegion(RgnHandle rgn)
Qt::DropAction lastAction
virtual ~QMacWindowChangeEvent()
struct CGContext * CGContextRef
float fadeDuration() const
OSWindowRef qt_mac_window_for(const QWidget *)
QMacCGContext(const QMacCGContext ©)
The QMacPasteboardMime class converts between a MIME type and a.
bool qt_mac_mouse_inside_answer_rect(QPoint mouse)
The QList class is a template class that provides lists.
void qt_mac_dispose_rgn(RgnHandle r)
QPaintDevice * qt_mac_safe_pdev