QskVertex::Line API enhanced
This commit is contained in:
parent
36ac8d95d6
commit
01a0f6b540
@ -115,6 +115,11 @@ namespace QskVertex
|
|||||||
p2.set( x2, y2 );
|
p2.set( x2, y2 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline void setLine( const QPointF& p1, const QPointF& p2 ) noexcept
|
||||||
|
{
|
||||||
|
setLine( p1.x(), p1.y(), p2.x(), p2.y() );
|
||||||
|
}
|
||||||
|
|
||||||
inline void setHLine( float x1, float x2, float y ) noexcept
|
inline void setHLine( float x1, float x2, float y ) noexcept
|
||||||
{
|
{
|
||||||
setLine( x1, y, x2, y );
|
setLine( x1, y, x2, y );
|
||||||
@ -125,6 +130,15 @@ namespace QskVertex
|
|||||||
setLine( x, y1, x, y2 );
|
setLine( x, y1, x, y2 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline void setLine( const QPointF& p1, const QPointF& p2, Color ) noexcept
|
||||||
|
{
|
||||||
|
/* The color parameter makes no sense, but is useful
|
||||||
|
when being used from templated code
|
||||||
|
*/
|
||||||
|
|
||||||
|
setLine( p1.x(), p1.y(), p2.x(), p2.y() );
|
||||||
|
}
|
||||||
|
|
||||||
inline void setLine( float x1, float y1, float x2, float y2, Color ) noexcept
|
inline void setLine( float x1, float y1, float x2, float y2, Color ) noexcept
|
||||||
{
|
{
|
||||||
/* The color parameter makes no sense, but is useful
|
/* The color parameter makes no sense, but is useful
|
||||||
|
Loading…
x
Reference in New Issue
Block a user