2020-12-08 11:02:57 +01:00
|
|
|
/*!
|
2020-12-12 14:05:09 +01:00
|
|
|
\class QskSkinnable QskSkinnable.h
|
2020-12-08 11:02:57 +01:00
|
|
|
*/
|
|
|
|
|
2020-12-12 14:05:09 +01:00
|
|
|
/*!
|
|
|
|
\fn void QskSkinnable::setSkinlet( QskSkinlet* )
|
2020-12-08 11:02:57 +01:00
|
|
|
|
2020-12-12 14:05:09 +01:00
|
|
|
Allows overriding the QskControl::Skin used by this control to render its
|
|
|
|
contents.
|
2020-12-08 11:02:57 +01:00
|
|
|
|
2020-12-12 14:05:09 +01:00
|
|
|
*/
|
2020-12-08 11:02:57 +01:00
|
|
|
|
2020-12-12 14:05:09 +01:00
|
|
|
/*!
|
|
|
|
\fn const QskSkinlet* QskSkinnable::skinlet() const;
|
2020-12-08 11:02:57 +01:00
|
|
|
|
2020-12-12 14:05:09 +01:00
|
|
|
\return Skinlet assigned by setSkinlet().
|
|
|
|
\sa effectiveSkinlet()
|
|
|
|
*/
|
2020-12-08 11:02:57 +01:00
|
|
|
|
2020-12-12 14:05:09 +01:00
|
|
|
/*!
|
|
|
|
\fn QVariant QskSkinnable::effectiveHint( QskAspect::Aspect, QskSkinHintStatus* ) const
|
2020-12-08 11:02:57 +01:00
|
|
|
|
2020-12-12 14:05:09 +01:00
|
|
|
Returns the QskSkinHint value for a QskAspect::Aspect. If none is set for
|
|
|
|
this control, the value for QskSkin::skinHint() is returned.
|
2020-12-08 11:02:57 +01:00
|
|
|
|
2020-12-12 14:05:09 +01:00
|
|
|
\note If a QskSkinHintProvider is animating the color when called, the returned
|
|
|
|
value will be the current value, not the target value, unless a state mask
|
|
|
|
is requested as part of the aspect.
|
2020-12-08 11:02:57 +01:00
|
|
|
|
2020-12-12 14:05:09 +01:00
|
|
|
\param aspect Aspect
|
|
|
|
*/
|
2020-12-08 11:02:57 +01:00
|
|
|
|
2020-12-12 14:05:09 +01:00
|
|
|
/*!
|
|
|
|
\fn qreal QskSkinnable::metric( QskAspect::Aspect, QskSkinHintStatus* ) const
|
2020-12-08 11:02:57 +01:00
|
|
|
|
2020-12-12 14:05:09 +01:00
|
|
|
A convenience method equivalent to skinHint( aspect ).metric. The
|
|
|
|
QskSkinHint::TypeMask is set to QskSkinHint::Metric.
|
|
|
|
*/
|
2020-12-08 11:02:57 +01:00
|
|
|
|
2020-12-12 14:05:09 +01:00
|
|
|
/*!
|
|
|
|
\fn void QskSkinnable::updateNode( QSGNode* )
|
2020-12-08 11:02:57 +01:00
|
|
|
|
2020-12-12 14:05:09 +01:00
|
|
|
This method replaces the QQuickItem::updatePaintNode method as the
|
|
|
|
preferred paint method to override when subclassing QskControl. This allows
|
|
|
|
QskControl to perform some additional steps before calling updateNode(),
|
|
|
|
and provides a consistent parent node which subclasses can rely on.
|
2020-12-08 11:02:57 +01:00
|
|
|
|
2020-12-12 14:05:09 +01:00
|
|
|
Subclasses should call their Skin's updateNode() method inside this method.
|
2020-12-08 11:02:57 +01:00
|
|
|
|
2020-12-12 14:05:09 +01:00
|
|
|
\param parentNode The parent of the nodes to be added in this method.
|
|
|
|
\return The parent node.
|
|
|
|
*/
|