kwin: Add more accessors in WindowVertex
Reorder some of the methods and add new u() and v() accessors, which are aliases of textureX() and textureY().icc-effect-5.14.5
parent
7a99b8c0ef
commit
d4aacd678e
|
@ -1673,17 +1673,21 @@ public:
|
|||
class KWIN_EXPORT WindowVertex
|
||||
{
|
||||
public:
|
||||
double x() const;
|
||||
double y() const;
|
||||
WindowVertex();
|
||||
WindowVertex(double x, double y, double tx, double ty);
|
||||
|
||||
double x() const { return px; }
|
||||
double y() const { return py; }
|
||||
double u() const { return tx; }
|
||||
double v() const { return ty; }
|
||||
double originalX() const { return ox; }
|
||||
double originalY() const { return oy; }
|
||||
double textureX() const { return tx; }
|
||||
double textureY() const { return ty; }
|
||||
void move(double x, double y);
|
||||
void setX(double x);
|
||||
void setY(double y);
|
||||
double originalX() const;
|
||||
double originalY() const;
|
||||
double textureX() const;
|
||||
double textureY() const;
|
||||
WindowVertex();
|
||||
WindowVertex(double x, double y, double tx, double ty);
|
||||
|
||||
private:
|
||||
friend class WindowQuad;
|
||||
friend class WindowQuadList;
|
||||
|
@ -2597,42 +2601,6 @@ WindowVertex::WindowVertex(double _x, double _y, double _tx, double _ty)
|
|||
{
|
||||
}
|
||||
|
||||
inline
|
||||
double WindowVertex::x() const
|
||||
{
|
||||
return px;
|
||||
}
|
||||
|
||||
inline
|
||||
double WindowVertex::y() const
|
||||
{
|
||||
return py;
|
||||
}
|
||||
|
||||
inline
|
||||
double WindowVertex::originalX() const
|
||||
{
|
||||
return ox;
|
||||
}
|
||||
|
||||
inline
|
||||
double WindowVertex::originalY() const
|
||||
{
|
||||
return oy;
|
||||
}
|
||||
|
||||
inline
|
||||
double WindowVertex::textureX() const
|
||||
{
|
||||
return tx;
|
||||
}
|
||||
|
||||
inline
|
||||
double WindowVertex::textureY() const
|
||||
{
|
||||
return ty;
|
||||
}
|
||||
|
||||
inline
|
||||
void WindowVertex::move(double x, double y)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue