Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QQC2::QMacStylePrivate Class Reference

#include <qquickmacstyle_mac_p_p.h>

+ Inheritance diagram for QQC2::QMacStylePrivate:
+ Collaboration diagram for QQC2::QMacStylePrivate:

Classes

struct  CocoaControl
 

Public Types

enum  Direction { North , South , East , West }
 
enum  CocoaControlType {
  NoControl , Box , Box_Dark , Button_CheckBox ,
  Button_Disclosure , Button_PopupButton , Button_PullDown , Button_PushButton ,
  Button_RadioButton , Button_SquareButton , Button_WindowClose , Button_WindowMiniaturize ,
  Button_WindowZoom , ComboBox , ProgressIndicator_Determinate , ProgressIndicator_Indeterminate ,
  Scroller_Horizontal , Scroller_Vertical , SegmentedControl_First , SegmentedControl_Middle ,
  SegmentedControl_Last , SegmentedControl_Single , Slider_Horizontal , Slider_Vertical ,
  SplitView_Horizontal , SplitView_Vertical , Stepper , TextField
}
 
enum  Animates { AquaPushButton , AquaProgressBar , AquaListViewItemOpen , AquaScrollBar }
 
typedef void(^ DrawRectBlock) (CGContextRef, const CGRect &)
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 

Public Member Functions

 QMacStylePrivate ()
 
 ~QMacStylePrivate ()
 
QStyleHelper::WidgetSizePolicy aquaSizeConstrain (const QStyleOption *option, QStyle::ContentsType ct=QStyle::CT_CustomBase, QSize szHint=QSize(-1, -1), QSize *insz=0) const
 
QStyleHelper::WidgetSizePolicy effectiveAquaSizeConstrain (const QStyleOption *option, QStyle::ContentsType ct=QStyle::CT_CustomBase, QSize szHint=QSize(-1, -1), QSize *insz=0) const
 
int animateSpeed (Animates) const
 
void setAutoDefaultButton (QObject *button) const
 
NSView * cocoaControl (CocoaControl cocoaControl) const
 
NSCell * cocoaCell (CocoaControl cocoaControl) const
 
void setupNSGraphicsContext (CGContextRef cg, bool flipped) const
 
void restoreNSGraphicsContext (CGContextRef cg) const
 
void setupVerticalInvertedXform (CGContextRef cg, bool reverse, bool vertical, const CGRect &rect) const
 
void drawNSViewInRect (NSView *view, const QRectF &rect, QPainter *p, DrawRectBlock drawRectBlock=nil) const
 
void resolveCurrentNSView (QWindow *window) const
 
void drawToolbarButtonArrow (const QStyleOption *opt, QPainter *p) const
 
QPainterPath windowPanelPath (const QRectF &r) const
 
CocoaControlType windowButtonCocoaControl (QStyle::SubControl sc) const
 
void tabLayout (const QStyleOptionTab *opt, QRect *textRect, QRect *iconRect) const override
 
- Public Member Functions inherited from QQC2::QCommonStylePrivate
QString calculateElidedText (const QString &text, const QTextOption &textOption, const QFont &font, const QRect &textRect, const Qt::Alignment valign, Qt::TextElideMode textElideMode, int flags, bool lastVisibleLineShouldBeElided, QPointF *paintStartPosition) const
 
QString toolButtonElideText (const QStyleOptionToolButton *toolbutton, const QRect &textRect, int flags) const
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
QObjectList receiverList (const char *signal) const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual std::string flagsForDumping () const
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Static Public Member Functions

static CGRect comboboxInnerBounds (const CGRect &outterBounds, const CocoaControl &cocoaWidget)
 
static QRectF comboboxEditBounds (const QRectF &outterBounds, const CocoaControl &cw)
 
static Direction tabDirection (QStyleOptionTab::Shape shape)
 
static bool verticalTabs (QMacStylePrivate::Direction tabDirection)
 
- Static Public Member Functions inherited from QQC2::QStylePrivate
static bool useFullScreenForPopup ()
 
- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (const QObject *o)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
 
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static bool disconnect (const QObject *sender, int signal_index, void **slot)
 
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)
 

Public Attributes

QPointer< QObjectautoDefaultButton
 
QPointer< QQuickItemfocusWidget
 
NSView * backingStoreNSView
 
QHash< CocoaControl, NSView * > cocoaControls
 
QHash< CocoaControl, NSCell * > cocoaCells
 
QFont smallSystemFont
 
QFont miniSystemFont
 
QMacKeyValueObserver appearanceObserver
 
- Public Attributes inherited from QQC2::QCommonStylePrivate
QIcon tabBarcloseButtonIcon
 
- Public Attributes inherited from QQC2::QStylePrivate
int layoutSpacingIndex = -1
 
QStyleproxyStyle
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Static Public Attributes

static const int PushButtonLeftOffset
 
static const int PushButtonRightOffset
 
static const int PushButtonContentPadding
 
static QVector< QPointer< QObject > > scrollBars
 

Detailed Description

Definition at line 75 of file qquickmacstyle_mac_p_p.h.

Member Typedef Documentation

◆ DrawRectBlock

typedef void(^ QQC2::QMacStylePrivate::DrawRectBlock) (CGContextRef, const CGRect &)

Definition at line 131 of file qquickmacstyle_mac_p_p.h.

Member Enumeration Documentation

◆ Animates

Enumerator
AquaPushButton 
AquaProgressBar 
AquaListViewItemOpen 
AquaScrollBar 

Definition at line 141 of file qquickmacstyle_mac_p_p.h.

◆ CocoaControlType

Enumerator
NoControl 
Box 
Box_Dark 
Button_CheckBox 
Button_Disclosure 
Button_PopupButton 
Button_PullDown 
Button_PushButton 
Button_RadioButton 
Button_SquareButton 
Button_WindowClose 
Button_WindowMiniaturize 
Button_WindowZoom 
ComboBox 
ProgressIndicator_Determinate 
ProgressIndicator_Indeterminate 
Scroller_Horizontal 
Scroller_Vertical 
SegmentedControl_First 
SegmentedControl_Middle 
SegmentedControl_Last 
SegmentedControl_Single 
Slider_Horizontal 
Slider_Vertical 
SplitView_Horizontal 
SplitView_Vertical 
Stepper 
TextField 

Definition at line 84 of file qquickmacstyle_mac_p_p.h.

◆ Direction

Enumerator
North 
South 
East 
West 

Definition at line 80 of file qquickmacstyle_mac_p_p.h.

Constructor & Destructor Documentation

◆ QMacStylePrivate()

QQC2::QMacStylePrivate::QMacStylePrivate ( )

◆ ~QMacStylePrivate()

QQC2::QMacStylePrivate::~QMacStylePrivate ( )

Member Function Documentation

◆ animateSpeed()

int QQC2::QMacStylePrivate::animateSpeed ( Animates ) const
inline

Definition at line 148 of file qquickmacstyle_mac_p_p.h.

◆ aquaSizeConstrain()

QStyleHelper::WidgetSizePolicy QQC2::QMacStylePrivate::aquaSizeConstrain ( const QStyleOption * option,
QStyle::ContentsType ct = QStyle::CT_CustomBase,
QSize szHint = QSize(-1, -1),
QSize * insz = 0 ) const

◆ cocoaCell()

NSCell * QQC2::QMacStylePrivate::cocoaCell ( CocoaControl cocoaControl) const

◆ cocoaControl()

NSView * QQC2::QMacStylePrivate::cocoaControl ( CocoaControl cocoaControl) const

◆ comboboxEditBounds()

static QRectF QQC2::QMacStylePrivate::comboboxEditBounds ( const QRectF & outterBounds,
const CocoaControl & cw )
static

◆ comboboxInnerBounds()

static CGRect QQC2::QMacStylePrivate::comboboxInnerBounds ( const CGRect & outterBounds,
const CocoaControl & cocoaWidget )
static

◆ drawNSViewInRect()

void QMacStylePrivate::drawNSViewInRect ( NSView * view,
const QRectF & rect,
QPainter * p,
DrawRectBlock drawRectBlock = nil ) const

Definition at line 1567 of file qquickmacstyle_mac.mm.

References backingStoreNSView, pool, rect, QMacStylePrivate::restoreNSGraphicsContext(), QMacStylePrivate::setupNSGraphicsContext(), and view.

+ Here is the call graph for this function:

◆ drawToolbarButtonArrow()

void QQC2::QMacStylePrivate::drawToolbarButtonArrow ( const QStyleOption * opt,
QPainter * p ) const

◆ effectiveAquaSizeConstrain()

QStyleHelper::WidgetSizePolicy QMacStylePrivate::effectiveAquaSizeConstrain ( const QStyleOption * option,
QStyle::ContentsType ct = QStyle::CT_CustomBase,
QSize szHint = QSize(-1, -1),
QSize * insz = 0 ) const

Definition at line 1075 of file qquickmacstyle_mac.mm.

References QStyleHelper::SizeDefault, and QStyleHelper::SizeLarge.

◆ resolveCurrentNSView()

void QQC2::QMacStylePrivate::resolveCurrentNSView ( QWindow * window) const

◆ restoreNSGraphicsContext()

void QQC2::QMacStylePrivate::restoreNSGraphicsContext ( CGContextRef cg) const

◆ setAutoDefaultButton()

void QQC2::QMacStylePrivate::setAutoDefaultButton ( QObject * button) const

◆ setupNSGraphicsContext()

void QQC2::QMacStylePrivate::setupNSGraphicsContext ( CGContextRef cg,
bool flipped ) const

◆ setupVerticalInvertedXform()

void QQC2::QMacStylePrivate::setupVerticalInvertedXform ( CGContextRef cg,
bool reverse,
bool vertical,
const CGRect & rect ) const

◆ tabDirection()

QMacStylePrivate::Direction QMacStylePrivate::tabDirection ( QStyleOptionTab::Shape shape)
static

Definition at line 1051 of file qquickmacstyle_mac.mm.

◆ tabLayout()

void QMacStylePrivate::tabLayout ( const QStyleOptionTab * opt,
QRect * textRect,
QRect * iconRect ) const
overridevirtual

◆ verticalTabs()

bool QMacStylePrivate::verticalTabs ( QMacStylePrivate::Direction tabDirection)
static

Definition at line 1069 of file qquickmacstyle_mac.mm.

References direction, QMacStylePrivate::East, and QMacStylePrivate::West.

◆ windowButtonCocoaControl()

CocoaControlType QQC2::QMacStylePrivate::windowButtonCocoaControl ( QStyle::SubControl sc) const

◆ windowPanelPath()

QPainterPath QQC2::QMacStylePrivate::windowPanelPath ( const QRectF & r) const

Member Data Documentation

◆ appearanceObserver

QMacKeyValueObserver QQC2::QMacStylePrivate::appearanceObserver

Definition at line 190 of file qquickmacstyle_mac_p_p.h.

◆ autoDefaultButton

QPointer<QObject> QQC2::QMacStylePrivate::autoDefaultButton
mutable

Definition at line 179 of file qquickmacstyle_mac_p_p.h.

◆ backingStoreNSView

NSView* QQC2::QMacStylePrivate::backingStoreNSView
mutable

Definition at line 183 of file qquickmacstyle_mac_p_p.h.

Referenced by drawNSViewInRect().

◆ cocoaCells

QHash<CocoaControl, NSCell *> QQC2::QMacStylePrivate::cocoaCells
mutable

Definition at line 185 of file qquickmacstyle_mac_p_p.h.

◆ cocoaControls

QHash<CocoaControl, NSView *> QQC2::QMacStylePrivate::cocoaControls
mutable

Definition at line 184 of file qquickmacstyle_mac_p_p.h.

◆ focusWidget

QPointer<QQuickItem> QQC2::QMacStylePrivate::focusWidget
mutable

Definition at line 182 of file qquickmacstyle_mac_p_p.h.

◆ miniSystemFont

QFont QQC2::QMacStylePrivate::miniSystemFont

Definition at line 188 of file qquickmacstyle_mac_p_p.h.

◆ PushButtonContentPadding

const int QQC2::QMacStylePrivate::PushButtonContentPadding
static

Definition at line 139 of file qquickmacstyle_mac_p_p.h.

◆ PushButtonLeftOffset

const int QQC2::QMacStylePrivate::PushButtonLeftOffset
static

Definition at line 137 of file qquickmacstyle_mac_p_p.h.

◆ PushButtonRightOffset

const int QQC2::QMacStylePrivate::PushButtonRightOffset
static

Definition at line 138 of file qquickmacstyle_mac_p_p.h.

◆ scrollBars

QVector<QPointer<QObject> > QQC2::QMacStylePrivate::scrollBars
static

Definition at line 180 of file qquickmacstyle_mac_p_p.h.

◆ smallSystemFont

QFont QQC2::QMacStylePrivate::smallSystemFont

Definition at line 187 of file qquickmacstyle_mac_p_p.h.


The documentation for this class was generated from the following files: