Home | History | Annotate | Download | only in test

Lines Matching refs:refRect

379 void _testSetTextInputRect(SDL_Rect refRect)
383 testRect = refRect;
385 SDLTest_AssertPass("Call to SDL_SetTextInputRect with refRect(x:%i,y:%i,w:%i,h:%i)", refRect.x, refRect.y, refRect.w, refRect.h);
387 (refRect.x == testRect.x) && (refRect.y == testRect.y) && (refRect.w == testRect.w) && (refRect.h == testRect.h),
389 refRect.x, refRect.y, refRect.w, refRect.h,
401 SDL_Rect refRect;
403 /* Normal visible refRect, origin inside */
404 refRect.x = SDLTest_RandomIntegerInRange(1, 50);;
405 refRect.y = SDLTest_RandomIntegerInRange(1, 50);;
406 refRect.w = SDLTest_RandomIntegerInRange(10, 50);
407 refRect.h = SDLTest_RandomIntegerInRange(10, 50);
408 _testSetTextInputRect(refRect);
410 /* Normal visible refRect, origin 0,0 */
411 refRect.x = 0;
412 refRect.y = 0;
413 refRect.w = SDLTest_RandomIntegerInRange(10, 50);
414 refRect.h = SDLTest_RandomIntegerInRange(10, 50);
415 _testSetTextInputRect(refRect);
417 /* 1Pixel refRect */
418 refRect.x = SDLTest_RandomIntegerInRange(10, 50);;
419 refRect.y = SDLTest_RandomIntegerInRange(10, 50);;
420 refRect.w = 1;
421 refRect.h = 1;
422 _testSetTextInputRect(refRect);
424 /* 0pixel refRect */
425 refRect.x = 1;
426 refRect.y = 1;
427 refRect.w = 1;
428 refRect.h = 0;
429 _testSetTextInputRect(refRect);
431 /* 0pixel refRect */
432 refRect.x = 1;
433 refRect.y = 1;
434 refRect.w = 0;
435 refRect.h = 1;
436 _testSetTextInputRect(refRect);
438 /* 0pixel refRect */
439 refRect.x = 1;
440 refRect.y = 1;
441 refRect.w = 0;
442 refRect.h = 0;
443 _testSetTextInputRect(refRect);
445 /* 0pixel refRect */
446 refRect.x = 0;
447 refRect.y = 0;
448 refRect.w = 0;
449 refRect.h = 0;
450 _testSetTextInputRect(refRect);
452 /* negative refRect */
453 refRect.x = SDLTest_RandomIntegerInRange(-200, -100);;
454 refRect.y = SDLTest_RandomIntegerInRange(-200, -100);;
455 refRect.w = 50;
456 refRect.h = 50;
457 _testSetTextInputRect(refRect);
459 /* oversized refRect */
460 refRect.x = SDLTest_RandomIntegerInRange(1, 50);;
461 refRect.y = SDLTest_RandomIntegerInRange(1, 50);;
462 refRect.w = 5000;
463 refRect.h = 5000;
464 _testSetTextInputRect(refRect);
466 /* NULL refRect */
490 /* NULL refRect */