Go to the documentation of this file.
18 return (
state == 0) ||
166 for ( col=0; col<32; ++col ) {
375 for (
i=0;
i<2;
i++) {
386 for (
i=0;
i<2;
i++) {
412 #define MOUSE_TESTWINDOW_WIDTH 320
413 #define MOUSE_TESTWINDOW_HEIGHT 200
449 int numPositions = 6;
482 for (
i=0;
i<numPositions;
i++) {
483 for (
j=0;
j<numPositions;
j++) {
#define SDL_GetMouseState
static const SDLTest_TestCaseReference mouseTest9
static const SDLTest_TestCaseReference mouseTest7
SDL_Window * _createMouseSuiteTestWindow()
static const SDLTest_TestCaseReference mouseTest2
A collection of pixels used in software blitting.
static const SDLTest_TestCaseReference mouseTest3
GLint GLint GLsizei width
static const SDLTest_TestCaseReference * mouseTests[]
void _changeCursorVisibility(int state)
static const SDLTest_TestCaseReference mouseTest1
static const SDLTest_TestCaseReference mouseTest6
int mouse_showCursor(void *arg)
Check call to SDL_ShowCursor.
static const SDLTest_TestCaseReference mouseTest10
GLfloat GLfloat GLfloat GLfloat h
int mouse_getMouseState(void *arg)
Check call to SDL_GetMouseState.
static const char * _mouseArrowData[]
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
#define SDL_SetRelativeMouseMode
The type used to identify a window.
SDL_Surface * SDLTest_ImageFace(void)
Returns the Face test image as SDL_Surface.
int mouse_createFreeColorCursor(void *arg)
Check call to SDL_CreateColorCursor and SDL_FreeCursor.
GLint GLint GLint GLint GLint x
static const SDLTest_TestCaseReference mouseTest5
EGLSurface EGLNativeWindowType * window
int mouse_setCursor(void *arg)
Check call to SDL_SetCursor.
#define SDL_GetRelativeMouseState
int(* SDLTest_TestCaseFp)(void *arg)
#define SDL_GetRelativeMouseMode
void SDLTest_AssertPass(SDL_PRINTF_FORMAT_STRING const char *assertDescription,...) SDL_PRINTF_VARARG_FUNC(1)
Explicitly pass without checking an assertion condition. Updates assertion counter.
int mouse_getCursor(void *arg)
Check call to SDL_GetCursor.
GLint GLint GLsizei GLsizei height
#define SDL_BUTTON_MIDDLE
int _mouseStateCheck(Uint32 state)
int SDLTest_AssertCheck(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription,...) SDL_PRINTF_VARARG_FUNC(2)
Assert for test cases that logs but does not break execution flow on failures. Updates assertion coun...
int mouse_warpMouseInWindow(void *arg)
Check call to SDL_WarpMouseInWindow.
int mouse_getRelativeMouseState(void *arg)
Check call to SDL_GetRelativeMouseState.
#define MOUSE_TESTWINDOW_HEIGHT
int mouse_createFreeCursor(void *arg)
Check call to SDL_CreateCursor and SDL_FreeCursor.
static SDL_Cursor * _initArrowCursor(const char *image[])
static const SDLTest_TestCaseReference mouseTest4
GLint GLint GLint GLint GLint GLint y
#define SDL_CreateColorCursor
int mouse_getSetRelativeMouseMode(void *arg)
Check call to SDL_GetRelativeMouseMode and SDL_SetRelativeMouseMode.
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int int in j)
#define SDL_GetMouseFocus
#define MOUSE_TESTWINDOW_WIDTH
GLenum GLuint GLint GLenum face
static const SDLTest_TestCaseReference mouseTest8
int mouse_getMouseFocus(void *arg)
Check call to SDL_GetMouseFocus.
#define SDL_WarpMouseInWindow
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)
#define SDL_DestroyWindow
GLubyte GLubyte GLubyte GLubyte w
void _destroyMouseSuiteTestWindow(SDL_Window *window)
SDLTest_TestSuiteReference mouseTestSuite
Sint32 SDLTest_RandomIntegerInRange(Sint32 min, Sint32 max)