include/SDL_mouse.h
branchSDL-1.3
changeset 1662 782fd950bd46
parent 1358 c71e05b4dc2e
child 1668 4da1ee79c9af
     1.1 --- a/include/SDL_mouse.h	Sun May 21 17:27:13 2006 +0000
     1.2 +++ b/include/SDL_mouse.h	Sun May 28 13:04:16 2006 +0000
     1.3 @@ -20,7 +20,11 @@
     1.4      slouken@libsdl.org
     1.5  */
     1.6  
     1.7 -/* Include file for SDL mouse event handling */
     1.8 +/**
     1.9 + * \file SDL_mouse.h
    1.10 + *
    1.11 + * Include file for SDL mouse event handling
    1.12 + */
    1.13  
    1.14  #ifndef _SDL_mouse_h
    1.15  #define _SDL_mouse_h
    1.16 @@ -32,17 +36,20 @@
    1.17  #include "begin_code.h"
    1.18  /* Set up for C function definitions, even when using C++ */
    1.19  #ifdef __cplusplus
    1.20 +/* *INDENT-OFF* */
    1.21  extern "C" {
    1.22 +/* *INDENT-ON* */
    1.23  #endif
    1.24  
    1.25 -typedef struct WMcursor WMcursor;	/* Implementation dependent */
    1.26 -typedef struct SDL_Cursor {
    1.27 -	SDL_Rect area;			/* The area of the mouse cursor */
    1.28 -	Sint16 hot_x, hot_y;		/* The "tip" of the cursor */
    1.29 -	Uint8 *data;			/* B/W cursor data */
    1.30 -	Uint8 *mask;			/* B/W cursor mask */
    1.31 -	Uint8 *save[2];			/* Place to save cursor area */
    1.32 -	WMcursor *wm_cursor;		/* Window-manager cursor */
    1.33 +typedef struct WMcursor WMcursor;       /* Implementation dependent */
    1.34 +typedef struct SDL_Cursor
    1.35 +{
    1.36 +    SDL_Rect area;              /* The area of the mouse cursor */
    1.37 +    Sint16 hot_x, hot_y;        /* The "tip" of the cursor */
    1.38 +    Uint8 *data;                /* B/W cursor data */
    1.39 +    Uint8 *mask;                /* B/W cursor mask */
    1.40 +    Uint8 *save[2];             /* Place to save cursor area */
    1.41 +    WMcursor *wm_cursor;        /* Window-manager cursor */
    1.42  } SDL_Cursor;
    1.43  
    1.44  /* Function prototypes */
    1.45 @@ -52,7 +59,7 @@
    1.46   * be tested using the SDL_BUTTON(X) macros, and x and y are set to the
    1.47   * current mouse cursor position.  You can pass NULL for either x or y.
    1.48   */
    1.49 -extern DECLSPEC Uint8 SDLCALL SDL_GetMouseState(int *x, int *y);
    1.50 +extern DECLSPEC Uint8 SDLCALL SDL_GetMouseState (int *x, int *y);
    1.51  
    1.52  /*
    1.53   * Retrieve the current state of the mouse.
    1.54 @@ -60,12 +67,12 @@
    1.55   * be tested using the SDL_BUTTON(X) macros, and x and y are set to the
    1.56   * mouse deltas since the last call to SDL_GetRelativeMouseState().
    1.57   */
    1.58 -extern DECLSPEC Uint8 SDLCALL SDL_GetRelativeMouseState(int *x, int *y);
    1.59 +extern DECLSPEC Uint8 SDLCALL SDL_GetRelativeMouseState (int *x, int *y);
    1.60  
    1.61  /*
    1.62   * Set the position of the mouse cursor (generates a mouse motion event)
    1.63   */
    1.64 -extern DECLSPEC void SDLCALL SDL_WarpMouse(Uint16 x, Uint16 y);
    1.65 +extern DECLSPEC void SDLCALL SDL_WarpMouse (Uint16 x, Uint16 y);
    1.66  
    1.67  /*
    1.68   * Create a cursor using the specified data and mask (in MSB format).
    1.69 @@ -80,25 +87,25 @@
    1.70   *
    1.71   * Cursors created with this function must be freed with SDL_FreeCursor().
    1.72   */
    1.73 -extern DECLSPEC SDL_Cursor * SDLCALL SDL_CreateCursor
    1.74 -		(Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y);
    1.75 +extern DECLSPEC SDL_Cursor *SDLCALL SDL_CreateCursor
    1.76 +    (Uint8 * data, Uint8 * mask, int w, int h, int hot_x, int hot_y);
    1.77  
    1.78  /*
    1.79   * Set the currently active cursor to the specified one.
    1.80   * If the cursor is currently visible, the change will be immediately 
    1.81   * represented on the display.
    1.82   */
    1.83 -extern DECLSPEC void SDLCALL SDL_SetCursor(SDL_Cursor *cursor);
    1.84 +extern DECLSPEC void SDLCALL SDL_SetCursor (SDL_Cursor * cursor);
    1.85  
    1.86  /*
    1.87   * Returns the currently active cursor.
    1.88   */
    1.89 -extern DECLSPEC SDL_Cursor * SDLCALL SDL_GetCursor(void);
    1.90 +extern DECLSPEC SDL_Cursor *SDLCALL SDL_GetCursor (void);
    1.91  
    1.92  /*
    1.93   * Deallocates a cursor created with SDL_CreateCursor().
    1.94   */
    1.95 -extern DECLSPEC void SDLCALL SDL_FreeCursor(SDL_Cursor *cursor);
    1.96 +extern DECLSPEC void SDLCALL SDL_FreeCursor (SDL_Cursor * cursor);
    1.97  
    1.98  /*
    1.99   * Toggle whether or not the cursor is shown on the screen.
   1.100 @@ -107,7 +114,7 @@
   1.101   * before the call, or 0 if it was not.  You can query the current
   1.102   * state by passing a 'toggle' value of -1.
   1.103   */
   1.104 -extern DECLSPEC int SDLCALL SDL_ShowCursor(int toggle);
   1.105 +extern DECLSPEC int SDLCALL SDL_ShowCursor (int toggle);
   1.106  
   1.107  /* Used as a mask when testing buttons in buttonstate
   1.108     Button 1:	Left mouse button
   1.109 @@ -129,8 +136,12 @@
   1.110  
   1.111  /* Ends C function definitions when using C++ */
   1.112  #ifdef __cplusplus
   1.113 +/* *INDENT-OFF* */
   1.114  }
   1.115 +/* *INDENT-ON* */
   1.116  #endif
   1.117  #include "close_code.h"
   1.118  
   1.119  #endif /* _SDL_mouse_h */
   1.120 +
   1.121 +/* vi: set ts=4 sw=4 expandtab: */