SDL_HitTestResult.3type - Man Page

Name

SDL_HitTestResult ā€” Possible return values from the SDL_HitTest
callback.

Header File

Defined in SDL3/SDL_video.h

Synopsis

#include "SDL3/SDL.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;

Thread Safety

This function should only be called on the main thread.

Availability

This enum is available since SDL 3.2.0.

See Also

Ā·(3), SDL_HitTest(3type)

Info

SDL 3.2.2 Simple Directmedia Layer SDL3 DATATYPES