Go to the documentation of this file.
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;
103 SDL_Log(
"Window event moved to (%d, %d)!\n", (
int)
e.window.data1, (
int)
e.window.data2);
110 }
else if (
e.key.keysym.sym ==
SDLK_x) {
#define SDL_RenderPresent
#define SDL_WINDOWPOS_CENTERED
const SDL_Rect drag_areas[]
GLfloat GLfloat GLfloat GLfloat h
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
The type used to identify a window.
#define SDL_RenderFillRects
#define SDL_GetWindowSize
SDL_HitTestResult
Possible return values from the SDL_HitTest callback.
EGLSurface EGLNativeWindowType * window
SDL_FORCE_INLINE SDL_bool SDL_PointInRect(const SDL_Point *p, const SDL_Rect *r)
Returns true if point resides inside a rectangle.
#define SDL_arraysize(array)
int main(int argc, char **argv)
static const SDL_Rect * areas
static SDL_Renderer * renderer
#define SDL_SetWindowHitTest
The structure that defines a point.
A rectangle, with the origin at the upper left.
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
static SDL_HitTestResult hitTest(SDL_Window *window, const SDL_Point *pt, void *data)
#define SDL_SetRenderDrawColor
#define SDL_CreateRenderer
#define REPORT_RESIZE_HIT(name)
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)
GLubyte GLubyte GLubyte GLubyte w