[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kwin/scaling_merged] libkwineffects: Add convenience method to KWindowVertex
From: David Edmundson <kde () davidedmundson ! co ! uk>
Date: 2016-11-24 20:48:40
Message-ID: E1cA0wi-0000TY-9s () code ! kde ! org
[Download RAW message or body]
Git commit 1f85da03aaaa686d85ef0d998e1b47bad53a5eb2 by David Edmundson.
Committed on 23/11/2016 at 17:15.
Pushed by davidedmundson into branch 'scaling_merged'.
Add convenience method to KWindowVertex
M +8 -0 libkwineffects/kwineffects.h
https://commits.kde.org/kwin/1f85da03aaaa686d85ef0d998e1b47bad53a5eb2
diff --git a/libkwineffects/kwineffects.h b/libkwineffects/kwineffects.h
index 81af705..97a0b0a 100644
--- a/libkwineffects/kwineffects.h
+++ b/libkwineffects/kwineffects.h
@@ -2113,6 +2113,7 @@ class KWINEFFECTS_EXPORT WindowVertex
{
public:
WindowVertex();
+ WindowVertex(const QPointF &position, const QPointF &textureCoordinate=
);
WindowVertex(double x, double y, double tx, double ty);
=
double x() const { return px; }
@@ -3137,6 +3138,13 @@ WindowVertex::WindowVertex(double _x, double _y, dou=
ble _tx, double _ty)
{
}
=
+
+inline
+WindowVertex::WindowVertex(const QPointF &position, const QPointF &texture=
Position)
+ : px(position.x()), py(position.y()), ox(position.x()), oy(position.y(=
)), tx(texturePosition.x()), ty(texturePosition.y())
+{
+}
+
inline
void WindowVertex::move(double x, double y)
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic