QskBoxShapeMetrics

Public Functions

  Name
constexpr QskBoxShapeMetrics()
constexpr QskBoxShapeMetrics(qreal topLeft, qreal topRight, qreal bottomLeft, qreal bottomRight, Qt::SizeMode sizeMode =Qt::AbsoluteSize)
constexpr QskBoxShapeMetrics(qreal radius, Qt::SizeMode sizeMode =Qt::AbsoluteSize)
constexpr QskBoxShapeMetrics(qreal radiusX, qreal radiusY, Qt::SizeMode sizeMode =Qt::AbsoluteSize)
constexpr bool operator==(const QskBoxShapeMetrics & other) const
constexpr bool operator!=(const QskBoxShapeMetrics & other) const
void setRadius(qreal radius)
void setRadius(qreal radius, Qt::SizeMode sizeMode)
void setRadius(Qt::Corner corner, qreal radius)
void setRadius(qreal radiusX, qreal radiusY)
void setRadius(const QSizeF & radius)
void setRadius(Qt::Corner corner, qreal radiusX, qreal radiusY)
void setRadius(Qt::Corner corner, const QSizeF & radius)
void setRadius(qreal topLeft, qreal topRight, qreal bottomLeft, qreal bottomRight)
void setRadius(const QSizeF & topLeft, const QSizeF & topRight, const QSizeF & bottomLeft, const QSizeF & bottomRight)
void setRadius(qreal topLeftX, qreal topLeftY, qreal topRightX, qreal topRightY, qreal bottomLeftX, qreal bottomLeftY, qreal bottomRightX, qreal bottomRightY)
constexpr QSizeF radius(Qt::Corner corner) const
constexpr QSizeF topLeft() const
constexpr QSizeF topRight() const
constexpr QSizeF bottomLeft() const
constexpr QSizeF bottomRight() const
void setTopLeft(const QSizeF & radius)
void setTopRight(const QSizeF & radius)
void setBottomLeft(const QSizeF & radius)
void setBottomRight(const QSizeF & radius)
constexpr bool isRectangle() const
constexpr bool isRectellipse() const
void setSizeMode(Qt::SizeMode sizeMode)
constexpr Qt::SizeMode sizeMode() const
void setAspectRatioMode(Qt::AspectRatioMode aspectRatioMode)
constexpr Qt::AspectRatioMode aspectRatioMode() const
QskBoxShapeMetrics interpolated(const QskBoxShapeMetrics & to, qreal value) const
QskBoxShapeMetrics toAbsolute(const QSizeF & size) const
constexpr QskBoxShapeMetrics transposed() const
uint hash(uint seed =0) const
QVariant interpolate(const QskBoxShapeMetrics & from, const QskBoxShapeMetrics & to, qreal progress)

Public Properties

  Name
QSizeF topLeft
QSizeF topRight
QSizeF bottomLeft
QSizeF bottomRight
qreal radius
Qt::SizeMode sizeMode
Qt::AspectRatioMode aspectRatioMode

Public Functions Documentation

function QskBoxShapeMetrics

inline constexpr QskBoxShapeMetrics()

function QskBoxShapeMetrics

inline constexpr QskBoxShapeMetrics(
    qreal topLeft,
    qreal topRight,
    qreal bottomLeft,
    qreal bottomRight,
    Qt::SizeMode sizeMode =Qt::AbsoluteSize
)

function QskBoxShapeMetrics

inline constexpr QskBoxShapeMetrics(
    qreal radius,
    Qt::SizeMode sizeMode =Qt::AbsoluteSize
)

function QskBoxShapeMetrics

inline constexpr QskBoxShapeMetrics(
    qreal radiusX,
    qreal radiusY,
    Qt::SizeMode sizeMode =Qt::AbsoluteSize
)

function operator==

inline constexpr bool operator==(
    const QskBoxShapeMetrics & other
) const

function operator!=

inline constexpr bool operator!=(
    const QskBoxShapeMetrics & other
) const

function setRadius

inline void setRadius(
    qreal radius
)

function setRadius

inline void setRadius(
    qreal radius,
    Qt::SizeMode sizeMode
)

function setRadius

inline void setRadius(
    Qt::Corner corner,
    qreal radius
)

function setRadius

inline void setRadius(
    qreal radiusX,
    qreal radiusY
)

function setRadius

inline void setRadius(
    const QSizeF & radius
)

function setRadius

void setRadius(
    Qt::Corner corner,
    qreal radiusX,
    qreal radiusY
)

function setRadius

inline void setRadius(
    Qt::Corner corner,
    const QSizeF & radius
)

function setRadius

inline void setRadius(
    qreal topLeft,
    qreal topRight,
    qreal bottomLeft,
    qreal bottomRight
)

function setRadius

inline void setRadius(
    const QSizeF & topLeft,
    const QSizeF & topRight,
    const QSizeF & bottomLeft,
    const QSizeF & bottomRight
)

function setRadius

void setRadius(
    qreal topLeftX,
    qreal topLeftY,
    qreal topRightX,
    qreal topRightY,
    qreal bottomLeftX,
    qreal bottomLeftY,
    qreal bottomRightX,
    qreal bottomRightY
)

function radius

inline constexpr QSizeF radius(
    Qt::Corner corner
) const

function topLeft

inline constexpr QSizeF topLeft() const

function topRight

inline constexpr QSizeF topRight() const

function bottomLeft

inline constexpr QSizeF bottomLeft() const

function bottomRight

inline constexpr QSizeF bottomRight() const

function setTopLeft

void setTopLeft(
    const QSizeF & radius
)

function setTopRight

void setTopRight(
    const QSizeF & radius
)

function setBottomLeft

void setBottomLeft(
    const QSizeF & radius
)

function setBottomRight

void setBottomRight(
    const QSizeF & radius
)

function isRectangle

inline constexpr bool isRectangle() const

function isRectellipse

inline constexpr bool isRectellipse() const

function setSizeMode

inline void setSizeMode(
    Qt::SizeMode sizeMode
)

function sizeMode

inline constexpr Qt::SizeMode sizeMode() const

function setAspectRatioMode

inline void setAspectRatioMode(
    Qt::AspectRatioMode aspectRatioMode
)

function aspectRatioMode

inline constexpr Qt::AspectRatioMode aspectRatioMode() const

function interpolated

QskBoxShapeMetrics interpolated(
    const QskBoxShapeMetrics & to,
    qreal value
) const

function toAbsolute

QskBoxShapeMetrics toAbsolute(
    const QSizeF & size
) const

function transposed

inline constexpr QskBoxShapeMetrics transposed() const

function hash

uint hash(
    uint seed =0
) const

function interpolate

static QVariant interpolate(
    const QskBoxShapeMetrics & from,
    const QskBoxShapeMetrics & to,
    qreal progress
)

Public Property Documentation

property topLeft

QSizeF topLeft;

property topRight

QSizeF topRight;

property bottomLeft

QSizeF bottomLeft;

property bottomRight

QSizeF bottomRight;

property radius

qreal radius;

property sizeMode

Qt::SizeMode sizeMode;

property aspectRatioMode

Qt::AspectRatioMode aspectRatioMode;

Updated on 28 July 2023 at 14:02:29 CEST