QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskLinearDirection Class Reference

Detailed Description

Definition at line 15 of file QskGradientDirection.h.

Properties

qreal x1
 
qreal y1
 
qreal x2
 
qreal y2
 

Public Member Functions

constexpr QskLinearDirection (Qt::Orientation) noexcept
 
constexpr QskLinearDirection (const QLineF &) noexcept
 
constexpr QskLinearDirection (const QPointF &, const QPointF &) noexcept
 
constexpr QskLinearDirection (qreal x1, qreal y1, qreal x2, qreal y2) noexcept
 
void setVector (const QLineF &) noexcept
 
void setVector (const QPointF &, const QPointF &) noexcept
 
void setVector (qreal x1, qreal y1, qreal x2, qreal y2) noexcept
 
constexpr QLineF vector () const noexcept
 
void setStart (const QPointF &) noexcept
 
void setStart (qreal x, qreal y) noexcept
 
void setStop (const QPointF &) noexcept
 
void setStop (qreal x, qreal y) noexcept
 
void setInterval (Qt::Orientation, qreal, qreal)
 
void setOrientation (Qt::Orientation) noexcept
 
constexpr bool isOriented (Qt::Orientation) const noexcept
 
constexpr bool isHorizontal () const noexcept
 
constexpr bool isVertical () const noexcept
 
constexpr bool isTilted () const noexcept
 
constexpr QPointF start () const noexcept
 
constexpr QPointF stop () const noexcept
 
constexpr qreal x1 () const noexcept
 
void setX1 (qreal) noexcept
 
constexpr qreal y1 () const noexcept
 
void setY1 (qreal) noexcept
 
constexpr qreal x2 () const noexcept
 
void setX2 (qreal) noexcept
 
constexpr qreal y2 () const noexcept
 
void setY2 (qreal) noexcept
 
qreal dx () const noexcept
 
qreal dy () const noexcept
 
qreal valueAt (const QPointF &) const
 
qreal valueAt (qreal x, qreal y) const
 
bool contains (const QRectF &) const
 

Constructor & Destructor Documentation

◆ QskLinearDirection() [1/4]

constexpr QskLinearDirection::QskLinearDirection ( Qt::Orientation  orientation)
inlineconstexprnoexcept

Definition at line 189 of file QskGradientDirection.h.

◆ QskLinearDirection() [2/4]

constexpr QskLinearDirection::QskLinearDirection ( const QLineF &  vector)
inlineconstexprnoexcept

Definition at line 196 of file QskGradientDirection.h.

◆ QskLinearDirection() [3/4]

constexpr QskLinearDirection::QskLinearDirection ( const QPointF &  start,
const QPointF &  stop 
)
inlineconstexprnoexcept

Definition at line 201 of file QskGradientDirection.h.

◆ QskLinearDirection() [4/4]

constexpr QskLinearDirection::QskLinearDirection ( qreal  x1,
qreal  y1,
qreal  x2,
qreal  y2 
)
inlineconstexprnoexcept

Definition at line 207 of file QskGradientDirection.h.

Member Function Documentation

◆ contains()

bool QskLinearDirection::contains ( const QRectF &  rect) const

Definition at line 166 of file QskGradientDirection.cpp.

◆ dx()

qreal QskLinearDirection::dx ( ) const
inlinenoexcept

Definition at line 236 of file QskGradientDirection.h.

◆ dy()

qreal QskLinearDirection::dy ( ) const
inlinenoexcept

Definition at line 244 of file QskGradientDirection.h.

◆ isHorizontal()

constexpr bool QskLinearDirection::isHorizontal ( ) const
inlineconstexprnoexcept

Definition at line 273 of file QskGradientDirection.h.

◆ isOriented()

constexpr bool QskLinearDirection::isOriented ( Qt::Orientation  orientation) const
inlineconstexprnoexcept

Definition at line 267 of file QskGradientDirection.h.

◆ isTilted()

constexpr bool QskLinearDirection::isTilted ( ) const
inlineconstexprnoexcept

Definition at line 283 of file QskGradientDirection.h.

◆ isVertical()

constexpr bool QskLinearDirection::isVertical ( ) const
inlineconstexprnoexcept

Definition at line 278 of file QskGradientDirection.h.

◆ setInterval()

void QskLinearDirection::setInterval ( Qt::Orientation  orientation,
qreal  from,
qreal  to 
)

Definition at line 116 of file QskGradientDirection.cpp.

◆ setOrientation()

void QskLinearDirection::setOrientation ( Qt::Orientation  orientation)
noexcept

Definition at line 20 of file QskGradientDirection.cpp.

◆ setStart() [1/2]

void QskLinearDirection::setStart ( const QPointF &  pos)
noexcept

Definition at line 64 of file QskGradientDirection.cpp.

◆ setStart() [2/2]

void QskLinearDirection::setStart ( qreal  x,
qreal  y 
)
noexcept

Definition at line 71 of file QskGradientDirection.cpp.

◆ setStop() [1/2]

void QskLinearDirection::setStop ( const QPointF &  pos)
noexcept

Definition at line 78 of file QskGradientDirection.cpp.

◆ setStop() [2/2]

void QskLinearDirection::setStop ( qreal  x,
qreal  y 
)
noexcept

Definition at line 85 of file QskGradientDirection.cpp.

◆ setVector() [1/3]

void QskLinearDirection::setVector ( const QLineF &  vector)
noexcept

Definition at line 37 of file QskGradientDirection.cpp.

◆ setVector() [2/3]

void QskLinearDirection::setVector ( const QPointF &  start,
const QPointF &  stop 
)
noexcept

Definition at line 46 of file QskGradientDirection.cpp.

◆ setVector() [3/3]

void QskLinearDirection::setVector ( qreal  x1,
qreal  y1,
qreal  x2,
qreal  y2 
)
noexcept

Definition at line 55 of file QskGradientDirection.cpp.

◆ setX1()

void QskLinearDirection::setX1 ( qreal  x)
noexcept

Definition at line 92 of file QskGradientDirection.cpp.

◆ setX2()

void QskLinearDirection::setX2 ( qreal  x)
noexcept

Definition at line 104 of file QskGradientDirection.cpp.

◆ setY1()

void QskLinearDirection::setY1 ( qreal  y)
noexcept

Definition at line 98 of file QskGradientDirection.cpp.

◆ setY2()

void QskLinearDirection::setY2 ( qreal  y)
noexcept

Definition at line 110 of file QskGradientDirection.cpp.

◆ start()

constexpr QPointF QskLinearDirection::start ( ) const
inlineconstexprnoexcept

Definition at line 257 of file QskGradientDirection.h.

◆ stop()

constexpr QPointF QskLinearDirection::stop ( ) const
inlineconstexprnoexcept

Definition at line 262 of file QskGradientDirection.h.

◆ valueAt() [1/2]

qreal QskLinearDirection::valueAt ( const QPointF &  pos) const
inline

Definition at line 288 of file QskGradientDirection.h.

◆ valueAt() [2/2]

qreal QskLinearDirection::valueAt ( qreal  x,
qreal  y 
) const
inline

Definition at line 293 of file QskGradientDirection.h.

◆ vector()

constexpr QLineF QskLinearDirection::vector ( ) const
inlineconstexprnoexcept

Definition at line 252 of file QskGradientDirection.h.

◆ x1()

constexpr qreal QskLinearDirection::x1 ( ) const
inlineconstexprnoexcept

Definition at line 216 of file QskGradientDirection.h.

◆ x2()

constexpr qreal QskLinearDirection::x2 ( ) const
inlineconstexprnoexcept

Definition at line 226 of file QskGradientDirection.h.

◆ y1()

constexpr qreal QskLinearDirection::y1 ( ) const
inlineconstexprnoexcept

Definition at line 221 of file QskGradientDirection.h.

◆ y2()

constexpr qreal QskLinearDirection::y2 ( ) const
inlineconstexprnoexcept

Definition at line 231 of file QskGradientDirection.h.

Property Documentation

◆ x1

qreal QskLinearDirection::x1
readwrite

Definition at line 19 of file QskGradientDirection.h.

◆ x2

qreal QskLinearDirection::x2
readwrite

Definition at line 21 of file QskGradientDirection.h.

◆ y1

qreal QskLinearDirection::y1
readwrite

Definition at line 20 of file QskGradientDirection.h.

◆ y2

qreal QskLinearDirection::y2
readwrite

Definition at line 22 of file QskGradientDirection.h.