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

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

            double x1     = 0;
            double y1     = 0;
            double width  = 0;
            double height = 0;

            s.GetRect(ref x1, ref y1, ref width, ref height);

            Assert.AreEqual(50, x1);
            Assert.AreEqual(150, y1);
            Assert.AreEqual(500, width);
            Assert.AreEqual(600, height);
        }
Beispiel #2
0
        public unsafe void TestGetRect()
        {
            var s = new QRectF();

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

            double x1;
            double y1;
            double width;
            double height;

            s.GetRect(&x1, &y1, &width, &height);

            Assert.AreEqual(50, x1);
            Assert.AreEqual(150, y1);
            Assert.AreEqual(500, width);
            Assert.AreEqual(600, height);
        }
Beispiel #3
0
        public unsafe void TestGetRect()
        {
            var s = new QRectF();
            s.X = 50;
            s.Y = 150;
            s.Width = 500;
            s.Height = 600;

            double x1 = 0;
            double y1 = 0;
            double width = 0;
            double height = 0;

            s.GetRect(ref x1, ref y1, ref width, ref height);

            Assert.AreEqual(50, x1);
            Assert.AreEqual(150, y1);
            Assert.AreEqual(500, width);
            Assert.AreEqual(600, height);
        }