SDL_HitTestResult(3type)
π SDL_HitTestResult π
okay bestie, welcome to SDL_HitTestResult β it's a datatype page from the SDL3 DATATYPES corner of the SDL3 manual, and it's literally just the list of possible return values that the SDL_HitTest callback can hand back to you. no cap, that's the whole vibe. β¨
β¨ NAME β¨
SDL_HitTestResult β possible return values from the SDL_HitTest callback. π«Ά
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_video.h>
typedef enum SDL_HitTestResult
{
SDL_HITTEST_NORMAL, /**< Region is normal. No special properties. */
SDL_HITTEST_DRAGGABLE, /**< Region can drag entire window. */
SDL_HITTEST_RESIZE_TOPLEFT, /**< Region is the resizable top-left corner border. */
SDL_HITTEST_RESIZE_TOP, /**< Region is the resizable top border. */
SDL_HITTEST_RESIZE_TOPRIGHT, /**< Region is the resizable top-right corner border. */
SDL_HITTEST_RESIZE_RIGHT, /**< Region is the resizable right border. */
SDL_HITTEST_RESIZE_BOTTOMRIGHT, /**< Region is the resizable bottom-right corner border. */
SDL_HITTEST_RESIZE_BOTTOM, /**< Region is the resizable bottom border. */
SDL_HITTEST_RESIZE_BOTTOMLEFT, /**< Region is the resizable bottom-left corner border. */
SDL_HITTEST_RESIZE_LEFT /**< Region is the resizable left border. */
} SDL_HitTestResult;
okay let's break down the cast, one icon at a time π
SDL_HITTEST_NORMALβ this region is just... normal. no special properties, no drama, it's giving default. πSDL_HITTEST_DRAGGABLEβ this region can drag the entire window. grab it, move it, main character energy. πSDL_HITTEST_RESIZE_TOPLEFTβ this region is the resizable top-left corner border. π¦SDL_HITTEST_RESIZE_TOPβ this region is the resizable top border. βSDL_HITTEST_RESIZE_TOPRIGHTβ this region is the resizable top-right corner border. π¦SDL_HITTEST_RESIZE_RIGHTβ this region is the resizable right border. βSDL_HITTEST_RESIZE_BOTTOMRIGHTβ this region is the resizable bottom-right corner border. π¦SDL_HITTEST_RESIZE_BOTTOMβ this region is the resizable bottom border. βSDL_HITTEST_RESIZE_BOTTOMLEFTβ this region is the resizable bottom-left corner border. π¦SDL_HITTEST_RESIZE_LEFTβ this region is the resizable left border. β
π§΅ THREAD SAFETY π§΅
bestie listen. this one should only be called on the main thread. do not try to be cute and call it from a worker thread, that's not the move. π
π AVAILABILITY π
this enum has been available since SDL 3.2.0. iconic behavior honestly. π
π SEE ALSO π
SDL_HitTest(3type)
and that's the whole page, periodt. π β¨ this cutie was brought to you by Simple Directmedia Layer, straight out of SDL 3.4.18 β go forth and hit-test responsibly, bestie π«ΆπΈ
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms