SDL
2.0
|
Go to the source code of this file.
Macros | |
#define | RESIZE_BORDER 20 |
#define | REPORT_RESIZE_HIT(name) |
Functions | |
static SDL_HitTestResult | hitTest (SDL_Window *window, const SDL_Point *pt, void *data) |
int | main (int argc, char **argv) |
Variables | |
const SDL_Rect | drag_areas [] |
static const SDL_Rect * | areas = drag_areas |
static int | numareas = SDL_arraysize(drag_areas) |
#define REPORT_RESIZE_HIT | ( | name | ) |
#define RESIZE_BORDER 20 |
Definition at line 7 of file testhittesting.c.
|
static |
Definition at line 18 of file testhittesting.c.
References areas, i, numareas, REPORT_RESIZE_HIT, RESIZE_BORDER, SDL_GetWindowSize, SDL_HITTEST_DRAGGABLE, SDL_HITTEST_NORMAL, SDL_Log, SDL_PointInRect(), SDL_Point::x, and SDL_Point::y.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 60 of file testhittesting.c.
References areas, done, drag_areas, e, hitTest(), NULL, numareas, renderer, SDL_arraysize, SDL_CreateRenderer, SDL_CreateWindow, SDL_Delay, SDL_Init, SDL_INIT_VIDEO, SDL_KEYDOWN, SDL_Log, SDL_MOUSEBUTTONDOWN, SDL_MOUSEBUTTONUP, SDL_PollEvent, SDL_Quit, SDL_QUIT, SDL_RenderClear, SDL_RenderFillRects, SDL_RenderPresent, SDL_SetRenderDrawColor, SDL_SetWindowHitTest, SDL_WINDOW_BORDERLESS, SDL_WINDOW_RESIZABLE, SDL_WINDOWEVENT, SDL_WINDOWEVENT_MOVED, SDL_WINDOWPOS_CENTERED, SDLK_ESCAPE, and SDLK_x.
|
static |
Definition at line 14 of file testhittesting.c.
const SDL_Rect drag_areas[] |
Definition at line 8 of file testhittesting.c.
Referenced by main().
|
static |
Definition at line 15 of file testhittesting.c.