Uwe Rathmann 6479937294 All box subcontrols are displayd with vertex lists instead of 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.
2017-10-17 17:29:02 +02:00

59 lines
1.4 KiB
C++

#ifndef _BOX_H_
#define _BOX_H_
#include "Palette.h"
#include <QskBox.h>
class Box : public QskBox
{
public:
enum FillType
{
Unfilled,
Solid,
Horizontal,
Vertical,
Diagonal
};
enum BorderType
{
NoBorder,
Flat,
Raised1,
Sunken1,
Raised2,
Sunken2
};
Box( QQuickItem* parentItem = nullptr );
void setBackground( FillType, Palette::Color, bool inverted = false );
void setBorder( BorderType type, Palette::Color );
void setShape( const QskBoxShapeMetrics& );
void setShape( qreal radius, Qt::SizeMode );
void setShape( qreal radiusX, qreal radiusY, Qt::SizeMode );
void setBorderColor( const QColor& );
void setBorderColors( const QColor& left, const QColor& top,
const QColor& right, const QColor& bottom );
void setBorderWidth( int );
void setBorderWidth( qreal left, qreal top, qreal right, qreal bottom );
void setGradient( QRgb );
void setGradient( Qt::GlobalColor );
void setGradient( const QColor& );
void setGradient( QskGradient::Orientation, const QColor&, const QColor& );
void setGradient( QskGradient::Orientation,
const QColor&, const QColor&, const QColor& );
void setGradient( const QskGradient& gradient );
void setGradient( const QskGradient::Orientation, Palette::Color );
};
#endif