![Uwe Rathmann](/assets/img/avatar_default.png)
textures now. Implementation is almost complete beside of the not yet done Qt antialiasing mode. Not all sort of linear gradients ( see QLinearGradients ) are implemented - needs 1-2 days more. The aspect flags for box primitives have been substantially changed from too atomic to more strutured units. The skins are currently incomplete - will be fixed later.
45 lines
958 B
C++
45 lines
958 B
C++
/******************************************************************************
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
|
* This file may be used under the terms of the QSkinny License, Version 1.0
|
|
*****************************************************************************/
|
|
|
|
#include "QskCorner.h"
|
|
#include <QSizeF>
|
|
#include <QDebug>
|
|
|
|
QskCorner::QskCorner()
|
|
{
|
|
}
|
|
|
|
void QskCorner::setRadius( qreal radius )
|
|
{
|
|
m_metrics.setRadius( radius );
|
|
}
|
|
|
|
qreal QskCorner::radius() const
|
|
{
|
|
return m_metrics.radius( Qt::TopLeftCorner ).width();
|
|
}
|
|
|
|
void QskCorner::setSizeMode( Qt::SizeMode mode )
|
|
{
|
|
m_metrics.setSizeMode( mode );
|
|
}
|
|
|
|
Qt::SizeMode QskCorner::sizeMode() const
|
|
{
|
|
return m_metrics.sizeMode();
|
|
}
|
|
|
|
void QskCorner::setAspectRatioMode( Qt::AspectRatioMode mode )
|
|
{
|
|
m_metrics.setAspectRatioMode( mode );
|
|
}
|
|
|
|
Qt::AspectRatioMode QskCorner::aspectRatioMode() const
|
|
{
|
|
return m_metrics.aspectRatioMode();
|
|
}
|
|
|
|
#include "moc_QskCorner.cpp"
|