6#ifndef QSK_SKIN_HINT_TABLE_EDITOR_H
7#define QSK_SKIN_HINT_TABLE_EDITOR_H
10#include "QskSkinHintTable.h"
11#include "QskAnimationHint.h"
12#include "QskStateCombination.h"
13#include "QskTextOptions.h"
44 template<
typename T >
void setHint(
48 template<
typename T > T hint(
QskAspect )
const;
60 void setAnimation(
QskAspect, uint duration, QEasingCurve::Type,
67 void setMetricHint(
QskAspect,
const QVariant&,
70 template<
typename T >
void setMetricHint(
76 template<
typename T > T metricHint(
QskAspect )
const;
80 void setColorHint(
QskAspect,
const QVariant&,
83 template<
typename T >
void setColorHint(
89 template<
typename T > T colorHint(
QskAspect )
const;
107 void setHGradient(
QskAspect,
const QColor&,
const QColor&,
110 void setVGradient(
QskAspect,
const QColor&,
const QColor&,
113 void setGradient(
QskAspect,
const QColor&,
const QColor&,
132 void setStrutSize(
QskAspect,
const QSizeF&,
135 void setStrutSize(
QskAspect, qreal width, qreal height,
148 qreal left, qreal top, qreal right, qreal bottom,
161 qreal left, qreal top, qreal right, qreal bottom,
178 Qt::Alignment alignment(
QskAspect )
const;
195 void setBoxShape(
QskAspect, qreal radius, Qt::SizeMode = Qt::AbsoluteSize );
197 void setBoxShape(
QskAspect, qreal topLeft, qreal topRight,
198 qreal bottomLeft, qreal bottomRight, Qt::SizeMode = Qt::AbsoluteSize );
210 qreal borderWidth, Qt::SizeMode = Qt::AbsoluteSize );
212 void setBoxBorderMetrics(
QskAspect, qreal left, qreal top,
213 qreal right, qreal bottom, Qt::SizeMode = Qt::AbsoluteSize );
237 void setShadowMetrics(
QskAspect, qreal, qreal,
238 const QPointF&, Qt::SizeMode = Qt::AbsoluteSize );
263 void setArcMetrics(
QskAspect, qreal startAngle, qreal spanAngle,
264 qreal thickness, Qt::SizeMode = Qt::AbsoluteSize );
275 void setStippleMetrics(
QskAspect, Qt::PenStyle,
278 void setStippleMetrics(
QskAspect,
const QVector< qreal >&,
300 Qt::TextElideMode, QskTextOptions::WrapMode,
323template<
typename T >
324inline void QskSkinHintTableEditor::setHint(
327 setHint( aspect, QVariant::fromValue( hint ), combination );
330template<
typename T >
331inline T QskSkinHintTableEditor::hint(
QskAspect aspect )
const
333 return hint( aspect ).value< T >();
336inline const QVariant& QskSkinHintTableEditor::hint(
QskAspect aspect )
const
338 return m_table->hint( aspect );
341inline QVariant QskSkinHintTableEditor::takeHint(
QskAspect aspect )
343 return m_table->takeHint( aspect );
346inline bool QskSkinHintTableEditor::hasHint(
QskAspect aspect )
const
348 return m_table->hasHint( aspect );
353inline void QskSkinHintTableEditor::setMetricHint(
359template<
typename T >
360inline void QskSkinHintTableEditor::setMetricHint(
366inline bool QskSkinHintTableEditor::removeMetricHint(
372inline QVariant QskSkinHintTableEditor::metricHint(
QskAspect aspect )
const
377template<
typename T >
378inline T QskSkinHintTableEditor::metricHint(
QskAspect aspect )
const
385inline void QskSkinHintTableEditor::setColorHint(
391template<
typename T >
392inline void QskSkinHintTableEditor::setColorHint(
398inline bool QskSkinHintTableEditor::removeColorHint(
404inline QVariant QskSkinHintTableEditor::colorHint(
QskAspect aspect )
const
409template<
typename T >
410inline T QskSkinHintTableEditor::colorHint(
QskAspect aspect )
const
419 return m_table->animation( aspect );
422inline void QskSkinHintTableEditor::setAnimation(
426 setHint( aspect, hint, combination );
429inline void QskSkinHintTableEditor::setAnimation(
QskAspect aspect,
432 setAnimation( aspect,
QskAnimationHint( duration, curveType ), combination );
Lookup key for a QskSkinHintTable.
void setAnimator(bool on) noexcept
A paint device for scalable graphics.