6 #define RESIZE_BORDER 20 10 { 200, 70, 100, 100 },
25 SDL_Log(
"HIT-TEST: DRAGGABLE\n");
32 #define REPORT_RESIZE_HIT(name) { \ 33 SDL_Log("HIT-TEST: RESIZE_" #name "\n"); \ 34 return SDL_HITTEST_RESIZE_##name; \ 60 int main(
int argc,
char **argv)
72 SDL_Log(
"Enabling hit-testing failed!\n");
80 int nothing_to_do = 1;
#define SDL_WINDOWPOS_CENTERED
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 SDL_AssertionHandler void SDL_SpinLock SDL_atomic_t int int return SDL_atomic_t return void void void return void return int return SDL_AudioSpec SDL_AudioSpec return int int return return int SDL_RWops int SDL_AudioSpec Uint8 Uint32 * e
GLfloat GLfloat GLfloat GLfloat h
The structure that defines a point.
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
SDL_FORCE_INLINE SDL_bool SDL_PointInRect(const SDL_Point *p, const SDL_Rect *r)
Returns true if point resides inside a rectangle.
const SDL_Rect drag_areas[]
SDL_HitTestResult
Possible return values from the SDL_HitTest callback.
#define SDL_GetWindowSize
#define SDL_RenderFillRects
static SDL_Renderer * renderer
GLubyte GLubyte GLubyte GLubyte w
static SDL_HitTestResult hitTest(SDL_Window *window, const SDL_Point *pt, void *data)
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 REPORT_RESIZE_HIT(name)
EGLSurface EGLNativeWindowType * window
#define SDL_SetWindowHitTest
The type used to identify a window.
#define SDL_arraysize(array)
#define SDL_SetRenderDrawColor
static const SDL_Rect * areas
int main(int argc, char **argv)
#define SDL_CreateRenderer
A rectangle, with the origin at the upper left.
#define SDL_RenderPresent