include/SDL_mouse.h
changeset 6675 20f3cdea0fd2
parent 6673 78f18a929123
child 6677 c3202c29e352
     1.1 --- a/include/SDL_mouse.h	Fri Nov 16 09:23:18 2012 -0300
     1.2 +++ b/include/SDL_mouse.h	Mon Nov 19 15:11:10 2012 -0800
     1.3 @@ -58,6 +58,24 @@
     1.4  
     1.5  typedef struct SDL_Cursor SDL_Cursor;   /* Implementation dependent */
     1.6  
     1.7 +/**
     1.8 + * \brief Cursor types for SDL_CreateSystemCursor.
     1.9 + */
    1.10 +typedef enum
    1.11 +{
    1.12 +    SDL_SYSTEM_CURSOR_ARROW,     // Arrow
    1.13 +    SDL_SYSTEM_CURSOR_IBEAM,     // I-beam
    1.14 +    SDL_SYSTEM_CURSOR_WAIT,      // Wait
    1.15 +    SDL_SYSTEM_CURSOR_CROSSHAIR, // Crosshair
    1.16 +    SDL_SYSTEM_CURSOR_WAITARROW, // Small wait cursor (or Wait if not available)
    1.17 +    SDL_SYSTEM_CURSOR_SIZENWSE,  // Double arrow pointing northwest and southeast
    1.18 +    SDL_SYSTEM_CURSOR_SIZENESW,  // Double arrow pointing northeast and southwest
    1.19 +    SDL_SYSTEM_CURSOR_SIZEWE,    // Double arrow pointing west and east
    1.20 +    SDL_SYSTEM_CURSOR_SIZENS,    // Double arrow pointing north and south
    1.21 +    SDL_SYSTEM_CURSOR_SIZEALL,   // Four pointed arrow pointing north, south, east, and west
    1.22 +    SDL_SYSTEM_CURSOR_NO,        // Slashed circle or crossbones
    1.23 +    SDL_SYSTEM_CURSOR_HAND,      // Hand
    1.24 +} SDL_SystemCursor;
    1.25  
    1.26  /* Function prototypes */
    1.27  
    1.28 @@ -155,6 +173,13 @@
    1.29                                                            int hot_y);
    1.30  
    1.31  /**
    1.32 + *  \brief Create a system cursor.
    1.33 + *
    1.34 + *  \sa SDL_FreeCursor()
    1.35 + */
    1.36 +extern DECLSPEC SDL_Cursor *SDLCALL SDL_CreateSystemCursor(SDL_SystemCursor id);
    1.37 +
    1.38 +/**
    1.39   *  \brief Set the active cursor.
    1.40   */
    1.41  extern DECLSPEC void SDLCALL SDL_SetCursor(SDL_Cursor * cursor);