include/SDL_gesture.h
changeset 4659 063b9455bd1a
child 4664 317a151b79ad
equal deleted inserted replaced
4658:454385d76845 4659:063b9455bd1a
       
     1 /*
       
     2     SDL - Simple DirectMedia Layer
       
     3     Copyright (C) 1997-2010 Sam Lantinga
       
     4 
       
     5     This library is free software; you can redistribute it and/or
       
     6     modify it under the terms of the GNU Lesser General Public
       
     7     License as published by the Free Software Foundation; either
       
     8     version 2.1 of the License, or (at your option) any later version.
       
     9 
       
    10     This library is distributed in the hope that it will be useful,
       
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    13     Lesser General Public License for more details.
       
    14 
       
    15     You should have received a copy of the GNU Lesser General Public
       
    16     License along with this library; if not, write to the Free Software
       
    17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
       
    18 
       
    19     Sam Lantinga
       
    20     slouken@libsdl.org
       
    21 */
       
    22 
       
    23 /**
       
    24  *  \file SDL_gesture.h
       
    25  *  
       
    26  *  Include file for SDL gesture event handling.
       
    27  */
       
    28 
       
    29 #ifndef _SDL_gesture_h
       
    30 #define _SDL_gesture_h
       
    31 
       
    32 #include "SDL_stdinc.h"
       
    33 #include "SDL_error.h"
       
    34 #include "SDL_video.h"
       
    35 
       
    36 #include "begin_code.h"
       
    37 /* Set up for C function definitions, even when using C++ */
       
    38 #ifdef __cplusplus
       
    39 /* *INDENT-OFF* */
       
    40 extern "C" {
       
    41 /* *INDENT-ON* */
       
    42 #endif
       
    43 
       
    44 
       
    45 /* Function prototypes */
       
    46 
       
    47 /**
       
    48  *  \brief Begin Recording a gesture on the specified touch, or all touches (-1)
       
    49  *
       
    50  *
       
    51  */
       
    52   extern DECLSPEC int SDLCALL SDL_RecordGesture(int touchId);
       
    53 
       
    54 
       
    55 /**
       
    56  *  \brief Save all currently loaded Dollar Gesture templates
       
    57  *
       
    58  *
       
    59  */
       
    60   extern DECLSPEC int SDLCALL SDL_SaveAllDollarTemplates(FILE *fp);
       
    61 
       
    62 /**
       
    63  *  \brief Save a currently loaded Dollar Gesture template
       
    64  *
       
    65  *
       
    66  */
       
    67   extern DECLSPEC int 
       
    68   SDLCALL SDL_SaveDollarTemplate(unsigned long gestureId,FILE *fp);
       
    69 
       
    70 
       
    71 /**
       
    72  *  \brief Load Dollar Gesture templates from a file
       
    73  *
       
    74  *
       
    75  */
       
    76   extern DECLSPEC int SDLCALL SDL_LoadDollarTemplates(int touchId, FILE *fp);
       
    77 
       
    78 
       
    79 
       
    80 /* Ends C function definitions when using C++ */
       
    81 #ifdef __cplusplus
       
    82 /* *INDENT-OFF* */
       
    83 }
       
    84 /* *INDENT-ON* */
       
    85 #endif
       
    86 #include "close_code.h"
       
    87 
       
    88 #endif /* _SDL_gesture_h */
       
    89 
       
    90 /* vi: set ts=4 sw=4 expandtab: */