SDL
2.0
|
Go to the source code of this file.
Macros | |
#define | MOUSE_TESTWINDOW_WIDTH 320 |
#define | MOUSE_TESTWINDOW_HEIGHT 200 |
Functions | |
int | _mouseStateCheck (Uint32 state) |
int | mouse_getMouseState (void *arg) |
Check call to SDL_GetMouseState. More... | |
int | mouse_getRelativeMouseState (void *arg) |
Check call to SDL_GetRelativeMouseState. More... | |
static SDL_Cursor * | _initArrowCursor (const char *image[]) |
int | mouse_createFreeCursor (void *arg) |
Check call to SDL_CreateCursor and SDL_FreeCursor. More... | |
int | mouse_createFreeColorCursor (void *arg) |
Check call to SDL_CreateColorCursor and SDL_FreeCursor. More... | |
void | _changeCursorVisibility (int state) |
int | mouse_showCursor (void *arg) |
Check call to SDL_ShowCursor. More... | |
int | mouse_setCursor (void *arg) |
Check call to SDL_SetCursor. More... | |
int | mouse_getCursor (void *arg) |
Check call to SDL_GetCursor. More... | |
int | mouse_getSetRelativeMouseMode (void *arg) |
Check call to SDL_GetRelativeMouseMode and SDL_SetRelativeMouseMode. More... | |
SDL_Window * | _createMouseSuiteTestWindow () |
void | _destroyMouseSuiteTestWindow (SDL_Window *window) |
int | mouse_warpMouseInWindow (void *arg) |
Check call to SDL_WarpMouseInWindow. More... | |
int | mouse_getMouseFocus (void *arg) |
Check call to SDL_GetMouseFocus. More... | |
Variables | |
static const char * | _mouseArrowData [] |
static const SDLTest_TestCaseReference | mouseTest1 |
static const SDLTest_TestCaseReference | mouseTest2 |
static const SDLTest_TestCaseReference | mouseTest3 |
static const SDLTest_TestCaseReference | mouseTest4 |
static const SDLTest_TestCaseReference | mouseTest5 |
static const SDLTest_TestCaseReference | mouseTest6 |
static const SDLTest_TestCaseReference | mouseTest7 |
static const SDLTest_TestCaseReference | mouseTest8 |
static const SDLTest_TestCaseReference | mouseTest9 |
static const SDLTest_TestCaseReference | mouseTest10 |
static const SDLTest_TestCaseReference * | mouseTests [] |
SDLTest_TestSuiteReference | mouseTestSuite |
#define MOUSE_TESTWINDOW_HEIGHT 200 |
Definition at line 413 of file testautomation_mouse.c.
Referenced by _createMouseSuiteTestWindow(), mouse_getMouseFocus(), and mouse_warpMouseInWindow().
#define MOUSE_TESTWINDOW_WIDTH 320 |
Definition at line 412 of file testautomation_mouse.c.
Referenced by _createMouseSuiteTestWindow(), mouse_getMouseFocus(), and mouse_warpMouseInWindow().
void _changeCursorVisibility | ( | int | state | ) |
Definition at line 255 of file testautomation_mouse.c.
References SDL_ENABLE, SDL_QUERY, SDL_ShowCursor, SDLTest_AssertCheck(), and SDLTest_AssertPass().
Referenced by mouse_showCursor().
SDL_Window* _createMouseSuiteTestWindow | ( | ) |
Creates a test window
Definition at line 418 of file testautomation_mouse.c.
References MOUSE_TESTWINDOW_HEIGHT, MOUSE_TESTWINDOW_WIDTH, NULL, SDL_CreateWindow, SDLTest_AssertCheck(), and SDLTest_AssertPass().
Referenced by mouse_getMouseFocus(), and mouse_warpMouseInWindow().
void _destroyMouseSuiteTestWindow | ( | SDL_Window * | window | ) |
Definition at line 431 of file testautomation_mouse.c.
References NULL, SDL_DestroyWindow, and SDLTest_AssertPass().
Referenced by mouse_getMouseFocus(), and mouse_warpMouseInWindow().
|
static |
Definition at line 157 of file testautomation_mouse.c.
References cursor, i, and SDL_CreateCursor.
Referenced by mouse_createFreeCursor(), and mouse_setCursor().
int _mouseStateCheck | ( | Uint32 | state | ) |
Mouse test suite
Definition at line 16 of file testautomation_mouse.c.
References SDL_BUTTON, SDL_BUTTON_LEFT, SDL_BUTTON_MIDDLE, SDL_BUTTON_RIGHT, SDL_BUTTON_X1, and SDL_BUTTON_X2.
Referenced by mouse_getMouseState(), and mouse_getRelativeMouseState().
int mouse_createFreeColorCursor | ( | void * | arg | ) |
Check call to SDL_CreateColorCursor and SDL_FreeCursor.
Definition at line 225 of file testautomation_mouse.c.
References cursor, NULL, SDL_CreateColorCursor, SDL_FreeCursor, SDL_FreeSurface, SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_ImageFace(), TEST_ABORTED, and TEST_COMPLETED.
int mouse_createFreeCursor | ( | void * | arg | ) |
Check call to SDL_CreateCursor and SDL_FreeCursor.
Definition at line 199 of file testautomation_mouse.c.
References _initArrowCursor(), _mouseArrowData, cursor, NULL, SDL_FreeCursor, SDLTest_AssertCheck(), SDLTest_AssertPass(), TEST_ABORTED, and TEST_COMPLETED.
int mouse_getCursor | ( | void * | arg | ) |
Check call to SDL_GetCursor.
Definition at line 344 of file testautomation_mouse.c.
References cursor, NULL, SDL_GetCursor, SDLTest_AssertCheck(), SDLTest_AssertPass(), and TEST_COMPLETED.
int mouse_getMouseFocus | ( | void * | arg | ) |
Check call to SDL_GetMouseFocus.
Definition at line 508 of file testautomation_mouse.c.
References _createMouseSuiteTestWindow(), _destroyMouseSuiteTestWindow(), MOUSE_TESTWINDOW_HEIGHT, MOUSE_TESTWINDOW_WIDTH, NULL, SDL_GetMouseFocus, SDL_PumpEvents, SDL_WarpMouseInWindow, SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_RandomIntegerInRange(), TEST_ABORTED, and TEST_COMPLETED.
int mouse_getMouseState | ( | void * | arg | ) |
Check call to SDL_GetMouseState.
Definition at line 31 of file testautomation_mouse.c.
References _mouseStateCheck(), NULL, SDL_GetMouseState, SDL_PumpEvents, SDLTest_AssertCheck(), SDLTest_AssertPass(), state, and TEST_COMPLETED.
int mouse_getRelativeMouseState | ( | void * | arg | ) |
Check call to SDL_GetRelativeMouseState.
Definition at line 77 of file testautomation_mouse.c.
References _mouseStateCheck(), NULL, SDL_GetRelativeMouseState, SDL_PumpEvents, SDLTest_AssertCheck(), SDLTest_AssertPass(), state, and TEST_COMPLETED.
int mouse_getSetRelativeMouseMode | ( | void * | arg | ) |
Check call to SDL_GetRelativeMouseMode and SDL_SetRelativeMouseMode.
Definition at line 363 of file testautomation_mouse.c.
References i, SDL_FALSE, SDL_GetRelativeMouseMode, SDL_SetRelativeMouseMode, SDL_TRUE, SDLTest_AssertCheck(), SDLTest_AssertPass(), and TEST_COMPLETED.
int mouse_setCursor | ( | void * | arg | ) |
Check call to SDL_SetCursor.
Definition at line 311 of file testautomation_mouse.c.
References _initArrowCursor(), _mouseArrowData, cursor, NULL, SDL_FreeCursor, SDL_SetCursor, SDLTest_AssertCheck(), SDLTest_AssertPass(), TEST_ABORTED, and TEST_COMPLETED.
int mouse_showCursor | ( | void * | arg | ) |
Check call to SDL_ShowCursor.
Definition at line 281 of file testautomation_mouse.c.
References _changeCursorVisibility(), SDL_DISABLE, SDL_ENABLE, SDL_QUERY, SDL_ShowCursor, SDLTest_AssertCheck(), SDLTest_AssertPass(), TEST_ABORTED, and TEST_COMPLETED.
int mouse_warpMouseInWindow | ( | void * | arg | ) |
Check call to SDL_WarpMouseInWindow.
Definition at line 446 of file testautomation_mouse.c.
References _createMouseSuiteTestWindow(), _destroyMouseSuiteTestWindow(), i, j, MOUSE_TESTWINDOW_HEIGHT, MOUSE_TESTWINDOW_WIDTH, NULL, SDL_PumpEvents, SDL_WarpMouseInWindow, SDLTest_AssertPass(), SDLTest_RandomIntegerInRange(), TEST_ABORTED, and TEST_COMPLETED.
|
static |
Definition at line 120 of file testautomation_mouse.c.
Referenced by mouse_createFreeCursor(), and mouse_setCursor().
|
static |
Definition at line 564 of file testautomation_mouse.c.
|
static |
Definition at line 591 of file testautomation_mouse.c.
|
static |
Definition at line 567 of file testautomation_mouse.c.
|
static |
Definition at line 570 of file testautomation_mouse.c.
|
static |
Definition at line 573 of file testautomation_mouse.c.
|
static |
Definition at line 576 of file testautomation_mouse.c.
|
static |
Definition at line 579 of file testautomation_mouse.c.
|
static |
Definition at line 582 of file testautomation_mouse.c.
|
static |
Definition at line 585 of file testautomation_mouse.c.
|
static |
Definition at line 588 of file testautomation_mouse.c.
|
static |
Definition at line 595 of file testautomation_mouse.c.
SDLTest_TestSuiteReference mouseTestSuite |
Definition at line 601 of file testautomation_mouse.c.