Beispiel #1
0
        public void TestAdjusted()
        {
            var s = new QRectF();

            s.X      = 50;
            s.Y      = 150;
            s.Width  = 500;
            s.Height = 600;

            var n = s.Adjusted(50, 100, 150, 200);

            Assert.AreEqual(100, n.X);
            Assert.AreEqual(250, n.Y);
            Assert.AreEqual(650, n.Width);
            Assert.AreEqual(800, n.Height);
        }
Beispiel #2
0
        public void TestAdjusted()
        {
            var s = new QRectF();
            s.X = 50;
            s.Y = 150;
            s.Width = 500;
            s.Height = 600;

            var n = s.Adjusted(50, 100, 150, 200);

            Assert.AreEqual(100, n.X);
            Assert.AreEqual(250, n.Y);
            Assert.AreEqual(600, n.Width);
            Assert.AreEqual(700, n.Height);
        }