SDL
2.0
|
Go to the source code of this file.
Functions | |
static void | quit (int rc) |
void | loop () |
int | main (int argc, char *argv[]) |
Variables | |
static SDLTest_CommonState * | state |
int | done |
static const char * | cursorNames [] |
int | system_cursor = -1 |
SDL_Cursor * | cursor = NULL |
void loop | ( | ) |
Definition at line 51 of file testwm2.c.
References cursorNames, SDL_WindowEvent::data1, SDL_WindowEvent::data2, done, SDL_WindowEvent::event, i, SDL_Event::key, SDL_KeyboardEvent::keysym, SDLTest_CommonState::num_windows, renderer, SDLTest_CommonState::renderers, SDL_CreateSystemCursor, SDL_FALSE, SDL_FreeCursor, SDL_GetDisplayName, SDL_GetWindowDisplayIndex, SDL_GetWindowFromID, SDL_KEYUP, SDL_Log, SDL_NUM_SYSTEM_CURSORS, SDL_PollEvent, SDL_RenderClear, SDL_RenderPresent, SDL_SetCursor, SDL_TRUE, SDL_WINDOWEVENT, SDL_WINDOWEVENT_MOVED, SDL_WINDOWEVENT_RESIZED, SDLK_LEFT, SDLK_RIGHT, SDLTest_CommonEvent(), SDL_Keysym::sym, system_cursor, SDL_Event::type, SDL_Event::window, and SDL_WindowEvent::windowID.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 118 of file testwm2.c.
References cursorNames, done, i, loop(), SDLTest_CommonState::num_windows, quit(), renderer, SDLTest_CommonState::renderers, SDL_arraysize, SDL_assert, SDL_DROPFILE, SDL_DROPTEXT, SDL_ENABLE, SDL_EventState, SDL_FreeCursor, SDL_INIT_VIDEO, SDL_Log, SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, SDL_LogSetPriority, SDL_NUM_SYSTEM_CURSORS, SDL_RenderClear, SDL_SetRenderDrawColor, SDLTest_CommonArg(), SDLTest_CommonCreateState(), SDLTest_CommonInit(), and SDLTest_CommonUsage().
|
static |
Definition at line 44 of file testwm2.c.
References SDLTest_CommonQuit().
Referenced by main().
SDL_Cursor* cursor = NULL |
Definition at line 40 of file testwm2.c.
Referenced by _initArrowCursor(), init_color_cursor(), mouse_createFreeColorCursor(), mouse_createFreeCursor(), mouse_getCursor(), mouse_setCursor(), SDL_CreateColorCursor(), SDL_CreateCursor(), SDL_CreateSystemCursor(), SDL_MouseQuit(), SDL_SetCursor(), SDL_SetDefaultCursor(), and SDL_TrackAllocation().
|
static |
|
static |