Exemple #1
0
        public unsafe void TestGetRect()
        {
            var s = new QRect();

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

            int x1;
            int y1;
            int width;
            int height;

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

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

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

            int x1     = 0;
            int y1     = 0;
            int width  = 0;
            int 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);
        }
Exemple #3
0
        public unsafe void TestGetRect()
        {
            var s = new QRect();
            s.X = 50;
            s.Y = 150;
            s.Width = 500;
            s.Height = 600;

            int x1 = 0;
            int y1 = 0;
            int width = 0;
            int 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);
        }