kc3-lang/SDL/test/testhittesting.c

Branch :


Log

Author Commit Date CI Message
31de8f8b 2014-06-05 00:49:25 Minor tweaks to testhittesting.
2d38a71a 2014-06-05 00:45:16 Added SDL_HITTEST_RESIZE_*, and implemented for X11.
bf03bec1 2014-05-30 01:48:26 Patched to compile on Visual Studio.
4ef6edda 2014-05-30 01:48:08 Make some printf() calls into SDL_Log() so I can see them on Windows. :)
7364ed01 2014-05-28 01:27:27 Added a few debug printf() calls.
98c03f39 2014-05-28 01:22:47 Changed drag area API to a hit-testing API. There were several good arguments for this: it's how Windows works with WM_NCHITTEST, SDL doesn't need to manage a list of rects, it allows more control over the regions (how do you use rects to cleanly surround a circular button?), the callback can be more optimized than a iterating a list of rects, and you don't have to send an updated list of rects whenever the window resizes or layout changes.